Skip to content

Commit 57562be

Browse files
committed
pricing section p1
1 parent df1cca2 commit 57562be

File tree

3 files changed

+131
-20
lines changed

3 files changed

+131
-20
lines changed

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,28 @@ body {
188188
border-bottom: 1px solid transparent;
189189
}
190190

191+
.list {
192+
list-style: none;
193+
display: flex;
194+
flex-direction: column;
195+
gap: 1.6rem;
196+
}
197+
198+
.list-item {
199+
font-size: 1.8rem;
200+
display: flex;
201+
align-items: center;
202+
gap: 1.6rem;
203+
}
204+
205+
.list-icon {
206+
width: 3rem;
207+
height: 3rem;
208+
color: #e67e22;
209+
}
210+
191211
/* Helper/Setting Classes */
212+
192213
.margin-right-sm {
193214
margin-right: 1.6rem !important;
194215
}

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

Lines changed: 46 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -284,26 +284,6 @@
284284
font-size: 1.8rem;
285285
}
286286

287-
.list {
288-
list-style: none;
289-
display: flex;
290-
flex-direction: column;
291-
gap: 1.6rem;
292-
}
293-
294-
.list-item {
295-
font-size: 1.8rem;
296-
display: flex;
297-
align-items: center;
298-
gap: 1.6rem;
299-
}
300-
301-
.list-icon {
302-
width: 3rem;
303-
height: 3rem;
304-
color: #e67e22;
305-
}
306-
307287
/**************************/
308288
/* Testimonials Section */
309289
/**************************/
@@ -363,3 +343,49 @@
363343
.gallery-item img:hover {
364344
transform: scale(1.1);
365345
}
346+
347+
/**************************/
348+
/* Pricing Section */
349+
/**************************/
350+
351+
.section-pricing {
352+
padding: 9.6rem 0;
353+
}
354+
355+
.plan-header {
356+
text-align: center;
357+
margin-bottom: 4.8rem;
358+
}
359+
360+
.plan-name {
361+
color: #cf711f;
362+
font-weight: 600;
363+
font-size: 2rem;
364+
text-transform: uppercase;
365+
letter-spacing: 0.75;
366+
margin-bottom: 3.2rem;
367+
}
368+
369+
.plan-price {
370+
font-size: 6.2rem;
371+
font-weight: 600;
372+
color: #333;
373+
margin-bottom: 1.6rem;
374+
}
375+
376+
.plan-price span {
377+
font-size: 3rem;
378+
font-weight: 500;
379+
margin-right: 0.8rem;
380+
}
381+
382+
.plan-text {
383+
font-size: 1.6rem;
384+
line-height: 1.6;
385+
color: #6f6f6f;
386+
}
387+
388+
.plan-sing-up {
389+
text-align: center;
390+
margin-top: 4.8rem;
391+
}

starter/07-Omnifood-Desktop/index.html

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,70 @@ <h2 class="heading-secondary">Once you try it, you can't go back</h2>
422422
</figure>
423423
</div>
424424
</section>
425+
426+
<section class="section-pricing">
427+
<div class="container">
428+
<span class="subheading">Pricing</span>
429+
<h2 class="heading-secondary">
430+
Eating well without breaking the bank
431+
</h2>
432+
</div>
433+
434+
<div class="container grid grid--2-cols">
435+
<div class="pricing-plan">
436+
<header class="plan-header">
437+
<p class="plan-name">Starter</p>
438+
<p class="plan-price"><span>$</span>399</p>
439+
<p class="plan-text">per month. That's just $11 per meal!</p>
440+
</header>
441+
<ul class="list">
442+
<li class="list-item">
443+
<ion-icon class="list-icon" name="checkmark-outline"></ion-icon>
444+
<span>1 meal per day</span>
445+
</li>
446+
<li class="list-item">
447+
<ion-icon class="list-icon" name="checkmark-outline"></ion-icon>
448+
<span>Order times are between 11am and 9pm</span>
449+
</li>
450+
<li class="list-item">
451+
<ion-icon class="list-icon" name="checkmark-outline"></ion-icon>
452+
<span>Delivery is free</span>
453+
</li>
454+
</ul>
455+
<div class="plan-sing-up">
456+
<a href="#" class="btn btn--full">Start eating well</a>
457+
</div>
458+
</div>
459+
<div class="pricing-plan">
460+
<header class="plan-header">
461+
<p class="plan-name">Complete</p>
462+
<p class="plan-price"><span>$</span>649</p>
463+
<p class="plan-text">per month. That's just $13 per meal!</p>
464+
</header>
465+
<ul class="list">
466+
<li class="list-item">
467+
<ion-icon class="list-icon" name="checkmark-outline"></ion-icon>
468+
<span>2 meals per day</span>
469+
</li>
470+
<li class="list-item">
471+
<ion-icon class="list-icon" name="checkmark-outline"></ion-icon>
472+
<span>Order 24/7</span>
473+
</li>
474+
<li class="list-item">
475+
<ion-icon class="list-icon" name="checkmark-outline"></ion-icon>
476+
<span>Delivery is free</span>
477+
</li>
478+
<li class="list-item">
479+
<ion-icon class="list-icon" name="checkmark-outline"></ion-icon>
480+
<span>Get access to latest recipes</span>
481+
</li>
482+
</ul>
483+
<div class="plan-sing-up">
484+
<a href="#" class="btn btn--full">Start eating well</a>
485+
</div>
486+
</div>
487+
</div>
488+
</section>
425489
</main>
426490
</body>
427491
</html>

0 commit comments

Comments
 (0)