<div class="outer-container">
    <div class="inner-content">
        <div class="left-panel">
            <div class="header-section">
                <svg class="icon-style" width="16" height="2" viewBox="0 0 16 2" fill="none" xmlns="http://www.w3.org/2000/svg">
                    <line y1="1" x2="16" y2="1" stroke="white" stroke-opacity="0.3" stroke-width="2" />
                </svg>
                Question 1 / 10
            </div>
            <div class="text-section">
                Select your city/town of birth?
            </div>
            <div class="selection-area">
                Select from dropdown list
            </div>
        </div>

        <div class="right-panel">
            <div class="input-area-container">
                <div class="scroll-container">
                    <div class="checkboxContainer">
                        <div class="outsideBorder">
                            <label class="customCheckboxWrapper">
                                <input type="checkbox" class="customCheckboxInput" />
                                <span class="customCheckbox"></span>
                                <span class="checkboxContent">Red</span>
                            </label>
                        </div>
                        <div class="outsideBorder">
                            <label class="customCheckboxWrapper">
                                <input type="checkbox" class="customCheckboxInput" checked />
                                <span class="customCheckbox"></span>
                                <span class="checkboxContent">Blue</span>
                            </label>
                        </div>
                        <div class="outsideBorder">
                            <label class="customCheckboxWrapper">
                                <input type="checkbox" class="customCheckboxInput" />
                                <span class="customCheckbox"></span>
                                <span class="checkboxContent">Green</span>
                            </label>
                        </div>
                        <div class="outsideBorder">
                            <label class="customCheckboxWrapper">
                                <input type="checkbox" class="customCheckboxInput" />
                                <span class="customCheckbox"></span>
                                <span class="checkboxContent">Red</span>
                            </label>
                        </div>
                    </div>
                </div>
                <a class="cta cta--dropdown  " id="dropdown-Next" tabindex="0">Next</a>

            </div>
        </div>
    </div>

    <img class="desktop-background-img" src="/assets/example-content/background.svg" alt="Background Image" />
    <img src="/assets/example-content/mobilebackground.svg" alt="Background Image" class="bg-image-mobile">
</div>

No notes defined.

{
  "questionNumber": "Question 1 / 10",
  "question": "Select your city/town of birth?",
  "dropdownLabel": "Select from dropdown list",
  "nextButtonText": "Next",
  "nextButtonDisabledStyle": "cursor: default; opacity: 0.6;",
  "nextButtonDisabled": true,
  "backgroundImage": "/assets/example-content/background.svg",
  "mobilebackgroundimage": "/assets/example-content/mobilebackground.svg",
  "Next-cta": {
    "copy": "Next",
    "modifier": "dropdown",
    "id": "dropdown-Next",
    "href": "",
    "additionalClass": ""
  }
}
  • Content:
    /* stylelint-disable */
    document.addEventListener('DOMContentLoaded', () => {
      const mainContainer = document.querySelector('.scroll-container');
      const checkboxContainer = document.querySelector('.checkboxContainer');
    
      function applyMask() {
        if (
          mainContainer &&
          checkboxContainer &&
          checkboxContainer.scrollHeight > checkboxContainer.clientHeight
        ) {
          mainContainer.style.maskImage =
            'linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%)';
        } else if (mainContainer) {
          mainContainer.style.maskImage = 'none';
        }
      }
      applyMask();
      window.addEventListener('resize', applyMask);
    });
    
  • URL: /components/raw/checkbox/Checkbox.js
  • Filesystem Path: src/library/modules/Questionnaire/Checkbox/Checkbox.js
  • Size: 681 Bytes
  • Content:
    /* stylelint-disable */
    .outer-container {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
      position: relative;
      overflow: hidden;
    }
    
    .scroll-container {
      width: 100%;
      mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,      
        rgba(0, 0, 0, 1) 70%,      
        rgba(0, 0, 0, 0) 100%      
      );
      margin-bottom: 24px;
    }
    
    .inner-content {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      width: 80%;
      position: absolute;
      z-index: 10;
    }
    
    .desktop-background-img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      z-index: -1;
    }
    
    .bg-image-mobile {
      display: none;
    }
    
    .left-panel {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
      text-align: left;
      color: #fff; 
      align-self: center;
      width: 50%;
    }
    
    .header-section {
      font-family: 'FS Dillon', sans-serif; 
      font-size: 15px;
      font-weight: 700;
      line-height: 20px;
      color: #aebde6;
      margin-bottom: 2%;
      display: flex;
      align-items: center;
    }
    
    .icon-style {
      position: absolute;
      left: -30px;
      width: 20px;
      height: 20px;
      object-fit: contain;
    }
    
    .text-section {
      font-family: 'FS Dillon', sans-serif; 
      font-size: 47.4px;
      line-height: 52px;
      font-weight: 700;
      color: white;
    }
    
    .selection-area {
      font-family: 'FS Dillon', sans-serif; 
      font-weight: 400;
      color: #aebde6;
      margin-top: 3%;
      font-size: 26.7px;
      line-height: 36px;
    }
    
    .right-panel {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      width: 35%;
      align-self: center;
    }
    
    .input-area-container {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
    }
    
    @media (max-width: 709px) {
      .inner-content {
        flex-direction: column;
        align-items: center;
        width: 90%;
      }
    
      .selection-area {
        font-size: 18px;
        line-height: 36px;
        padding-bottom: 2rem;
      }
    
      .left-panel,
      .right-panel {
        width: 100%;
        text-align: center;
      }
    
      .text-section {
        font-size: 31.1px;
        text-align: left;
        line-height: 40px;
      }
    
      .header-section {
        font-size: 11.26px;
        line-height: 16px;
        color: #e9ebf1; 
      }
    
      .icon-style {
        display: none;
      }
    
      .bg-image-mobile {
        display: block;
        width: 100%;
        height: auto;
      }
    }
    
    @media (min-width: 710px) and (max-width: 1023px) {
      .inner-content {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
      }
    
      .left-panel,
      .right-panel {
        width: 50%;
      }
    
      .text-section {
        font-size: 40px;
      }
    
      .header-section {
        font-size: 14px;
      }
    }
    
    @media (min-width: 1024px) {
      .text-section {
        font-size: 47.4px;
        width: 70%;
      }
    
      .header-section {
        font-size: 15px;
        line-height: 20px;
      }
    
      .bg-image-mobile {
        display: none;
      }
    }
      /* stylelint-enable */
  • URL: /components/raw/checkbox/Checkbox.scss
  • Filesystem Path: src/library/modules/Questionnaire/Checkbox/Checkbox.scss
  • Size: 2.9 KB
<div class="outer-container">
  <div class="inner-content">
    <div class="left-panel">
      <div class="header-section">
        <svg class="icon-style" width="16" height="2" viewBox="0 0 16 2" fill="none" xmlns="http://www.w3.org/2000/svg">
           <line y1="1" x2="16" y2="1" stroke="white" stroke-opacity="0.3" stroke-width="2"/>
        </svg>
        {{questionNumber}}
      </div>
      <div class="text-section">
        {{question}}
      </div>
      <div class="selection-area">
        {{dropdownLabel}}
      </div>
    </div>

    <div class="right-panel">
      <div class="input-area-container">
        <div class="scroll-container">
          {{render '@checkbox-container'}}
        </div>
        {{render '@cta' Next-cta merge="true" id="nextButton" disabled="true"}}
      </div>
    </div>
  </div>

  <img class="desktop-background-img" src="{{backgroundImage}}" alt="Background Image"/>
  <img src="{{mobilebackgroundimage}}" alt="Background Image" class="bg-image-mobile">
</div>