af5294f Show on GitHub
- Author: Alisa
- Date: 1/20/2026, 11:24:59 PM
- Message: refactor(hero): simplify slider logic and improve accessibility - Replaced GSAP timeline animations with a lightweight interval-based slideshow. - Added autoplay start/stop helpers and clear cleanup on destroy to prevent leaks. - Respected prefers-reduced-motion by disabling autoplay when motion reduction is enabled. - Renamed/streamlined slide navigation functions (next/prev + userNext/userPrev) and wired buttons directly to handlers. - Added sr-only labels for icon-only arrow buttons (removed reliance on aria-label for controls). - Updated hero CTA to a semantic link (<a href="/tickets">) instead of a button. - Kept responsive <picture> sources (AVIF/WEBP) and prioritized the first slide with fetchpriority/ eager loading. refs #244
- Stats: 111 total changes (+60 / -51)
Changed Files
src/lib/components/organisms/hero/Hero.svelte— +57 / -48 (105 changes)src/lib/styles/global-styles.css— +3 / -3 (6 changes)