-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
71 lines (62 loc) · 2.94 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Foodies - Welcome</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet">
</head>
<body class="bg-gradient-to-r from-green-300 via-green-400 to-green-300">
<!-- Navbar -->
<nav class="bg-green-900 shadow-md fixed w-full py-4 z-10">
<div class="container mx-auto flex justify-between items-center px-4">
<a href="#home" class="text-green-100 text-2xl font-bold">FOODies</a>
<ul class="flex space-x-4 text-black">
<li><a href="#"
class="bg-green-800 text-bold text-white hover:bg-green-400 px-4 py-2 rounded-full shadow-md focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2">Home</a>
</li>
</ul>
</div>
</nav>
<!-- Hero Section -->
<section class="container mx-auto py-20 flex flex-col md:flex-row items-center justify-between mb-6 px-4">
<div class="w-full md:w-1/2 text-center md:text-left">
<h1 class="text-4xl md:text-6xl font-bold text-white">
<span class="block">Welcome to find</span>
The world of <br>
<span class="block">Tasty & Fresh Delicious Recipes.</span>
</h1>
<p class="text-white text-xl mt-6">Search by ingredients and discover a variety of recipes!</p>
<div class="flex items-center justify-center md:justify-start mt-5 pb-10">
<input id="searchInput" type="text" placeholder="Search for recipes"
class="bg-green-50 focus:outline-none focus:ring-2 focus:ring-blue-500 border border-gray-300 rounded-l-md py-2 px-4 block w-full sm:text-sm" />
<button id="searchBtn"
class="bg-green-700 text-bold text-white hover:bg-green-900 px-6 py-2 rounded-r-md shadow-md focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2">
Search
</button>
</div>
</div>
<div class="w-full md:w-1/2 mt-10 md:mt-0">
<img src="image/bug.png" alt="Burger Image" class="mx-auto">
</div>
</section>
<!-- Results Section -->
<section id="results" class="bg-gradient-to-r from-green-300 via-green-400 to-green-300 p-4 flex flex-wrap justify-center items-center">
<!-- Search results will be displayed here -->
</section>
<!-- Image Section -->
<section>
<div>
<img src="image/FF.jpg" alt="Food Image" class="w-full">
</div>
</section>
<!-- Footer -->
<footer class="bg-green-500 text-white text-2xl text-center py-20">
<div class="container mx-auto">
<p>© 2024 Recipe Search</p>
</div>
</footer>
<!-- JavaScript -->
<script src="script.js"></script>
</body>
</html>