Skip to content
Snippets Groups Projects
Select Git revision
  • 251c151bfa56752425be5518335c4f30ae477fb4
  • master default protected
2 results

components.scss

Blame
  • components.scss 5.22 KiB
    @use "sass:map";
    @use "sass:color";
    
    .navbar {
      display: flex;
      width: 100%;
      margin-top: 24px;
      background-color: $dark-gray;
      text-transform: uppercase;
    
      .link {
        cursor: pointer;
        text-decoration: none;
        padding: 3px 12px 7px;
        color: $light-gray;
        font-size: 16px;
    
        &.active, &:hover {
          background-color: $red;
          color: $white;
        }
      }
    }
    
    .vitrine {
      margin-top: map-get($spacers, 4);
      display: flex;
      flex-direction: row;
      gap: map-get($spacers, 3);
      text-transform: uppercase;
    
      .main-frame {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 48px;
        background-color: $red;
        color: $white;
        flex-grow: 1;
    
        .mid {
          font-size: 24px;
        }
    
        .large {
          font-size: 64px;
        }
    
        .detail {
          .title {
            font-size: 20px;
          }
    
          .score {
            margin-top: 6px;
            font-size: 16px;
          }
    
          > *:not(:last-child) {
            margin-bottom: map-get($spacers, 3);
          }
        }
      }
    
      .seconds-frames {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: map-get($spacers, 3);
    
        .second-frame {
          display: flex;
          flex-direction: column;
          justify-content: flex-start;
          align-items: flex-start;
          background-size: cover;
          background-repeat: no-repeat;
          background-position: center;
          height: 220px;
          width: 404px;
    
          .header {
            width: 100%;
            display: flex;
            justify-content: flex-end;
            align-items: flex-start;
            padding: 16px;
            flex-grow: 1;
    
            .pos {
              display: flex;
              flex-direction: row;
              justify-content: center;
              align-items: center;
              border-radius: 24px;
              background-color: rgba($red, .8);
              width: 48px;
              height: 48px;
              color: $white;
              text-transform: uppercase;
    
              &.second {
                color: $black;
                background-color: rgba($white, .8);
              }
            }
          }
    
          .event-type {
            width: 100%;
            background-color: rgba($red, .8);
            color: $white;
            font-size: 12px;
            padding: 2px 8px;
          }
    
          .event-desc {
            width: 100%;
            display: flex;
            flex-direction: column;
            padding: 8px;
            background-color: rgba($white, 0.8);
    
            .event-meta-info {
              font-size: .75rem;
            }
          }
        }
      }
    }
    
    .page-content {
      margin-top: 64px;
    
      .menu {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    
        .title {
          color: $light-gray;
        }
    
        .link {
          width: 100%;
          align-items: flex-start;
          margin-top: 8px;
          padding: 6px 16px;
          background-color: $dark-gray;
          color: $light-gray;
          cursor: pointer;
          text-decoration: none;
          text-transform: uppercase;
    
          &.active, &:hover {
            background-color: $red;
            color: $white;
          }
        }
      }
    
      .content {
        display: flex;
        flex-direction: column;
        padding: 32px 24px;
        background-color: $white;
        width: 1076px;
    
        .news-cards {
          display: grid;
          grid-template-columns: repeat(3, 1fr);
          gap: map-get($spacers, 3);
        }
      }
    }
    
    .news-card {
      display: flex;
      flex-direction: column;
      width: 332px;
    
      .header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-self: stretch;
        align-items: center;
        background-color: $black;
        height: 212px;
    
        .logo img {
          filter: brightness(0.6);
        }
      }
    
      .desc {
        color: $dark-gray;
        font-size: .9rem;
      }
    }
    
    .btn {
      padding: 6px 16px;
      background-color: $red;
      color: $white;
      text-decoration: none;
    }
    
    footer {
      font-size: .9rem;
      margin-top: 64px;
      padding-top: 24px;
      padding-bottom: 24px;
      border-top: 4px solid $dark-gray;
      color: $light-gray;
    
      a {
        color: $red;
        text-decoration: none;
      }
    }
    
    .cars-showcase {
      position: relative;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: map-get($spacers, 3);
    
      &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: rgba(152, 152, 152, 0.25);
        backdrop-filter: blur(16px)
      }
    
      .card {
        width: auto;
    
        .header {
          margin-bottom: map-get($spacers, 2);
          border: $white 2px solid;
    
          img {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
          }
        }
    
        .content {
          .title {
            color: $white;
            font-size: 1.4rem;
          }
          .desc {
            color: $light-gray;
            line-height: 1;
            font-size: 0.9rem;
          }
        }
      }
    }
    
    .race-types-container {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: map-get($spacers, 3);
    
      .card {
        width: auto;
    
        .header {
          margin-bottom: map-get($spacers, 2);
          width: 100%;
    
          img {
            width: inherit;
          }
        }
    
        .content {
          .title {
            display: flex;
            align-items: center;
            gap: map-get($spacers, 1);
            color: $black;
            font-size: 1.4rem;
    
            img {
              filter: brightness(0);
            }
          }
          .desc {
            color: $dark-gray;
          }
        }
      }
    }