Featured Testimonials

By Laurel Beyers

F6
#
How do I use This?

A Responsive container for multiple testimonials and quotes from individuals or companies.

HTML
<div class="featured-testimonials-section">
  <div class="row columns">
    <h1>Featured In</h1>
  </div>
  <div class="featured-testimonials row">
    <div class="small-12 medium-6 columns">
      <div class="testimonial">
        <img class="profile-pic hide-for-small-only" src="https://unsplash.it/201/?random">
        <p class="featured-testimonials-quotation">Hide when guests come over instantly break out into full speed make cat go crazy. Meow mix meow meow cat things and purring. catnip.</p>
      </div>
    </div>
    <div class="small-12 medium-6 columns">
      <div class="testimonial">
        <img class="profile-pic hide-for-small-only" src="https://unsplash.it/202/?random">
        <p class="featured-testimonials-quotation">Hide when guests come over instantly break out into full speed make cat go crazy. Meow mix meow meow cat things and purring. catnip.</p>
      </div>
    </div>
  </div>
  <div class="featured-testimonials row">
    <div class="small-12 medium-6 columns">
      <div class="testimonial">
        <img class="profile-pic hide-for-small-only" src="https://unsplash.it/203/?random">
        <p class="featured-testimonials-quotation">Hide when guests come over instantly break out into full speed make cat go crazy. Meow mix meow meow cat things and purring. catnip.</p>
      </div>
    </div>
    <div class="small-12 medium-6 columns">
      <div class="testimonial">
        <img class="profile-pic hide-for-small-only" src="https://unsplash.it/204/?random">
        <p class="featured-testimonials-quotation">Hide when guests come over instantly break out into full speed make cat go crazy. Meow mix meow meow cat things and purring. catnip.</p>
      </div>
    </div>
  </div>
</div>


.featured-testimonials-section {
  background: $light-gray;
  padding: 2rem 1rem;

  .featured-testimonials-container {
    .orbit-previous {
      color: $black;
      left: -1rem;
    }

    .orbit-next {
      color: $black;
      right: -1rem;
    }
}

  .testimonial {
    display: flex;
    align-items: center;
    margin: 2rem 1rem;
  }

  .profile-pic {
    max-width: 100px;
    border-radius: 50%;

  }

  .featured-testimonials-quotation {
    margin-left: 3rem;
    margin-bottom: 0rem;
    padding: 1rem;
    position: relative;

    &::before {
      content: "“";
      font-size: 5rem;
      color: lighten($black, 80%);
      position: absolute;
      top: -2.5rem;
      left: -1.5rem;
    }

    &::after {
      content: "”";
      font-size: 5rem;
      color: lighten($black, 80%);
      position: absolute;
      bottom: -4rem;
      right: -.5rem;
    }

    @include breakpoint(small only){
      margin-left: 0;
    }
  }
}

@charset "UTF-8";

.featured-testimonials-section {
  background: #e6e6e6;
  padding: 2rem 1rem;
}

.featured-testimonials-section .featured-testimonials-container .orbit-previous {
  color: #0a0a0a;
  left: -1rem;
}

.featured-testimonials-section .featured-testimonials-container .orbit-next {
  color: #0a0a0a;
  right: -1rem;
}

.featured-testimonials-section .testimonial {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  margin: 2rem 1rem;
}

.featured-testimonials-section .profile-pic {
  max-width: 100px;
  border-radius: 50%;
}

.featured-testimonials-section .featured-testimonials-quotation {
  margin-left: 3rem;
  margin-bottom: 0rem;
  padding: 1rem;
  position: relative;
}

.featured-testimonials-section .featured-testimonials-quotation::before {
  content: "“";
  font-size: 5rem;
  color: #d6d6d6;
  position: absolute;
  top: -2.5rem;
  left: -1.5rem;
}

.featured-testimonials-section .featured-testimonials-quotation::after {
  content: "”";
  font-size: 5rem;
  color: #d6d6d6;
  position: absolute;
  bottom: -4rem;
  right: -.5rem;
}

@media screen and (max-width: 39.9375em) {
  .featured-testimonials-section .featured-testimonials-quotation {
    margin-left: 0;
  }
}

JS