Skip to content

Challenge to create testimonials grid section and match with design as much as possible

License

Notifications You must be signed in to change notification settings

srijanss/testimonials-grid-section

Repository files navigation

Frontend Mentor - Testimonials grid section solution

This is a solution to the Testimonials grid section challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

The challenge

Users should be able to:

  • View the optimal layout for the site depending on their device's screen size

Screenshot

Links

My process

<figure class="testimonial__author">
  <img
    src="./images/image-daniel.jpg"
    alt="Daniel Clifford"
    class="testimonial__author-image"
    width="28"
    height="28"
  />
  <figcaption class="testimonial__author-info">
    <h3 class="testimonial__author-name">Daniel Clifford</h3>
    <p class="testimonial__author-verified">Verified Graduate</p>
  </figcaption>
</figure>

I learned about the html element

and elements for semantically representing image and its caption.

& .testimonial:nth-child(1) {
    position: relative;
    & > * {
      position: relative;
      z-index: 1;
    }
    .pattern-quotation {
      position: absolute;
      top: 0;
      right: 24px;
      z-index: 0;
      @mixin media-query-desktop {
        right: 80px;
      }
    }

I had some issues to put the quotation mark svg image behind the text. I found out that to make the z-index work we have to set CSS position propery in that element.

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow
  • Vite - Lightweight frontend tooling
  • PostCSS - Tool to transform CSS using plugins

What I learned

Author

About

Challenge to create testimonials grid section and match with design as much as possible

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published