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

3.0 KB
Raw Blame
// ===================
// AngelaMos | 2026
// programs.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-6;
}

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

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

.grid {
  display: grid;
  gap: $space-4;

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

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

.card {
  display: flex;
  flex-direction: column;
  padding: $space-4;
  background: $bg-surface-100;
  border: 1px solid $border-default;
  border-radius: $radius-lg;
  text-decoration: none;
  @include transition-fast;

  @include hover {
    background: $bg-surface-200;
    border-color: $border-strong;
  }
}

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

.cardTitle {
  font-size: $font-size-base;
  font-weight: $font-weight-medium;
  color: $text-default;
  @include truncate;
  flex: 1;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: $space-1 $space-2;
  border-radius: $radius-full;
  font-size: $font-size-xs;
  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;
  }
}

.cardDescription {
  font-size: $font-size-sm;
  color: $text-light;
  line-height: $line-height-relaxed;
  @include line-clamp(2);
  margin-bottom: $space-4;
  flex: 1;
}

.cardFooter {
  display: flex;
  align-items: center;
  padding-top: $space-3;
  border-top: 1px solid $border-muted;
}

.sla {
  font-size: $font-size-xs;
  color: $text-lighter;
}

.pagination {
  @include flex-center;
  gap: $space-4;
  margin-top: $space-8;
}

.pageButton {
  padding: $space-2 $space-4;
  border: 1px solid $border-default;
  border-radius: $radius-md;
  background: transparent;
  font-size: $font-size-sm;
  color: $text-light;
  cursor: pointer;
  @include transition-fast;

  @include hover {
    background: $bg-surface-200;
    color: $text-default;
  }

  &:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
}

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

.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;
}

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