diff --git a/src/components/WaveBackground.astro b/src/components/WaveBackground.astro index fdb0585..1be604a 100644 --- a/src/components/WaveBackground.astro +++ b/src/components/WaveBackground.astro @@ -72,8 +72,6 @@ const pulseCore = theme === 'purple' ? '#fdf4ff' : '#f0fdfa'; - - @@ -411,9 +409,8 @@ const pulseCore = theme === 'purple' ? '#fdf4ff' : '#f0fdfa'; } const SPLIT_PROBABILITY = 0.55; - const LOGO_PROBABILITY = 0.50; - function isLogoTargetVisible(): HTMLElement | null { + function _unused_isLogoTargetVisible(): HTMLElement | null { const el = document.querySelector('[data-logo-target]'); if (!el) return null; const rect = el.getBoundingClientRect(); @@ -605,14 +602,6 @@ const pulseCore = theme === 'purple' ? '#fdf4ff' : '#f0fdfa'; return; } - // 20% chans för logo-pulse OM logo är synlig - const wantLogo = Math.random() < LOGO_PROBABILITY; - if (wantLogo && isLogoTargetVisible()) { - runLogoPulse(14000 + Math.random() * 4000); - schedule(); - return; - } - const boxes = refreshBoxes(); const intersecting: SVGPathElement[] = []; const nonIntersecting: SVGPathElement[] = []; diff --git a/src/layouts/MainLayout.astro b/src/layouts/MainLayout.astro index e87084a..f19a0aa 100644 --- a/src/layouts/MainLayout.astro +++ b/src/layouts/MainLayout.astro @@ -30,6 +30,12 @@ const { title } = Astro.props;
+

+ Crafting digital experiences for + lyxlimo.se + & + karleksguiden.se +

© {new Date().getFullYear()} Images by Olofsson. All rights reserved.

diff --git a/src/pages/index.astro b/src/pages/index.astro index 2283847..4bfaa5a 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -140,6 +140,17 @@ import WaveBackground from '../components/WaveBackground.astro'; text-shadow: 0 0 25px rgba(79,209,197,0.85), 0 0 50px rgba(79,209,197,0.55); transition: text-shadow 0.6s ease; } + #text-wrapper[data-logo-tint="magenta"] ~ * .smoky-path, + #text-wrapper[data-logo-tint="magenta"] .smoky-path { + animation: none !important; + stroke: #c026d3 !important; + opacity: 0.95 !important; + filter: url(#fog-filter) drop-shadow(0 0 12px rgba(192,38,211,0.7)); + } + #text-wrapper[data-logo-tint="magenta"] h1 { + text-shadow: 0 0 25px rgba(192,38,211,0.85), 0 0 50px rgba(192,38,211,0.55); + transition: text-shadow 0.6s ease; + } #text-wrapper h1 { transition: text-shadow 0.8s ease; } @@ -283,4 +294,18 @@ import WaveBackground from '../components/WaveBackground.astro'; }, { threshold: 0.1 }); if (footer) observer.observe(footer); + + // FOOTER-LÄNKAR HOVER: ändra logo-glow när användare hovrar lyxlimo/karleksguiden-länkar + const glowLinks = document.querySelectorAll('[data-glow-link]'); + glowLinks.forEach(link => { + link.addEventListener('mouseenter', () => { + if (!textWrapper) return; + const tint = link.getAttribute('data-glow-link'); + if (tint) textWrapper.setAttribute('data-logo-tint', tint); + }); + link.addEventListener('mouseleave', () => { + if (!textWrapper) return; + textWrapper.removeAttribute('data-logo-tint'); + }); + }); \ No newline at end of file