Skip to content

Commit 2cba4f3

Browse files
committed
testimonials p1
1 parent dc9602f commit 2cba4f3

File tree

2 files changed

+94
-0
lines changed

2 files changed

+94
-0
lines changed

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,3 +303,34 @@
303303
height: 3rem;
304304
color: #e67e22;
305305
}
306+
307+
/**************************/
308+
/* Testimonials Section */
309+
/**************************/
310+
311+
.section-testimonials {
312+
padding: 9.6rem 0;
313+
}
314+
315+
.testimonials {
316+
display: grid;
317+
grid-template-columns: repeat(2, 1fr);
318+
gap: 4.8rem;
319+
}
320+
321+
.testimonial-img {
322+
width: 6.4rem;
323+
border-radius: 50%;
324+
margin-bottom: 1.2rem;
325+
}
326+
327+
.testimonial-text {
328+
font-size: 1.8rem;
329+
line-height: 1.8;
330+
margin-bottom: 1.6rem;
331+
}
332+
333+
.testimonial-name {
334+
font-size: 1.6rem;
335+
color: #777;
336+
}

starter/07-Omnifood-Desktop/index.html

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,69 @@ <h3 class="heading-terrtiary">Works with any diet:</h3>
286286
<a href="#" class="link">See all recipes &rarr;</a>
287287
</div>
288288
</section>
289+
290+
<section class="section-testimonials grid grid--2-cols">
291+
<div class="testimonial-contaniner">
292+
<span class="subheading">Testimonial</span>
293+
<h2 class="heading-secondary">Once you try it, you can't go back</h2>
294+
295+
<div class="testimonials">
296+
<figure class="testimonial">
297+
<img
298+
class="testimonial-img"
299+
src="img/customers/dave.jpg"
300+
alt="Photo of customer Dave Bryson"
301+
/>
302+
<blockquote class="testimonial-text">
303+
Inexpensive, healthy and great-tasting meals, without even
304+
having to order manually! It feels truly magical.
305+
</blockquote>
306+
<p class="testimonial-name">&mdash; Dave Bryson</p>
307+
</figure>
308+
309+
<figure class="testimonial">
310+
<img
311+
class="testimonial-img"
312+
src="img/customers/ben.jpg"
313+
alt="Photo of customer Ben Hadley"
314+
/>
315+
<blockquote class="testimonial-text">
316+
The AI algorithm is crazy good, it chooses the right meals for
317+
me every time. It's amazing not to worry about food anymore!
318+
</blockquote>
319+
<p class="testimonial-name">&mdash; Ben Hadley</p>
320+
</figure>
321+
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+
335+
<figure class="testimonial">
336+
<img
337+
class="testimonial-img"
338+
src="img/customers/hannah.jpg"
339+
alt="Photo of customer Hannah Smith"
340+
/>
341+
<blockquote class="testimonial-text">
342+
I got Omnifood for the whole family, and it frees up so much
343+
time! Plus, everything is organic and vegan and without plastic.
344+
</blockquote>
345+
<p class="testimonial-name">&mdash; Hannah Smith</p>
346+
</figure>
347+
</div>
348+
</div>
349+
350+
<div class="gallery">Gallery</div>
351+
</section>
289352
</main>
290353
</body>
291354
</html>

0 commit comments

Comments
 (0)