<div class="px-0 flex flex-col gap-14 md:gap-28 pt-20 md:pt-48 ">
<div class="container">
<div class="flex flex-col gap-6 w-4/5 mx-auto">
<svg xmlns="http://www.w3.org/2000/svg" width="96" height="25" viewBox="0 0 96 25" fill="none" class="h-6 md:h-8">
<path fill-rule="evenodd" clip-rule="evenodd" d="M42.8762 12.3001C42.8762 18.5023 47.7302 24.1652 54.0672 24.1652C59.865 24.1652 64.4493 19.3113 64.8538 13.6484H54.6066V18.0978H57.8425C56.629 19.1765 55.5504 19.8506 53.9324 19.8506C49.6178 19.8506 45.8425 15.4012 45.8425 11.2214C45.8425 6.63713 48.9436 1.91803 53.9324 1.91803C57.1684 1.91803 59.9998 3.80567 61.7526 6.5023H59.9998C58.5167 4.61466 56.2245 3.40118 53.9324 3.40118C49.0785 3.40118 47.4605 8.25511 47.4605 12.4349H47.5953C47.5953 8.79443 50.0223 4.88432 53.9324 4.88432C56.0897 4.88432 57.9773 6.09781 59.1908 7.85061H64.1796C62.4268 3.53601 58.5167 0.300049 53.9324 0.300049C47.9998 0.300049 44.3594 5.55848 44.3594 11.2214C44.3594 16.345 48.5391 21.1989 53.9324 21.1989C57.0335 21.1989 59.4605 19.3113 60.9436 16.6147H56.0897V15.1315H63.1009C62.0223 19.3113 58.3818 22.6821 53.9324 22.6821C47.9998 22.6821 43.0111 18.5023 43.0111 12.3001H42.8762ZM20.4944 0.569702L11.3258 20.3899L2.83146 5.01914V22.5472H1.34832V2.05285H2.83146L11.191 17.154L18.8764 0.569702H17.2584L11.0562 13.918L3.77528 0.569702H0V24.0304H4.31461V10.6821L11.4607 23.6259L20.4944 4.07532V22.5472H19.0112V10.8169L17.5281 13.918V24.0304H21.9775V0.569702H20.4944ZM31.011 0.569702L23.0559 24.0304H27.775L29.7975 18.0978H36.8087L38.8312 24.0304H43.5503L36.5391 3.1315L35.7301 5.42364L41.5278 22.5472H39.9099L37.8874 16.6147H28.7188L26.6964 22.5472H25.0784L32.0896 2.05285H33.7076L32.4941 5.42364L35.3256 13.7832H31.2806L32.4941 10.1427L31.6851 7.71577L29.1233 15.1315H37.4829L34.1121 5.42364L35.7301 0.569702H31.011ZM67.4158 24.0304V0.569702H71.7304V2.05285H68.8989V22.5472H70.2472V3.40117H71.7304V24.0304H67.4158ZM85.483 4.74949C88.5841 4.74949 90.7414 6.36746 91.8201 9.33375H95.9999C94.7864 4.47982 90.4718 0.434875 85.3482 0.434875C78.6066 0.434875 75.7751 6.36746 75.7751 12.4349C75.7751 17.5585 80.4942 21.3338 85.3482 21.3338C87.6403 21.3338 89.7976 19.9854 91.2808 18.2326H93.1684C91.5504 20.7944 88.5841 22.8169 85.3482 22.8169C79.4156 22.8169 74.4268 18.5023 74.4268 12.3H74.292C74.292 18.5023 79.1459 24.3001 85.483 24.3001C90.0673 24.3001 94.1122 20.9293 95.7302 16.7495H90.7414C89.528 18.5023 87.6403 19.9854 85.483 19.9854C81.5729 19.9854 77.3931 16.6147 77.3931 12.4349C77.3931 7.31128 79.6852 1.91802 85.483 1.91802C89.2583 1.91802 92.6291 4.47982 94.1122 7.98544H92.6291C91.2808 5.15398 88.4493 3.40117 85.483 3.40117C80.6291 3.40117 79.0111 8.12027 79.0111 12.3H79.1459C79.1459 8.52477 81.4381 4.74949 85.483 4.74949Z" fill="currentColor" />
</svg>
<h2 class="font-medium text-4xl md:text-6xl">Autant de clips, autant de looks.</h2>
</div>
</div>
<div class="video-container w-auto h-[500px] md:w-full md:h-auto ">
<div x-data="videoAnimation( true )" class="plyr__video flex justify-center h-full ">
<video x-ref="videoPlayer" autoplay loop muted playsinline>
<source src="/videos/magic.mp4" type="video/mp4" media="(min-width: 768px)">
<source src="/videos/magic2.mp4" type="video/mp4" media="(max-width: 767px)">
<source src="/videos/magic.mp4" type="video/mp4">
Votre navigateur ne supporte pas la balise vidéo.
</video>
</div>
<script>
function videoAnimation(enableGsap = false) {
return {
enableGsap: enableGsap,
plyr: null,
init() {
// Initialisation de Plyr
this.plyr = new Plyr(this.$refs.videoPlayer, {
autoplay: true,
controls: ["play"]
});
if (this.enableGsap) {
this.initGsap();
}
},
initGsap() {
gsap.registerPlugin(ScrollTrigger);
const video = this.$refs.videoPlayer;
const container = document.querySelector('.container');
if (video) {
const containerWidth = container.offsetWidth;
const trigger = gsap.fromTo(
this.plyr.elements.container, {
width: "100vw"
}, {
width: (containerWidth - 32),
marginLeft: "16px",
marginRight: "16px",
ease: "power1.out",
"border-radius": "8px",
scrollTrigger: {
trigger: video,
start: 'top-=450 top',
end: "top-=50 top",
scrub: true,
once: true,
// markers: true, // Pour debug, à retirer en production
}
}
);
} else {
console.error("L'élément vidéo n'a pas été trouvé dans le DOM.");
}
}
};
}
</script>
</div>
<div class="container px-0 flex flex-col gap-14 md:gap-28" x-data="{ shown: false }" x-intersect.threshold.50.once="shown = true">
<div class="flex flex-col items-center gap-10 w-4/5 mx-auto" x-ref="buttonMagic" x-ref="sliderMagic" x-bind:class="{ 'invisible': !shown, 'visible': shown }" x-transition:enter="transition-opacity duration-300" x-transition:leave="transition-opacity duration-300">
<p class="font-medium text-xl tmd:ext-2xl self-start">MAGIC, un concept innovant et pratique pour ceux qui souhaitent avoir une seule paire de lunettes avec un style personnalisable et des fonctionnalités multiples.</p>
<div class="flex flex-col md:flex-row gap-4">
<a href="https://www.afflelou.com/" target="_blank" rel="noopenner noreferer" :class="isMagicDark ? 'btn-light-subtle' : 'btn-dark-subtle'" class="mx-auto w-full md:w-auto justify-center btn btn-dark ">
En savoir plus
</a>
</div>
</div>
</div>
<div x-data="{ shown: false }" x-intersect.threshold.50.once="shown = true">
<div class="container" x-ref="sliderMagic" x-bind:class="{ 'invisible': !shown, 'visible': shown }" x-transition:enter="transition-opacity duration-300" x-transition:leave="transition-opacity duration-300">
<div x-data="initCarouselcarousel650919692()" x-init="init()" class="relative w-full h-full mx-auto">
<div class="flex justify-between items-center mb-8 ">
<h2 class="text-3xl font-semibold ">La collection MAGIC</h2>
<div class="flex items-center justify-center space-x-4 ">
<a href="https://www.afflelou.com/" target="_blank" rel="noopenner noreferer" :class="isMagicDark ? 'btn-light-subtle' : 'btn-dark-subtle'" class="hidden sm:inline-flex mx-auto btn btn-dark-subtle ">
Voir toute la collection
</a>
<div class=" hidden sm:flex flex space-x-2">
<button type="button" :class="isMagicDark ? 'btn-light-subtle' : 'btn-dark-subtle'" class="carousel-button-prev-carousel-650919692 before:border-none btn btn-dark-subtle btn-only-icon">
<svg class=" shrink-0" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.46967 12.5303C9.17678 12.2374 9.17678 11.7626 9.46967 11.4697L13.4697 7.46967C13.7626 7.17678 14.2374 7.17678 14.5303 7.46967C14.8232 7.76256 14.8232 8.23744 14.5303 8.53033L11.0607 12L14.5303 15.4697C14.8232 15.7626 14.8232 16.2374 14.5303 16.5303C14.2374 16.8232 13.7626 16.8232 13.4697 16.5303L9.46967 12.5303Z" fill="currentColor" />
</svg>
</button>
<button type="button" :class="isMagicDark ? 'btn-light-subtle' : 'btn-dark-subtle'" class="carousel-button-next-carousel-650919692 before:border-none btn btn-dark-subtle btn-only-icon">
<svg class=" shrink-0" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.5303 11.4697C14.8232 11.7626 14.8232 12.2374 14.5303 12.5303L10.5303 16.5303C10.2374 16.8232 9.76256 16.8232 9.46967 16.5303C9.17678 16.2374 9.17678 15.7626 9.46967 15.4697L12.9393 12L9.46967 8.53033C9.17678 8.23744 9.17678 7.76256 9.46967 7.46967C9.76256 7.17678 10.2374 7.17678 10.5303 7.46967L14.5303 11.4697Z" fill="currentColor" />
</svg>
</button>
</div>
</div>
</div>
<div x-ref="swiperContainer" id="carousel-650919692" class="swiper md:h-full">
<div class="swiper-wrapper ">
<div class="swiper-slide !transform-none " data-theme="light" data-hash="index-carousel-650919692-0">
<div class="flex flex-col space-y-4 ">
<a href="#" class="block relative aspect-square overflow-hidden bg-gray-100 rounded-lg group hover:after:!h-0 noAbsolute">
<div class="relative w-full h-full">
<img src="/img/productsSlider/magicProduct1.png" alt="MAGIC 262" class="w-full h-full object-cover transition-all duration-300 absolute inset-0 group-hover:opacity-0 ">
<img src="/img/productsSlider/hoverMagicProduct1.png" alt="MAGIC 262 - Vue alternative" class="w-full h-full object-cover transition-all duration-300 absolute inset-0 opacity-0 group-hover:opacity-100">
</div>
<div class="absolute bottom-4 right-1/2 flex space-x-4 translate-x-2/4 duration-300 z-20">
<button type="button" class="group-hover:!btn-dark-ghost btn btn-light-ghost btn-size-sm btn-only-icon">
<svg class=" shrink-0" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.4907 20.5806C12.4538 20.603 12.4158 20.6259 12.3786 20.6477C12.1434 20.785 11.8519 20.7838 11.6176 20.645L11.5062 20.5774C11.4366 20.5345 11.3359 20.4717 11.2087 20.3901C10.9544 20.227 10.5934 19.9884 10.1613 19.6831C9.2984 19.0734 8.14487 18.193 6.98812 17.1121C4.71943 14.9921 2.25 11.9278 2.25 8.51266C2.25 5.58716 4.58441 3.25 7.5 3.25C9.03842 3.25 10.3421 4.16053 11.1962 4.9489C11.5116 5.24006 11.7824 5.53002 12 5.78205C12.2176 5.53002 12.4884 5.24006 12.8038 4.9489C13.6579 4.16053 14.9616 3.25 16.5 3.25C19.4142 3.25 21.75 5.58579 21.75 8.5C21.75 11.9589 19.283 15.0258 17.0112 17.1406C15.8539 18.218 14.6998 19.0918 13.8365 19.6958C13.4042 19.9983 13.043 20.2343 12.7885 20.3956C12.6612 20.4762 12.5604 20.5382 12.4907 20.5806ZM3.75 8.51266C3.75 11.2516 5.78075 13.9309 8.01225 16.0161C9.10559 17.0378 10.2022 17.8753 11.0268 18.458C11.4296 18.7425 11.7658 18.9651 12.0029 19.1175C12.2398 18.9672 12.5751 18.7476 12.9766 18.4667C13.8007 17.8902 14.8966 17.0598 15.9892 16.0427C18.2172 13.9686 20.25 11.2855 20.25 8.5C20.25 6.41421 18.5858 4.75 16.5 4.75C15.5384 4.75 14.5921 5.33947 13.8212 6.0511C13.4488 6.3949 13.1457 6.74102 12.9356 7.00175C12.8311 7.13154 12.7508 7.23868 12.6977 7.31179C12.6712 7.34831 12.6515 7.37623 12.6391 7.39411L12.626 7.41317L12.624 7.41603C12.4849 7.62448 12.2506 7.75 12 7.75C11.7496 7.75 11.5153 7.62451 11.3762 7.41634L11.374 7.41317L11.3609 7.39411C11.3485 7.37623 11.3288 7.34831 11.3023 7.31179C11.2492 7.23868 11.1689 7.13154 11.0644 7.00175C10.8543 6.74102 10.5512 6.3949 10.1788 6.0511C9.72644 5.63355 9.21372 5.25805 8.67296 5.01901C8.29212 4.85066 7.89737 4.75 7.5 4.75C5.41559 4.75 3.75 6.41284 3.75 8.51266Z" fill="currentColor" />
</svg>
</button>
<button type="button" class="group-hover:!btn-dark-ghost btn btn-light-ghost btn-size-sm btn-only-icon">
<svg class=" shrink-0" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.5 4.25C3.87665 4.25 1.75 6.37665 1.75 9V15C1.75 17.6234 3.87665 19.75 6.5 19.75H12.5C14.7589 19.75 16.6495 18.1732 17.1312 16.0603L19.8501 17.1478C20.9996 17.6076 22.25 16.7611 22.25 15.523V12V8.47706C22.25 7.239 20.9996 6.39242 19.8501 6.85223L17.1312 7.93976C16.6495 5.82679 14.7589 4.25 12.5 4.25H6.5ZM17.25 9.5078L20.4072 8.24494C20.5714 8.17925 20.75 8.30019 20.75 8.47706V12V15.523C20.75 15.6999 20.5714 15.8208 20.4072 15.7551L17.25 14.4923V9.5078ZM15.75 9.33854V14.6615V15C15.75 16.7949 14.2949 18.25 12.5 18.25H6.5C4.70507 18.25 3.25 16.7949 3.25 15V9C3.25 7.20507 4.70507 5.75 6.5 5.75H12.5C14.2949 5.75 15.75 7.20507 15.75 9V9.33854Z" fill="currentColor" />
</svg>
</button>
</div>
</a>
<div class="px-2">
<p class="text-xxs font-semibold text-neutral-500">ALAIN AFFLELOU</p>
<h3 class="font-semibold text-neutral-800 pt-0.5">MAGIC 262</h3>
<p class="text-xs text-neutral-500 pt-1">Lunettes de vue MAGIC + 2 clips inclus</p>
<p class="text-xs text-neutral-500 pt-2">3 couleurs disponibles</p>
<div class="pt-3">
<p class="text-[9px] text-neutral-500">PRIX WEB</p>
<div class="flex items-center gap-2">
<p class="font-semibold text-neutral-800">
199,00 €
</p>
</div>
</div>
</div>
</div>
</div>
<div class="swiper-slide !transform-none " data-theme="light" data-hash="index-carousel-650919692-1">
<div class="flex flex-col space-y-4 ">
<a href="#" class="block relative aspect-square overflow-hidden bg-gray-100 rounded-lg group hover:after:!h-0 noAbsolute">
<div class="relative w-full h-full">
<img src="/img/productsSlider/magicProduct2.png" alt="Enola" class="w-full h-full object-cover transition-all duration-300 absolute inset-0 group-hover:opacity-0 ">
<img src="/img/productsSlider/hoverMagicProduct2.png" alt="Enola - Vue alternative" class="w-full h-full object-cover transition-all duration-300 absolute inset-0 opacity-0 group-hover:opacity-100">
</div>
<div class="absolute bottom-4 right-1/2 flex space-x-4 translate-x-2/4 duration-300 z-20">
<button type="button" class="group-hover:!btn-dark-ghost btn btn-light-ghost btn-size-sm btn-only-icon">
<svg class=" shrink-0" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.4907 20.5806C12.4538 20.603 12.4158 20.6259 12.3786 20.6477C12.1434 20.785 11.8519 20.7838 11.6176 20.645L11.5062 20.5774C11.4366 20.5345 11.3359 20.4717 11.2087 20.3901C10.9544 20.227 10.5934 19.9884 10.1613 19.6831C9.2984 19.0734 8.14487 18.193 6.98812 17.1121C4.71943 14.9921 2.25 11.9278 2.25 8.51266C2.25 5.58716 4.58441 3.25 7.5 3.25C9.03842 3.25 10.3421 4.16053 11.1962 4.9489C11.5116 5.24006 11.7824 5.53002 12 5.78205C12.2176 5.53002 12.4884 5.24006 12.8038 4.9489C13.6579 4.16053 14.9616 3.25 16.5 3.25C19.4142 3.25 21.75 5.58579 21.75 8.5C21.75 11.9589 19.283 15.0258 17.0112 17.1406C15.8539 18.218 14.6998 19.0918 13.8365 19.6958C13.4042 19.9983 13.043 20.2343 12.7885 20.3956C12.6612 20.4762 12.5604 20.5382 12.4907 20.5806ZM3.75 8.51266C3.75 11.2516 5.78075 13.9309 8.01225 16.0161C9.10559 17.0378 10.2022 17.8753 11.0268 18.458C11.4296 18.7425 11.7658 18.9651 12.0029 19.1175C12.2398 18.9672 12.5751 18.7476 12.9766 18.4667C13.8007 17.8902 14.8966 17.0598 15.9892 16.0427C18.2172 13.9686 20.25 11.2855 20.25 8.5C20.25 6.41421 18.5858 4.75 16.5 4.75C15.5384 4.75 14.5921 5.33947 13.8212 6.0511C13.4488 6.3949 13.1457 6.74102 12.9356 7.00175C12.8311 7.13154 12.7508 7.23868 12.6977 7.31179C12.6712 7.34831 12.6515 7.37623 12.6391 7.39411L12.626 7.41317L12.624 7.41603C12.4849 7.62448 12.2506 7.75 12 7.75C11.7496 7.75 11.5153 7.62451 11.3762 7.41634L11.374 7.41317L11.3609 7.39411C11.3485 7.37623 11.3288 7.34831 11.3023 7.31179C11.2492 7.23868 11.1689 7.13154 11.0644 7.00175C10.8543 6.74102 10.5512 6.3949 10.1788 6.0511C9.72644 5.63355 9.21372 5.25805 8.67296 5.01901C8.29212 4.85066 7.89737 4.75 7.5 4.75C5.41559 4.75 3.75 6.41284 3.75 8.51266Z" fill="currentColor" />
</svg>
</button>
<button type="button" class="group-hover:!btn-dark-ghost btn btn-light-ghost btn-size-sm btn-only-icon">
<svg class=" shrink-0" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.5 4.25C3.87665 4.25 1.75 6.37665 1.75 9V15C1.75 17.6234 3.87665 19.75 6.5 19.75H12.5C14.7589 19.75 16.6495 18.1732 17.1312 16.0603L19.8501 17.1478C20.9996 17.6076 22.25 16.7611 22.25 15.523V12V8.47706C22.25 7.239 20.9996 6.39242 19.8501 6.85223L17.1312 7.93976C16.6495 5.82679 14.7589 4.25 12.5 4.25H6.5ZM17.25 9.5078L20.4072 8.24494C20.5714 8.17925 20.75 8.30019 20.75 8.47706V12V15.523C20.75 15.6999 20.5714 15.8208 20.4072 15.7551L17.25 14.4923V9.5078ZM15.75 9.33854V14.6615V15C15.75 16.7949 14.2949 18.25 12.5 18.25H6.5C4.70507 18.25 3.25 16.7949 3.25 15V9C3.25 7.20507 4.70507 5.75 6.5 5.75H12.5C14.2949 5.75 15.75 7.20507 15.75 9V9.33854Z" fill="currentColor" />
</svg>
</button>
</div>
</a>
<div class="px-2">
<p class="text-xxs font-semibold text-neutral-500">ALAIN AFFLELOU</p>
<h3 class="font-semibold text-neutral-800 pt-0.5">Enola</h3>
<p class="text-xs text-neutral-500 pt-1">Lunettes de vue MAGIC</p>
<p class="text-xs text-neutral-500 pt-2">5 couleurs disponibles</p>
<div class="pt-3">
<p class="text-[9px] text-neutral-500">PRIX WEB</p>
<div class="flex items-center gap-2">
<p class="font-semibold text-neutral-800">
109,00 €
</p>
</div>
</div>
</div>
</div>
</div>
<div class="swiper-slide !transform-none " data-theme="light" data-hash="index-carousel-650919692-2">
<div class="flex flex-col space-y-4 ">
<a href="#" class="block relative aspect-square overflow-hidden bg-gray-100 rounded-lg group hover:after:!h-0 noAbsolute">
<div class="relative w-full h-full">
<img src="/img/productsSlider/magicProduct3.png" alt="MAGIC 222" class="w-full h-full object-cover transition-all duration-300 absolute inset-0 group-hover:opacity-0 ">
<img src="/img/productsSlider/hoverMagicProduct3.png" alt="MAGIC 222 - Vue alternative" class="w-full h-full object-cover transition-all duration-300 absolute inset-0 opacity-0 group-hover:opacity-100">
</div>
<div class="absolute bottom-4 right-1/2 flex space-x-4 translate-x-2/4 duration-300 z-20">
<button type="button" class="group-hover:!btn-dark-ghost btn btn-light-ghost btn-size-sm btn-only-icon">
<svg class=" shrink-0" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.4907 20.5806C12.4538 20.603 12.4158 20.6259 12.3786 20.6477C12.1434 20.785 11.8519 20.7838 11.6176 20.645L11.5062 20.5774C11.4366 20.5345 11.3359 20.4717 11.2087 20.3901C10.9544 20.227 10.5934 19.9884 10.1613 19.6831C9.2984 19.0734 8.14487 18.193 6.98812 17.1121C4.71943 14.9921 2.25 11.9278 2.25 8.51266C2.25 5.58716 4.58441 3.25 7.5 3.25C9.03842 3.25 10.3421 4.16053 11.1962 4.9489C11.5116 5.24006 11.7824 5.53002 12 5.78205C12.2176 5.53002 12.4884 5.24006 12.8038 4.9489C13.6579 4.16053 14.9616 3.25 16.5 3.25C19.4142 3.25 21.75 5.58579 21.75 8.5C21.75 11.9589 19.283 15.0258 17.0112 17.1406C15.8539 18.218 14.6998 19.0918 13.8365 19.6958C13.4042 19.9983 13.043 20.2343 12.7885 20.3956C12.6612 20.4762 12.5604 20.5382 12.4907 20.5806ZM3.75 8.51266C3.75 11.2516 5.78075 13.9309 8.01225 16.0161C9.10559 17.0378 10.2022 17.8753 11.0268 18.458C11.4296 18.7425 11.7658 18.9651 12.0029 19.1175C12.2398 18.9672 12.5751 18.7476 12.9766 18.4667C13.8007 17.8902 14.8966 17.0598 15.9892 16.0427C18.2172 13.9686 20.25 11.2855 20.25 8.5C20.25 6.41421 18.5858 4.75 16.5 4.75C15.5384 4.75 14.5921 5.33947 13.8212 6.0511C13.4488 6.3949 13.1457 6.74102 12.9356 7.00175C12.8311 7.13154 12.7508 7.23868 12.6977 7.31179C12.6712 7.34831 12.6515 7.37623 12.6391 7.39411L12.626 7.41317L12.624 7.41603C12.4849 7.62448 12.2506 7.75 12 7.75C11.7496 7.75 11.5153 7.62451 11.3762 7.41634L11.374 7.41317L11.3609 7.39411C11.3485 7.37623 11.3288 7.34831 11.3023 7.31179C11.2492 7.23868 11.1689 7.13154 11.0644 7.00175C10.8543 6.74102 10.5512 6.3949 10.1788 6.0511C9.72644 5.63355 9.21372 5.25805 8.67296 5.01901C8.29212 4.85066 7.89737 4.75 7.5 4.75C5.41559 4.75 3.75 6.41284 3.75 8.51266Z" fill="currentColor" />
</svg>
</button>
<button type="button" class="group-hover:!btn-dark-ghost btn btn-light-ghost btn-size-sm btn-only-icon">
<svg class=" shrink-0" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.5 4.25C3.87665 4.25 1.75 6.37665 1.75 9V15C1.75 17.6234 3.87665 19.75 6.5 19.75H12.5C14.7589 19.75 16.6495 18.1732 17.1312 16.0603L19.8501 17.1478C20.9996 17.6076 22.25 16.7611 22.25 15.523V12V8.47706C22.25 7.239 20.9996 6.39242 19.8501 6.85223L17.1312 7.93976C16.6495 5.82679 14.7589 4.25 12.5 4.25H6.5ZM17.25 9.5078L20.4072 8.24494C20.5714 8.17925 20.75 8.30019 20.75 8.47706V12V15.523C20.75 15.6999 20.5714 15.8208 20.4072 15.7551L17.25 14.4923V9.5078ZM15.75 9.33854V14.6615V15C15.75 16.7949 14.2949 18.25 12.5 18.25H6.5C4.70507 18.25 3.25 16.7949 3.25 15V9C3.25 7.20507 4.70507 5.75 6.5 5.75H12.5C14.2949 5.75 15.75 7.20507 15.75 9V9.33854Z" fill="currentColor" />
</svg>
</button>
</div>
</a>
<div class="px-2">
<p class="text-xxs font-semibold text-neutral-500">ALAIN AFFLELOU</p>
<h3 class="font-semibold text-neutral-800 pt-0.5">MAGIC 222</h3>
<p class="text-xs text-neutral-500 pt-1">Lunettes de vue MAGIC + 2 clips inclus</p>
<p class="text-xs text-neutral-500 pt-2">2 couleurs disponibles</p>
<div class="pt-3">
<p class="text-[9px] text-neutral-500">PRIX WEB</p>
<div class="flex items-center gap-2">
<p class="font-semibold text-neutral-800">
179,00 €
</p>
</div>
</div>
</div>
</div>
</div>
<div class="swiper-slide !transform-none " data-theme="light" data-hash="index-carousel-650919692-3">
<div class="flex flex-col space-y-4 ">
<a href="#" class="block relative aspect-square overflow-hidden bg-gray-100 rounded-lg group hover:after:!h-0 noAbsolute">
<div class="relative w-full h-full">
<img src="/img/productsSlider/magicProduct1.png" alt="Enola" class="w-full h-full object-cover transition-all duration-300 absolute inset-0 group-hover:opacity-0 ">
<img src="/img/productsSlider/hoverMagicProduct1.png" alt="Enola - Vue alternative" class="w-full h-full object-cover transition-all duration-300 absolute inset-0 opacity-0 group-hover:opacity-100">
</div>
<div class="absolute bottom-4 right-1/2 flex space-x-4 translate-x-2/4 duration-300 z-20">
<button type="button" class="group-hover:!btn-dark-ghost btn btn-light-ghost btn-size-sm btn-only-icon">
<svg class=" shrink-0" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.4907 20.5806C12.4538 20.603 12.4158 20.6259 12.3786 20.6477C12.1434 20.785 11.8519 20.7838 11.6176 20.645L11.5062 20.5774C11.4366 20.5345 11.3359 20.4717 11.2087 20.3901C10.9544 20.227 10.5934 19.9884 10.1613 19.6831C9.2984 19.0734 8.14487 18.193 6.98812 17.1121C4.71943 14.9921 2.25 11.9278 2.25 8.51266C2.25 5.58716 4.58441 3.25 7.5 3.25C9.03842 3.25 10.3421 4.16053 11.1962 4.9489C11.5116 5.24006 11.7824 5.53002 12 5.78205C12.2176 5.53002 12.4884 5.24006 12.8038 4.9489C13.6579 4.16053 14.9616 3.25 16.5 3.25C19.4142 3.25 21.75 5.58579 21.75 8.5C21.75 11.9589 19.283 15.0258 17.0112 17.1406C15.8539 18.218 14.6998 19.0918 13.8365 19.6958C13.4042 19.9983 13.043 20.2343 12.7885 20.3956C12.6612 20.4762 12.5604 20.5382 12.4907 20.5806ZM3.75 8.51266C3.75 11.2516 5.78075 13.9309 8.01225 16.0161C9.10559 17.0378 10.2022 17.8753 11.0268 18.458C11.4296 18.7425 11.7658 18.9651 12.0029 19.1175C12.2398 18.9672 12.5751 18.7476 12.9766 18.4667C13.8007 17.8902 14.8966 17.0598 15.9892 16.0427C18.2172 13.9686 20.25 11.2855 20.25 8.5C20.25 6.41421 18.5858 4.75 16.5 4.75C15.5384 4.75 14.5921 5.33947 13.8212 6.0511C13.4488 6.3949 13.1457 6.74102 12.9356 7.00175C12.8311 7.13154 12.7508 7.23868 12.6977 7.31179C12.6712 7.34831 12.6515 7.37623 12.6391 7.39411L12.626 7.41317L12.624 7.41603C12.4849 7.62448 12.2506 7.75 12 7.75C11.7496 7.75 11.5153 7.62451 11.3762 7.41634L11.374 7.41317L11.3609 7.39411C11.3485 7.37623 11.3288 7.34831 11.3023 7.31179C11.2492 7.23868 11.1689 7.13154 11.0644 7.00175C10.8543 6.74102 10.5512 6.3949 10.1788 6.0511C9.72644 5.63355 9.21372 5.25805 8.67296 5.01901C8.29212 4.85066 7.89737 4.75 7.5 4.75C5.41559 4.75 3.75 6.41284 3.75 8.51266Z" fill="currentColor" />
</svg>
</button>
<button type="button" class="group-hover:!btn-dark-ghost btn btn-light-ghost btn-size-sm btn-only-icon">
<svg class=" shrink-0" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.5 4.25C3.87665 4.25 1.75 6.37665 1.75 9V15C1.75 17.6234 3.87665 19.75 6.5 19.75H12.5C14.7589 19.75 16.6495 18.1732 17.1312 16.0603L19.8501 17.1478C20.9996 17.6076 22.25 16.7611 22.25 15.523V12V8.47706C22.25 7.239 20.9996 6.39242 19.8501 6.85223L17.1312 7.93976C16.6495 5.82679 14.7589 4.25 12.5 4.25H6.5ZM17.25 9.5078L20.4072 8.24494C20.5714 8.17925 20.75 8.30019 20.75 8.47706V12V15.523C20.75 15.6999 20.5714 15.8208 20.4072 15.7551L17.25 14.4923V9.5078ZM15.75 9.33854V14.6615V15C15.75 16.7949 14.2949 18.25 12.5 18.25H6.5C4.70507 18.25 3.25 16.7949 3.25 15V9C3.25 7.20507 4.70507 5.75 6.5 5.75H12.5C14.2949 5.75 15.75 7.20507 15.75 9V9.33854Z" fill="currentColor" />
</svg>
</button>
</div>
</a>
<div class="px-2">
<p class="text-xxs font-semibold text-neutral-500">ALAIN AFFLELOU</p>
<h3 class="font-semibold text-neutral-800 pt-0.5">Enola</h3>
<p class="text-xs text-neutral-500 pt-1">Lunettes de vue MAGIC</p>
<p class="text-xs text-neutral-500 pt-2">5 couleurs disponibles</p>
<div class="pt-3">
<p class="text-[9px] text-neutral-500">PRIX WEB</p>
<div class="flex items-center gap-2">
<p class="font-semibold text-neutral-800">
109,00 €
</p>
</div>
</div>
</div>
</div>
</div>
<div class="swiper-slide !transform-none " data-theme="light" data-hash="index-carousel-650919692-4">
<div class="flex flex-col space-y-4 ">
<a href="#" class="block relative aspect-square overflow-hidden bg-gray-100 rounded-lg group hover:after:!h-0 noAbsolute">
<div class="relative w-full h-full">
<img src="/img/productsSlider/magicProduct2.png" alt="MAGIC 222" class="w-full h-full object-cover transition-all duration-300 absolute inset-0 group-hover:opacity-0 ">
<img src="/img/productsSlider/hoverMagicProduct2.png" alt="MAGIC 222 - Vue alternative" class="w-full h-full object-cover transition-all duration-300 absolute inset-0 opacity-0 group-hover:opacity-100">
</div>
<div class="absolute bottom-4 right-1/2 flex space-x-4 translate-x-2/4 duration-300 z-20">
<button type="button" class="group-hover:!btn-dark-ghost btn btn-light-ghost btn-size-sm btn-only-icon">
<svg class=" shrink-0" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.4907 20.5806C12.4538 20.603 12.4158 20.6259 12.3786 20.6477C12.1434 20.785 11.8519 20.7838 11.6176 20.645L11.5062 20.5774C11.4366 20.5345 11.3359 20.4717 11.2087 20.3901C10.9544 20.227 10.5934 19.9884 10.1613 19.6831C9.2984 19.0734 8.14487 18.193 6.98812 17.1121C4.71943 14.9921 2.25 11.9278 2.25 8.51266C2.25 5.58716 4.58441 3.25 7.5 3.25C9.03842 3.25 10.3421 4.16053 11.1962 4.9489C11.5116 5.24006 11.7824 5.53002 12 5.78205C12.2176 5.53002 12.4884 5.24006 12.8038 4.9489C13.6579 4.16053 14.9616 3.25 16.5 3.25C19.4142 3.25 21.75 5.58579 21.75 8.5C21.75 11.9589 19.283 15.0258 17.0112 17.1406C15.8539 18.218 14.6998 19.0918 13.8365 19.6958C13.4042 19.9983 13.043 20.2343 12.7885 20.3956C12.6612 20.4762 12.5604 20.5382 12.4907 20.5806ZM3.75 8.51266C3.75 11.2516 5.78075 13.9309 8.01225 16.0161C9.10559 17.0378 10.2022 17.8753 11.0268 18.458C11.4296 18.7425 11.7658 18.9651 12.0029 19.1175C12.2398 18.9672 12.5751 18.7476 12.9766 18.4667C13.8007 17.8902 14.8966 17.0598 15.9892 16.0427C18.2172 13.9686 20.25 11.2855 20.25 8.5C20.25 6.41421 18.5858 4.75 16.5 4.75C15.5384 4.75 14.5921 5.33947 13.8212 6.0511C13.4488 6.3949 13.1457 6.74102 12.9356 7.00175C12.8311 7.13154 12.7508 7.23868 12.6977 7.31179C12.6712 7.34831 12.6515 7.37623 12.6391 7.39411L12.626 7.41317L12.624 7.41603C12.4849 7.62448 12.2506 7.75 12 7.75C11.7496 7.75 11.5153 7.62451 11.3762 7.41634L11.374 7.41317L11.3609 7.39411C11.3485 7.37623 11.3288 7.34831 11.3023 7.31179C11.2492 7.23868 11.1689 7.13154 11.0644 7.00175C10.8543 6.74102 10.5512 6.3949 10.1788 6.0511C9.72644 5.63355 9.21372 5.25805 8.67296 5.01901C8.29212 4.85066 7.89737 4.75 7.5 4.75C5.41559 4.75 3.75 6.41284 3.75 8.51266Z" fill="currentColor" />
</svg>
</button>
<button type="button" class="group-hover:!btn-dark-ghost btn btn-light-ghost btn-size-sm btn-only-icon">
<svg class=" shrink-0" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.5 4.25C3.87665 4.25 1.75 6.37665 1.75 9V15C1.75 17.6234 3.87665 19.75 6.5 19.75H12.5C14.7589 19.75 16.6495 18.1732 17.1312 16.0603L19.8501 17.1478C20.9996 17.6076 22.25 16.7611 22.25 15.523V12V8.47706C22.25 7.239 20.9996 6.39242 19.8501 6.85223L17.1312 7.93976C16.6495 5.82679 14.7589 4.25 12.5 4.25H6.5ZM17.25 9.5078L20.4072 8.24494C20.5714 8.17925 20.75 8.30019 20.75 8.47706V12V15.523C20.75 15.6999 20.5714 15.8208 20.4072 15.7551L17.25 14.4923V9.5078ZM15.75 9.33854V14.6615V15C15.75 16.7949 14.2949 18.25 12.5 18.25H6.5C4.70507 18.25 3.25 16.7949 3.25 15V9C3.25 7.20507 4.70507 5.75 6.5 5.75H12.5C14.2949 5.75 15.75 7.20507 15.75 9V9.33854Z" fill="currentColor" />
</svg>
</button>
</div>
</a>
<div class="px-2">
<p class="text-xxs font-semibold text-neutral-500">ALAIN AFFLELOU</p>
<h3 class="font-semibold text-neutral-800 pt-0.5">MAGIC 222</h3>
<p class="text-xs text-neutral-500 pt-1">Lunettes de vue MAGIC + 2 clips inclus</p>
<p class="text-xs text-neutral-500 pt-2">2 couleurs disponibles</p>
<div class="pt-3">
<p class="text-[9px] text-neutral-500">PRIX WEB</p>
<div class="flex items-center gap-2">
<p class="font-semibold text-neutral-800">
179,00 €
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div x-ref="pagination" class="swiper-pagination-carousel-650919692 swiper-pagination swiper-light" :class="isMagicDark ? 'swiper-dark' : 'swiper-light'"></div>
<div class="flex sm:hidden mt-6">
<a href="https://www.afflelou.com/" target="_blank" rel="noopenner noreferer" :class="isMagicDark ? 'btn-light-subtle' : 'btn-dark-subtle'" class="mx-auto btn btn-dark-subtle ">
Voir toute la collection
</a>
</div>
</div>
</div>
<script>
function initCarouselcarousel650919692() {
return {
swiper: null,
options: {
"color": "dark",
"slidesPerView": {
"mobile": 1.2,
"tablet": 2.2,
"desktop": 3
},
"spaceBetween": 30,
"showPagination": true,
"showNavigation": true,
"showNavigationMobile": false,
"showTitle": true,
"title": "La collection MAGIC",
"useDynamicTheming": true
},
componentId: 'carousel-650919692',
init() {
this.initSwiper();
if (typeof this.customFunction === 'function') {
this.customFunction();
}
},
initSwiper() {
this.swiper = new Swiper(this.$refs.swiperContainer, {
slidesPerView: this.options.slidesPerView.mobile,
spaceBetween: this.options.spaceBetween,
pagination: this.options.showPagination ? {
el: '.swiper-pagination-' + this.componentId,
clickable: true,
bulletClass: 'bullet',
bulletActiveClass: 'active',
} : false,
navigation: this.options.showNavigation ? {
nextEl: '.carousel-button-next-' + this.componentId,
prevEl: '.carousel-button-prev-' + this.componentId
} : false,
hashNavigation: {
watchState: true,
},
breakpoints: {
640: {
slidesPerView: this.options.slidesPerView.tablet
},
1024: {
slidesPerView: this.options.slidesPerView.desktop
}
},
on: {
slideChange: () => this.updateSliderTheme(),
},
});
this.updateSliderTheme();
},
updateSliderTheme() {
const activeSlide = this.swiper.slides[this.swiper.activeIndex];
const theme = activeSlide.getAttribute('data-slider-theme');
this.sliderTheme = theme || 'light';
},
customFunction() {
// Custom function can be defined here and overridden outside.
}
};
}
</script>
</div>
</div>
</div>
<div
class="px-0 flex flex-col gap-14 md:gap-28 pt-20 md:pt-48 {% if options.theme == 'audio' %}text-audio-700{% endif %}"
>
<div class="container">
<div class="flex flex-col gap-6 w-4/5 mx-auto">
{% if options.brandLogo is defined and options.brandLogo %}
{% render ("@logos-brand--" ~ options.brandLogo) with { logoClass: "h-6 md:h-8" } %}
{% elseif options.brandTitle is defined and options.brandTitle %}
<h3 class="text-3xl font-semibold text-left text-neutral-500 uppercase">{{ options.brandTitle }}</h3>
{% endif %}
<h2 class="font-medium text-4xl md:text-6xl">{{ text.title }}</h2>
</div>
</div>
{% if options.videos is defined and options.videos %}
<div class="video-container w-auto h-[500px] md:w-full md:h-auto ">
{% render "@video" with {
videoClass: "",
video_src_desktop: options.videos.desktop,
video_src_mobile: options.videos.mobile,
video_type: "video/mp4",
autoplay: true,
loop: true,
controls: ['play'],
muted: true,
enableGsap: options.videos.enableGsap
} %}
</div>
{% endif %}
{% if options.image is defined and options.image %}
<div class="flex justify-center w-auto h-[500px] md:w-full md:h-auto ">
{% render "@image" with options.image %}
</div>
{% endif %}
<div
class="container px-0 flex flex-col gap-14 md:gap-28"
x-data="{ shown: false }" x-intersect.threshold.50.once="shown = true">
<div
class="flex flex-col items-center gap-10 w-4/5 mx-auto"
x-ref="button{{ options.prefix }}"
x-ref="slider{{ options.prefix }}"
x-bind:class="{ 'invisible': !shown, 'visible': shown }"
x-transition:enter="transition-opacity duration-300"
x-transition:leave="transition-opacity duration-300"
>
<p class="font-medium text-xl tmd:ext-2xl self-start">{{ text.description }}</p>
{% if text.subDescription is defined and text.subDescription %}
<h4 class="text-neutral-800">{{ text.subDescription }}</h4>
{% endif %}
{% if infoBubbles is defined and infoBubbles %}
<div class="flex flex-col md:flex-row gap-4">
{% for infoBubble in infoBubbles %}
{% render "@infobubble" with infoBubble %}
{% endfor %}
</div>
{% endif %}
<div class="flex flex-col md:flex-row gap-4">
{% if options.secondaryButton is defined and options.secondaryButton %}
{% render "@template-button" with {
href:"https://www.afflelou.com/",
external:true,
color: options.secondaryButton.color,
type: "leading-icon",
label: "Prendre rendez-vous",
icon: {
name: "library--calendar"
},
button_class:"mx-auto w-full md:w-auto justify-center",
button_attribute: options.secondaryButton.useDynamicTheming ? (":class=\"isMagicDark ? 'btn-light-subtle' : 'btn-dark-subtle'\"")|replace({'\"': '"'}) : ''
} %}
{% endif %}
{% render "@template-button" with {
href:"https://www.afflelou.com/",
external:true,
color: options.button.color,
label:"En savoir plus",
button_class: "mx-auto w-full md:w-auto justify-center" ~ (options.secondaryButton is defined and options.secondaryButton ? ' before:border-0'),
button_attribute: options.button.useDynamicTheming ? (":class=\"isMagicDark ? 'btn-light-subtle' : 'btn-dark-subtle'\"")|replace({'\"': '"'}) : ''
} %}
</div>
</div>
</div>
{% if products is defined and products %}
<div x-data="{ shown: false }" x-intersect.threshold.50.once="shown = true">
<div class="container"
x-ref="slider{{ options.prefix }}"
x-bind:class="{ 'invisible': !shown, 'visible': shown }"
x-transition:enter="transition-opacity duration-300"
x-transition:leave="transition-opacity duration-300"
>
{% render "@carousel" with {
title: options.carousel.showTitle ? options.carousel.title : "",
slides: products,
showCTA: true,
CTA: options.carousel.CTA,
carousel: options.carousel,
paginationClass: options.carousel.paginationClass,
swiper_pagination_attribute: options.carousel.useDynamicTheming ? (":class=\"isMagicDark ? 'swiper-dark' : 'swiper-light'\"")|replace({'\"': '"'}) : '',
cta_button_attribute: options.carousel.useDynamicTheming ? (":class=\"isMagicDark ? 'btn-light-subtle' : 'btn-dark-subtle'\"")|replace({'\"': '"'}) : '',
swiper_navigation_attribute: options.carousel.useDynamicTheming ? (":class=\"isMagicDark ? 'btn-light-subtle' : 'btn-dark-subtle'\"")|replace({'\"': '"'}) : ''
} %}
</div>
</div>
{% endif %}
</div>
{
"options": {
"theme": "magic",
"prefix": "Magic",
"brandLogo": "magic",
"videos": {
"desktop": "/videos/magic.mp4",
"mobile": "/videos/magic2.mp4",
"enableGsap": true
},
"carousel": {
"showTitle": true,
"title": "La collection MAGIC",
"color": "dark",
"useDynamicTheming": true,
"slidesPerView": {
"mobile": 1.2,
"tablet": 2.2,
"desktop": 3
},
"spaceBetween": 30
},
"button": {
"color": "dark",
"useDynamicTheming": true
}
},
"text": {
"title": "Autant de clips, autant de looks.",
"description": "MAGIC, un concept innovant et pratique pour ceux qui souhaitent avoir une seule paire de lunettes avec un style personnalisable et des fonctionnalités multiples."
},
"products": [
{
"template": "productcard",
"brand": "ALAIN AFFLELOU",
"name": "MAGIC 262",
"description": "Lunettes de vue MAGIC + 2 clips inclus",
"colors": "3 couleurs disponibles",
"price": "199,00",
"image": "/img/productsSlider/magicProduct1.png",
"hoverImage": "/img/productsSlider/hoverMagicProduct1.png",
"webLabel": "PRIX WEB",
"alpineAttribute": {
"productInfo": {
"brand": ":class='isMagicDark ? \"text-neutral-300\" : \"text-neutral-500\"'",
"name": ":class='isMagicDark ? \"text-white\" : \"text-neutral-800\"'",
"description": ":class='isMagicDark ? \"text-neutral-300\" : \"text-neutral-500\"'",
"colors": ":class='isMagicDark ? \"text-neutral-300\" : \"text-neutral-500\"'",
"webLabel": ":class='isMagicDark ? \"text-neutral-500\" : \"text-neutral-500\"'",
"price": ":class='isMagicDark ? \"text-white\" : \"text-neutral-800\"'"
}
}
},
{
"template": "productcard",
"brand": "ALAIN AFFLELOU",
"name": "Enola",
"description": "Lunettes de vue MAGIC",
"colors": "5 couleurs disponibles",
"price": "109,00",
"image": "/img/productsSlider/magicProduct2.png",
"hoverImage": "/img/productsSlider/hoverMagicProduct2.png",
"webLabel": "PRIX WEB",
"alpineAttribute": {
"productInfo": {
"brand": ":class='isMagicDark ? \"text-neutral-300\" : \"text-neutral-500\"'",
"name": ":class='isMagicDark ? \"text-white\" : \"text-neutral-800\"'",
"description": ":class='isMagicDark ? \"text-neutral-300\" : \"text-neutral-500\"'",
"colors": ":class='isMagicDark ? \"text-neutral-300\" : \"text-neutral-500\"'",
"webLabel": ":class='isMagicDark ? \"text-neutral-500\" : \"text-neutral-500\"'",
"price": ":class='isMagicDark ? \"text-white\" : \"text-neutral-800\"'"
}
}
},
{
"template": "productcard",
"brand": "ALAIN AFFLELOU",
"name": "MAGIC 222",
"description": "Lunettes de vue MAGIC + 2 clips inclus",
"colors": "2 couleurs disponibles",
"price": "179,00",
"image": "/img/productsSlider/magicProduct3.png",
"hoverImage": "/img/productsSlider/hoverMagicProduct3.png",
"webLabel": "PRIX WEB",
"alpineAttribute": {
"productInfo": {
"brand": ":class='isMagicDark ? \"text-neutral-300\" : \"text-neutral-500\"'",
"name": ":class='isMagicDark ? \"text-white\" : \"text-neutral-800\"'",
"description": ":class='isMagicDark ? \"text-neutral-300\" : \"text-neutral-500\"'",
"colors": ":class='isMagicDark ? \"text-neutral-300\" : \"text-neutral-500\"'",
"webLabel": ":class='isMagicDark ? \"text-neutral-500\" : \"text-neutral-500\"'",
"price": ":class='isMagicDark ? \"text-white\" : \"text-neutral-800\"'"
}
}
},
{
"template": "productcard",
"brand": "ALAIN AFFLELOU",
"name": "Enola",
"description": "Lunettes de vue MAGIC",
"colors": "5 couleurs disponibles",
"price": "109,00",
"image": "/img/productsSlider/magicProduct1.png",
"hoverImage": "/img/productsSlider/hoverMagicProduct1.png",
"webLabel": "PRIX WEB",
"alpineAttribute": {
"productInfo": {
"brand": ":class='isMagicDark ? \"text-neutral-300\" : \"text-neutral-500\"'",
"name": ":class='isMagicDark ? \"text-white\" : \"text-neutral-800\"'",
"description": ":class='isMagicDark ? \"text-neutral-300\" : \"text-neutral-500\"'",
"colors": ":class='isMagicDark ? \"text-neutral-300\" : \"text-neutral-500\"'",
"webLabel": ":class='isMagicDark ? \"text-neutral-500\" : \"text-neutral-500\"'",
"price": ":class='isMagicDark ? \"text-white\" : \"text-neutral-800\"'"
}
}
},
{
"template": "productcard",
"brand": "ALAIN AFFLELOU",
"name": "MAGIC 222",
"description": "Lunettes de vue MAGIC + 2 clips inclus",
"colors": "2 couleurs disponibles",
"price": "179,00",
"image": "/img/productsSlider/magicProduct2.png",
"hoverImage": "/img/productsSlider/hoverMagicProduct2.png",
"webLabel": "PRIX WEB",
"alpineAttribute": {
"productInfo": {
"brand": ":class='isMagicDark ? \"text-neutral-300\" : \"text-neutral-500\"'",
"name": ":class='isMagicDark ? \"text-white\" : \"text-neutral-800\"'",
"description": ":class='isMagicDark ? \"text-neutral-300\" : \"text-neutral-500\"'",
"colors": ":class='isMagicDark ? \"text-neutral-300\" : \"text-neutral-500\"'",
"webLabel": ":class='isMagicDark ? \"text-neutral-500\" : \"text-neutral-500\"'",
"price": ":class='isMagicDark ? \"text-white\" : \"text-neutral-800\"'"
}
}
}
]
}
No notes defined.