Skip to content

Commit df1cca2

Browse files
committed
testimonials p2
1 parent 2cba4f3 commit df1cca2

File tree

3 files changed

+109
-5
lines changed

3 files changed

+109
-5
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ Paragraph default: 1.6
3131
- Shades: #cf711f
3232
- Accents:
3333
- Greys:
34+
35+
#6f6f6f (lightest grey allowed on #fdf2e9)
3436
#555
3537
#333
3638

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

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,13 +309,21 @@
309309
/**************************/
310310

311311
.section-testimonials {
312-
padding: 9.6rem 0;
312+
background-color: #fdf2e9;
313+
display: grid;
314+
grid-template-columns: 55fr 45fr;
315+
align-items: center;
316+
}
317+
318+
.testimonial-contaniner {
319+
padding: 9.6rem;
313320
}
314321

315322
.testimonials {
316323
display: grid;
317324
grid-template-columns: repeat(2, 1fr);
318-
gap: 4.8rem;
325+
row-gap: 4.8rem;
326+
column-gap: 8rem;
319327
}
320328

321329
.testimonial-img {
@@ -332,5 +340,26 @@
332340

333341
.testimonial-name {
334342
font-size: 1.6rem;
335-
color: #777;
343+
color: #6f6f6f;
344+
}
345+
346+
.gallery {
347+
display: grid;
348+
grid-template-columns: repeat(3, 1fr);
349+
gap: 1.6rem;
350+
padding: 1.6rem;
351+
}
352+
353+
.gallery-item {
354+
overflow: hidden;
355+
}
356+
357+
.gallery-item img {
358+
display: block;
359+
width: 100%;
360+
transition: all 0.4s;
361+
}
362+
363+
.gallery-item img:hover {
364+
transform: scale(1.1);
336365
}

starter/07-Omnifood-Desktop/index.html

Lines changed: 75 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ <h3 class="heading-terrtiary">Works with any diet:</h3>
287287
</div>
288288
</section>
289289

290-
<section class="section-testimonials grid grid--2-cols">
290+
<section class="section-testimonials">
291291
<div class="testimonial-contaniner">
292292
<span class="subheading">Testimonial</span>
293293
<h2 class="heading-secondary">Once you try it, you can't go back</h2>
@@ -347,7 +347,80 @@ <h2 class="heading-secondary">Once you try it, you can't go back</h2>
347347
</div>
348348
</div>
349349

350-
<div class="gallery">Gallery</div>
350+
<div class="gallery">
351+
<figure class="gallery-item">
352+
<img
353+
src="img/gallery/gallery-1.jpg"
354+
alt="Photo of beautifully arranged food"
355+
/>
356+
</figure>
357+
<figure class="gallery-item">
358+
<img
359+
src="img/gallery/gallery-2.jpg"
360+
alt="Photo of beautifully arranged food"
361+
/>
362+
</figure>
363+
<figure class="gallery-item">
364+
<img
365+
src="img/gallery/gallery-3.jpg"
366+
alt="Photo of beautifully arranged food"
367+
/>
368+
</figure>
369+
<figure class="gallery-item">
370+
<img
371+
src="img/gallery/gallery-4.jpg"
372+
alt="Photo of beautifully arranged food"
373+
/>
374+
</figure>
375+
<figure class="gallery-item">
376+
<img
377+
src="img/gallery/gallery-5.jpg"
378+
alt="Photo of beautifully arranged food"
379+
/>
380+
</figure>
381+
<figure class="gallery-item">
382+
<img
383+
src="img/gallery/gallery-6.jpg"
384+
alt="Photo of beautifully arranged food"
385+
/>
386+
</figure>
387+
<figure class="gallery-item">
388+
<img
389+
src="img/gallery/gallery-7.jpg"
390+
alt="Photo of beautifully arranged food"
391+
/>
392+
</figure>
393+
<figure class="gallery-item">
394+
<img
395+
src="img/gallery/gallery-8.jpg"
396+
alt="Photo of beautifully arranged food"
397+
/>
398+
</figure>
399+
<figure class="gallery-item">
400+
<img
401+
src="img/gallery/gallery-9.jpg"
402+
alt="Photo of beautifully arranged food"
403+
/>
404+
</figure>
405+
<figure class="gallery-item">
406+
<img
407+
src="img/gallery/gallery-10.jpg"
408+
alt="Photo of beautifully arranged food"
409+
/>
410+
</figure>
411+
<figure class="gallery-item">
412+
<img
413+
src="img/gallery/gallery-11.jpg"
414+
alt="Photo of beautifully arranged food"
415+
/>
416+
</figure>
417+
<figure class="gallery-item">
418+
<img
419+
src="img/gallery/gallery-12.jpg"
420+
alt="Photo of beautifully arranged food"
421+
/>
422+
</figure>
423+
</div>
351424
</section>
352425
</main>
353426
</body>

0 commit comments

Comments
 (0)