<div class="pop_up_model open">

    <div class="modale opened messOpen" aria-hidden="true">
        <div class="modal-dialog modal-xl">
            <div class="modal-header mb-0">
                <a href="#" class="btn-close closemodale messCloseBtn" aria-hidden="true"></a>
            </div>
            <div class="modal-body messBody">
                <div class="message_wrap">
                    <h2> Stay informed</h2>
                    <p>Get the latest info, factsheets and developments of your selected funds conveniently delivered to your inbox. </p>

                    <form id="popForm" action="" method="">

                        <div class="subsc_wrap">
                            <p>Fonds you want to subscribe</p>
                            <div class="checBoxes">
                                <div class="form-group">
                                    <input type="checkbox" id="tech">
                                    <label for="tech">Technology Fund</label>
                                </div>
                                <div class="form-group">
                                    <input type="checkbox" id="Islamic">
                                    <label for="Islamic">Islamic Fund</label>
                                </div>
                                <div class="form-group">
                                    <input type="checkbox" id="Medical">
                                    <label for="Medical">Medical Fund</label>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="nameInput" class="form-label">Name*</label>
                            <input type="text" class="form-control" id="nameInput" placeholder="Write your name" required>
                        </div>

                        <div class="form-group">
                            <label for="emailInput" class="form-label">E-Mail*</label>
                            <input type="email" class="form-control" id="emailInput" placeholder="Write your email" required>
                        </div>

                        <div class="form-group">
                            <label for="phoneInput" class="form-label">Phone</label>
                            <input type="tel" class="form-control" id="phoneInput" placeholder="+41-22-786-7261">
                        </div>

                        <a class="btn btn-outline-secondary form-btn" href="#"> Subscribe </a>

                    </form>

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

</div>
<div class="pop_up_model open">

  <div class="modale opened messOpen" aria-hidden="true">
    <div class="modal-dialog modal-xl">
      <div class="modal-header mb-0">
        <a href="#" class="btn-close closemodale messCloseBtn" aria-hidden="true"></a>
      </div>
      <div class="modal-body messBody">
        <div class="message_wrap">
          <h2> {{title}}</h2>
          <p>{{desc}} </p>
          
          <form id="popForm" action="" method="">

                <div class="subsc_wrap">
                  <p>Fonds you want to subscribe</p>  
                  <div class="checBoxes">
                    <div class="form-group">
                      <input type="checkbox" id="tech">
                      <label for="tech">Technology Fund</label>
                    </div>
                    <div class="form-group">
                      <input type="checkbox" id="Islamic">
                      <label for="Islamic">Islamic Fund</label>
                    </div>
                    <div class="form-group">
                      <input type="checkbox" id="Medical">
                      <label for="Medical">Medical Fund</label>
                    </div>
                  </div>
                </div>

              <div class="form-group">
                <label for="nameInput" class="form-label">Name*</label>
                <input type="text" class="form-control" id="nameInput" placeholder="Write your name" required>
              </div>

              <div class="form-group">
                <label for="emailInput" class="form-label">E-Mail*</label>
                <input type="email" class="form-control" id="emailInput" placeholder="Write your email" required>
              </div>

              <div class="form-group">
                <label for="phoneInput" class="form-label">Phone</label>
                <input type="tel" class="form-control" id="phoneInput" placeholder="+41-22-786-7261">
              </div>

              <a class="btn btn-outline-secondary form-btn" href="{{btn_link}}"> {{btnText}} </a>

          </form>

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

</div>
{
  "bgGrey": false,
  "title": "Stay informed",
  "btnText": "Subscribe",
  "btn_link": "#",
  "desc": "Get the latest info, factsheets and developments of your selected funds conveniently delivered to your inbox."
}
  • Content:
    import $ from "jquery";
    
    $(document).ready(function() {
      $('.pop_up_model .closemodale').on('click', function(e) {
        e.preventDefault();
        $(this).closest('.modale').removeClass('opened');
        $(this).closest('.pop_up_model').removeClass('open');
        return false;
      });
    
    
    
    
      $(".form-group").click(function() {
        $(".form-group").removeClass("active");
        $(this).addClass("active");
      });
    
    
    });
    
    $('body').click(function(e) {
      if (!$(e.target).closest('.modale').length){
          $(".modale").removeClass('opened');
          $(".pop_up_model").removeClass('open');
      }
    });
    
  • URL: /components/raw/pop_up/pop_up.js
  • Filesystem Path: components/03-components/pop_up/pop_up.js
  • Size: 580 Bytes
  • Content:
    .pop_up_model{
      position: relative;
        &.open{
          &::before {
            display: block;
            content: "";
            background: rgba(0, 0, 0, 0.7);
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1;
          }
        }
        .subsc_wrap {
          margin-bottom: 20px;
          @include media-breakpoint-down(md) {
            margin-bottom: 15px;
          }
        }
        .webform-confirmation{
          display: flex;
          align-items: center;
          justify-content: center;
        }
    }
    
    .modale {
      display: none;
      &.opened {
        display: block;
      }
      .modal_title {
        color: $black;
        font-size: 28px;
        line-height: 31px;
        padding-left: 10px;
        @include media-breakpoint-down(lg) {
          font-size: 19px;
        }
      }
    }
    
    .opened {
      &.messOpen{
        .modal-dialog {
          @include media-breakpoint-down(lg) {
            overflow: hidden;
            height: 500px;
          }
        }
      }
      .modal-dialog {
        background: #fefefe;
        border: #333333 solid 0px;
        border-radius: 0px;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        right: 0;
        margin: auto;
        height: 600px;
        overflow-y: auto;
        z-index: 11;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        -webkit-transition: -webkit-transform 0.3s ease-out;
        -moz-transition: -moz-transform 0.3s ease-out;
        -o-transition: -o-transform 0.3s ease-out;
        transition: transform 0.3s ease-out;
        padding: 30px 50px;
        pointer-events: visible;
        @include media-breakpoint-down(lg) {
          padding: 25px;
          overflow-y: scroll !important;
          overflow: scroll;
          height: 600px !important;
        }
        @media only screen and (max-width: 575px) {
          margin-left: 15px;
          margin-right: 15px;
          padding: 20px;
          height: 540px !important;
        }
        &::-webkit-scrollbar {
          width: 4px !important;
          display: block !important;
        }
    
        &::-webkit-scrollbar-track {
          background: transparent !important;
        }
    
        &::-webkit-scrollbar-thumb {
          background-color: #120f29 !important;
          border-radius: 4px !important;
          border: 3px solid transparent !important;
        }
        &.has-confirmation-message {
          height: 300px;
    
          @media only screen and (max-width: 575px) {
            height: 270px !important;
          }
        }
      }
    }
    
    .modal-header {
      border: 0;
      padding: 0;
      margin-bottom: 30px;
      height: 0;
      @include media-breakpoint-down(lg) {
        margin-bottom: 6px;
      }
      .messCloseBtn{
          margin: -0.5rem -1rem 0.5rem auto;
      }
    }
    
    .modal-body {
      padding: 0;
      &.messBody{
      }
      .message_wrap{
        h2{
          color: #000;
          font-size: 40px;
          font-family: 'PlayfairDisplay-SemiBold';
          line-height: 50px;
          margin-bottom: 10px;
          @include media-breakpoint-down(lg) {
            font-size: 26px;
            line-height: 24px;
          }
        }
        p{
          color: #000;
          font-size: 17px;
          font-family: 'OpenSans-Regular';
          font-weight: 400;
          line-height: 28px;
          margin-bottom: 20px;
          max-width: 100%;
          @include media-breakpoint-down(lg) {
            font-size: 15px;
            line-height: 23px;
            margin-bottom: 5px;
          }
        }
      }
      .button-group {
        margin-top: 20px;
        @include media-breakpoint-down(lg) {
          margin-top: 5px;
        }
        input {
          @include media-breakpoint-down(lg) {
            font-size: 14px !important;
            height: 52px;
          }
        }
      }
    }
    
    .btn-close {
      background-image: url("/images/close-small.svg");
      background-size: 25px;
    }
    
    
    .pop_up_model {
      position: relative;
        form {
          .form-group {
            cursor: pointer;
            display: flex;
            border-bottom: 1px solid #9797974d;
            padding-bottom: 15px;
            margin-bottom: 20px;
    
            @include media-breakpoint-down(md) {
              display: block;
              padding-bottom: 5px;
              margin-bottom: 10px;
            }
    
            &.active {
              border-color: $secondary;
    
              .form-control {
                &::placeholder {
                  visibility: hidden;
                }
              }
            }
    
            &:hover {
              border-color: $secondary;
    
              .form-control {
                &::placeholder {
                  opacity: 1;
                }
              }
            }
    
            &.error {
              border-color: #a71a1a;
            }
    
            label {
              color: #120f29;
              font-size: 17px;
              font-family: "OpenSans-Regular";
              margin: 0;
              width: 140px;
    
              @include media-breakpoint-down(md) {
                margin-bottom: 5px;
                font-size: 15px;
              }
            }
    
            .form-control {
              padding: 0;
              font-size: 17px;
              color: #120f29;
    
              &::placeholder {
                opacity: 0.4;
              }
            }
          }
    
          .form-item--error-message {
            color: #a71a1a;
          }
        }
    
        .btn-outline-secondary {
          font-size: 16px;
          width: 260px;
          margin-top: 15px;
          @include media-breakpoint-down(md) {
            width: 100%;
          }
        }
    
    
      .contact-note {
        @include media-breakpoint-down(md) {
          margin: 0 -30px;
        }
    
        .contact-note-wraper {
          background-color: rgba(119, 119, 118, 0.1);
          padding: 50px 30px 50px 45px;
          width: 340px;
          position: absolute;
          top: 44%;
          right: 0;
    
          @media only screen and (max-width: 1060px) {
            position: initial;
            margin-top: 75px;
            width: 100%;
          }
    
          @include media-breakpoint-down(md) {
            padding: 35px;
          }
    
          .contactLink {
            border-left: 2px solid $secondary;
    
            a {
              display: block;
              color: #120f29;
              font-size: 17px;
              font-family: "OpenSans-SemiBoldItalic";
              line-height: 29px;
              padding-bottom: 10px;
              padding-left: 10px;
              text-decoration: none;
    
              &:last-child {
                padding-bottom: 0;
              }
    
              &:hover {
                span {
                  color: $secondary;
                }
              }
            }
          }
        }
      }
    }
    
    
    .subsc_wrap {
      display: flex;
      border-bottom: 1px solid #9797974d;
      padding-bottom: 15px;
      margin-bottom: 50px;
      @include media-breakpoint-down(md) {
        display: block;
        padding-bottom: 5px;
      }
      p {
        color: #120f29;
        font-size: 17px;
        line-height: 29px;
        font-family: 'OpenSans-Regular';
        max-width: 220px;
      }
    
      .checBoxes {
        display: flex;
        align-items: center;
        margin-left: 30px;
        width: 100%;
        @include media-breakpoint-down(md) {
          margin-left: 0;
          margin-top: 15px;
        }
        @media only screen and (max-width: 520px) {
          display: block;
        }
        .form-group {
          border-bottom: 0 !important;
          margin: 0 20px;
          margin-bottom: 0 !important;
          @media only screen and (max-width: 1200px) {
            margin: 0 10px;
          }
          @media only screen and (max-width: 520px) {
            display: block;
            margin: 0;
          }
          &:first-child{
            margin-left: 0;
          }
          &:last-child{
            margin-right: 0;
          }
          input {
            padding: 0;
            height: initial;
            width: initial;
            margin-bottom: 0;
            display: none;
            cursor: pointer;
          }
    
          label {
            position: relative;
            cursor: pointer;
            width: auto !important;
            display: flex;
            align-items: center;
            &::before {
              content: '';
              -webkit-appearance: none;
              background-color: transparent;
              border: 1px solid #000;
              padding: 8px;
              display: inline-block;
              position: relative;
              vertical-align: middle;
              cursor: pointer;
              margin-right: 10px;
            }
          }
    
          input:checked+label:after {
            content: '';
            display: block;
            position: absolute;
            top: 0px;
            bottom: 0;
            margin: auto;
            left: 1px;
            width: 16px;
            height: 18px;
            background-color: #000;
          }
        }
      }
    }
    
  • URL: /components/raw/pop_up/pop_up.scss
  • Filesystem Path: components/03-components/pop_up/pop_up.scss
  • Size: 8 KB

There are no notes for this item.