Skip to content

Commit da13025

Browse files
committed
section-7: Testimonials.
1 parent 028b855 commit da13025

File tree

2 files changed

+144
-0
lines changed

2 files changed

+144
-0
lines changed

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

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,3 +296,61 @@
296296
.tag--vegetarian {
297297
background-color: #51cf66;
298298
}
299+
300+
/*** TESTIMONIALS ***/
301+
302+
.gallery {
303+
display: grid;
304+
gap: 1.6rem;
305+
grid-template-columns: repeat(3, 1fr);
306+
padding: 1.6rem;
307+
}
308+
309+
.gallery-item {
310+
overflow: hidden;
311+
}
312+
313+
.gallery-item img {
314+
display: block;
315+
width: 100%;
316+
transition: all 400ms;
317+
}
318+
319+
.gallery-item img:hover {
320+
transform: scale(1.1);
321+
}
322+
323+
.section-testimonials {
324+
align-items: center;
325+
background-color: #fdf2e9;
326+
display: grid;
327+
grid-template-columns: 55fr 45fr;
328+
}
329+
330+
.testimonials {
331+
column-gap: 8rem;
332+
display: grid;
333+
gap: 4.8rem;
334+
grid-template-columns: 1fr 1fr;
335+
}
336+
337+
.testimonials-container {
338+
padding: 9.6rem;
339+
}
340+
341+
.testimonial-img {
342+
border-radius: 50%;
343+
width: 6.4rem;
344+
margin-bottom: 1.2rem;
345+
}
346+
347+
.testimonial-name {
348+
color: #6f6f6f;
349+
font-size: 1.6rem;
350+
}
351+
352+
.testimonial-text {
353+
font-size: 1.8rem;
354+
line-height: 1.8;
355+
margin-bottom: 1.6rem;
356+
}

starter/07-Omnifood-Desktop/index.html

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,92 @@ <h3 class="heading-tertiary">Works with any diet:</h3>
245245
<a href="#" class="link">See all recipes &rarr;</a>
246246
</div>
247247
</section>
248+
249+
250+
<!-- TESTIMONIALS -->
251+
<section class="section-testimonials">
252+
<div class="testimonials-container">
253+
<span class="subheading">
254+
Testimonials
255+
</span>
256+
<h2 class="heading-secondary">
257+
Once you try it, you can't go back
258+
</h2>
259+
260+
<div class="testimonials">
261+
<figure class="testimonial">
262+
<img src="img/customers/dave.jpg" alt="Customer." class="testimonial-img" />
263+
<blockquote class="testimonial-text">
264+
Inexpensive, healthy and great-tasting meals, without even having to order manually! It feels truly magical.
265+
</blockquote>
266+
<p class="testimonial-name">&mdash; - Dave Bryson</p>
267+
</figure>
268+
269+
<figure class="testimonial">
270+
<img src="img/customers/ben.jpg" alt="Customer." class="testimonial-img" />
271+
<blockquote class="testimonial-text">
272+
The AI algorithm is crazy good, it chooses the right meals for me every time. It's amazing not to worry about food anymore!
273+
</blockquote>
274+
<p class="testimonial-name">&mdash; - Ben Hadley</p>
275+
</figure>
276+
277+
<figure class="testimonial">
278+
<img src="img/customers/steve.jpg" alt="Customer." class="testimonial-img" />
279+
<blockquote class="testimonial-text">
280+
Omnifood is a life saver! I just started a company, so there's no time for cooking. I couldn't live without my daily meals now!
281+
</blockquote>
282+
<p class="testimonial-name">&mdash; - Steve Miller</p>
283+
</figure>
284+
285+
<figure class="testimonial">
286+
<img src="img/customers/hannah.jpg" alt="Customer." class="testimonial-img" />
287+
<blockquote class="testimonial-text">
288+
I got Omnifood for the whole family, and it frees up so much time! Plus, everything is organic and vegan and without plastic.
289+
</blockquote>
290+
<p class="testimonial-name">&mdash; - Hannah Smith</p>
291+
</figure>
292+
</div>
293+
</div>
294+
295+
<div class="gallery">
296+
<figure class="gallery-item">
297+
<img src="img/gallery/gallery-1.jpg" alt="Food." />
298+
</figure>
299+
<figure class="gallery-item">
300+
<img src="img/gallery/gallery-2.jpg" alt="Food." />
301+
</figure>
302+
<figure class="gallery-item">
303+
<img src="img/gallery/gallery-3.jpg" alt="Food." />
304+
</figure>
305+
<figure class="gallery-item">
306+
<img src="img/gallery/gallery-4.jpg" alt="Food." />
307+
</figure>
308+
<figure class="gallery-item">
309+
<img src="img/gallery/gallery-5.jpg" alt="Food." />
310+
</figure>
311+
<figure class="gallery-item">
312+
<img src="img/gallery/gallery-6.jpg" alt="Food." />
313+
</figure>
314+
<figure class="gallery-item">
315+
<img src="img/gallery/gallery-7.jpg" alt="Food." />
316+
</figure>
317+
<figure class="gallery-item">
318+
<img src="img/gallery/gallery-8.jpg" alt="Food." />
319+
</figure>
320+
<figure class="gallery-item">
321+
<img src="img/gallery/gallery-9.jpg" alt="Food." />
322+
</figure>
323+
<figure class="gallery-item">
324+
<img src="img/gallery/gallery-10.jpg" alt="Food." />
325+
</figure>
326+
<figure class="gallery-item">
327+
<img src="img/gallery/gallery-11.jpg" alt="Food." />
328+
</figure>
329+
<figure class="gallery-item">
330+
<img src="img/gallery/gallery-12.jpg" alt="Food." />
331+
</figure>
332+
</div>
333+
</section>
248334
</main>
249335
</body>
250336
</html>

0 commit comments

Comments
 (0)