Merge branch 'develop' into trunk
This commit is contained in:
commit
10e613c032
6 changed files with 34 additions and 0 deletions
BIN
resources/assets/images/global/bea_desktop.png
Normal file
BIN
resources/assets/images/global/bea_desktop.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 69 KiB |
BIN
resources/assets/images/global/bea_desktop.webp
Normal file
BIN
resources/assets/images/global/bea_desktop.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
BIN
resources/assets/images/global/bea_mobile.png
Normal file
BIN
resources/assets/images/global/bea_mobile.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 58 KiB |
BIN
resources/assets/images/global/bea_mobile.webp
Normal file
BIN
resources/assets/images/global/bea_mobile.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
32
resources/ts/front/Components/BeaSection.tsx
Normal file
32
resources/ts/front/Components/BeaSection.tsx
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
import beaDesktopPng from "&/images/global/bea_desktop.png";
|
||||
import beaDesktopWebp from "&/images/global/bea_desktop.webp";
|
||||
import beaMobilePng from "&/images/global/bea_mobile.png";
|
||||
import beaMobileWebp from "&/images/global/bea_mobile.webp";
|
||||
import useIsMobile from "@/hooks/use-mobile";
|
||||
|
||||
export default function BeaSection() {
|
||||
const isMobile = useIsMobile();
|
||||
|
||||
return (
|
||||
<a
|
||||
href="https://bienetreanimal.fr/"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<picture>
|
||||
<source
|
||||
srcSet={isMobile ? beaMobileWebp : beaDesktopWebp}
|
||||
type="image/webp"
|
||||
/>
|
||||
<img
|
||||
src={isMobile ? beaMobilePng : beaDesktopPng}
|
||||
alt="Entreprise adhérente au collectif Filière Agricole Engagée pour le Bien-être Animal. Découvrez nos engagements pour un poulet origine France élevé dans le respect du bien-être animal."
|
||||
title="Découvrez les engagements de la Filière Agricole Engagée pour le Bien-être Animal"
|
||||
className="w-full"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
/>
|
||||
</picture>
|
||||
</a>
|
||||
);
|
||||
}
|
||||
|
|
@ -2,6 +2,7 @@ import { usePage } from "@inertiajs/react";
|
|||
|
||||
import AppLayout from "@/front/Layouts/AppLayout";
|
||||
|
||||
import BeaSection from "../Components/BeaSection";
|
||||
import Contact from "../Components/Contact";
|
||||
import HeroHeader, { type HeroNavItem } from "../Components/Header";
|
||||
import HeritageSection from "../Components/HeritageSection";
|
||||
|
|
@ -34,6 +35,7 @@ export default function Home() {
|
|||
</div>
|
||||
</div>
|
||||
<ProduitsSection />
|
||||
<BeaSection />
|
||||
<Contact />
|
||||
</>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue