rcnn/web/src/ui/Header.module.css
munsel 42197bfbc9 add coaster naming, challenge detail panel, and fix GeoJSON id bug
- Coaster editor: name input in top bar, saved/loaded with coaster data
- CoasterListPanel: show coaster name prominently alongside creator username
- ChallengesListPanel: drill-in detail view with center map, plan coaster,
  and accept challenge buttons; coaster count shown in list and detail
- AllCoastersPanel: coaster count visible in challenge entries
- Backend: add coaster_count to ChallengeMapSerializer and ChallengeDetailSerializer
- Fix: ChallengeLayer and ChallengesListPanel were reading f.properties.id
  (always undefined) instead of f.id — GeoFeatureModelSerializer puts the pk
  at the GeoJSON Feature level, not in properties
- Types: remove id from ChallengeMapProperties to reflect actual data shape

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-23 01:43:10 +02:00

123 lines
3.1 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
.header {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 600;
height: 52px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 20px;
background: rgba(6, 6, 10, 0.92);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
/* ── Logo ─────────────────────────────────────────────────────────────────── */
.logo {
font-family: 'Bebas Neue', 'Impact', 'Arial Narrow', sans-serif;
font-size: 26px;
letter-spacing: 0.12em;
color: #fff;
text-decoration: none;
line-height: 1;
flex-shrink: 0;
transition: opacity 0.15s;
}
.logo:hover {
opacity: 0.8;
}
.logoR {
color: #f59e0b;
}
/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav {
display: flex;
align-items: center;
gap: 4px;
}
.divider {
width: 1px;
height: 20px;
background: rgba(255, 255, 255, 0.1);
margin: 0 6px;
}
/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
padding: 6px 14px;
background: transparent;
border: 1px solid transparent;
border-radius: 7px;
color: rgba(255, 255, 255, 0.6);
font-size: 13px;
font-weight: 500;
cursor: pointer;
white-space: nowrap;
transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.btn:hover {
background: rgba(255, 255, 255, 0.07);
color: rgba(255, 255, 255, 0.9);
border-color: rgba(255, 255, 255, 0.08);
}
.btnAccent {
color: #f59e0b;
border-color: rgba(245, 158, 11, 0.35);
background: rgba(245, 158, 11, 0.08);
}
.btnAccent:hover {
background: rgba(245, 158, 11, 0.16);
color: #fbbf24;
border-color: rgba(245, 158, 11, 0.5);
}
.btnActive {
background: rgba(245, 158, 11, 0.12);
border-color: rgba(245, 158, 11, 0.4);
color: #f59e0b;
}
.btnActive:hover {
background: rgba(245, 158, 11, 0.2);
}
.btnLogout {
color: rgba(255, 255, 255, 0.4);
font-size: 12px;
}
.btnLogout:hover {
color: rgba(255, 100, 80, 0.9);
background: rgba(255, 69, 58, 0.08);
border-color: rgba(255, 69, 58, 0.2);
}
/* ── User link ────────────────────────────────────────────────────────────── */
.userBtn {
padding: 6px 12px;
border-radius: 7px;
color: rgba(255, 255, 255, 0.55);
font-size: 12px;
font-weight: 500;
text-decoration: none;
border: 1px solid transparent;
transition: background 0.12s, color 0.12s, border-color 0.12s;
white-space: nowrap;
}
.userBtn:hover {
background: rgba(255, 255, 255, 0.06);
color: rgba(255, 255, 255, 0.85);
border-color: rgba(255, 255, 255, 0.1);
}