<div class="hero  hero--section-header ">
    <div class="hero__background-image__container">
        <div class="hero__background-image" data-rellax-speed="-3" style="background: url() no-repeat scroll center center/cover;"></div>
        <div class="hero__background-filter"></div>

        <svg class="svg_image" width="300px" height="300px" viewBox="0 0 1213 1213" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" fill-opacity="0.3"> <g id="circles" fill="#FFFFFF"> <circle id="circle-3" cx="606.5" cy="606.5" r="606.5"></circle> <circle id="circle-2" cx="606.5" cy="449.5" r="449.5"></circle> <circle id="circle-1" cx="607" cy="247" r="247"></circle> </g> </g> </svg>

    </div>
    <div class="hero__content__container">
        <div class="hero__content text--center">
            <h1 class="hero__title"> </h1>
            <div class="hero__description">

            </div>

        </div>
    </div>
</div>
<div class="hero {% if mod %} hero--{{ mod }} {% endif %}">
  <div class="hero__background-image__container">
    <div class="hero__background-image" data-rellax-speed="-3" style="background: url({{ image_src }}) no-repeat scroll center center/cover;"></div>
    <div class="hero__background-filter"></div>
    {% if svg_image %}
        {{ svg_image }}
    {% endif %}
  </div>
  <div class="hero__content__container">
    <div class="hero__content text--center">
      <h1 class="hero__title">{{ title }}</h1>
      <div class="hero__description">
        {{ text }}
      </div>
      {% if cta.label %}
        <div class="hero__cta">
          {% render '@buttons', cta %}
        </div>
      {% endif %}
      {% if progress %}
        {% include '@progress-bar' %}
      {% endif %}
    </div>
  </div>
</div>
{
  "mod": "section-header",
  "title": " ",
  "svg_image": "<svg class=\"svg_image\" width=\"300px\" height=\"300px\" viewBox=\"0 0 1213 1213\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"> <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" fill-opacity=\"0.3\"> <g id=\"circles\" fill=\"#FFFFFF\"> <circle id=\"circle-3\" cx=\"606.5\" cy=\"606.5\" r=\"606.5\"></circle> <circle id=\"circle-2\" cx=\"606.5\" cy=\"449.5\" r=\"449.5\"></circle> <circle id=\"circle-1\" cx=\"607\" cy=\"247\" r=\"247\"></circle> </g> </g> </svg>"
}
  • Content:
    .hero {
      position: relative;
      overflow: hidden;
    }
    
    .hero__background-image__container {
      width: 100%;
      height: 100%;
      position: absolute;
    
      .hero__background-image {
        width: 100%;
        height: 100%;
        position: absolute;
        background: $primary;
    
        &--blur{
          filter: blur(5px);
        }
      }
    
      .hero__background-filter {
        width: 100%;
        height: 100%;
        position: absolute;
        background-color: rgba(0,0,0,0.45);
        opacity: .9;
    
      }
    }
    
    .hero__content__container {
      max-width: $container-xl;
      margin: auto;
      position: relative;
      min-height: 375px;
      padding: $spacer;
      display: flex;
    
      .hero__content {
        max-width: $container-md;
        margin: 0 auto;
        align-self: center;
    
        .hero__title {
          color: $white;
          margin-bottom: 0;
          line-height: $line-height-sm;
        }
    
        .hero__description {
          margin-top: $space-md;
          color: $white;
          font-weight: $font-weight-light;
          line-height: $line-height-lg;
        }
    
        .hero__cta {
          margin-top: $space-md;
    
          &--share {
    
            margin: 3.5rem 0 1.5rem;
    
            @include mq-only($breakpoint-mob) {
              display: flex;
              flex-wrap: wrap;
              justify-content: space-around;
              margin: $space-md 0;
            }
          }
    
          & > * {
            display: inline-block;
            vertical-align: middle;
          }
    
          .social-share {
            margin: 0 $space-xs $space-md;
    
            @include mq($breakpoint-lg) {
              margin: 0 0 $space-md;
            }
          }
    
          a.btn--download {
            align-items: center;
            align-content: center;
            box-sizing: border-box;
            display: inline-flex;
            font-weight: $font-weight-normal;
            justify-content: center;
            line-height: normal;
    
            & > * {
              display: inline-block;
              vertical-align: middle;
            }
    
            .icon {
              fill: $white;
              height: 1.5rem;
              margin-right: $space-xs;
              width: 1.5rem;
            }
          }
    
          a.btn--download,
          button.btn--download {
            height: 55px;
            letter-spacing: .3em;
            margin: 0 $space-xs $space-md;
            width: 200px;
    
            @include mq($breakpoint-lg) {
              margin: 0 $space-md $space-md 0;
            }
          }
    
          button.btn--call-to-action {
            margin-bottom: $spacer;
            @include mq-only($breakpoint-mob) {
              width: 100%;
            }
          }
        }
      }
    }
    
    .hero__blog {
      .hero__content__container {
        flex-direction: column;
        justify-content: flex-end;
        max-width: $breakpoint-xxl;
        min-height: 82vh;
        padding: $space-xl $space-md;
    
        @include mq($breakpoint-lg) {
          align-items: stretch;
          display: grid;
          flex-direction: row;
          grid-template-columns: 2fr 6fr;
          grid-template-rows: 25vw;
          min-height: 25vw;
          padding: $space-md;
    
          & > div {
            padding: 0 $space-lg;
    
            &:first-child {
              flex-basis: calc(25% - 2.5rem);
            }
    
            &:last-child {
              flex-basis: calc(75% - 2.5rem);
              -ms-grid-column: 2;
            }
          }
        }
    
        .hero__title {
          margin-bottom: $space-md;
        }
    
        .hero__content {
          align-self: end;
          max-width: 100%;
          margin: 0;
        }
      }
    }
    
    .hero__research,
    .press_release {
      .hero__content__container {
        .hero__title {
          margin-bottom: $space-md;
        }
      }
    }
    
    .hero__date {
      color: $white;
      font-weight: $font-weight-base;
    
      & > * {
        display: inline-block;
        vertical-align: middle;
      }
    
      .icon {
        fill: $white;
        display: inline-block;
        padding: 0 $space-xs 0 0;
        vertical-align: middle;
      }
    }
    
    .hero_image--right {
    
      .hero__content__container {
        @include mq-only($breakpoint-mob) {
          display: grid;
          padding: $space-big $space-md;
        }
      }
    
      .hero__content {
        @include mq-only($breakpoint-mob) {
          display: grid;
          order: 1;
        }
      }
    
      .hero__title {
        @include mq-only($breakpoint-mob) {
          order: 1;
          text-align: center;
        }
      }
    }
    
    .hero--default {
      display: flex;
    }
    
    .hero__with_topic {
      display: flex;
    
      .hero__background-image__container {
        .hero__background-image {
          background-size: cover !important;
    
          @include mq($breakpoint-lg) {
            background-position: center;
          }
        }
      }
    
      .hero__content__container {
        @include mq-only($breakpoint-mob) {
          height: 90vh;
        }
    
        .hero__content {
          .hero__title {
            @include mq-only($breakpoint-mob) {
              font-size: 2.5rem;
            }
          }
        }
      }
    
      .hero__topic {
        color: $white;
        letter-spacing: .1em;
    
        &::after,
        &::before {
          content: '-';
          padding: $space-sm;
        }
      }
    }
    
    .hero__pdf-cover {
      text-align: center;
      position: relative;
      top: 0;
    
      @include mq($breakpoint-lg) {
        top: 100px;
      }
    
      img {
        box-shadow: 0 0 33px 0 rgba(0,0,0,0.6);
        max-width: 350px;
        width: 100%;
      }
    }
    
    .hero__search {
      background: $primary;
      display: flex;
    
      &--title{
        color: $white;
        font-size: $font-size-base;
        letter-spacing: $space-xs;
        margin-bottom: $space-xl;
      }
    
      .search__press-releases__form {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
      }
    
      .form__item--text {
        width: 200px;
    
        @include mq($breakpoint-xl) {
          width: 300px;
        }
      }
    
      .hero__content__container {
        min-height: 300px;
    
        @include mq-only($breakpoint-mob) {
          padding: $space-md 0;
        }
      }
    
      .btn {
        &:focus {
          background-color: $primary-light;
        }
      }
    }
    
    .hero--sidebar {
      width: $sidebar-width-mob;
      overflow: hidden;
    
      @include mq-only(320px) {
        width: 300px;
      }
    
      @include mq($breakpoint-lg) {
        width: $sidebar-width;
      }
    
      .hero__content__container {
        min-height: 250px;
        padding: $space-lg;
    
        @include mq($breakpoint-lg) {
          min-height: 17vw;
        }
      }
    
      .hero__title {
        text-align: left;
        font-size: $font-size-xl;
      }
    
      .hero__description {
        display: none;
      }
    }
    
    .hero--section-header {
      max-height: 120px;
      background-color: $secondary;
    
      .svg_image {
        position: absolute;
        top: -50px;
        right: -130px;
      }
    }
    
    .page__blogs,
    .page__our-story,
    .researches {
      .hero {
        display: flex;
      }
    }
    
  • URL: /components/raw/hero/_hero.scss
  • Filesystem Path: src/components/molecules/hero/_hero.scss
  • Size: 6.2 KB

There are no notes for this item.