Skip to content

Commit 6f9e48b

Browse files
committed
feat: Building the Pricing Section
1 parent cfb5381 commit 6f9e48b

File tree

3 files changed

+183
-19
lines changed

3 files changed

+183
-19
lines changed

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ body {
7777
row-gap: 9.6rem;
7878
}
7979

80+
.grid:not(:last-child) {
81+
margin-bottom: 9.6rem;
82+
}
83+
8084
.grid--center-v {
8185
align-items: center;
8286
}
@@ -180,6 +184,25 @@ body {
180184
border-bottom: 1px solid transparent;
181185
}
182186

187+
.list {
188+
list-style: none;
189+
display: flex;
190+
flex-direction: column;
191+
gap: 1.6rem;
192+
}
193+
194+
.list-item {
195+
font-size: 1.8rem;
196+
display: flex;
197+
align-items: center;
198+
gap: 1.6rem;
199+
}
200+
201+
.list-icon {
202+
font-size: 3rem;
203+
color: #e67e22;
204+
}
205+
183206
.margin-right-sm {
184207
margin-right: 1.6rem !important;
185208
}

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

Lines changed: 82 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -298,25 +298,6 @@
298298
font-size: 1.8rem;
299299
}
300300

301-
.list {
302-
list-style: none;
303-
display: flex;
304-
flex-direction: column;
305-
gap: 1.6rem;
306-
}
307-
308-
.list-item {
309-
font-size: 1.8rem;
310-
display: flex;
311-
align-items: center;
312-
gap: 1.6rem;
313-
}
314-
315-
.list-icon {
316-
font-size: 3rem;
317-
color: #e67e22;
318-
}
319-
320301
/*************************************/
321302
/* TESTIMONIALS SECTION */
322303
/*************************************/
@@ -376,3 +357,85 @@
376357
.gallery-img:hover {
377358
transform: scale(1.1);
378359
}
360+
361+
/*************************************/
362+
/* TESTIMONIALS SECTION */
363+
/*************************************/
364+
365+
.section-pricing {
366+
padding: 9.6rem 0;
367+
}
368+
369+
.pricing-plan {
370+
border-radius: 11px;
371+
width: 75%;
372+
}
373+
374+
.pricing-plan--complete {
375+
background-color: #fdf2e9;
376+
padding: 4.8rem;
377+
overflow: hidden;
378+
379+
position: relative;
380+
}
381+
382+
.pricing-plan--complete::before {
383+
content: "Best value";
384+
position: absolute;
385+
top: 6%;
386+
right: -18%;
387+
388+
text-transform: uppercase;
389+
font-size: 1.4rem;
390+
font-weight: 700;
391+
color: #333;
392+
393+
background-color: #ffd43b;
394+
padding: 0.8rem 8rem;
395+
396+
transform: rotate(45deg);
397+
}
398+
399+
.plicing-plan--starter {
400+
justify-self: right;
401+
border: 2px solid #fdf2e9;
402+
padding: 4.6rem;
403+
}
404+
405+
.plan-header {
406+
text-align: center;
407+
margin-bottom: 4.8rem;
408+
}
409+
410+
.plan-name {
411+
color: #cf711f;
412+
font-weight: 600;
413+
font-size: 2rem;
414+
text-transform: uppercase;
415+
letter-spacing: 0.75;
416+
margin-bottom: 3.2rem;
417+
}
418+
419+
.plan-price {
420+
font-size: 6.2rem;
421+
font-weight: 600;
422+
color: #333;
423+
margin-bottom: 1.6rem;
424+
}
425+
426+
.plan-price span {
427+
font-size: 3rem;
428+
font-weight: 500;
429+
margin-right: 0.8rem;
430+
}
431+
432+
.plan-text {
433+
font-size: 1.6rem;
434+
line-height: 1.6;
435+
color: #6f6f6f;
436+
}
437+
438+
.plan-sign-up {
439+
text-align: center;
440+
margin-top: 4.8rem;
441+
}

starter/07-Omnifood-Desktop/index.html

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,84 @@ <h2 class="heading-secondary">Once you try it, you can't go back</h2>
463463
</figure>
464464
</div>
465465
</section>
466+
<section class="section-pricing">
467+
<div class="container">
468+
<span class="subheading">Pricing</span>
469+
<h2 class="heading-secondary">
470+
Eating well without breaking the bank
471+
</h2>
472+
</div>
473+
474+
<div class="container grid grid--2-cols">
475+
<div class="pricing-plan plicing-plan--starter">
476+
<header class="plan-header">
477+
<p class="plan-name">Starter</p>
478+
<p class="plan-price"><span>$</span>399</p>
479+
<p class="plan-text">per month. That's just $13 per meal!</p>
480+
</header>
481+
482+
<ul class="list">
483+
<li class="list-item">
484+
<ion-icon class="list-icon" name="checkmark-outline"></ion-icon>
485+
<span>1 meal per day</span>
486+
</li>
487+
<li class="list-item">
488+
<ion-icon class="list-icon" name="checkmark-outline"></ion-icon>
489+
<span>Order from 11am and 9pm</span>
490+
</li>
491+
<li class="list-item">
492+
<ion-icon class="list-icon" name="checkmark-outline"></ion-icon>
493+
<span>Delivery is free</span>
494+
</li>
495+
<li class="list-item">
496+
<ion-icon class="list-icon" name="close-outline"></ion-icon>
497+
</li>
498+
</ul>
499+
500+
<div class="plan-sign-up">
501+
<a href="#" class="btn btn--full"> Start eating well </a>
502+
</div>
503+
</div>
504+
505+
<div class="pricing-plan pricing-plan--complete">
506+
<header class="plan-header">
507+
<p class="plan-name">Complete</p>
508+
<p class="plan-price"><span>$</span>649</p>
509+
<p class="plan-text">per month. That's just $11 per meal!</p>
510+
</header>
511+
512+
<ul class="list">
513+
<li class="list-item">
514+
<ion-icon class="list-icon" name="checkmark-outline"></ion-icon>
515+
<span><strong>2 meals</strong> per day</span>
516+
</li>
517+
<li class="list-item">
518+
<ion-icon class="list-icon" name="checkmark-outline"></ion-icon>
519+
<span>Order <strong>24/7</strong></span>
520+
</li>
521+
<li class="list-item">
522+
<ion-icon class="list-icon" name="checkmark-outline"></ion-icon>
523+
<span>Delivery is free</span>
524+
</li>
525+
<li class="list-item">
526+
<ion-icon class="list-icon" name="checkmark-outline"></ion-icon>
527+
<span>Get access to latest recipes</span>
528+
</li>
529+
</ul>
530+
531+
<div class="plan-sign-up">
532+
<a href="#" class="btn btn--full"> Start eating well </a>
533+
</div>
534+
</div>
535+
</div>
536+
537+
<div class="container grid grid--4-cols">
538+
<div class="feature">Feature 1</div>
539+
<div class="feature">Feature 2</div>
540+
<div class="feature">Feature 3</div>
541+
<div class="feature">Feature 4</div>
542+
</div>
543+
</section>
466544
</main>
467545

468546
<script

0 commit comments

Comments
 (0)