Skip to content

Commit cfb5381

Browse files
committed
feat: building the testimonials section
1 parent 3693504 commit cfb5381

File tree

3 files changed

+209
-0
lines changed

3 files changed

+209
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Paragraph default: 1.6
2727
- Shades: #fae5d3
2828
- Accents:
2929
- Greys
30+
#6f6f6f (lightest grey allowed on #fdf2e9)
3031
#555
3132
#333
3233

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

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,3 +316,63 @@
316316
font-size: 3rem;
317317
color: #e67e22;
318318
}
319+
320+
/*************************************/
321+
/* TESTIMONIALS SECTION */
322+
/*************************************/
323+
324+
.section-testimonials {
325+
background-color: #fdf2e9;
326+
display: grid;
327+
grid-template-columns: 55fr 45fr;
328+
align-items: center;
329+
}
330+
331+
.testimonials {
332+
display: grid;
333+
grid-template-columns: 1fr 1fr;
334+
row-gap: 4.8rem;
335+
column-gap: 8rem;
336+
}
337+
338+
.testimonials-container {
339+
padding: 9.6rem;
340+
}
341+
342+
.testimonial-img {
343+
width: 6.4rem;
344+
border-radius: 50%;
345+
margin-bottom: 1.2rem;
346+
}
347+
348+
.testimonial-text {
349+
font-size: 1.8rem;
350+
line-height: 1.8;
351+
margin-bottom: 1.6rem;
352+
}
353+
354+
.testimonial-name {
355+
font-size: 1.6rem;
356+
color: #6f6f6f;
357+
}
358+
359+
.gallery {
360+
display: grid;
361+
grid-template-columns: repeat(3, 1fr);
362+
gap: 1.6rem;
363+
padding: 1.6rem;
364+
}
365+
366+
.gallery-item {
367+
overflow: hidden;
368+
}
369+
370+
.gallery-img {
371+
display: block;
372+
width: 100%;
373+
transition: all 0.4s;
374+
}
375+
376+
.gallery-img:hover {
377+
transform: scale(1.1);
378+
}

starter/07-Omnifood-Desktop/index.html

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,154 @@ <h3 class="heading-tertiary">Works with any diet:</h3>
315315
<a href="#" class="link">See all recipes &rarr;</a>
316316
</div>
317317
</section>
318+
319+
<section class="section-testimonials">
320+
<div class="testimonials-container">
321+
<span class="subheading">Testimonials</span>
322+
<h2 class="heading-secondary">Once you try it, you can't go back</h2>
323+
324+
<div class="testimonials">
325+
<figure class="testimonial">
326+
<img
327+
src="img/customers//dave.jpg"
328+
alt="Photo of customer Dave Bryson"
329+
class="testimonial-img"
330+
/>
331+
<blockquote class="testimonial-text">
332+
Inexpensive, healthy and great-tasting meals, without even
333+
having to order manually! It feels truly magical.
334+
</blockquote>
335+
<p class="testimonial-name">&mdash; Dave Bryson</p>
336+
</figure>
337+
338+
<figure class="testimonial">
339+
<img
340+
src="img/customers//ben.jpg"
341+
alt="Photo of customer Ben Hadley"
342+
class="testimonial-img"
343+
/>
344+
<blockquote class="testimonial-text">
345+
The AI algorithm is crazy good, it chooses the right meals for
346+
me every time. It's amazing not to worry about food anymore!
347+
</blockquote>
348+
<p class="testimonial-name">&mdash; Ben Hadley</p>
349+
</figure>
350+
351+
<figure class="testimonial">
352+
<img
353+
src="img/customers//steve.jpg"
354+
alt="Photo of customer Steve Miller"
355+
class="testimonial-img"
356+
/>
357+
<blockquote class="testimonial-text">
358+
IOmnifood is a life saver! I just started a company, so there's
359+
no time for cooking. I couldn't live without my daily meals now!
360+
</blockquote>
361+
<p class="testimonial-name">&mdash; Steve Miller</p>
362+
</figure>
363+
364+
<figure class="testimonial">
365+
<img
366+
src="img/customers//hannah.jpg"
367+
alt="Photo of customer Hannah Smith"
368+
class="testimonial-img"
369+
/>
370+
<blockquote class="testimonial-text">
371+
I got Omnifood for the whole family, and it frees up so much
372+
time! Plus, everything is organic and vegan and without plastic.
373+
</blockquote>
374+
<p class="testimonial-name">&mdash; Hannah Smith</p>
375+
</figure>
376+
</div>
377+
</div>
378+
379+
<div class="gallery">
380+
<figure class="gallery-item">
381+
<img
382+
src="img/gallery/gallery-1.jpg"
383+
alt="Photo of beautifully arranged food"
384+
class="gallery-img"
385+
/>
386+
</figure>
387+
<figure class="gallery-item">
388+
<img
389+
src="img/gallery/gallery-2.jpg"
390+
alt="Photo of beautifully arranged food"
391+
class="gallery-img"
392+
/>
393+
</figure>
394+
<figure class="gallery-item">
395+
<img
396+
src="img/gallery/gallery-3.jpg"
397+
alt="Photo of beautifully arranged food"
398+
class="gallery-img"
399+
/>
400+
</figure>
401+
<figure class="gallery-item">
402+
<img
403+
src="img/gallery/gallery-4.jpg"
404+
alt="Photo of beautifully arranged food"
405+
class="gallery-img"
406+
/>
407+
</figure>
408+
<figure class="gallery-item">
409+
<img
410+
src="img/gallery/gallery-5.jpg"
411+
alt="Photo of beautifully arranged food"
412+
class="gallery-img"
413+
/>
414+
</figure>
415+
<figure class="gallery-item">
416+
<img
417+
src="img/gallery/gallery-6.jpg"
418+
alt="Photo of beautifully arranged food"
419+
class="gallery-img"
420+
/>
421+
</figure>
422+
<figure class="gallery-item">
423+
<img
424+
src="img/gallery/gallery-7.jpg"
425+
alt="Photo of beautifully arranged food"
426+
class="gallery-img"
427+
/>
428+
</figure>
429+
<figure class="gallery-item">
430+
<img
431+
src="img/gallery/gallery-8.jpg"
432+
alt="Photo of beautifully arranged food"
433+
class="gallery-img"
434+
/>
435+
</figure>
436+
<figure class="gallery-item">
437+
<img
438+
src="img/gallery/gallery-9.jpg"
439+
alt="Photo of beautifully arranged food"
440+
class="gallery-img"
441+
/>
442+
</figure>
443+
<figure class="gallery-item">
444+
<img
445+
src="img/gallery/gallery-10.jpg"
446+
alt="Photo of beautifully arranged food"
447+
class="gallery-img"
448+
/>
449+
</figure>
450+
<figure class="gallery-item">
451+
<img
452+
src="img/gallery/gallery-11.jpg"
453+
alt="Photo of beautifully arranged food"
454+
class="gallery-img"
455+
/>
456+
</figure>
457+
<figure class="gallery-item">
458+
<img
459+
src="img/gallery/gallery-12.jpg"
460+
alt="Photo of beautifully arranged food"
461+
class="gallery-img"
462+
/>
463+
</figure>
464+
</div>
465+
</section>
318466
</main>
319467

320468
<script

0 commit comments

Comments
 (0)