-
Notifications
You must be signed in to change notification settings - Fork 1
/
Healthy Recipes.html
329 lines (291 loc) · 9.94 KB
/
Healthy Recipes.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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
<html>
<head>
<title>Healthy Recepies </title>
<style>
body {
margin: 0;
background-image: url(./image/Recepies.jpg);
background-attachment: scroll;
background-color: whitesmoke;
font-family: Arial, sans-serif;
}
header {
background-color: #333;
color: #fff;
padding: 20px;
}
header h1 {
margin: 10;
text-align: left;
}
nav a {
color: #fff;
margin-right: 20px;
text-decoration: none;
}
nav a:hover {
text-decoration: underline;
}
main {
max-width: 900px;
margin: 0 auto;
padding: 10px;
}
section {
margin-bottom: 0px;
}
section h2 {
margin-top: 0;
}
h1 {
font-size: 32px;
font-weight: bold;
margin: 0 0 20px;
text-align: center;
}
h2 {
font-size: 24px;
margin: 30px 0 10px;
text-align: center;
text-transform: uppercase;
}
.category {
display: flex;
flex-wrap: wrap;
justify-content:right;
margin: 50px auto;
max-width: 900px;
margin-top: 6rem;
padding: 1rem;
}
.recipe {
background-color: whitesmoke;
border-radius: 10px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
margin: 20px;
padding: 20px;
width: calc(30% - 40px);
justify-content:center;
}
.recipe img {
display: block;
margin: auto;
max-width: 70%;
}
.recipe h3 {
font-size: 20px;
margin: 10px 0 20px;
text-align: center;
}
.recipe p {
font-size: 16px;
line-height: 1.5;
margin: 0;
text-align: justify;
}
.recipe a {
color: #4CAF50;
font-weight: bold;
text-decoration: none;
}
.recipe a:hover {
text-decoration: underline;
}
footer {
background-color: whitesmoke;
padding: 1rem;
text-align: center;
font-size: 0.8rem;
margin-top: 2rem;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropbtn {
color: #fff;
background-color: #333;
border: none;
padding: 20px;
font-size: 16px;
cursor: pointer;
margin-right: 20px;
}
.dropdown-content {
display: none;
position: absolute;
z-index: 1;
background-color: #f2f2f2;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
padding: 12px 16px;
}
.dropdown-content a {
color: #333;
padding: 6px 0;
display: block;
}
.dropdown:hover .dropdown-content {
display: block;
}
.dropdown:hover .dropbtn {
background-color: #555;
}
</style>
</head>
<body>
<header>
<h1>Healthy Recipes</h1>
<nav>
<a href="index.html">HOME</a>
<a href="Health_podcast.html">PODCAST</a>
<div class="dropdown">
<button class="dropbtn">RECIPES ▾</button>
<div class="dropdown-content">
<a href="#breakfast">Breakfast</a>
<a href="#desserts">Desserts</a>
<a href="#snacks">Snacks</a>
<a href="#salads">Salads</a>
</div>
</div>
<a href="healthy_blogs.html">BLOGS</a>
<a href="Aboutus.html">ABOUT US</a>
<a href="JoinUs.html">JOIN US</a>
</nav>
</header>
</body>
<div class="category" style="background-color: #f2f2f2;" >
<h2>Breakfast</h2>
<div class="recipe" id="breakfast">
<img src="./image/eggs.png" alt="Recipe 1">
<h3>Veggie mix Omelette</h3>
<p>A veggie omelet makes a filling and nourishing meal, whether its for breakfast, lunch or dinner. Eggs and veggies complement one another through the nutrients they provide.</p>
<p><a href="omelette.html">View Recipe</a></p>
</div>
<div class="recipe">
<img src="./image/toasts.png" alt="Recipe 2">
<h3>Nutella Banana and Berry Toast</h3>
<p>This classic peanut butter toast is a little piece of heaven. This healthy toast idea will make you feel full and satisfied because while being tasty it is also high in protein, fat and fiber.</p>
<p><a href="toast.html">View Recipe</a></p>
</div>
<div class="recipe">
<img src="./image/fruit salad.png" alt="Recipe 3">
<h3>Yogurt Fruit Salad</h3>
<p>Combining the intake of yogurt and fruit could provide probiotics, prebiotics, high-quality protein, important fatty acids, and a mixture of vitamins and minerals that have the potential to exert synergistic effects on health.</p>
<p><a href="fruit_salad.html" >View Recipe</a></p>
</div>
<div class="recipe">
<img src="./image/oatmeal.png"Recipe 2">
<h3>Pumpkin Oatmeal</h3>
<p>The health benefits of pumpkin include vitamins, antioxidants, fiber, folates, and more! Oatmeal is high in fiber and whole grains. This pumpkin oatmeal is poised to keep you full and nourished.</p>
<p><a href="oatmeal.html">View Recipe</a></p>
</div>
</div>
<div class="category" style="background-color: #f2f2f2;">
<h2>Desserts</h2>
<div class="recipe" id="desserts">
<img src="./image/pudding.png">
<h3>Strawberry Chia Pudding</h3>
<p>Strawberry Chia Seed Pudding is a healthy, low sugar breakfast or snack that you can prep ahead of time.</p>
<a href="pudding.html">Recipe</a>
</div>
<div class="recipe">
<img src="./image/cookies.jpg">
<h3>Trail Mix Cookies</h3>
<p>These trail mix cookies are soft, chewy oatmeal cookies loaded with salty-sweet, nutty-fruity, chocolaty goodies.</p>
<a href="cookies.html" >Recipe</a>
</div>
<div class="recipe">
<img src="./image/cake.png">
<h3>Sweet Potato Cake</h3>
<p>Sweet potato cake is an easy and healthy bundt cake you would love to bake for your family and friends.</p>
<a href="cake.html" >Recipe</a>
</div>
<div class="recipe">
<img src="./image/vanillapuddding.png">
<h3>Vanilla Chia Pudding</h3>
<p>Healthy enough, loaded with omegas and protein to eat any time of the day, but also enjoyable as a sweet treat!</p>
<a href="vanillapudding.html" target="_blank">Recipe</a>
</div>
</div>
<div class="category" style="background-color: #f2f2f2;">
<h2>Snacks</h2>
<div class="recipe" id="snacks">
<img src="./image/peachsalsa.jpg">
<h3>Peach Salsa</h3>
<p>Peach Cucumber Recipe is the perfect snack. Low calorie, paleo and gluten free it is so delicious!</p>
<a href="salsa.html" >Recipe</a>
</div>
<div class="recipe">
<img src="./image/nachos.png">
<h3>Veggie Nachos</h3>
<p>Healthier way to enjoy nachos! They're low in fat and packed with healthy veggies and filling!</p>
<a href="nachos.html" target="_blank">Recipe</a>
</div>
<div class="recipe">
<img src="./image/chickpeas.png">
<h3>Crispy Chickpeas</h3>
<p>Crispy roasted chickpeas have protein, fiber and healthy carbs making them totally good for you!</p>
<a href="chickpeas.html" >Recipe</a>
</div>
<div class="recipe">
<img src="./image/lentilsalsa.png">
<h3>Lentil Salsa</h3>
<p>This easy, tasty salsa gets an added protein boost from heart-healthy lentils.</p>
<a href="lentilsalsa.html" >Recipe</a>
</div>
</div>
<div class="category" style="background-color: #f2f2f2;">
<h2>Salads</h2>
<div class="recipe" id="salads">
<img src="./image/quinoasalad.png">
<h3>Quinoa Salad</h3>
<p>Higher in protein than other grain, quinoa is so nutritious that NASA used to feed it to astronauts on space missions</p>
<a href="quinoa.html" >Recipe</a>
</div>
<div class="recipe">
<img src="./image/avocadosalad.png">
<h3>Avocado Salad</h3>
<p>This Avocado Salad packed with nutrition is filling but still light and perfect for lunch or as a side dish for dinner.</p>
<a href="https://www.cookingclassy.com/avocado-salad/" target="_blank">Recipe</a>
</div>
<div class="recipe">
<img src="./image/cobbsalad.png">
<h3>Cobb Salad</h3>
<p>This Cobb salad is true to the original with all the good stuff--chicken, eggs, bacon, avocado and a tangy dressing.</p>
<a href="cobb.html" >Recipe</a>
</div>
<div class="recipe">
<img src="./image/avocadoeggsalad.png">
<h3>Egg and Avocado Salad</h3>
<p>Avocado is a delicious & nutritious addition to egg salad. Thanks to its creamy texture, can be enjoyed without mayo! </p>
<a href="eggavocado.html">Recipe</a>
</div>
</div>
<footer>
<p>© 2023 Health Forever. All rights reserved.</p>
</footer>
<script>
// JavaScript code goes here
// Add a hover effect to the recipe cards
const recipeCards = document.querySelectorAll('.recipe');
recipeCards.forEach(card => {
card.addEventListener('mouseenter', () => {
card.style.boxShadow = '0 0 5px 2px #ccc';
});
card.addEventListener('mouseleave', () => {
card.style.boxShadow = 'none';
});
});
// Scroll to the selected section when a dropdown item is clicked
const dropdownItems = document.querySelectorAll('.dropdown-content a');
dropdownItems.forEach(item => {
item.addEventListener('click', e => {
e.preventDefault();
const section = document.querySelector(item.getAttribute('href'));
section.scrollIntoView({behavior: "smooth"});
});
});
</script>
</body>
</html>