import { useState } from "react"; import { Dialog, DialogPanel } from "@headlessui/react"; import { Bars3Icon, XMarkIcon } from "@heroicons/react/24/outline"; import Autoplay from "embla-carousel-autoplay"; import { Carousel, CarouselContent, CarouselItem, } from "@/components/ui/carousel"; import { defaultLocale } from "../../../i18n/config"; import { t } from "../../../i18n/utils"; 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"; const navigation = [ { name: "Landing 1", href: "/landing-1" }, { name: "Landing 2", href: "/landing-2" }, { name: "Landing 3", href: "/landing-3" }, ]; 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: 5000, stopOnInteraction: false, stopOnMouseEnter: false, }); export default function SimpleCenteredWithImageSlider() { const [mobileMenuOpen, setMobileMenuOpen] = useState(false); return (
Cachet Peintres Décorateurs Cachet Peintres Décorateurs

{general.brandName}

{navigation.map((item) => ( {item.name} ))}
{/* Full-screen hero with background carousel */}
{/* Background carousel */} {slides.map((slide, index) => ( {slide.alt} {/* Dark overlay for text legibility */}
))} {/* Hero text content */}
RBQ {general.rbq} · {general.serviceArea} · Soumission gratuite

{t(defaultLocale, "hero.title")}

{t(defaultLocale, "hero.subtitle")}

); }