<section class="efl-bundle-hero-banner not-started" data-behavior="efl-bundle-hero-banner">
    <div class="efl-bundle-hero-banner__wrapper">
        <picture>
            <source media="(max-width: 767px)" srcset="/assets/example-content/bundle-hero/bundle-banner-2.jpg">
            <source media="(min-width: 768px) and (max-width: 819px)" srcset="/assets/example-content/bundle-hero/bundle-banner-3.jpg">
            <source media="(min-width: 820px)" srcset="/assets/example-content/bundle-hero/bundle-banner-1.jpg">
            <img class="index-image" src="/assets/example-content/bundle-hero/bundle-banner-1.jpg" alt="">
        </picture>
        <div class="efl-bundle-hero-banner__overlay">
            <div class="efl-bundle-hero-banner__overlay--wrapper">
                <img src="/assets/example-content/bundle-hero/trophy-img-2.svg" alt="">
                <h1>Safeguarding Bundle</h1>
                <div class="efl-bundle-hero-banner-copy">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer efficitur velit non mi.Lorem ipsum dolor sit amet.</div>
                <div class="efl-bundle-hero-banner--time-quiz">
                    <div class="time">10 - minutes</div>
                    <div class="quiz">6 - quizzes</div>
                </div>
            </div>
        </div>
    </div>
</section>

No notes defined.

{
  "tabimage": "/assets/example-content/bundle-hero/bundle-banner-3.jpg",
  "smallimage": "/assets/example-content/bundle-hero/bundle-banner-2.jpg",
  "bigimage": "/assets/example-content/bundle-hero/bundle-banner-1.jpg",
  "hero-state": "not-started",
  "trophy-icon": "/assets/example-content/bundle-hero/trophy-img-2.svg",
  "title": "Safeguarding Bundle",
  "copy": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer efficitur velit non mi.Lorem ipsum dolor sit amet.",
  "time": "10 - minutes",
  "quiz": "6 - quizzes",
  "hero-type": "in-progress"
}
  • Content:
    .efl-bundle-hero-banner {
      &__wrapper {
        position: relative;
        .index-image {
          width: 100%;
          object-fit: cover;
          height: 62rem;
        }
      }
    
      &__overlay {
        max-width: 103.2rem;
        width: 100%;
        display: flex;
        margin: 0 auto;
        justify-content: center;
        &--wrapper {
          position: absolute;
          bottom: 0;
          margin: 5rem 2.7rem 24.6rem 2.7rem;
          img {
            width: 12.6rem;
            margin: 0 auto;
          }
          h1 {
            @extend .efl-heading-2;
    
            font-size: 4.4rem;
            line-height: 4.4rem;
            color: $white;
            text-align: center;
            margin-top: 0.9rem;
            text-transform: capitalize;
          }
          .efl-bundle-hero-banner-copy {
            @extend .efl-p-medium;
    
            max-width: 42.3rem;
            color: $light-blue;
            text-align: center;
            letter-spacing: 0.02em;
            margin: 0.8rem auto 0;
          }
        }
      }
    
      &--time-quiz {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 1.2rem;
        .time {
          @extend .efl-p-small;
    
          display: flex;
          justify-content: center;
          align-items: center;
          color: $white;
          letter-spacing: -0.01em;
          text-transform: capitalize;
          &::before {
            content: '';
            background-image: url('/assets/example-content/bundle-hero/time.svg');
            width: 2rem;
            height: 2.3rem;
            background-size: contain;
            background-repeat: no-repeat;
            display: inline-block;
            margin-right: 0.8rem;
          }
          &::after {
            content: '';
            width: 0.1rem;
            height: 1.9rem;
            background-color: $light-blue;
            margin: 0 1.6rem;
          }
        }
    
        .quiz {
          @extend .efl-p-small;
    
          display: flex;
          justify-content: center;
          align-items: center;
          color: $white;
          letter-spacing: -0.01em;
          text-transform: capitalize;
          &::before {
            content: '';
            background-image: url('/assets/example-content/bundle-hero/quiz.svg');
            width: 2rem;
            height: 2.2rem;
            background-size: contain;
            background-repeat: no-repeat;
            display: inline-block;
            margin-right: 0.8rem;
          }
        }
      }
    
      @media screen and (min-width: $mq-medium) {
        &__wrapper {
          .index-image {
            height: 52rem;
          }
        }
    
        &__overlay {
          &--wrapper {
            margin: 7.5rem 0 10.7rem 0;
            img {
              width: 14rem;
            }
            h1 {
              font-size: 5.2rem;
              line-height: 5.8rem;
            }
          }
        }
    
        &--time-quiz {
          margin-top: 2rem;
        }
      }
    
      @media only screen and (min-width: $mq-small) and (max-width: $mq-medium) {
        &__wrapper {
          .index-image {
            object-position: bottom;
          }
        }
      }
    
      @media only screen and (min-width: 768px) and (max-width: 819px) {
        &__overlay {
          &--wrapper {
            max-width: 32.2rem;
          }
        }
      }
    }
    
  • URL: /components/raw/efl-bundle-hero-banner/efl-bundle-hero-banner.scss
  • Filesystem Path: src/library/components/efl-bundle-hero-banner/efl-bundle-hero-banner.scss
  • Size: 2.9 KB
<section class="efl-bundle-hero-banner {{hero-state}}" data-behavior="efl-bundle-hero-banner">
    <div class="efl-bundle-hero-banner__wrapper">
        <picture>
            <source media="(max-width: 767px)" srcset="{{smallimage}}">
            <source media="(min-width: 768px) and (max-width: 819px)" srcset="{{tabimage}}">
            <source media="(min-width: 820px)" srcset="{{bigimage}}">
            <img class="index-image" src="{{bigimage}}" alt="">
        </picture>
        <div class="efl-bundle-hero-banner__overlay">
            <div class="efl-bundle-hero-banner__overlay--wrapper">
                <img src="{{trophy-icon}}" alt="">
                <h1>{{title}}</h1>
                <div class="efl-bundle-hero-banner-copy">{{copy}}</div>
                <div class="efl-bundle-hero-banner--time-quiz">
                    <div class="time">{{time}}</div>
                    <div class="quiz">{{quiz}}</div>
                </div>
            </div>
        </div>
    </div>
</section>