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 πŸ‘‡

5.5 KB
Raw Blame
// ===================
// AngelaMos | 2026
// detail.module.scss
// ===================

@use '@/styles' as *;

.page {
  min-height: calc(100vh - 56px);
  padding: $space-6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.header {
  margin-bottom: $space-8;
}

.backLink {
  display: inline-flex;
  align-items: center;
  gap: $space-2;
  font-size: $font-size-sm;
  color: $text-light;
  margin-bottom: $space-4;
  @include transition-fast;

  @include hover {
    color: $text-default;
  }
}

.titleRow {
  @include flex-between;
  gap: $space-4;
  margin-bottom: $space-3;
  flex-wrap: wrap;
}

.title {
  font-size: $font-size-3xl;
  font-weight: $font-weight-semibold;
  color: $text-default;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: $space-1 $space-3;
  border-radius: $radius-full;
  font-size: $font-size-sm;
  font-weight: $font-weight-medium;
  flex-shrink: 0;

  &[data-status='active'] {
    background: hsl(142 76% 36% / 20%);
    color: hsl(142, 76%, 46%);
  }

  &[data-status='draft'] {
    background: $bg-surface-200;
    color: $text-lighter;
  }

  &[data-status='paused'] {
    background: hsl(38 92% 50% / 20%);
    color: hsl(38, 92%, 60%);
  }

  &[data-status='closed'] {
    background: hsl(0 72% 51% / 20%);
    color: $error-light;
  }
}

.description {
  font-size: $font-size-base;
  color: $text-light;
  line-height: $line-height-relaxed;
  max-width: 720px;
  margin-bottom: $space-4;
}

.meta {
  display: flex;
  gap: $space-4;
  flex-wrap: wrap;
}

.metaItem {
  font-size: $font-size-sm;
  color: $text-lighter;
}

.content {
  display: grid;
  gap: $space-8;

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

.main {
  @include flex-column;
  gap: $space-8;
}

.section {
  background: $bg-surface-100;
  border: 1px solid $border-default;
  border-radius: $radius-lg;
  padding: $space-5;
}

.sectionTitle {
  font-size: $font-size-lg;
  font-weight: $font-weight-semibold;
  color: $text-default;
  margin-bottom: $space-4;
}

.scopeGroup {
  margin-bottom: $space-5;

  &:last-child {
    margin-bottom: 0;
  }
}

.scopeLabel {
  font-size: $font-size-sm;
  font-weight: $font-weight-medium;
  color: hsl(142, 76%, 46%);
  margin-bottom: $space-3;
}

.scopeLabelOut {
  font-size: $font-size-sm;
  font-weight: $font-weight-medium;
  color: $error-light;
  margin-bottom: $space-3;
}

.assetList {
  @include flex-column;
  gap: $space-2;
}

.asset {
  display: flex;
  align-items: center;
  gap: $space-3;
  padding: $space-3;
  background: $bg-surface-75;
  border: 1px solid $border-muted;
  border-radius: $radius-md;
  flex-wrap: wrap;
}

.assetOut {
  display: flex;
  align-items: center;
  gap: $space-3;
  padding: $space-3;
  background: hsl(0 72% 51% / 5%);
  border: 1px solid hsl(0 72% 51% / 20%);
  border-radius: $radius-md;
  opacity: 0.7;
}

.assetType {
  display: inline-flex;
  padding: $space-0-5 $space-2;
  background: $bg-surface-300;
  border-radius: $radius-sm;
  font-size: $font-size-xs;
  font-weight: $font-weight-medium;
  color: $text-lighter;
  flex-shrink: 0;
}

.assetIdentifier {
  font-size: $font-size-sm;
  font-family: $font-mono;
  color: $text-default;
}

.assetDescription {
  font-size: $font-size-sm;
  color: $text-light;
  flex-basis: 100%;
  margin-top: $space-1;
}

.rewardTable {
  @include flex-column;
  gap: $space-2;
}

.rewardRow {
  @include flex-between;
  padding: $space-3 $space-4;
  background: $bg-surface-75;
  border: 1px solid $border-muted;
  border-radius: $radius-md;
}

.severity {
  display: inline-flex;
  padding: $space-1 $space-2;
  border-radius: $radius-sm;
  font-size: $font-size-sm;
  font-weight: $font-weight-medium;

  &[data-severity='critical'] {
    background: hsl(0 72% 51% / 20%);
    color: hsl(0, 72%, 60%);
  }

  &[data-severity='high'] {
    background: hsl(24 95% 53% / 20%);
    color: hsl(24, 95%, 63%);
  }

  &[data-severity='medium'] {
    background: hsl(45 93% 47% / 20%);
    color: hsl(45, 93%, 57%);
  }

  &[data-severity='low'] {
    background: hsl(217 91% 60% / 20%);
    color: hsl(217, 91%, 70%);
  }

  &[data-severity='informational'] {
    background: $bg-surface-200;
    color: $text-lighter;
  }
}

.rewardRange {
  font-size: $font-size-sm;
  font-weight: $font-weight-medium;
  color: $text-default;
}

.rules {
  font-size: $font-size-sm;
  color: $text-light;
  line-height: $line-height-relaxed;
  white-space: pre-wrap;
}

.emptyText {
  font-size: $font-size-sm;
  color: $text-muted;
}

.sidebar {
  @include flex-column;
  gap: $space-4;
}

.submitCard {
  background: $bg-surface-100;
  border: 1px solid $border-default;
  border-radius: $radius-lg;
  padding: $space-5;
  position: sticky;
  top: $space-6;
}

.submitTitle {
  font-size: $font-size-base;
  font-weight: $font-weight-semibold;
  color: $text-default;
  margin-bottom: $space-2;
}

.submitText {
  font-size: $font-size-sm;
  color: $text-light;
  line-height: $line-height-relaxed;
  margin-bottom: $space-4;
}

.submitButton {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  background: $accent-orange;
  border: none;
  border-radius: $radius-md;
  font-size: $font-size-sm;
  font-weight: $font-weight-medium;
  color: $white;
  text-decoration: none;
  @include transition-fast;

  @include hover {
    filter: brightness(1.1);
  }
}

.loading {
  @include flex-center;
  padding: $space-12;
  color: $text-muted;
  font-size: $font-size-sm;
}

.error {
  @include flex-center;
  padding: $space-12;
  color: $error-default;
  font-size: $font-size-sm;
}