main.tsx already has I18nProvider with bundled resources. The duplicate in App.tsx was causing: - 'i18next is already initialized' warning - 404 errors on /api/i18n requests (no API needed with bundled) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
305 lines
7.6 KiB
CSS
305 lines
7.6 KiB
CSS
/* ============================================
|
|
HEADER COMPONENT
|
|
Sticky navigation + announcement bar for all pages
|
|
Enhanced with glassmorphism design system
|
|
============================================ */
|
|
|
|
/* Import shared glass utilities */
|
|
@import '../../styles/glass.css';
|
|
|
|
.site-header {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
/* ============================================
|
|
NAVIGATION BAR GLASSMORPHISM OVERRIDE
|
|
Force glassmorphism on the Navigation component
|
|
============================================ */
|
|
|
|
.site-header > nav {
|
|
background: rgba(10, 10, 15, 0.65) !important;
|
|
background-color: rgba(10, 10, 15, 0.65) !important;
|
|
backdrop-filter: blur(20px) saturate(180%) !important;
|
|
-webkit-backdrop-filter: blur(20px) saturate(180%) !important;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
|
|
box-shadow:
|
|
0 4px 30px rgba(0, 0, 0, 0.3),
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
|
|
}
|
|
|
|
/* Ensure text is light on glass background */
|
|
.site-header > nav,
|
|
.site-header > nav a,
|
|
.site-header > nav button,
|
|
.site-header > nav span {
|
|
color: rgba(255, 255, 255, 0.9) !important;
|
|
}
|
|
|
|
.site-header > nav a:hover,
|
|
.site-header > nav button:hover {
|
|
color: #fff !important;
|
|
}
|
|
|
|
/* ============================================
|
|
NAVIGATION BAR
|
|
============================================ */
|
|
|
|
.site-header__nav {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 1rem 2rem;
|
|
background: var(--glass-bg-dark-medium);
|
|
backdrop-filter: blur(var(--glass-blur-md));
|
|
-webkit-backdrop-filter: blur(var(--glass-blur-md));
|
|
border-bottom: 1px solid var(--glass-border-light);
|
|
box-shadow: var(--glass-shadow-sm);
|
|
}
|
|
|
|
.site-header__back {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
color: rgba(255, 255, 255, 0.7);
|
|
text-decoration: none;
|
|
font-size: 0.9rem;
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
.site-header__back:hover {
|
|
color: var(--about-color);
|
|
}
|
|
|
|
.site-header__nav-links {
|
|
display: flex;
|
|
gap: 0.25rem;
|
|
overflow-x: auto;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.site-header__nav-links::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.site-header__nav-link {
|
|
padding: 0.5rem 1rem;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
text-decoration: none;
|
|
font-size: 0.85rem;
|
|
border-radius: 8px;
|
|
border: 1px solid transparent;
|
|
transition: var(--glass-transition);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.site-header__nav-link:hover {
|
|
color: rgba(255, 255, 255, 0.9);
|
|
background: var(--glass-bg-light);
|
|
border-color: var(--glass-border-light);
|
|
box-shadow: var(--glass-inner-glow);
|
|
}
|
|
|
|
.site-header__nav-link--active {
|
|
color: var(--about-color);
|
|
background: var(--glass-bg-medium);
|
|
border-color: color-mix(in srgb, var(--about-color) 30%, var(--glass-border-light));
|
|
box-shadow: 0 0 12px color-mix(in srgb, var(--about-color) 15%, transparent);
|
|
}
|
|
|
|
.site-header__nav-link--apps {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
margin-left: 0.5rem;
|
|
background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.15));
|
|
border-color: rgba(168, 85, 247, 0.25);
|
|
}
|
|
|
|
.site-header__nav-link--apps:hover {
|
|
background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(236, 72, 153, 0.25));
|
|
border-color: rgba(168, 85, 247, 0.4);
|
|
}
|
|
|
|
/* ============================================
|
|
ANNOUNCEMENT BAR
|
|
============================================ */
|
|
|
|
.site-header__announcement {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 1.5rem;
|
|
padding: 0.875rem 2rem;
|
|
background: linear-gradient(
|
|
135deg,
|
|
color-mix(in srgb, var(--about-gradient-from) 20%, var(--glass-bg-dark-heavy)),
|
|
color-mix(in srgb, var(--about-gradient-to) 20%, var(--glass-bg-dark-heavy))
|
|
);
|
|
backdrop-filter: blur(var(--glass-blur-md));
|
|
-webkit-backdrop-filter: blur(var(--glass-blur-md));
|
|
border-bottom: 1px solid color-mix(in srgb, var(--about-color) 35%, var(--glass-border-light));
|
|
box-shadow: var(--glass-inner-glow);
|
|
}
|
|
|
|
.site-header__announcement-text {
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
color: rgba(255, 255, 255, 0.9);
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.site-header__announcement-cta {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.5rem 1.25rem;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
color: rgba(255, 255, 255, 0.95);
|
|
background: linear-gradient(135deg, var(--about-gradient-from), var(--about-gradient-to));
|
|
border: none;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
white-space: nowrap;
|
|
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.site-header__announcement-cta:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow:
|
|
var(--glass-shadow-md),
|
|
0 0 30px color-mix(in srgb, var(--about-color) 40%, transparent),
|
|
0 0 60px color-mix(in srgb, var(--about-color) 20%, transparent);
|
|
}
|
|
|
|
.site-header__announcement-cta:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* ============================================
|
|
RESPONSIVE DESIGN
|
|
============================================ */
|
|
|
|
@media (max-width: 768px) {
|
|
.site-header__nav {
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.site-header__nav-links {
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
|
|
.site-header__nav-link {
|
|
padding: 0.4rem 0.75rem;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.site-header__announcement {
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
padding: 0.75rem 1rem;
|
|
}
|
|
|
|
.site-header__announcement-text {
|
|
font-size: 0.9rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.site-header__announcement-cta {
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.site-header__back span {
|
|
display: none;
|
|
}
|
|
|
|
.site-header__nav-links {
|
|
gap: 0.125rem;
|
|
}
|
|
|
|
.site-header__nav-link {
|
|
padding: 0.35rem 0.5rem;
|
|
font-size: 0.75rem;
|
|
}
|
|
}
|
|
|
|
/* Reduced motion */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.site-header__back,
|
|
.site-header__nav-link,
|
|
.site-header__announcement-cta {
|
|
transition: none;
|
|
}
|
|
|
|
.site-header__announcement-cta:hover {
|
|
transform: none;
|
|
}
|
|
}
|
|
|
|
/* High contrast */
|
|
@media (prefers-contrast: high) {
|
|
.site-header__nav,
|
|
.site-header__announcement {
|
|
backdrop-filter: none;
|
|
-webkit-backdrop-filter: none;
|
|
background: rgba(30, 30, 40, 0.98);
|
|
border-color: var(--glass-border-medium);
|
|
}
|
|
|
|
.site-header__nav-link--active {
|
|
border-color: var(--about-color);
|
|
}
|
|
}
|
|
|
|
/* ============================================
|
|
NAVIGATION DROPDOWN GLASSMORPHISM
|
|
Ultra-light transparency for maximum see-through
|
|
============================================ */
|
|
|
|
/* Ultra-transparent dropdown - background dominantly visible */
|
|
.site-header nav li ul,
|
|
header nav li ul,
|
|
nav li ul {
|
|
/* Very low opacity for maximum see-through */
|
|
background-color: rgba(10, 10, 15, 0.45) !important;
|
|
|
|
/* Layered background for shimmer effect */
|
|
background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent) !important;
|
|
|
|
/* Heavy backdrop blur for strong glassmorphism */
|
|
backdrop-filter: blur(40px) saturate(200%) !important;
|
|
-webkit-backdrop-filter: blur(40px) saturate(200%) !important;
|
|
|
|
/* Brighter glass border for visibility */
|
|
border: 1px solid rgba(255, 255, 255, 0.2) !important;
|
|
box-shadow:
|
|
0 8px 32px rgba(0, 0, 0, 0.5),
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
|
|
|
|
border-radius: 12px !important;
|
|
padding: 8px !important;
|
|
}
|
|
|
|
/* Whisper-subtle hover effect */
|
|
nav li ul li,
|
|
nav li ul a {
|
|
border-radius: 6px !important;
|
|
transition: all 0.2s ease !important;
|
|
margin: 2px 0 !important;
|
|
}
|
|
|
|
nav li ul li:hover,
|
|
nav li ul a:hover {
|
|
background: rgba(255, 255, 255, 0.04) !important;
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
|
|
transform: translateX(2px) !important;
|
|
}
|