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,13 @@
|
||||
import facebookFilled from '@iconify-icons/ant-design/facebook-filled';
|
||||
import instagramFilled from '@iconify-icons/ant-design/instagram-filled';
|
||||
|
||||
// Vaste set ondersteunde platforms. De icon-data zit in de build, dus er gaat
|
||||
// geen request naar de Iconify API. Het CMS levert alleen de links aan.
|
||||
const socialPlatforms = {
|
||||
facebook: { name: 'Facebook', icon: facebookFilled },
|
||||
instagram: { name: 'Instagram', icon: instagramFilled },
|
||||
};
|
||||
|
||||
export type SocialPlatform = keyof typeof socialPlatforms;
|
||||
|
||||
export default socialPlatforms;
|
||||
Reference in New Issue
Block a user