new navigation

This commit is contained in:
nadja
2026-09-03 17:06:24 +02:00
parent df3c972342
commit e10519e808
3 changed files with 206 additions and 1 deletions

112
style.css
View File

@@ -45,6 +45,7 @@ body {
justify-content: center;
text-align: center;
padding: 60px 20px;
scroll-margin-top: 0;
background:
radial-gradient(ellipse at 15% 30%, rgba(255, 0, 0, 0.1) 0%, transparent 50%),
radial-gradient(ellipse at 50% 70%, rgba(0, 242, 234, 0.08) 0%, transparent 50%),
@@ -129,8 +130,111 @@ body {
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
/* Sticky Navigation */
.sticky-nav {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
background: rgba(10, 10, 10, 0.85);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border-bottom: 1px solid var(--border);
transform: translateY(-100%);
transition: transform 0.3s ease;
}
.sticky-nav.visible {
transform: translateY(0);
}
.nav-inner {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
display: flex;
align-items: center;
justify-content: space-between;
height: 56px;
}
.nav-brand {
font-weight: 900;
font-size: 1.2rem;
letter-spacing: -1px;
background: linear-gradient(135deg, #fff 0%, #c0c0c0 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.nav-links {
display: flex;
gap: 4px;
}
.nav-link {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 14px;
border-radius: 8px;
font-size: 0.85rem;
font-weight: 600;
color: var(--text-secondary);
text-decoration: none;
transition: all 0.2s ease;
}
.nav-link:hover {
color: var(--text-primary);
background: rgba(255, 255, 255, 0.06);
}
.nav-link.active {
color: var(--text-primary);
background: rgba(255, 255, 255, 0.1);
}
/* Back-to-Top Button */
.back-to-top {
position: fixed;
bottom: 32px;
right: 32px;
z-index: 999;
width: 48px;
height: 48px;
border-radius: 50%;
border: 1px solid var(--border);
background: var(--bg-card);
color: var(--text-primary);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transform: translateY(16px);
transition: all 0.3s ease;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.back-to-top.visible {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.back-to-top:hover {
background: var(--twitch-purple);
border-color: var(--twitch-purple);
transform: translateY(-2px);
box-shadow: 0 6px 24px rgba(145, 70, 255, 0.4);
}
/* Sections */
.section { padding: 90px 0; scroll-margin-top: 20px; }
.section { padding: 90px 0; scroll-margin-top: 64px; }
.section-alt { background: var(--bg-secondary); }
.channel-head {
@@ -350,6 +454,12 @@ body {
.discord-card { padding: 28px 20px; }
.discord-profile { flex-direction: column; text-align: center; }
.nav-links { gap: 0; }
.nav-link { padding: 8px 8px; font-size: 0.75rem; }
.nav-link svg { display: none; }
.back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}
@media (max-width: 480px) {