Builds the hero slider with arrows, swipe, and social icons

Replaces the placeholder hero with a crossfading slider (slow zoom, 6s per
slide) driven by the progress bar animation; it pauses on mouse hover,
keyboard focus, and hidden tabs, and skips autoplay with reduced motion.
Adds prev/next arrows and touch swipe, and Facebook/Instagram icons from a
fixed set of platforms using bundled Iconify data (@iconify/react/offline
and @iconify-icons/ant-design, so no runtime API calls).

Content (tagline, title, CTA, slides, socials) is plain data in
heroContent.ts and passed in as a prop, so it can come from the CMS API
later. The tagline sits inside the h1 together with the name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-13 23:12:42 +02:00
co-authored by Claude Opus 5.5
parent 8a8e2bd922
commit 614707bfff
15 changed files with 393 additions and 42 deletions
+2 -1
View File
@@ -1,10 +1,11 @@
import { createFileRoute } from '@tanstack/react-router';
import Hero from '../components/Hero/Hero';
import heroContent from '../components/Hero/heroContent';
export const Route = createFileRoute('/')({
component: Index,
});
function Index() {
return <Hero />;
return <Hero content={heroContent} />;
}