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 ⭐️

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

.body {
  --section-bleed: 20px;
  position: relative;
  padding: 24px 20px 8px;

  @include hp.tablet-up {
    --section-bleed: 40px;
    padding: 32px 40px 16px;
  }

  @include hp.wide {
    --section-bleed: 48px;
    padding: 36px 48px 24px;
  }
}

.profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "avatar identity"
    ". bio"
    ". actions";
  align-items: center;
  column-gap: 24px;
  padding-bottom: 24px;

  @include hp.mobile {
    grid-template-areas:
      "avatar identity"
      "bio bio"
      "actions actions";
    column-gap: 14px;
    padding-bottom: 20px;
  }
}

.avatar {
  grid-area: avatar;
  width: 96px;
  height: 96px;
  border: 1px solid var(--hp-border);
  border-radius: 26px;
  background: var(--hp-surface);
  object-fit: cover;
  box-shadow: var(--hp-shadow-sm);

  &[data-placeholder] {
    display: grid;
    place-items: center;
    border: 0;
    background: var(--hp-accent);
    color: var(--hp-on-accent);
    font-size: 2.25rem;
    font-weight: 700;
  }

  @include hp.mobile {
    align-self: start;
    width: 64px;
    height: 64px;
    border-radius: 18px;

    &[data-placeholder] {
      font-size: 1.5rem;
    }
  }
}

.profileActions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 22px;
}

.contactActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.iconButton {
  @include hp.icon-button;
}

.contactButton {
  @include hp.pill-button;
  border-color: transparent;
  background: var(--hp-accent);
  color: var(--hp-on-accent);

  &:hover {
    border-color: transparent;
    background: var(--hp-accent);
    filter: brightness(1.06);
  }
}

.identity {
  grid-area: identity;
  min-width: 0;
}

.name {
  margin: 0;
  font-family: hp.$font;
  font-size: clamp(1.625rem, 1.2rem + 1.9vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--hp-text);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 12px;

  @include hp.mobile {
    margin-top: 8px;
  }
}

.metaItem {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 24px;
  color: var(--hp-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.15s hp.$ease;

  svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
  }

  &:hover {
    color: var(--hp-text);
  }

  @include hp.mobile {
    font-size: 0.875rem;
  }
}

.bio {
  grid-area: bio;
  max-width: 680px;
  margin-top: 20px;
}

.bioHeading {
  margin: 0 0 8px;
  color: var(--hp-text);
  font-size: 1.0625rem;
  font-weight: 700;
}

.bioText {
  &[data-clamped] {
    max-height: 10em;
    overflow: hidden;

    &[data-overflows] {
      mask-image: linear-gradient(to bottom, #000 50%, transparent);
    }
  }
}

.description {
  @include hp.rich-text;
  max-width: 72ch;
}

.textButton {
  min-height: 24px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--hp-accent-ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  @include hp.focus-ring;

  &:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

.section {
  padding: 24px 0;
  scroll-margin-top: 24px;

  @include hp.wide {
    padding: 28px 0;
  }
}

.sectionHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 24px;
}

.sectionTitle {
  @include hp.section-title;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--hp-fill-strong);
}

.segment {
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--hp-muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s hp.$ease, background-color 0.15s hp.$ease, box-shadow 0.15s hp.$ease;
  @include hp.focus-ring;

  &:hover {
    color: var(--hp-text);
  }

  &[data-active] {
    background: var(--hp-surface);
    color: var(--hp-text);
    box-shadow: var(--hp-shadow-sm);
  }
}

.emptyState {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 48px 24px;
  border: 1px dashed var(--hp-border-strong);
  border-radius: 20px;
  color: var(--hp-muted);
  text-align: center;

  p {
    margin: 0;
    color: var(--hp-text);
    font-weight: 600;
  }
}

.emptyIcon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: var(--hp-fill-strong);

  svg {
    width: 22px;
    height: 22px;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.paginationControls {
  :global(.mantine-Pagination-control) {
    border: 1px solid var(--hp-border);
    background: var(--hp-surface);
    color: var(--hp-text);
    font-weight: 600;

    &:hover:not([data-active]) {
      background: var(--hp-fill);
    }

    &[data-active] {
      border-color: var(--hp-accent);
      background: var(--hp-accent);
      color: var(--hp-on-accent);
    }
  }

  :global(.mantine-Pagination-dots) {
    color: var(--hp-muted);
  }
}

.pastEventsFooter {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}