Skip to content

Commit 3752069

Browse files
committed
meals section p1
1 parent cce620c commit 3752069

File tree

2 files changed

+77
-0
lines changed

2 files changed

+77
-0
lines changed

starter/07-Omnifood-Desktop/css/style.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,3 +197,33 @@
197197
.step-img {
198198
width: 35%;
199199
}
200+
201+
/**************************/
202+
/* Meals Section */
203+
/**************************/
204+
205+
.section-meals {
206+
padding: 9.6rem 0;
207+
}
208+
209+
.meal-title {
210+
font-size: 2.4rem;
211+
color: #333;
212+
font-weight: 600;
213+
margin-bottom: 3.2rem;
214+
}
215+
216+
.meal-attributes {
217+
list-style: none;
218+
display: flex;
219+
flex-direction: column;
220+
gap: 2rem;
221+
}
222+
223+
.meal-attribute {
224+
font-size: 1.8rem;
225+
}
226+
227+
.meal-img {
228+
width: 100%;
229+
}

starter/07-Omnifood-Desktop/index.html

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@
1212
href="https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap"
1313
rel="stylesheet"
1414
/>
15+
16+
<script
17+
type="module"
18+
src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.esm.js"
19+
></script>
20+
<script
21+
nomodule
22+
src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.js"
23+
></script>
24+
1525
<title>Omnifood</title>
1626
</head>
1727
<body>
@@ -157,6 +167,43 @@ <h3 class="heading-terrtiary">Receive meals at convenient time</h3>
157167
</div>
158168
</div>
159169
</section>
170+
171+
<section class="section-meals">
172+
<div class="container">
173+
<span class="subheading">Meals</span>
174+
<h2 class="heading-secondary">
175+
Omnifood AI chooses from 5,000+ recipes
176+
</h2>
177+
</div>
178+
179+
<div class="container grid grid--3-cols">
180+
<div class="meal">
181+
<img
182+
src="img/meals/meal-1.jpg"
183+
class="meal-img"
184+
alt="Japanese Gyozas"
185+
/>
186+
<span class="tag">Vegetarian</span>
187+
<p class=" ">Japanese Gyozas</p>
188+
<ul class="metal-attributes">
189+
<li class="metal-attribute">
190+
<ion-icon name="flame-outline"></ion-icon>
191+
<span>650 calories</span>
192+
</li>
193+
<li class="metal-attribute">
194+
<ion-icon name="restaurant-outline"></ion-icon>
195+
<span>NutriScore &reg; 74</span>
196+
</li>
197+
<li class="metal-attribute">
198+
<ion-icon name="star-outline"></ion-icon
199+
><span>4.9 rating (537)</span>
200+
</li>
201+
</ul>
202+
</div>
203+
<div class="meal">Meals</div>
204+
<div class="list">List of diets</div>
205+
</div>
206+
</section>
160207
</main>
161208
</body>
162209
</html>

0 commit comments

Comments
 (0)