-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
25 lines (25 loc) · 1.39 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Nutrition Analysis</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet">
</head>
<body class="bg-gradient-to-r from-blue-400 to-purple-400 to-blue-400 text-gray-900 flex items-center justify-center h-screen">
<div id="app" class="container max-w-md mx-auto p-4">
<h1 class="text-4xl font-bold mb-6 text-center text-black">Nutrition Analysis</h1>
<form id="nutrition-form" class="mb-6 flex justify-center">
<input type="text" id="food-item" placeholder="Enter food item " class="border p-3 mr-2 w-full max-w-xs">
<button type="submit" class="bg-blue-900 text-white p-2">Search</button>
</form>
<div id="nutrition-facts" class="bg-white p-6 rounded shadow-lg text-gray-700 relative overflow-hidden">
<!-- Background Image -->
<div class="absolute inset-0 opacity-10 bg-cover bg-center" style="background-image: url('image/cutlery.png');"></div>
<!-- Nutrition facts will be displayed here -->
<p class="text-center font-semibold text-lg relative">Enter a food item with quantity [g ,kg,ml,l] to see its nutrition facts.</p>
</div>
</div>
<script src="app.js"></script>
</body>
</html>