Skip to content
Snippets Groups Projects
style.scss 11.1 KiB
Newer Older
  • Learn to ignore specific revisions
  • Guilhem CARRON's avatar
    Guilhem CARRON committed
    * {
      margin: 0;
      line-height: 1;
      font-family: "Lato", sans-serif;
      color: white;
      box-sizing: border-box;
    }
    svg {
      overflow: visible;
    }
    
    $yellow: #f1c017;
    $black: #121212;
    $elec-color: #d87b39;
    $gaz-color: #45d1b8;
    $water-color: #3a98ec;
    $grey: #a0a0a0;
    
    $content-width: 1200px;
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
    $breakpoint: 1200px;
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
    body,
    html {
      overflow-x: hidden;
      background: $black;
    }
    
    @mixin nav-height() {
      height: 80px;
      @media all and(max-width:$breakpoint) {
        height: 75px;
      }
    }
    @mixin margin-nav-height() {
      margin-top: 80px;
      @media all and(max-width:$breakpoint) {
        margin-top: 75px;
      }
    }
    
    @mixin button($color, $bg-color) {
      cursor: pointer;
      display: flex;
      text-decoration: none;
      align-items: center;
      @media all and(min-width:$breakpoint) {
        & > div:not(:last-child) {
          margin-right: 1rem;
        }
      }
      img {
        margin-right: 1rem;
      }
      justify-content: space-between;
      background: $bg-color;
      color: $color;
      border-radius: 2px;
      width: 100%;
      height: 56px;
      max-width: fit-content;
      padding: 1rem;
      margin: 2rem 0;
      border: 0;
      transition: all 400ms ease;
      &:hover {
        box-shadow: 0px 0px 20px 0px $yellow;
      }
      span {
        font-weight: 900;
      }
    }
    .text-18-white {
      font-weight: 400;
      color: white;
      font-size: 1.125rem;
      line-height: 1.6rem;
    }
    .text-18-white-padding {
      font-weight: 400;
      padding-top: 2rem;
      color: white;
      font-size: 1.125rem;
      line-height: 1.6rem;
    }
    .text-18-black-padding {
      font-weight: 400;
      padding-top: 2rem;
      color: $black;
      font-size: 1.125rem;
      line-height: 1.6rem;
    }
    .text-16-black-padding {
      font-weight: 400;
      padding-top: 2rem;
      color: $black;
      font-size: 1rem;
      line-height: 1.3rem;
    }
    .text-18-black {
      font-weight: 400;
      color: $black;
      font-size: 1.125rem;
      line-height: 1.6rem;
    }
    .text-36-white {
      font-weight: 900;
      font-size: 2.25rem;
    }
    .text-36-black {
      font-weight: 900;
      font-size: 2.25rem;
      color: $black;
    }
    
    nav {
      @include nav-height();
      width: 100%;
      padding: 1rem;
      position: fixed;
      top: 0;
      z-index: 100;
      background: radial-gradient(
        74.83% 76.97% at 50% 13.64%,
        #343641 0%,
        #1b1c22 100%
      );
      display: grid;
      justify-items: end;
      align-items: center;
      grid-template-columns: 1.2fr 3fr 0.3fr;
      transition: all 300ms ease;
      .main-logo {
        grid-column: 1;
        display: flex;
        align-items: center;
        .beta-logo {
          width: 60px;
          margin-left: 0.7rem;
        }
      }
      .links {
        grid-column: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        & > a:not(:last-child) {
          margin-right: 2.5rem;
        }
        align-items: center;
        .navlink {
          display: inline-block;
          margin-right: 1.5rem;
          text-decoration: none;
          text-align: center;
        }
      }
    }
    .banner {
      @include margin-nav-height();
      height: 35px;
      background: $yellow;
      display: flex;
      overflow: hidden;
      align-items: center;
      & > p:not(:last-child) {
        margin-right: 6rem;
      }
      p {
        margin-left: -3rem;
        text-transform: uppercase;
        color: $black;
        font-weight: 900;
        white-space: nowrap;
        font-style: italic;
        @media all and(max-width:700px) {
          font-size: 0.95rem;
          text-align: center;
          margin: auto;
        }
      }
    }
    .main-cta {
      min-height: 580px;
      background-color: $black;
      margin-bottom: -7px;
      .container {
        max-width: $content-width;
        margin: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 580px;
        @media all and(min-width:$breakpoint) {
          & > div:not(:last-child) {
            margin-right: 2rem;
          }
        }
        .content-txt {
          .button {
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
            @include button($black, $yellow);
            font-size: 1.25rem;
            text-align: center;
            justify-content: center;
            font-weight: 700;
            background: radial-gradient(
                105.25% 64.58% at 49.68% 70.83%,
                rgba(226, 137, 4, 0.5) 0%,
                rgba(255, 255, 255, 0) 100%
              ),
              #f1c017;
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
          }
        }
        .mobile-illu {
          display: none;
        }
        .content-img {
          width: 100%;
          .illu {
            width: 112%;
          }
        }
      }
    }
    .explanation {
      min-height: 680px;
      background: radial-gradient(
        74.83% 76.97% at 50% 13.64%,
        #343641 0%,
        #1b1c22 100%
      );
      display: flex;
      text-align: center;
      .content {
        margin: auto;
        .compteurs {
          display: flex;
          align-items: center;
          justify-content: center;
          margin-top: 5rem;
          @media all and(min-width:$breakpoint) {
            & > *:not(:last-child) {
              margin-right: 0.8rem;
            }
          }
          span {
            color: $grey;
            text-transform: uppercase;
            font-size: 1.1rem;
          }
          .bloc {
            width: 280px;
            height: 280px;
            padding: 0.5rem 0.5rem 1rem 0.5rem;
            border: solid 1px;
            text-align: center;
            background: linear-gradient(180deg, #323339 0%, #25262b 100%);
            box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.55);
            border-radius: 4px;
            display: flex;
            flex-direction: column;
            position: relative;
    
            h3 {
              margin-top: 8rem;
              font-weight: 900;
              font-size: 2rem;
            }
            .compteur-img {
              max-height: 160px;
              position: absolute;
              top: -3rem;
              left: 0;
              right: 0;
              margin: auto;
            }
            p {
              padding-top: 0.5rem;
            }
            .provider-logo {
              margin-top: auto;
              display: flex;
              height: 35px;
              img {
                margin: auto;
              }
            }
          }
          .elec-color {
            border-color: rgba(216, 123, 57, 0.4);
            transition: all 300ms ease;
            &:hover {
              box-shadow: 0 0 10px 0 rgb(216, 123, 57);
            }
            h3 {
              color: $elec-color;
            }
          }
          .gaz-color {
            border-color: rgba(69, 209, 184, 0.4);
            transition: all 300ms ease;
            &:hover {
              box-shadow: 0 0 10px 0 rgb(69, 209, 184);
            }
            h3 {
              color: $gaz-color;
            }
          }
          .water-color {
            border-color: rgba(58, 152, 236, 0.4);
            transition: all 300ms ease;
            &:hover {
              box-shadow: 0 0 10px 0 rgb(58, 152, 236);
            }
            h3 {
              color: $water-color;
            }
          }
        }
      }
    }
    .security {
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
      min-height: 650px;
      background: $yellow;
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
      display: flex;
      .container {
        max-width: $content-width;
        margin: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        img {
          @media all and(min-width:$breakpoint) {
            margin-right: 4rem;
          }
          @media all and(max-width:$breakpoint) {
            margin-bottom: 1rem;
          }
        }
        p {
          max-width: 680px;
        }
        .button {
          @include button($yellow, $black);
          margin: auto;
          margin-top: 3rem;
          height: 50px;
          &:hover {
            box-shadow: 0px 0px 10px 3px $black;
          }
        }
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
      }
    }
    .test-ecolyo {
      min-height: 500px;
      background: radial-gradient(
        74.83% 76.97% at 50% 13.64%,
        #343641 0%,
        #1b1c22 100%
      );
      display: flex;
      text-align: center;
      .container {
        max-width: $content-width;
        margin: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        .button {
          @include button($black, $yellow);
          font-size: 1.25rem;
          text-align: center;
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
          justify-content: center;
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
          font-weight: 700;
          background: radial-gradient(
              105.25% 64.58% at 49.68% 70.83%,
              rgba(226, 137, 4, 0.5) 0%,
              rgba(255, 255, 255, 0) 100%
            ),
            #f1c017;
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
        }
      }
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
      .center-button {
        margin-top: 1rem;
        display: flex;
        justify-content: center;
      }
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
    }
    footer {
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
      min-height: 230px;
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
      background-color: black;
      width: 100%;
      .content {
        padding-top: 5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
        min-height: 230px;
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
        justify-content: space-between;
        h2 {
          text-align: center;
        }
        .button {
          @include button($black, $yellow);
          font-size: 1.25rem;
          text-align: center;
          justify-content: center;
          font-weight: 700;
          margin-top: -6rem;
          background: radial-gradient(
              105.25% 64.58% at 49.68% 70.83%,
              rgba(226, 137, 4, 0.5) 0%,
              rgba(255, 255, 255, 0) 100%
            ),
            #f1c017;
        }
        .bottom {
          display: flex;
          align-items: center;
          width: 100%;
          justify-content: space-between;
          padding: 1rem 2rem;
          .logos-footer {
            display: flex;
            img:nth-of-type(1) {
              width: 130px;
              margin-right: 2rem;
            }
            img:nth-of-type(2) {
              width: 85px;
            }
          }
          .contact {
            margin-left: -5.5rem;
            a {
              color: $yellow;
              font-weight: 700;
            }
          }
        }
    
        .info {
          display: flex;
          align-items: center;
          img {
            margin-right: 0.3rem;
          }
          margin-left: -5rem;
          a {
            text-decoration: none;
          }
        }
      }
    }
    
    @media all and(max-width:$breakpoint) {
      .text-36-white,
      .text-36-black {
        font-size: 1.85rem;
      }
      .navlink {
        display: none;
      }
      nav {
        grid-template-columns: 1fr;
        .button-column {
          .button {
            height: 44px;
            max-width: 120px;
            font-size: 1rem;
            text-align: center;
            display: none;
          }
        }
    
        .main-logo {
          margin: auto;
          img {
            max-width: 100px;
            &:nth-child(2) {
              width: 45px;
            }
          }
        }
        .links {
          display: none;
        }
      }
      .banner p {
        margin-left: 0.6rem;
      }
      .main-cta {
        .mobile-illu {
          padding: 2rem 0 1rem 0;
          display: block !important;
          @media all and(max-width: 600px) {
            width: 125% !important;
            margin: 1.5rem 0;
          }
        }
        .desktop-illu {
          display: none;
        }
        .container {
          .content-img {
            min-height: 0;
            .illu {
              width: 100%;
              margin-left: -0.5rem;
            }
          }
        }
      }
      * > .container {
        padding: 2rem;
        flex-direction: column;
        & > div {
          margin-bottom: 2.5rem;
        }
      }
      .explanation {
        padding: 4rem 2rem;
        .content {
          .compteurs {
            flex-direction: column;
            & > div {
              margin-bottom: 4rem;
            }
    
            span {
              margin-bottom: 4rem;
            }
          }
        }
      }
      .security {
        padding: 2rem 0;
        .security-shield {
          width: 40%;
          margin-bottom: -2rem;
        }
        .container .button {
          width: 100%;
          font-size: 0.95rem;
          padding: 1rem;
          text-align: center;
        }
      }
    
    Hugo NOUTS's avatar
    Hugo NOUTS committed
      .test-ecolyo {
        padding: 2rem 0;
        .content .button {
          width: 100%;
          font-size: 0.95rem;
          padding: 1rem;
          text-align: center;
    
    Guilhem CARRON's avatar
    Guilhem CARRON committed
        }
      }
      footer {
        .content {
          .button {
            margin-top: 1rem;
            margin-bottom: 3rem;
          }
          .bottom {
            flex-direction: column;
            & > div:not(:last-child) {
              margin-bottom: 2rem;
            }
            .contact {
              order: 1;
              margin: auto;
              text-align: center;
            }
            .logos-footer {
              order: 2;
              max-width: 250px;
              margin-left: 1.5rem;
            }
            .info {
              margin-left: 0;
              order: 3;
              transform: scale(0.8);
            }
          }
        }
      }
    }