mirror of
https://github.com/Such-Software/such.software.git
synced 2026-10-19 05:48:33 +02:00
Rework home hero and portfolio, invert favicon theme mapping
- Home hero subhead rewritten to name commerce/websites/apps/consulting plus in-house mobile apps and games; primary CTA points to /products - Portfolio page (/products) title renamed and each product card now shows a 56px icon beside the title - Favicon served inverse to the browser color scheme so the tile contrasts with the chrome instead of blending into it
This commit is contained in:
@@ -9,7 +9,9 @@ export function DynamicFavicon() {
|
||||
useEffect(() => {
|
||||
if (!resolvedTheme) return;
|
||||
|
||||
const variant = resolvedTheme === 'dark' ? 'dark' : 'light';
|
||||
// Favicons contrast with browser chrome, so we serve the opposite-tone tile:
|
||||
// dark mode → light tile, light mode → dark tile.
|
||||
const variant = resolvedTheme === 'dark' ? 'light' : 'dark';
|
||||
|
||||
// Update all favicon link elements
|
||||
const links = document.querySelectorAll<HTMLLinkElement>('link[rel="icon"], link[rel="shortcut icon"], link[rel="apple-touch-icon"]');
|
||||
|
||||
Reference in New Issue
Block a user