Skip to content

Commit 00784b0

Browse files
committed
add testimonials (left side).
1 parent 99897b8 commit 00784b0

File tree

2 files changed

+91
-0
lines changed

2 files changed

+91
-0
lines changed

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,3 +310,34 @@
310310
height: 3rem;
311311
color: #e67e22;
312312
}
313+
314+
/***************************/
315+
/* TESTIMONIALS SECTION */
316+
/***************************/
317+
318+
.section-testimonials {
319+
padding: 9.6rem 0;
320+
}
321+
322+
.testimonials {
323+
display: grid;
324+
grid-template-columns: 1fr 1fr;
325+
gap: 4.8rem;
326+
}
327+
328+
.testimonial-img {
329+
width: 6.4rem;
330+
border-radius: 50%;
331+
margin-bottom: 1.2rem;
332+
}
333+
334+
.testimonial-text {
335+
font-size: 1.8rem;
336+
line-height: 1.8;
337+
margin-bottom: 1.6rem;
338+
}
339+
340+
.testimonial-name {
341+
font-size: 1.6rem;
342+
color: #777;
343+
}

starter/07-Omnifood-Desktop/content/index.html

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,66 @@ <h3 class="heading-tertiary">Works with any diet</h3>
287287
<a href="#" class="link">See all recipes &rarr;</a>
288288
</div>
289289
</section>
290+
291+
<!-- TESTIMONIALS -->
292+
<section class="section-testimonials grid grid--2-cols">
293+
<div class="testimonials-container">
294+
<span class="subheading">Testimonials</span>
295+
<h2 class="heading-secondary">Once you try it, you can't go back</h2>
296+
297+
<div class="testimonials">
298+
<figure class="testimonial">
299+
<img
300+
class="testimonial-img"
301+
src="img/customers/dave.jpg"
302+
alt="Photo of customer Dave Bryson"
303+
/>
304+
<blockquote class="testimonial-text">
305+
Inexpensive, healthy and great-tasting meals, without even
306+
having to order manually! It feels truly magical.
307+
</blockquote>
308+
<p class="testimonial-name">&mdash; Dave Bryson</p>
309+
</figure>
310+
<figure class="testimonial">
311+
<img
312+
class="testimonial-img"
313+
src="img/customers/ben.jpg"
314+
alt="Photo of customer Ben Hadley"
315+
/>
316+
<blockquote class="testimonial-text">
317+
The AI algorithm is crazy good, it chooses the right meals for
318+
me every time. It's amazing not to worry about food anymore!
319+
</blockquote>
320+
<p class="testimonial-name">&mdash; Ben Hadley</p>
321+
</figure>
322+
<figure class="testimonial">
323+
<img
324+
class="testimonial-img"
325+
src="img/customers/steve.jpg"
326+
alt="Photo of customer Steve Miller"
327+
/>
328+
<blockquote class="testimonial-text">
329+
Omnifood is a life saver! I just started a company, so there's
330+
no time for cooking. I couldn't live without my daily meals now!
331+
</blockquote>
332+
<p class="testimonial-name">&mdash; Steve Miller</p>
333+
</figure>
334+
<figure class="testimonial">
335+
<img
336+
class="testimonial-img"
337+
src="img/customers/hannah.jpg"
338+
alt="Photo of customer Hannah Smith"
339+
/>
340+
<blockquote class="testimonial-text">
341+
I got Omnifood for the whole family, and it frees up so much
342+
time! Plus, everything is organic and vegan and without plastic.
343+
</blockquote>
344+
<p class="testimonial-name">&mdash; Hannah Smith</p>
345+
</figure>
346+
</div>
347+
</div>
348+
<div class="gallery">Gallery</div>
349+
</section>
290350
</main>
291351
</body>
292352
</html>

0 commit comments

Comments
 (0)