Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "random-teams",
"version": "1.1.1",
"version": "1.1.2",
"packageManager": "pnpm@11.1.1",
"engines": {
"node": ">=22.13.0"
Expand Down
19 changes: 13 additions & 6 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,20 @@
<!-- ── Main content area ─────────────────────────────────────────────── -->
<div class="main-area">
<header class="page-header">
<div class="header-brand">
<span class="material-icons brand-icon">sports_soccer</span>
<span class="brand-name">RandomTeams</span>
</div>
<h1 class="page-title">{{ title }}</h1>
<button
class="header-theme-btn"
(click)="toggleDarkMode()"
[attr.aria-label]="isDarkMode ? 'Switch to light mode' : 'Switch to dark mode'">
<span class="material-icons">{{ isDarkMode ? 'light_mode' : 'dark_mode' }}</span>
</button>
<div class="header-right">
<span class="header-version">v{{ version }}</span>
<button
class="header-theme-btn"
(click)="toggleDarkMode()"
[attr.aria-label]="isDarkMode ? 'Switch to light mode' : 'Switch to dark mode'">
<span class="material-icons">{{ isDarkMode ? 'light_mode' : 'dark_mode' }}</span>
</button>
</div>
</header>

<main class="page-content">
Expand Down
44 changes: 43 additions & 1 deletion src/app/app.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,48 @@
color: var(--brand-text);
margin: 0;
letter-spacing: -0.01em;
display: none;

@media (min-width: 768px) {
display: block;
}
}
}

.header-brand {
display: flex;
align-items: center;
gap: 0.4rem;

.brand-icon {
color: var(--primary);
font-size: 1.4rem;
}

.brand-name {
font-weight: 700;
font-size: 1rem;
color: var(--brand-text);
letter-spacing: -0.02em;
}

@media (min-width: 768px) {
display: none;
}
}

.header-right {
display: flex;
align-items: center;
gap: 0.5rem;
}

.header-version {
font-size: 0.7rem;
color: rgba(255, 255, 255, 0.6);

@media (min-width: 768px) {
display: none;
}
}

Expand Down Expand Up @@ -195,7 +237,7 @@
}

@media (min-width: 768px) {
display: none; /* desktop uses sidebar toggle */
display: none;
}
}

Expand Down
Loading