import { Carousel, CarouselContent, CarouselItem, } from "@/components/ui/carousel"; import Autoplay from "embla-carousel-autoplay"; import general from "../../content/settings/general.json"; import photo1 from "@/assets/photos/empty-room-blue-wall-with-moulding-and-parquet-fl-2023-11-27-04-52-31-utc.webp"; import photo2 from "@/assets/photos/the-attic-of-a-home-with-white-ceilings-and-white-2023-11-27-05-27-44-utc.webp"; import photo3 from "@/assets/photos/silver-and-white-apartment-interior-2023-11-27-05-32-03-utc.webp"; import photo4 from "@/assets/photos/a-bedroom-with-white-walls-and-a-bed-and-a-2023-11-27-05-25-30-utc.webp"; import photo5 from "@/assets/photos/empty-room-with-window-2023-11-27-05-08-12-utc.webp"; import logo from "@/assets/cachet-hero-logo.svg"; export type HeroContent = { title: string; title2: string; subtitle: string; cta: string; ctaHref: string; }; const slides = [ { src: photo1.src, alt: "Peinture intérieure" }, { src: photo2.src, alt: "Décoration murale" }, { src: photo3.src, alt: "Finition de qualité" }, { src: photo4.src, alt: "Chambre" }, { src: photo5.src, alt: "Pièce lumineuse" }, ]; const autoplayPlugin = Autoplay({ delay: 4000, stopOnInteraction: false, stopOnMouseEnter: false, }); export default function Hero({ content }: { content: HeroContent }) { const { subtitle, cta, ctaHref } = content; return (
{slides.map((slide, index) => ( {slide.alt}
))}
{/*
RBQ {general.rbq} · {general.serviceArea} · {pillCta}
*/} {/*

{title}

{title2}

*/} {general.siteName}

{subtitle}

); }