Skip to content

Commit 137ca99

Browse files
committed
Section 7 - Omnifood project. part 2 - Testimonials
1 parent 5d47f34 commit 137ca99

File tree

3 files changed

+220
-0
lines changed

3 files changed

+220
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ paragraph default: 1.6
2828
- Shades: #cf711f
2929
- Accents:
3030
- Greys:
31+
#6f6f6f lightest gray allowed on #fdf2e9
3132
#555
3233
#333
3334

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

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

starter/07-Omnifood-Desktop/index.html

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

0 commit comments

Comments
 (0)