feat(web): add navigation menu bar for logged-in users

- Add horizontal nav menu with 7 items: Profile, Characters, Sessions,
  Mechanics, Leaderboard, Settings, Help
- Implement responsive hamburger menu for mobile (≤768px)
- Create pages blueprint with stub routes for new pages
- Add "Coming Soon" styled stub templates with icons
- Include active state highlighting for current page

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-26 10:21:46 -06:00
parent 4d26c43d1d
commit 77d913fe50
10 changed files with 573 additions and 4 deletions

View File

@@ -130,6 +130,207 @@ body {
text-shadow: 0 0 8px rgba(243, 156, 18, 0.3);
}
/* ===== NAVIGATION MENU ===== */
.nav-menu {
display: flex;
align-items: center;
gap: 0.25rem;
}
.nav-item {
font-family: var(--font-body);
font-size: var(--text-sm);
color: var(--text-secondary);
text-decoration: none;
padding: 0.5rem 0.75rem;
border-radius: 4px;
transition: all 0.3s ease;
}
.nav-item:hover {
color: var(--accent-gold);
background: rgba(243, 156, 18, 0.1);
}
.nav-item.active {
color: var(--accent-gold);
background: rgba(243, 156, 18, 0.15);
font-weight: 600;
}
/* Header User Section */
.header-user {
display: flex;
align-items: center;
gap: 1rem;
padding-left: 1rem;
border-left: 1px solid var(--border-primary);
}
/* ===== HAMBURGER MENU (Mobile) ===== */
.hamburger-btn {
display: none;
background: none;
border: none;
cursor: pointer;
padding: 0.5rem;
z-index: 1001;
}
.hamburger-icon {
display: block;
width: 24px;
height: 2px;
background: var(--text-primary);
position: relative;
transition: all 0.3s ease;
}
.hamburger-icon::before,
.hamburger-icon::after {
content: '';
position: absolute;
width: 24px;
height: 2px;
background: var(--text-primary);
left: 0;
transition: all 0.3s ease;
}
.hamburger-icon::before {
top: -8px;
}
.hamburger-icon::after {
bottom: -8px;
}
/* Hamburger animation when open */
.hamburger-btn.open .hamburger-icon {
background: transparent;
}
.hamburger-btn.open .hamburger-icon::before {
transform: rotate(45deg);
top: 0;
background: var(--accent-gold);
}
.hamburger-btn.open .hamburger-icon::after {
transform: rotate(-45deg);
bottom: 0;
background: var(--accent-gold);
}
/* ===== MOBILE MENU ===== */
.mobile-menu {
display: none;
flex-direction: column;
background: var(--bg-secondary);
border-top: 1px solid var(--border-primary);
padding: 1rem;
position: absolute;
top: 100%;
left: 0;
right: 0;
z-index: 1000;
box-shadow: var(--shadow-lg);
}
.mobile-menu.open {
display: flex;
}
.mobile-nav-item {
font-family: var(--font-body);
font-size: var(--text-base);
color: var(--text-secondary);
text-decoration: none;
padding: 0.75rem 1rem;
border-radius: 4px;
transition: all 0.3s ease;
}
.mobile-nav-item:hover {
color: var(--accent-gold);
background: rgba(243, 156, 18, 0.1);
}
.mobile-nav-item.active {
color: var(--accent-gold);
background: rgba(243, 156, 18, 0.15);
font-weight: 600;
}
.mobile-menu-divider {
height: 1px;
background: var(--border-primary);
margin: 0.75rem 0;
}
.mobile-user-greeting {
font-size: var(--text-sm);
color: var(--text-muted);
padding: 0.5rem 1rem;
}
.mobile-logout {
color: var(--accent-red-light);
background: none;
border: none;
text-align: left;
cursor: pointer;
width: 100%;
}
.mobile-logout:hover {
color: var(--accent-red);
background: rgba(192, 57, 43, 0.1);
}
/* ===== RESPONSIVE HEADER ===== */
@media (max-width: 992px) {
.nav-item {
padding: 0.4rem 0.5rem;
font-size: var(--text-xs);
}
.nav-menu {
gap: 0.125rem;
}
.header-user {
padding-left: 0.75rem;
}
.user-greeting {
display: none;
}
}
@media (max-width: 768px) {
.header {
position: relative;
padding: 1rem;
}
.nav-menu {
display: none;
}
.header-user {
display: none;
}
.hamburger-btn {
display: block;
}
.logo {
font-size: var(--text-xl);
}
}
/* ===== MAIN CONTENT ===== */
main {
flex: 1;
@@ -606,3 +807,56 @@ main {
.hidden {
display: none;
}
/* ===== PAGE CONTAINER ===== */
.page-container {
width: 100%;
max-width: 600px;
padding: 2rem;
}
/* ===== COMING SOON CARD ===== */
.coming-soon-card {
background: var(--bg-secondary);
border: 2px solid var(--border-ornate);
border-radius: 8px;
padding: 3rem 2rem;
text-align: center;
box-shadow: var(--shadow-lg);
}
.coming-soon-card .page-title {
margin-bottom: 1.5rem;
}
.coming-soon-icon {
color: var(--accent-gold);
margin-bottom: 1.5rem;
opacity: 0.8;
}
.coming-soon-icon svg {
width: 64px;
height: 64px;
}
.coming-soon-text {
font-family: var(--font-heading);
font-size: var(--text-2xl);
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 3px;
margin-bottom: 1rem;
}
.coming-soon-description {
font-size: var(--text-base);
color: var(--text-muted);
margin-bottom: 2rem;
line-height: 1.6;
}
.coming-soon-card .btn {
width: auto;
display: inline-block;
}