-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
246 lines (239 loc) · 11.1 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chef Book</title>
<link rel="icon" type="image/x-icon" href="/images/logo.png">
<link href="https://cdn.jsdelivr.net/npm/daisyui@4.12.10/dist/full.min.css" rel="stylesheet" type="text/css" />
<script src="https://kit.fontawesome.com/241c20155b.js" crossorigin="anonymous"></script>
<script src="https://cdn.tailwindcss.com"></script>
<style>
.h-300 {
height: 300px;
}
.hero-banner {
place-items: start;
}
.hero-banner-content {
z-index: 0;
display: flex;
align-items: center;
max-width: 80rem;
gap: 1rem;
padding: 1rem;
}
</style>
</head>
<body>
<header class="sticky top-0 z-10">
<!--Navbar Start-->
<div class="navbar bg-base-100">
<div class="navbar-start">
<div class="dropdown lg:hidden">
<div tabindex="0" role="button" class="btn btn-ghost">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-5 w-5"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor">
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M4 6h16M4 12h8m-8 6h16" />
</svg>
</div>
<ul
tabindex="0"
class="menu menu-sm dropdown-content bg-base-100 rounded-box z-[1] mt-3 w-52 p-2 shadow">
<li class="potato-menu" onclick="recipeCategory.setRecipeCategory(POTATO_MENU)"><a>Potato</a></li>
<li class="beef-menu" onclick="recipeCategory.setRecipeCategory(BEEF_MENU)"><a>Beef</a></li>
<li class="chicken-menu" onclick="recipeCategory.setRecipeCategory(CHICKEN_MENU)"><a>Chicken</a></li>
<li class="soup-menu" onclick="recipeCategory.setRecipeCategory(SOUP_MENU)"><a>Soup</a></li>
</ul>
</div>
<a class="btn btn-ghost text-xl">
<img class="h-8 w-8" src="images/logo.png" alt="">
<span class="font-bold">Chef Book</span>
</a>
</div>
<div class="navbar-end hidden lg:flex">
<ul class="menu menu-horizontal px-1">
<li class="potato-menu" onclick="recipeCategory.setRecipeCategory(POTATO_MENU)"><a>Potato</a></li>
<li class="beef-menu" onclick="recipeCategory.setRecipeCategory(BEEF_MENU)"><a>Beef</a></li>
<li class="chicken-menu" onclick="recipeCategory.setRecipeCategory(CHICKEN_MENU)"><a>Chicken</a></li>
<li class="soup-menu" onclick="recipeCategory.setRecipeCategory(SOUP_MENU)"><a>Soup</a></li>
</ul>
</div>
</div>
<!--Navbar End-->
</header>
<!--Carousel Start-->
<div class="carousel w-full h-92 bg-black">
<div id="slide1" class="carousel-item relative w-full">
<div
class="hero hero-banner"
style="background-image: url(images/beef.png);">
<div class="hero-overlay bg-opacity-60 md:hidden"></div>
<div class="hero-banner-content justify-center p-28 md:bg-black h-300 md:w-1/2 text-neutral-content">
<div class="max-w-md">
<h1 class="mb-5 text-5xl font-bold">Exquisite Beef</h1>
<p class="mb-5">
Explore our beef recipes specially catered for your taste bud!
</p>
<button class="btn btn-primary">Explore</button>
</div>
</div>
</div>
<div class="absolute left-5 right-5 top-1/2 flex -translate-y-1/2 transform justify-between">
<a href="#slide4" class="btn btn-circle">❮</a>
<a href="#slide2" class="btn btn-circle">❯</a>
</div>
</div>
<div id="slide2" class="carousel-item relative w-full">
<div
class="hero hero-banner"
style="background-image: url(images/chicken.png);">
<div class="hero-overlay bg-opacity-60 md:hidden"></div>
<div class="hero-banner-content justify-center p-28 md:bg-black h-300 md:w-1/2 text-neutral-content">
<div class="max-w-md">
<h1 class="mb-5 text-5xl font-bold">Tender Chicken</h1>
<p class="mb-5">
Surprise your family members with our chicken recipes!
</p>
<button class="btn btn-primary">Explore</button>
</div>
</div>
</div>
<div class="absolute left-5 right-5 top-1/2 flex -translate-y-1/2 transform justify-between">
<a href="#slide1" class="btn btn-circle">❮</a>
<a href="#slide3" class="btn btn-circle">❯</a>
</div>
</div>
<div id="slide3" class="carousel-item relative w-full">
<div
class="hero hero-banner"
style="background-image: url(images/potatoes.png);">
<div class="hero-overlay bg-opacity-60 md:hidden"></div>
<div class="hero-banner-content justify-center p-28 md:bg-black h-300 md:w-1/2 text-neutral-content">
<div class="max-w-md">
<h1 class="mb-5 text-5xl font-bold">Potato Delicacies</h1>
<p class="mb-5">
Who does not love to have some potato dishes in their table?
</p>
<button class="btn btn-primary">Explore</button>
</div>
</div>
</div>
<div class="absolute left-5 right-5 top-1/2 flex -translate-y-1/2 transform justify-between">
<a href="#slide2" class="btn btn-circle">❮</a>
<a href="#slide4" class="btn btn-circle">❯</a>
</div>
</div>
<div id="slide4" class="carousel-item relative w-full">
<div
class="hero hero-banner"
style="background-image: url(images/soup.png);">
<div class="hero-overlay bg-opacity-60 md:hidden"></div>
<div class="hero-banner-content justify-center p-28 md:bg-black h-300 md:w-1/2 text-neutral-content">
<div class="max-w-md">
<h1 class="mb-5 text-5xl font-bold">Cozy Soup</h1>
<p class="mb-5">
There's nothing like soup to start your dinner.
</p>
<button class="btn btn-primary">Explore</button>
</div>
</div>
</div>
<div class="absolute left-5 right-5 top-1/2 flex -translate-y-1/2 transform justify-between">
<a href="#slide3" class="btn btn-circle">❮</a>
<a href="#slide1" class="btn btn-circle">❯</a>
</div>
</div>
</div>
<!--Carousel End-->
<main class="mx-4 md:mx-20 my-8">
<section id="recipe-list" class="my-8 grid md:grid-cols-2 lg:grid-cols-4 gap-6">
</section>
<!--Accordion Starts-->
<section>
<div class="text-center font-bold font-lg">Frequently Asked Questions</div>
<div class="join join-vertical w-full my-8">
<div class="collapse collapse-arrow join-item border-base-300 border">
<input type="radio" name="my-accordion-4"/>
<div class="collapse-title font-medium">Can this items be made at home?</div>
<div class="collapse-content">
<p>All of our recipes are crafted in a way so that it can made at home.</p>
</div>
</div>
<div class="collapse collapse-arrow join-item border-base-300 border">
<input type="radio" name="my-accordion-4" />
<div class="collapse-title font-medium">Can children make the dishes?</div>
<div class="collapse-content">
<p>We recommend the dishes to be made by 12 years and above.</p>
</div>
</div>
<div class="collapse collapse-arrow join-item border-base-300 border">
<input type="radio" name="my-accordion-4" />
<div class="collapse-title font-medium">Do you have any restaurant?</div>
<div class="collapse-content">
<p>No, we currently do not have our own restaurant.</p>
</div>
</div>
</div>
</section>
<!--Accordion Ends-->
</main>
<footer class="footer footer-center bg-base-200 text-base-content rounded p-10">
<nav class="grid grid-flow-col gap-4">
<a class="link link-hover">About us</a>
<a class="link link-hover">Contact</a>
<a class="link link-hover">Jobs</a>
<a class="link link-hover">Press kit</a>
</nav>
<nav>
<div class="grid grid-flow-col gap-4">
<a>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
class="fill-current">
<path
d="M24 4.557c-.883.392-1.832.656-2.828.775 1.017-.609 1.798-1.574 2.165-2.724-.951.564-2.005.974-3.127 1.195-.897-.957-2.178-1.555-3.594-1.555-3.179 0-5.515 2.966-4.797 6.045-4.091-.205-7.719-2.165-10.148-5.144-1.29 2.213-.669 5.108 1.523 6.574-.806-.026-1.566-.247-2.229-.616-.054 2.281 1.581 4.415 3.949 4.89-.693.188-1.452.232-2.224.084.626 1.956 2.444 3.379 4.6 3.419-2.07 1.623-4.678 2.348-7.29 2.04 2.179 1.397 4.768 2.212 7.548 2.212 9.142 0 14.307-7.721 13.995-14.646.962-.695 1.797-1.562 2.457-2.549z"></path>
</svg>
</a>
<a>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
class="fill-current">
<path
d="M19.615 3.184c-3.604-.246-11.631-.245-15.23 0-3.897.266-4.356 2.62-4.385 8.816.029 6.185.484 8.549 4.385 8.816 3.6.245 11.626.246 15.23 0 3.897-.266 4.356-2.62 4.385-8.816-.029-6.185-.484-8.549-4.385-8.816zm-10.615 12.816v-8l8 3.993-8 4.007z"></path>
</svg>
</a>
<a>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
class="fill-current">
<path
d="M9 8h-3v4h3v12h5v-12h3.642l.358-4h-4v-1.667c0-.955.192-1.333 1.115-1.333h2.885v-5h-3.808c-3.596 0-5.192 1.583-5.192 4.615v3.385z"></path>
</svg>
</a>
</div>
</nav>
<aside>
<p>Copyright ©2024 - All rights reserved by Chef Book</p>
</aside>
</footer>
<script src="js/recipe-list.js"></script>
</body>
</html>