sparkletown/sparkle

View on GitHub
src/pages/Account/Account.scss

Summary

Maintainability
Test Coverage
@import "scss/constants";

$sand: #937c63;

$top-margin: 20px;
$vertical-padding: 20px;
$side-padding: 30px;
$border-radius: 28px;
$large-shadow: box-shadow--large(var(--content--under-30a));
$auth-icon-sso-size: 35px;
$login-wide-max-width: 1140px;
$auth-body-max-width: 365px;

$modal-max-width: 540px;

.checkbox {
  display: block;
  text-align: left;
  margin-bottom: 1rem;
  cursor: pointer;
  padding: 6px 0 6px 40px;
  &:before {
    content: "";
    position: absolute;
    margin-left: -40px;
    margin-top: -6px;
    height: 30px;
    width: 30px;
    border-radius: 15px;
    background-color: opaque-white(0.12);
    box-shadow: 0 0 0 2px opaque-white(0.4);
  }
  &:hover {
    &:before {
      box-shadow: 0 0 0 2px opaque-white(1);
    }
  }
  &.checkbox-checked {
    &:before {
      background-color: $primary--over;
      box-shadow: 0 0 0 2px opaque-white(0);
      background-image: url(/assets/icons/checkbox-checked.png);
      background-size: 30px 30px;
    }
  }
}

.page-container {
  background-color: $secondary--live;
  flex-direction: column;
  flex: 1;
  padding-bottom: $spacing--xxl;

  .login-container {
    align-self: center;

    .header-message {
      text-align: center;
    }

    .subheader-message {
      text-align: center;
    }
  }
}

.page-container-onboarding {
  max-height: 100%;
  overflow: hidden;
  position: absolute;
  top: 20%;
  left: 20%;
  right: 20%;

  .login-welcome-title {
    font-style: italic;
    font-weight: 900;
    text-align: center;
  }

  .login-welcome-subtitle {
    text-align: center;
    padding-bottom: $spacing--xxl;
  }

  .create-account__button {
    align-self: center;
  }
}

.hero-logo {
  &.coreality {
    margin: 0 auto 50px;
    background-image: url(/assets/images/coreality-logo-sparkles.png);
    width: 270px;
    height: 106px;
    background-size: 270px 106px;
  }

  &.sparkle {
    margin: 0 auto;
    background-image: url(/assets/images/Sparkle_logo_white_yellow.png);
    background-repeat: no-repeat;
    background-position: center;
    width: 280px;
    height: 225px;
    background-size: 280px;
  }
}

.secondary-action {
  margin-top: 2rem;
  font-size: 1.2em;
  opacity: 0.8;
  width: 100%;
  margin: 10px auto;
  text-align: center;
}

@media (max-width: $auth-container-max-width) {
  .login-container {
    border-radius: 0;
  }
}

.splash-page-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-align: center;
  .playa-img {
    opacity: 0.5;
    width: 100%;
  }
  .step-container {
    max-height: 100%;
    position: absolute;
    top: 10%;
    left: 20%;
    right: 20%;
  }
  .step0-container {
    top: 50%;
    max-width: $auth-container-max-width;
    margin: 0 auto;
    padding: $side-padding;
    background-color: $secondary--live;
    box-shadow: $large-shadow;
    text-align: center;
    border-radius: $border-radius;
    .enter-button {
      margin-top: 15px;
    }
  }
  .welcome-to-the-burn {
    position: absolute;
    top: 25%;
    left: 20%;
    right: 20%;
    height: 100px;
    line-height: 100px;
    font-size: 45px;
    font-weight: bolder;
    color: black;
    text-shadow: 1px 1px $content--over;
  }
  .enter-the-burn {
    position: absolute;
    top: 40%;
    left: 30%;
    right: 30%;
    height: 200px;
    padding: 20px;
    font-size: 18px;
    background-color: darken($sand, 20%);
    border: solid 1px black;
    .enter-button {
      margin-top: 30px;
    }
  }
  .ten-principles-burning {
    max-width: $auth-container-max-width;
    margin: 0 auto;
    padding: $side-padding;
    background-color: $content--under;
    box-shadow: $large-shadow;
    text-align: center;
    border-radius: $border-radius;
    overflow-y: auto;
    bottom: 10%;

    .principle-name {
      font-weight: bold;
      font-size: 15px;
      cursor: pointer;
    }
    .principle-description {
      font-size: 12px;
      cursor: pointer;
    }
    .form {
      margin-top: 2rem;
      //width: 40%;
      padding: 1rem;
      display: inline-block;
      img {
        cursor: pointer;
      }
      .video-name {
        // display: inline-block;
        // text-align: left;
        font-weight: bold;
        font-size: 15px;
        cursor: pointer;
      }
      .video-description {
        // display: inline-block;
        //text-align: left;
        font-size: 12px;
        cursor: pointer;
      }
      .video-thumb {
        display: inline-block;
        cursor: pointer;
      }
    }
    button {
      margin-top: 2rem;
    }
  }
  .step4-container {
    top: 20%;
    bottom: 20%;
    max-width: $auth-container-max-width;
    margin: 0 auto;
    padding: $side-padding;
    background-color: $content--under;
    box-shadow: $large-shadow;
    text-align: center;
    border-radius: $border-radius;
    .step-4-buttons {
      width: 100%;
      padding: 15px;
      border-radius: $border-radius;
      background-color: $secondary--live;
      margin-bottom: 20px;
      cursor: pointer;
      height: 130px;
      transition: all 400ms $transition-function;
      &:hover {
        box-shadow: 0 0 0 4px opaque-white(0.62);
        background-color: lighten($secondary--live, 4%);
      }
    }
  }
  .step5-container {
    top: 8%;
    bottom: 8%;
    max-width: $auth-container-max-width;
    margin: 0 auto;
    padding: $side-padding;
    background-color: $content--under;
    box-shadow: $large-shadow;
    text-align: center;
    border-radius: $border-radius;
    .microphone {
      width: 410px;
      background-color: black;
    }
    .microphone-button {
      width: 200px;
      height: 30px;
      text-align: center;
      line-height: 30px;
      background-color: grey;
      border: none;
      margin-bottom: 15px;
    }
  }
  .step6b-container {
    max-width: $login-wide-max-width;
    margin: 0 auto;
    padding: $side-padding;
    background-color: $secondary--live;
    box-shadow: $large-shadow;
    text-align: center;
    border-radius: $border-radius;
    .step6b-welcome-message {
      margin-bottom: 30px;
    }
  }

  .navigation-guide {
    text-align: left;
    .heading {
      .navigating-header {
        font-size: 4rem;
        font-weight: 700;
        text-transform: uppercase;
        color: $sand;
      }
      .logo-container {
        text-align: right;
        vertical-align: middle;
        height: 100%;

        .logo {
          margin-top: 1rem;
        }
      }
    }
    .content {
      .action-title {
        font-size: 2.4rem;
        font-weight: 700;
        text-transform: uppercase;
        color: rgb(228, 204, 99);
      }
      .action-details {
        font-size: 0.8rem;
        font-weight: 700;
      }
    }
    .cta {
      margin-top: 2rem;
    }
  }
}

.modal-content {
  width: 100%;
  max-width: $modal-max-width;
  margin: 0 auto;
  padding: 20px 0 0 0;
  background-color: $content--under;
  box-shadow: $large-shadow;
  text-align: left;
  border-radius: $border-radius;
  overflow: hidden;

  .modal-tabs {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    align-items: center; /* Align Items Vertically */
    justify-content: space-around;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--accent--over-20a);
    overflow-x: auto;
    overflow-y: hidden;
    button {
      background-color: transparent;
      border: none;
      display: block;
      position: relative;
      color: $content--over;
      text-align: center;
      padding: 4px 10px;
      opacity: 0.7;
      font-weight: 400;
      &:hover {
        opacity: 1;
      }
      &.selected {
        opacity: 1;
        font-weight: bold;
        color: yellow;
        outline: none;
        &:after {
          content: "";
          position: absolute;
          height: 2px;
          border-radius: 4px;
          width: 100%;
          background-color: $content--over;
          left: 0;
          bottom: -1px;
        }
      }
    }
  }
}