No notes defined.

<div class="bannerHeroMultiple">
  {% for heroImage in heroImages %}
    <div class="bannerHeroSingle" style='background-image: linear-gradient(rgba(0, 0, 0,{{ opacity }}), rgba(0, 0, 0, {{ opacity }})), url("{{ heroImage.img.src }}"); width: {{100 / heroImages.length}}%'></div>
  {% endfor %}
  <div class="bannerHeroContent">
    {% if uolLogo %}
      <div class="bannerHeroLogoOuter">
        {% render '@uol-logo-uol' %}
      </div>
    {% endif %}
    <h2>{{ title }}</h2>
    {% if subtitle %}<h3>{{ subtitle }}</h3>{% endif %}
    {% if paragraph %}<p>{{ paragraph }}</p>{% endif %}
    {% if inlineButtons %}
      <div class="inlineButtons">
        {% for inlineButton in inlineButtons %}
          <div class="brandButton bg{{ inlineButton.bgColour }} fg{{ inlineButton.fgColour }}">
            {{ inlineButton.text }}
          </div>
        {% endfor %}
      </div>
    {% endif %}
  </div>    
</div>
<div class="bannerHeroMultiple">

    <div class="bannerHeroSingle" style='background-image: linear-gradient(rgba(0, 0, 0,0.5), rgba(0, 0, 0, 0.5)), url("/placeholders/ds2/heroFullWidth/Web-DSC03468.jpg"); width: 100%'></div>

    <div class="bannerHeroContent">

        <h2>Title</h2>

    </div>
</div>
  • Content:
    .bannerHeroMultiple {
      
      --heroHeight: 470px;
      
      --maxWidth: 1400px;
    
      --heroH2Size: 32px;
      --heroH3Size: 24px;
      --heroSpacing: 24px;
      --heroSpacing: 24px;
      --brandButtonWidth: 100%;
    
      @include media(">=uol-media-s") {
        --heroH2Size: 48px;
        --heroH3Size: 32px;
        --heroSpacing: 24px;
        --brandButtonWidth: inherit;
      }
    
      height: var(--heroHeight);
      background-position: center;
      background-repeat: no-repeat;
      background-size: cover;
      position: relative;
      display: flex;
      width: 100%;
      color: white;
      display: flex;
      position: relative;
      width: 100%;
      min-height: 400px;
    
      .bannerHeroSingle {
        display: flex;
        align-items: center;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        position: relative;
      }
    
      .bannerHeroContent {
        position: absolute;
        width: calc(100% - 2 * var(--heroSpacing));
        max-width: calc(var(--maxWidth) - 2 * var(--heroSpacing));
        position: absolute;
        place-self: center; 
        inset: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    
        > * {
          margin: 0 0  var(--heroSpacing);
        }
        .bannerHeroLogoOuter svg {
          fill: white;
          max-height: 90px;
          max-width: 100%;
        }
        h2 {
          font-size: var(--heroH2Size);
          font-weight: 600;
        }
    
        h3 {
          font-size: var(--heroH3Size);
        }
    
        p {
          font-size: var(--heroPSize);
        }
    
        & :first-child {
          margin-top: 0;
        }
    
        & :last-child {
          margin-bottom: 0;
        }
      }
    }
    
    // TODO: to put in new buttons component (when built)
    
    .brandButton {
      width: var(--brandButtonWidth);
      box-sizing: border-box;
      border-radius: 4px;
      padding: 0 32px;
      height: 52px;
      margin-right: 0;
      display: inline-flex;
      align-items: center;
    
      @include media(">=uol-media-s") {
        margin-right: 16px;
      }
    }
    
    .brandButton:not(:last-child) {
      margin-bottom: 20px;
    }
    
    // TODO: to put in some other component - can probably do with a mixin
    .bgbrand-vivid-green {background: $brand-vivid-green;}
    .bgbrand-teal {background: $brand-teal;}
    .bgbrand-dark-blue {background: $brand-dark-blue;}
    .bgbrand-pink {background: $brand-pink;}
    .bgbrand-white {background: $brand-white;}
    
    .fgbrand-black {color: $brand-black;}
    
    
    
    
    
  • URL: /components/raw/hero-banner-overlay-multiple/hero-banner-overlay-multiple.scss
  • Filesystem Path: src/library/02-2026-components/hero-banner-overlay-multiple/hero-banner-overlay-multiple.scss
  • Size: 2.3 KB
{
  "title": "Title",
  "opacity": 0.5,
  "heroImages": [
    {
      "img": {
        "src": "/placeholders/ds2/heroFullWidth/Web-DSC03468.jpg",
        "alt": "University campus"
      }
    }
  ]
}