Skip to content

Commit 0bff415

Browse files
committed
add testimonials (right side) and finish testimonials.
1 parent 00784b0 commit 0bff415

File tree

3 files changed

+109
-5
lines changed

3 files changed

+109
-5
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Paragraph default: 1.6
3131
- Shades: #cf711f
3232
- Accents:
3333
- Greys:
34+
#6f6f6f (lightest grey allowed on #6f6f6f)
3435
#555
3536
#333
3637

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

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,13 +316,21 @@
316316
/***************************/
317317

318318
.section-testimonials {
319-
padding: 9.6rem 0;
319+
background-color: #fdf2e9;
320+
display: grid;
321+
grid-template-columns: 55fr 45fr;
322+
align-items: center;
323+
}
324+
325+
.testimonials-container {
326+
padding: 9.6rem;
320327
}
321328

322329
.testimonials {
323330
display: grid;
324331
grid-template-columns: 1fr 1fr;
325-
gap: 4.8rem;
332+
row-gap: 4.8rem;
333+
column-gap: 8rem;
326334
}
327335

328336
.testimonial-img {
@@ -339,5 +347,26 @@
339347

340348
.testimonial-name {
341349
font-size: 1.6rem;
342-
color: #777;
350+
color: #6f6f6f;
351+
}
352+
353+
.gallery {
354+
display: grid;
355+
grid-template-columns: repeat(3, 1fr);
356+
gap: 1.6rem;
357+
padding: 1.6rem;
358+
}
359+
360+
.gallery-item {
361+
overflow: hidden;
362+
}
363+
364+
.gallery-item img {
365+
display: block;
366+
width: 100%;
367+
transition: all 0.4s;
368+
}
369+
370+
.gallery-item img:hover {
371+
transform: scale(1.1);
343372
}

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

Lines changed: 76 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ <h3 class="heading-tertiary">Works with any diet</h3>
289289
</section>
290290

291291
<!-- TESTIMONIALS -->
292-
<section class="section-testimonials grid grid--2-cols">
292+
<section class="section-testimonials">
293293
<div class="testimonials-container">
294294
<span class="subheading">Testimonials</span>
295295
<h2 class="heading-secondary">Once you try it, you can't go back</h2>
@@ -345,7 +345,81 @@ <h2 class="heading-secondary">Once you try it, you can't go back</h2>
345345
</figure>
346346
</div>
347347
</div>
348-
<div class="gallery">Gallery</div>
348+
<div class="gallery">
349+
<figure class="gallery-item">
350+
<img
351+
src="img/gallery/gallery-1.jpg"
352+
alt="Photo of beautifully arranged food"
353+
/>
354+
<!-- <figcaption>Caption</figcaption> -->
355+
</figure>
356+
<figure class="gallery-item">
357+
<img
358+
src="img/gallery/gallery-2.jpg"
359+
alt="Photo of beautifully arranged food"
360+
/>
361+
</figure>
362+
<figure class="gallery-item">
363+
<img
364+
src="img/gallery/gallery-3.jpg"
365+
alt="Photo of beautifully arranged food"
366+
/>
367+
</figure>
368+
<figure class="gallery-item">
369+
<img
370+
src="img/gallery/gallery-4.jpg"
371+
alt="Photo of beautifully arranged food"
372+
/>
373+
</figure>
374+
<figure class="gallery-item">
375+
<img
376+
src="img/gallery/gallery-5.jpg"
377+
alt="Photo of beautifully arranged food"
378+
/>
379+
</figure>
380+
<figure class="gallery-item">
381+
<img
382+
src="img/gallery/gallery-6.jpg"
383+
alt="Photo of beautifully arranged food"
384+
/>
385+
</figure>
386+
<figure class="gallery-item">
387+
<img
388+
src="img/gallery/gallery-7.jpg"
389+
alt="Photo of beautifully arranged food"
390+
/>
391+
</figure>
392+
<figure class="gallery-item">
393+
<img
394+
src="img/gallery/gallery-8.jpg"
395+
alt="Photo of beautifully arranged food"
396+
/>
397+
</figure>
398+
<figure class="gallery-item">
399+
<img
400+
src="img/gallery/gallery-9.jpg"
401+
alt="Photo of beautifully arranged food"
402+
/>
403+
</figure>
404+
<figure class="gallery-item">
405+
<img
406+
src="img/gallery/gallery-10.jpg"
407+
alt="Photo of beautifully arranged food"
408+
/>
409+
</figure>
410+
<figure class="gallery-item">
411+
<img
412+
src="img/gallery/gallery-11.jpg"
413+
alt="Photo of beautifully arranged food"
414+
/>
415+
</figure>
416+
<figure class="gallery-item">
417+
<img
418+
src="img/gallery/gallery-12.jpg"
419+
alt="Photo of beautifully arranged food"
420+
/>
421+
</figure>
422+
</div>
349423
</section>
350424
</main>
351425
</body>

0 commit comments

Comments
 (0)