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:
@@ -0,0 +1,36 @@
|
||||
import type { HeroContent } from './types';
|
||||
|
||||
// Images
|
||||
import hero1 from '../../assets/hero-1.jpg';
|
||||
import hero2 from '../../assets/hero-2.jpg';
|
||||
import newborn from '../../assets/newborn.jpg';
|
||||
import hero4 from '../../assets/hero-4.jpg';
|
||||
import hero5 from '../../assets/hero-5.jpg';
|
||||
import hero6 from '../../assets/hero-6.jpg';
|
||||
|
||||
// Statische content tot de CMS-API er is. Daarna komt dit object uit de API.
|
||||
const heroContent: HeroContent = {
|
||||
title: 'Andrea Slop',
|
||||
tagline: 'Lifestyle fotograaf · Huizen',
|
||||
cta: { label: 'Lees meer', to: '/over-mij' },
|
||||
slides: [
|
||||
{ id: 'hero-1', src: hero1, alt: 'Lifestyle fotografie van Andrea Slop' },
|
||||
{ id: 'hero-2', src: hero2, alt: 'Zwangerschapsshoot in de buitenlucht' },
|
||||
{ id: 'newborn', src: newborn, alt: 'Newbornshoot van een pasgeboren baby' },
|
||||
{ id: 'hero-4', src: hero4, alt: 'Spontaan portret buiten' },
|
||||
{ id: 'hero-5', src: hero5, alt: 'Natuurlijke lifestylefoto' },
|
||||
{ id: 'hero-6', src: hero6, alt: 'Portret in de natuur' },
|
||||
],
|
||||
socials: [
|
||||
{
|
||||
platform: 'facebook',
|
||||
href: 'https://www.facebook.com/andreaslopfotografie/',
|
||||
},
|
||||
{
|
||||
platform: 'instagram',
|
||||
href: 'https://www.instagram.com/andreaslopfotografie/',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export default heroContent;
|
||||
Reference in New Issue
Block a user