436 lines
16 KiB
TypeScript
436 lines
16 KiB
TypeScript
import { ArrowRight } from "lucide-react";
|
|
|
|
import breeder from "&/images/approach/breeder.jpg";
|
|
import chicken from "&/images/approach/chicken.jpg";
|
|
import chickenCoop from "&/images/approach/chicken_coop.jpg";
|
|
import table from "&/images/approach/table.jpg";
|
|
import AppHead from "@/components/layout/AppHead";
|
|
import ApproachCarousel from "@/front/Components/ApproachCarousel";
|
|
import ApproachesCarousel from "@/front/Components/Approaches/ApproachCarousel";
|
|
import DefaultImageHeader from "@/front/Components/Header/DefaultImageHeader";
|
|
import CtaButton from "@/front/Components/Layout/CtaButton";
|
|
import Heading from "@/front/Components/Layout/Heading";
|
|
import ContentCard from "@/front/Components/Shared/ContentCard";
|
|
import ContentPanel from "@/front/Components/Shared/ContentPanel";
|
|
import PhotoCard from "@/front/Components/Shared/PhotoCard";
|
|
import AppLayout from "@/front/Layouts/AppLayout";
|
|
import Breadcrumb from "@/front/Layouts/Breadcrumb";
|
|
import { cardType } from "@/front/lib/constants";
|
|
import useDeviceType from "@/hooks/use-device-type";
|
|
import { GetTranslation } from "@/lib/utils";
|
|
|
|
const SECTIONS = [
|
|
{ bgColor: "bg-bleu", position: "right", align: "left", rotation: -2.22 },
|
|
{
|
|
bgColor: "bg-light-orange",
|
|
position: "left",
|
|
align: "end",
|
|
rotation: 2.22,
|
|
},
|
|
{ bgColor: "bg-beige", position: "right", rotation: -2.22 },
|
|
{ bgColor: "bg-yellow", position: "left", align: "end", rotation: 2.22 },
|
|
{ bgColor: "bg-bleu", position: "right", rotation: 1.91 },
|
|
{
|
|
bgColor: "bg-light-orange",
|
|
position: "left",
|
|
align: "end",
|
|
rotation: 2.22,
|
|
},
|
|
];
|
|
|
|
interface WhyThisApproachProps {
|
|
schemas?: SchemaOrg[];
|
|
}
|
|
|
|
export default function WhyThisApproach({
|
|
schemas,
|
|
}: Readonly<WhyThisApproachProps>) {
|
|
const { isMobile, isTablet } = useDeviceType();
|
|
const isCompact = isMobile || isTablet;
|
|
|
|
return (
|
|
<AppLayout>
|
|
<AppHead
|
|
title={GetTranslation("why_this_approach.seo_title")}
|
|
description={GetTranslation("why_this_approach.seo_description")}
|
|
schemas={schemas}
|
|
/>
|
|
|
|
<DefaultImageHeader title={GetTranslation("why_this_approach.title")} />
|
|
|
|
<div className="mx-6 my-6 lg:mx-24">
|
|
<Breadcrumb />
|
|
</div>
|
|
|
|
<div className="space-y-12 md:space-y-[4.5rem] py-[4.5rem]">
|
|
<div className="px-[1.25rem] md:px-0 lg:space-y-12 space-y-4">
|
|
<div className="flex justify-center text-center">
|
|
<Heading>
|
|
{GetTranslation("why_this_approach.section_1.title")}
|
|
</Heading>
|
|
</div>
|
|
|
|
{SECTIONS.map(({ bgColor, position, align, rotation }, i) => {
|
|
const index = String(i + 1);
|
|
const isBleu = bgColor === "bg-bleu";
|
|
|
|
return (
|
|
<ContentPanel
|
|
key={index}
|
|
bgColor={bgColor}
|
|
position={position as "right" | "left"}
|
|
align={align as "end" | "start"}
|
|
rotation={rotation}
|
|
type="accordion"
|
|
roundedSize={isMobile ? "50px" : "100px"}
|
|
title={GetTranslation(
|
|
`why_this_approach.section_1.title_${index}`,
|
|
)}
|
|
titleStyle={`${isBleu ? "text-white" : "text-bleu"} text-h3`}
|
|
>
|
|
<div
|
|
className={`md:mt-8 font-poppins-regular text-sm md:text-body text-white ${
|
|
isCompact || isBleu ? "" : "md:text-bleu"
|
|
}`}
|
|
dangerouslySetInnerHTML={{
|
|
__html: GetTranslation(
|
|
`why_this_approach.section_1.text_${index}`,
|
|
),
|
|
}}
|
|
/>
|
|
</ContentPanel>
|
|
);
|
|
})}
|
|
<div className="container px-[1.25rem] mx-auto space-y-8 md:space-y-12">
|
|
<Heading>
|
|
<p
|
|
dangerouslySetInnerHTML={{
|
|
__html: GetTranslation("why_this_approach.section_2.title"),
|
|
}}
|
|
/>
|
|
</Heading>
|
|
<PhotoCard
|
|
image={chicken}
|
|
rotation={4}
|
|
size={{ width: 338, height: 241 }}
|
|
sizeLg={{ width: 1060, height: 755 }}
|
|
/>
|
|
<div className="space-y-8">
|
|
<h3 className="font-lato-bold text-2xl md:text-h3 text-bleu">
|
|
{GetTranslation("why_this_approach.section_2.title_1")}
|
|
</h3>
|
|
<div
|
|
className="font-poppins-regular md:font-poppins-bold text-sm md:text-body text-bleu"
|
|
dangerouslySetInnerHTML={{
|
|
__html: GetTranslation("why_this_approach.section_2.text_1"),
|
|
}}
|
|
/>
|
|
<ContentCard
|
|
title={GetTranslation("why_this_approach.section_2.title_2")}
|
|
description={GetTranslation(
|
|
"why_this_approach.section_2.text_2",
|
|
)}
|
|
btnText={GetTranslation("why_this_approach.section_2.btn_text")}
|
|
btnLink={GetTranslation("why_this_approach.section_2.btn_link")}
|
|
className="w-fit mx-auto"
|
|
padding="px-4 md:px-8 py-8"
|
|
/>
|
|
<h3 className="font-lato-bold text-2xl md:text-h3 text-bleu">
|
|
{GetTranslation("why_this_approach.section_2.title_3")}
|
|
</h3>
|
|
<div
|
|
className="font-poppins-regular text-sm md:text-body text-bleu"
|
|
dangerouslySetInnerHTML={{
|
|
__html: GetTranslation("why_this_approach.section_2.text_3"),
|
|
}}
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<ContentPanel
|
|
bgColor="bg-bleu"
|
|
position="left"
|
|
align="end"
|
|
type="fullWidth"
|
|
rotation={isMobile ? 0 : 1.91}
|
|
edgeOffset="-right-10"
|
|
maxWidth="max-w-[1500px]"
|
|
className="flex flex-col text-start space-y-[2.25rem] md:space-y-[4.5rem]"
|
|
padding="px-8 md:pl-[4.5rem] py-12"
|
|
roundedSize={isMobile ? "50px" : "100px"}
|
|
>
|
|
<Heading color="text-white">
|
|
<p
|
|
dangerouslySetInnerHTML={{
|
|
__html: GetTranslation("why_this_approach.section_3.title"),
|
|
}}
|
|
/>
|
|
</Heading>
|
|
<div className="space-y-8">
|
|
<h3 className="font-lato-bold text-2xl md:text-h3 text-white">
|
|
{GetTranslation("why_this_approach.section_3.title_1")}
|
|
</h3>
|
|
<div
|
|
className="font-poppins-regular text-sm md:text-body text-white"
|
|
dangerouslySetInnerHTML={{
|
|
__html: GetTranslation("why_this_approach.section_3.text_1"),
|
|
}}
|
|
/>
|
|
<h3 className="font-lato-bold text-2xl md:text-h3 text-white">
|
|
{GetTranslation("why_this_approach.section_3.title_2")}
|
|
</h3>
|
|
<div
|
|
className="font-poppins-regular text-sm md:text-body text-white"
|
|
dangerouslySetInnerHTML={{
|
|
__html: GetTranslation("why_this_approach.section_3.text_2"),
|
|
}}
|
|
/>
|
|
|
|
<ApproachCarousel
|
|
controlsDotColor="bg-white"
|
|
controlsColor="text-white"
|
|
type={cardType.DEFAULT}
|
|
items={[
|
|
{
|
|
number: "1",
|
|
title: GetTranslation(
|
|
"why_this_approach.section_3.carousel.item_1",
|
|
),
|
|
rotation: 3,
|
|
},
|
|
{
|
|
number: "2",
|
|
title: GetTranslation(
|
|
"why_this_approach.section_3.carousel.item_2",
|
|
),
|
|
rotation: -2,
|
|
},
|
|
{
|
|
number: "3",
|
|
title: GetTranslation(
|
|
"why_this_approach.section_3.carousel.item_3",
|
|
),
|
|
rotation: 3,
|
|
},
|
|
{
|
|
number: "4",
|
|
title: GetTranslation(
|
|
"why_this_approach.section_3.carousel.item_4",
|
|
),
|
|
rotation: -3,
|
|
},
|
|
{
|
|
number: "5",
|
|
title: GetTranslation(
|
|
"why_this_approach.section_3.carousel.item_5",
|
|
),
|
|
rotation: 2,
|
|
},
|
|
]}
|
|
/>
|
|
<div
|
|
className="font-poppins-regular text-sm md:text-body text-white"
|
|
dangerouslySetInnerHTML={{
|
|
__html: GetTranslation("why_this_approach.section_3.text_2_1"),
|
|
}}
|
|
/>
|
|
<h3 className="font-lato-bold text-2xl md:text-h3 text-white">
|
|
{GetTranslation("why_this_approach.section_3.title_3")}
|
|
</h3>
|
|
<div
|
|
className="font-poppins-regular text-sm md:text-body text-white"
|
|
dangerouslySetInnerHTML={{
|
|
__html: GetTranslation("why_this_approach.section_3.text_3"),
|
|
}}
|
|
/>
|
|
<h3 className="font-lato-bold text-2xl md:text-h3 text-white">
|
|
{GetTranslation("why_this_approach.section_3.title_4")}
|
|
</h3>
|
|
<div
|
|
className="font-poppins-regular text-sm md:text-body text-white"
|
|
dangerouslySetInnerHTML={{
|
|
__html: GetTranslation("why_this_approach.section_3.text_4"),
|
|
}}
|
|
/>
|
|
<div className="flex flex-col items-center">
|
|
<CtaButton
|
|
href={route("front.gouvernance.index")}
|
|
icon={<ArrowRight />}
|
|
iconPosition="right"
|
|
color="rouge"
|
|
size="md"
|
|
className="text-center"
|
|
>
|
|
{GetTranslation("why_this_approach.section_3.btn.text")}
|
|
</CtaButton>
|
|
</div>
|
|
</div>
|
|
</ContentPanel>
|
|
|
|
<div className="container mx-auto px-[1.25rem] space-y-8 md:space-y-12">
|
|
<PhotoCard image={table} rotation={4} />
|
|
<Heading>
|
|
<p
|
|
dangerouslySetInnerHTML={{
|
|
__html: GetTranslation("why_this_approach.section_4.title"),
|
|
}}
|
|
/>
|
|
</Heading>
|
|
<div className="space-y-8">
|
|
<h3 className="font-lato-bold text-2xl md:text-h3 text-bleu">
|
|
{GetTranslation("why_this_approach.section_4.title_1")}
|
|
</h3>
|
|
<div
|
|
className="font-poppins-regular text-sm md:text-body text-bleu"
|
|
dangerouslySetInnerHTML={{
|
|
__html: GetTranslation("why_this_approach.section_4.text_1"),
|
|
}}
|
|
/>
|
|
<h3 className="font-lato-bold text-2xl md:text-h3 text-bleu">
|
|
{GetTranslation("why_this_approach.section_4.title_2")}
|
|
</h3>
|
|
<div
|
|
className="font-poppins-regular text-sm md:text-body text-bleu"
|
|
dangerouslySetInnerHTML={{
|
|
__html: GetTranslation("why_this_approach.section_4.text_2"),
|
|
}}
|
|
/>
|
|
<div className="flex flex-col lg:flex-row align-center justify-center gap-8 md:gap-[4.5rem]">
|
|
<PhotoCard
|
|
image={chickenCoop}
|
|
size={{ width: 338, height: 241 }}
|
|
sizeLg={{ width: 635, height: 453 }}
|
|
rotation={4}
|
|
/>
|
|
<ContentCard
|
|
title={GetTranslation("why_this_approach.section_4.title_3")}
|
|
description={GetTranslation(
|
|
"why_this_approach.section_4.text_3",
|
|
)}
|
|
btnText={GetTranslation("why_this_approach.section_4.btn_text")}
|
|
btnLink={GetTranslation("why_this_approach.section_4.btn_link")}
|
|
maxWidth="max-w-[597px]"
|
|
className="w-fit h-fit my-auto mx-auto"
|
|
padding="px-4 md:px-8 py-8"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<ContentPanel
|
|
bgColor={isMobile ? "bg-transparent" : "bg-beige"}
|
|
position="right"
|
|
align="start"
|
|
type="fullWidth"
|
|
edgeOffset="-left-10"
|
|
rotation={isMobile ? 0 : -1.91}
|
|
maxWidth="max-w-[1500px]"
|
|
className="flex flex-col text-start space-y-[2.25rem] md:space-y-[4.5rem]"
|
|
padding="pl-4 pr-4 md:pl-[4.5rem] py-12"
|
|
roundedSize={isMobile ? "50px" : "100px"}
|
|
>
|
|
<Heading color="text-bleu" className="w-fit">
|
|
<p
|
|
dangerouslySetInnerHTML={{
|
|
__html: GetTranslation("why_this_approach.section_5.title"),
|
|
}}
|
|
/>
|
|
</Heading>
|
|
<div className="space-y-8">
|
|
<h3 className="font-lato-bold text-2xl md:text-h3 text-bleu">
|
|
{GetTranslation("why_this_approach.section_5.title_1")}
|
|
</h3>
|
|
<div
|
|
className="font-poppins-regular text-sm md:text-body text-bleu"
|
|
dangerouslySetInnerHTML={{
|
|
__html: GetTranslation("why_this_approach.section_5.text_1"),
|
|
}}
|
|
/>
|
|
</div>
|
|
<ApproachesCarousel
|
|
controlsColor="text-bleu border-bleu hover:bg-bleu/10"
|
|
controlsDotColor="bg-bleu"
|
|
approaches={Array.from({ length: 4 }, (__, index) => {
|
|
const key = String(index + 1);
|
|
return {
|
|
number: key,
|
|
title: GetTranslation(
|
|
`why_this_approach.section_5.carousel.item_${key}.title`,
|
|
),
|
|
verso: GetTranslation(
|
|
`why_this_approach.section_5.carousel.item_${key}.description`,
|
|
),
|
|
rotation: [-2, 3, -3, 2, -2, 3, -3, 2][index],
|
|
compactRotation: -2,
|
|
type: cardType.FLIP,
|
|
};
|
|
})}
|
|
/>
|
|
<Heading color="text-bleu" className="w-fit">
|
|
<p
|
|
dangerouslySetInnerHTML={{
|
|
__html: GetTranslation("why_this_approach.section_6.title"),
|
|
}}
|
|
/>
|
|
</Heading>
|
|
<div className="space-y-12">
|
|
<div className="space-y-8">
|
|
<h3 className="font-lato-bold text-2xl md:text-h3 text-bleu">
|
|
{GetTranslation("why_this_approach.section_6.title_1")}
|
|
</h3>
|
|
<div
|
|
className="font-poppins-regular text-sm md:text-body text-bleu"
|
|
dangerouslySetInnerHTML={{
|
|
__html: GetTranslation("why_this_approach.section_6.text_1"),
|
|
}}
|
|
/>
|
|
</div>
|
|
<div className="max-w-[354px] max-h-[390px] md:max-w-[1015px] md:max-h-[782px] mx-auto">
|
|
<PhotoCard
|
|
image={breeder}
|
|
// BUGSMASH 131
|
|
// caption={GetTranslation(
|
|
// "why_this_approach.section_6.picture_desc",
|
|
// )}
|
|
rotation={4}
|
|
/>
|
|
</div>
|
|
<div className="space-y-8">
|
|
<h3 className="font-lato-bold text-2xl md:text-h3 text-bleu">
|
|
{GetTranslation("why_this_approach.section_6.title_2")}
|
|
</h3>
|
|
<div
|
|
className="font-poppins-regular text-sm md:text-body text-bleu"
|
|
dangerouslySetInnerHTML={{
|
|
__html: GetTranslation("why_this_approach.section_6.text_2"),
|
|
}}
|
|
/>
|
|
</div>
|
|
<div className="flex flex-col md:flex-row justify-evenly items-center gap-4">
|
|
<CtaButton
|
|
href={route("front.engagements")}
|
|
icon={<ArrowRight />}
|
|
iconPosition="right"
|
|
color="rouge"
|
|
size="md"
|
|
className="w-full md:w-fit"
|
|
>
|
|
{GetTranslation("why_this_approach.section_6.btn_left.text")}
|
|
</CtaButton>
|
|
<CtaButton
|
|
href={route("front.questions-reponses.index")}
|
|
icon={<ArrowRight />}
|
|
iconPosition="right"
|
|
color="bleu"
|
|
size="md"
|
|
className="w-full md:w-fit"
|
|
>
|
|
{GetTranslation("why_this_approach.section_6.btn_right.text")}
|
|
</CtaButton>
|
|
</div>
|
|
</div>
|
|
</ContentPanel>
|
|
</div>
|
|
</AppLayout>
|
|
);
|
|
}
|