Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

3.2 KB
Raw Blame
@use "../../../../styles/mixins.scss";
@use "../../HomepageFrame/homepage" as hp;

.list {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.groupLabel {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 6px;
  color: var(--hp-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 -14px;

  @include hp.narrow {
    margin: 0 -10px;
  }
}

.row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 14px;
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s hp.$ease;
  @include hp.focus-ring;

  &:hover {
    background: var(--hp-fill);

    .title {
      color: var(--hp-accent-ink);
    }

    .artwork {
      transform: scale(1.04);
    }
  }

  &[data-ended] {
    .thumb {
      filter: grayscale(0.7);
      opacity: 0.85;
    }
  }

  @include hp.narrow {
    align-items: start;
    gap: 14px;
    padding: 12px 10px;
  }
}

.tilePlaceholder {
  width: 60px;
  height: 60px;
  border: 1px dashed var(--hp-border-strong);
  border-radius: 17px;
}

.rowBody {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.date {
  color: var(--hp-muted);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
}

.timezone {
  color: var(--hp-muted);
  font-weight: 500;
}

.title {
  margin: 0;
  color: var(--hp-text);
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
  transition: color 0.15s hp.$ease;

  @include hp.narrow {
    font-size: 1rem;
  }
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  min-width: 0;
  color: var(--hp-muted);
  font-size: 0.875rem;
}

.metaItem {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;

  svg {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    opacity: 0.8;
  }
}

.metaText {
  @include mixins.ellipsis;
}

.price {
  color: var(--hp-text);
  font-weight: 650;

  &[data-sold-out] {
    color: var(--hp-muted);
    font-weight: 500;
  }
}

.liveBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hp-live-ink);
  font-weight: 600;
}

.liveDot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.thumb {
  position: relative;
  display: block;
  width: 160px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: var(--hp-fill);

  @include hp.narrow {
    width: 72px;
    aspect-ratio: 1;
    border-radius: 12px;
  }
}

.artworkFill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.2);
  transform: scale(1.25);
}

.artwork {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s hp.$ease;
}

.description {
  margin: 1px 0 0;
  color: var(--hp-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  @include mixins.ellipsis;

  @include hp.narrow {
    display: none;
  }
}