Skip to content

Building 70 Projects ranging from beginner to advanced so anyone can — learn from, build upon, use as a reference, or even copy directly. Owned by my cybersecurity company 👇

11.4 KB
Raw Blame
// ===================
// ©AngelaMos | 2026
// landing.module.scss
// ===================

@use '../../styles/tokens' as *;
@use '../../styles/fonts' as *;
@use '../../styles/mixins' as *;

.page {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  inline-size: 100%;
  max-inline-size: 88rem;
  margin-inline: auto;
  padding-inline: $space-4;
  padding-block-end: $space-8;
  gap: $space-6;

  @include breakpoint-up('md') {
    padding-inline: $space-8;
    gap: $space-8;
  }
}

.hero {
  display: flex;
  flex-direction: column;
  gap: $space-3;
  padding-block-start: $space-6;
  max-inline-size: 56rem;

  @include breakpoint-up('md') {
    padding-block-start: $space-10;
  }
}

.headline {
  font-family: $font-display;
  font-size: clamp(3rem, 11vw, 8.5rem);
  letter-spacing: -0.04em;
  line-height: 0.88;
  color: $ink;
  margin: 0;
  text-transform: uppercase;
}

.latin {
  font-family: $font-mono;
  font-size: $font-size-xs;
  letter-spacing: $tracking-wider;
  color: $ink-soft;
  margin: 0;
  text-transform: lowercase;
  font-style: italic;
}

.purpose {
  font-family: $font-sans;
  font-size: clamp(0.95rem, 1.6vw, 1.125rem);
  line-height: $line-height-snug;
  color: $ink;
  max-inline-size: 42rem;
  margin: 0;
  margin-block-start: $space-3;
  text-wrap: balance;
}

.main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: $space-8;
  padding-block-start: $space-2;
}

.form {
  display: flex;
  flex-direction: column;
  gap: $space-10;
  max-inline-size: 56rem;
  inline-size: 100%;
}

.section {
  display: flex;
  flex-direction: column;
  gap: $space-3;
}

.sectionHead {
  display: flex;
  align-items: center;
  gap: $space-3;
}

.sectionIndex {
  font-family: $font-mono;
  font-size: $font-size-3xs;
  letter-spacing: $tracking-wider;
  text-transform: uppercase;
  color: $ink-mute;
  white-space: nowrap;
}

.sectionRule {
  flex: 1 1 auto;
  block-size: $hairline;
  background-color: $rule-hair;
}

.sectionTitle {
  font-family: $font-sans;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: $line-height-tight;
  text-transform: uppercase;
  color: $ink;
  margin: 0;
}

.sectionBody {
  font-family: $font-sans;
  font-size: $font-size-sm;
  line-height: $line-height-snug;
  color: $ink-soft;
  max-inline-size: 38rem;
  margin: 0;
}

.sectionContent {
  display: flex;
  flex-direction: column;
  gap: $space-5;
  padding-block-start: $space-3;
}

.typeGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: $space-3;
  border: none;
  padding: 0;
  margin: 0;
  min-inline-size: 0;

  &[data-invalid='true'] {
    outline: $hairline solid $alarm;
    outline-offset: $space-2;
  }

  @include breakpoint-up('sm') {
    grid-template-columns: repeat(2, 1fr);
  }

  @include breakpoint-up('md') {
    grid-template-columns: repeat(3, 1fr);
  }

  @include breakpoint-up('lg') {
    grid-template-columns: repeat(4, 1fr);
  }
}

.srOnly {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.typeCard {
  position: relative;
  display: grid;
  grid-template-areas:
    'idx glyph'
    'name name'
    'code code'
    'blur blur';
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: $space-2 $space-3;
  padding: $space-4;
  background-color: $paper;
  border: $hairline solid $rule;
  text-align: left;
  cursor: pointer;
  transition: background-color $duration-fast $ease-out,
    color $duration-fast $ease-out;

  &:hover {
    background-color: $paper-deep;
  }

  &:focus-visible {
    outline: $hairline-bold solid $ink;
    outline-offset: $space-1;
  }

  &[data-selected='true'] {
    background-color: $ink;
    color: $paper;
    border-color: $ink;

    .typeIndex,
    .typeCode {
      color: $paper-edge;
    }

    .typeBlurb {
      color: $paper-edge;
    }
  }

  &[data-disabled='true'] {
    cursor: not-allowed;
    background-color: $paper-deep;
    border-color: $rule-soft;
    border-style: dashed;
    opacity: 0.55;

    &:hover {
      background-color: $paper-deep;
    }

    .typeIndex,
    .typeName,
    .typeCode,
    .typeBlurb {
      color: $ink-mute;
    }

    .typeGlyph {
      opacity: 0.5;
    }
  }
}

.typeDisabledTag {
  position: absolute;
  inset-block-start: $space-2;
  inset-inline-end: $space-2;
  padding-block: 2px;
  padding-inline: $space-1-5;
  background-color: $paper;
  border: $hairline solid $rule-soft;
  font-family: $font-mono;
  font-size: $font-size-3xs;
  letter-spacing: $tracking-wider;
  text-transform: uppercase;
  color: $ink-mute;
}

.typeIndex {
  grid-area: idx;
  font-family: $font-mono;
  font-size: $font-size-3xs;
  letter-spacing: $tracking-wider;
  color: $ink-mute;
}

.typeGlyph {
  grid-area: glyph;
  justify-self: end;
  color: inherit;
}

.typeName {
  grid-area: name;
  font-family: $font-sans;
  font-weight: 700;
  font-size: $font-size-lg;
  line-height: $line-height-tight;
  letter-spacing: -0.02em;
  color: inherit;
}

.typeCode {
  grid-area: code;
  font-family: $font-mono;
  font-size: $font-size-3xs;
  letter-spacing: $tracking-wider;
  text-transform: uppercase;
  color: $ink-mute;
}

.typeBlurb {
  grid-area: blur;
  font-size: $font-size-xs;
  line-height: $line-height-snug;
  color: $ink-soft;
}

.fieldError {
  font-family: $font-mono;
  font-size: $font-size-3xs;
  letter-spacing: $tracking-wider;
  text-transform: uppercase;
  color: $alarm;
  margin: 0;
}

.errorBlock,
.statusBlock {
  padding: $space-4;
  border: $hairline solid $rule;
  background-color: $paper-deep;
  font-family: $font-mono;
  font-size: $font-size-xs;
  letter-spacing: $tracking-wide;
  color: $ink-soft;
}

.errorBlock {
  border-color: $alarm;
  color: $alarm-deep;
}

.channelToggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: $hairline solid $rule;
  padding: 0;
  margin: 0;
  min-inline-size: 0;
}

.channelOption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: $space-1;
  padding-block: $space-3;
  padding-inline: $space-4;
  background-color: $paper;
  text-align: left;
  cursor: pointer;
  border: none;
  transition: background-color $duration-fast $ease-out;

  &:hover {
    background-color: $paper-deep;
  }

  & + & {
    border-inline-start: $hairline solid $rule;
  }

  &[data-active='true'] {
    background-color: $ink;
    color: $paper;
  }
}

.channelLabel {
  font-family: $font-mono;
  font-size: $font-size-2xs;
  font-weight: $font-weight-semibold;
  letter-spacing: $tracking-wider;
  text-transform: uppercase;
  color: inherit;
}

.channelNote {
  font-size: $font-size-xs;
  color: inherit;
  opacity: 0.7;
}

.subgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: $space-4;

  @include breakpoint-up('md') {
    grid-template-columns: 1fr 1fr;
  }
}

.keyGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: $space-2;
  border: none;
  padding: 0;
  margin: 0;
  min-inline-size: 0;

  @include breakpoint-up('sm') {
    grid-template-columns: repeat(4, 1fr);
  }
}

.keyChip {
  padding-block: $space-3;
  padding-inline: $space-3;
  border: $hairline solid $rule;
  background-color: $paper;
  font-family: $font-mono;
  font-size: $font-size-2xs;
  letter-spacing: $tracking-wider;
  text-transform: uppercase;
  color: $ink;
  cursor: pointer;
  transition: background-color $duration-fast $ease-out;

  &:hover {
    background-color: $paper-deep;
  }

  &[data-selected='true'] {
    background-color: $ink;
    color: $paper;
    border-color: $ink;
  }
}

.keyName {
  display: inline-block;
}

.turnstile {
  display: flex;
  align-items: center;
  padding: $space-3;
  border: $hairline solid $rule-hair;
  background-color: $paper-deep;
}

.submitRow {
  display: flex;
  flex-direction: column;
  gap: $space-3;
  align-items: stretch;
  padding-block-start: $space-4;
  border-block-start: $hairline solid $rule;

  @include breakpoint-up('md') {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.submitNote {
  font-family: $font-mono;
  font-size: $font-size-3xs;
  letter-spacing: $tracking-wide;
  text-transform: uppercase;
  color: $ink-mute;
  margin: 0;
  max-inline-size: 28rem;
}

// ----------------------------------------------------------------------------
// RESULT
// ----------------------------------------------------------------------------

.result {
  display: flex;
  flex-direction: column;
  gap: $space-6;
  max-inline-size: 56rem;
}

.resultHead {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: baseline;
  gap: $space-2 $space-3;
}

.resultMarker {
  grid-row: 1 / span 2;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  color: $alarm;
  align-self: start;
  font-family: $font-sans;
}

.resultHeadline {
  grid-row: 1;
  grid-column: 2;
  font-family: $font-display;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 0.92;
  text-transform: uppercase;
  color: $ink;
  margin: 0;
}

.resultBody {
  grid-row: 2;
  grid-column: 2;
  font-family: $font-sans;
  font-size: $font-size-sm;
  line-height: $line-height-snug;
  color: $ink-soft;
  margin: 0;
}

.resultFoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: $space-3;
  flex-wrap: wrap;
}

.resultLink {
  font-family: $font-mono;
  font-size: $font-size-xs;
  letter-spacing: $tracking-wider;
  text-transform: uppercase;
  color: $ink;
  text-decoration: none;
  border-block-end: $hairline solid $ink;
  padding-block-end: $space-0-5;
  transition: color $duration-fast $ease-out;

  &:hover {
    color: $alarm;
    border-block-end-color: $alarm;
  }
}

// ----------------------------------------------------------------------------
// ARTIFACT
// ----------------------------------------------------------------------------

.artifactStack {
  display: flex;
  flex-direction: column;
  gap: $space-2;
}

.fileBar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  border: $hairline solid $rule;
  background-color: $paper-deep;
}

.fileMeta {
  display: flex;
  flex-direction: column;
  gap: $space-1;
  padding-block: $space-3;
  padding-inline: $space-3;
}

.fileLabel {
  font-family: $font-mono;
  font-size: $font-size-3xs;
  letter-spacing: $tracking-wider;
  text-transform: uppercase;
  color: $ink-mute;
}

.fileName {
  font-family: $font-mono;
  font-size: $font-size-sm;
  color: $ink;
  overflow-wrap: anywhere;
}

.fileType {
  font-family: $font-mono;
  font-size: $font-size-3xs;
  letter-spacing: $tracking-wide;
  color: $ink-soft;
  overflow-wrap: anywhere;
}

.downloadBtn {
  display: inline-flex;
  align-items: center;
  padding-block: $space-3;
  padding-inline: $space-5;
  background-color: $ink;
  color: $paper;
  font-family: $font-mono;
  font-size: $font-size-2xs;
  letter-spacing: $tracking-wider;
  text-transform: uppercase;
  text-decoration: none;
  border-inline-start: $hairline solid $ink;
  transition: background-color $duration-fast $ease-out,
    color $duration-fast $ease-out;

  &:hover {
    background-color: $paper;
    color: $ink;
  }
}

.textPreview {
  margin: 0;
  padding: $space-3;
  max-block-size: 24rem;
  overflow: auto;
  background-color: $paper-deep;
  border: $hairline solid $rule-hair;
  font-family: $font-mono;
  font-size: $font-size-xs;
  line-height: $line-height-snug;
  color: $ink;
  white-space: pre;
}

.note {
  font-size: $font-size-xs;
  color: $ink-soft;
  margin: 0;
}