HifiPlanet-Website/hifi-src
Maaxxs ed0d18b9c3 Fix navbar no longer sticking to the top of the viewport
Wrapping the header in an extra <div className="dark"> (to force the
always-dark navbar look from the last change) broke its sticky
positioning - it stayed pinned in place instead of scrolling normally
and sticking to the top edge.

Removes that wrapper entirely and instead hardcodes the header's own
"dark" Tailwind values directly (no dark: prefix, no conditional on the
real theme) for the header background/border, hamburger button, admin
icon, and the navbar's own language dropdown - all previously toggled via
a dark: variant that depended on an ancestor carrying the "dark" class.
The logo now always renders the dark-mode wordmark image directly rather
than swapping between two images via dark:hidden/dark:block.

ThemeToggle.jsx gained an opt-in forceDark prop for this one case, so its
other usages (admin dashboard) keep following the real theme as before -
only the navbar's copy of the button is pinned to look dark, its click
behavior (toggling the site's actual theme) is unchanged.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 03:06:22 +02:00
..
public Initial commit: HifiPlanet Car-Hifi Shop (Frontend + Backend) 2026-07-05 13:37:06 +02:00
src Fix navbar no longer sticking to the top of the viewport 2026-09-10 03:06:22 +02:00
index.html Replace the contact form with the new high-fidelity redesign 2026-07-18 20:00:06 +02:00
package-lock.json Add image cropping to the shared upload field 2026-09-09 23:59:27 +02:00
package.json Add image cropping to the shared upload field 2026-09-09 23:59:27 +02:00
postcss.config.js Initial commit: HifiPlanet Car-Hifi Shop (Frontend + Backend) 2026-07-05 13:37:06 +02:00
tailwind.config.js Add global font selection with per-section override 2026-09-10 00:12:01 +02:00
vite.config.js Bundle all Lucide icon chunks into one file instead of ~1600 tiny files 2026-07-05 15:36:07 +02:00