<div class="contact-form bg-white">
    <div class="container">
        <div class="textImg-wrap">
            <div class="title-warp">
                <h2 class="title"> We’re here</h2>
                <h1 class="main-title">Get in touch!</h1>
            </div>
        </div>

        <div class="contact-from-wraper">

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

                <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>

                <div class="form-group">
                    <label for="textArea" class="form-label">Message*</label>
                    <textarea rows="6" class="form-control textarea" placeholder="Leave a comment here" id="textArea" required contenteditable></textarea>
                </div>

                <div class="subsc_wrap">
                    <p>Subscribe to the factsheet</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>

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

            </form>

        </div>

        <div class="contact-note">
            <div class="contact-note-wraper">
                <div class="contactLink">
                    <a class="link-item" href="mailto:bluebox@info.com"> Email: <span>bluebox@info.com</span></a>
                    <a class="link-item" href="tel:+2303-039939- 39"> Telephone: <span>2303-039939-39</span></a>
                </div>
            </div>
        </div>

    </div>
</div>
<div class="contact-form {{ bgGrey ? 'bg-grey' : 'bg-white' }}">
  <div class="container">
    <div class="textImg-wrap">
      <div class="title-warp">
        <h2 class="title"> {{title}}</h2>
        <h1 class="main-title">{{mainTitle}}</h1>
      </div>
    </div>

    <div class="contact-from-wraper">



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

      <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>

      <div class="form-group">
        <label for="textArea" class="form-label">Message*</label>
         <textarea rows="6" class="form-control textarea" placeholder="Leave a comment here" id="textArea" required contenteditable></textarea>
      </div>

      <div class="subsc_wrap">
        <p>Subscribe to the factsheet</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>

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

    </form>

    </div>

    <div class="contact-note">
      <div class="contact-note-wraper">
        <div class="contactLink">
          <a class="link-item" href="{{emailLink}}"> {{emailText}} <span>{{email}}</span></a>
          <a class="link-item" href="{{telLink}}"> {{telText}} <span>{{tel}}</span></a>
        </div>
      </div>
    </div>



  </div>
</div>
{
  "bgGrey": false,
  "title": "We’re here",
  "mainTitle": "Get in touch!",
  "btnText": "Send message",
  "btn_link": "#",
  "emailText": "Email:",
  "email": "bluebox@info.com",
  "emailLink": "mailto:bluebox@info.com",
  "telText": "Telephone:",
  "tel": "2303-039939-39",
  "telLink": "tel:+2303-039939- 39"
}
  • Content:
    import $ from "jquery";
    
    $(document).ready(function() {
      $(".form-group").click(function() {
        $(".form-group").removeClass("active");
        $(this).addClass("active");
      });
    
      const textarea = document.querySelector("textarea");
    
      if (textarea) {
        textarea.addEventListener("keydown", autosize);
      }
    
      function autosize() {
        const el = this;
        setTimeout(function() {
          el.style.cssText = "height:auto; padding:0";
          el.style.cssText = "height:" + el.scrollHeight + "px";
        }, 0);
      }
    });
    
  • URL: /components/raw/contact_form/contact_form.js
  • Filesystem Path: components/03-components/contact_form/contact_form.js
  • Size: 512 Bytes
  • Content:
    .contact-form {
      padding: 150px 0;
      position: relative;
    
      // @include media-breakpoint-down(lg) {
      //   padding: 80px 0;
      // }
      .container {
        max-width: 1030px;
        padding: 0 15px;
      }
    
      .textImg-wrap {
        max-width: 680px;
    
        .title-warp {
          padding-bottom: 120px;
    
          @include media-breakpoint-down(lg) {
            padding-bottom: 60px;
          }
    
          .title {
            font-size: 17px;
            font-family: "OpenSans_light";
            line-height: 23px;
            color: #120f29;
          }
    
          .main-title {
            font-size: 60px;
            font-family: "PlayfairDisplay-Bold";
            color: #120f29;
            margin-bottom: 0;
    
            @include media-breakpoint-down(lg) {
              font-size: 40px;
            }
          }
        }
      }
    
      .contact-from-wraper {
        max-width: 745px;
    
        @media only screen and (max-width: 1200px) {
          max-width: 680px;
        }
    
        form {
          .form-group {
            cursor: pointer;
            display: flex;
            border-bottom: 1px solid #9797974d;
            padding-bottom: 15px;
            margin-bottom: 50px;
    
            @include media-breakpoint-down(md) {
              display: block;
            }
    
            &.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: 25px;
              }
            }
    
            .form-control {
              padding: 0;
              font-size: 17px;
              color: #120f29;
    
              &::placeholder {
                opacity: 0.4;
              }
            }
          }
        }
    
        .btn-outline-secondary {
          font-size: 16px;
          width: 260px;
    
          @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;
      }
      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: 30px;
        }
        @media only screen and (max-width: 520px) {
          display: block;
        }
        .webform-options-display-three-columns{
          max-width: 100% !important; 
          margin-top: 0.4em !important; 
          column-count: initial !important;
          display: flex !important;
          align-items: center !important;
          width: 100% !important;
          @media only screen and (max-width: 520px) {
            display: block !important;
            margin-top: 30px !important;
          }
        }
        .form-group,
        .form-item,
        .js-form-item {
          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/contact_form/contact_form.scss
  • Filesystem Path: components/03-components/contact_form/contact_form.scss
  • Size: 5.5 KB

There are no notes for this item.