58 lines
2.1 KiB
TypeScript
58 lines
2.1 KiB
TypeScript
import sheepSilhouette from "&/images/vectors/poulet-eat.svg";
|
|
import vectorImg from "&/images/vectors/poulet.svg";
|
|
import Head from "@/front/Components/Layout/Head";
|
|
import AppLayout from "@/front/Layouts/AppLayout";
|
|
|
|
interface LegalProps {
|
|
title: string;
|
|
content: string;
|
|
seoTitle: string;
|
|
seoDesc: string;
|
|
}
|
|
|
|
export default function Legals({
|
|
title,
|
|
content,
|
|
seoTitle,
|
|
seoDesc,
|
|
}: Readonly<LegalProps>) {
|
|
return (
|
|
<div className="relative min-h-screen w-full overflow-hidden bg-brand/30">
|
|
<Head title={seoTitle} description={seoDesc} />
|
|
<img
|
|
src={sheepSilhouette}
|
|
alt=""
|
|
aria-hidden="true"
|
|
className="pointer-events-none absolute -left-14 z-50 hidden w-[300px] translate-y-[calc(calc(1/12*100%)*34)] opacity-10 md:block"
|
|
/>
|
|
<img
|
|
src={vectorImg}
|
|
alt=""
|
|
aria-hidden="true"
|
|
className="pointer-events-none absolute -right-6 z-0 hidden translate-y-[calc(3/1*100%)] rotate-y-180 opacity-10 md:block lg:w-[190px]"
|
|
/>
|
|
<img
|
|
src={vectorImg}
|
|
alt=""
|
|
aria-hidden="true"
|
|
className="pointer-events-none absolute -left-11 z-0 hidden translate-y-[calc(60/12*100%)] opacity-10 md:block lg:w-[160px]"
|
|
/>
|
|
<section className="relative z-10 mx-auto max-w-5xl px-6 py-16 font-baloo lg:py-24">
|
|
<h1 className="font-extrabold lg:text-5xl text-3xl leading-tight uppercase">
|
|
{title}
|
|
</h1>
|
|
<div
|
|
className="mt-12 space-y-4 leading-relaxed text-neutral-800 lg:mt-10
|
|
[&_p]:text-lg [&_p]:lg:text-lg
|
|
[&_li]:text-base [&_li]:lg:text-xl [&_li]:list-disc
|
|
[&_ul]:pl-8 [&_ul]:leading-none [&_ul]:lg:pl-12
|
|
[&_a]:text-blue-400 [&_a]:underline
|
|
[&_h2]:mt-6 [&_h2]:text-2xl [&_h2]:font-bold [&_h2]:uppercase [&_h2]:lg:mt-8 [&_h2]:lg:text-4xl
|
|
[&_h3]:py-1.5 [&_h3]:text-xl [&_h3]:lg:text-2xl [&_h3]:uppercase [&_h4]:text-xl"
|
|
dangerouslySetInnerHTML={{ __html: content }}
|
|
/>
|
|
</section>
|
|
</div>
|
|
);
|
|
}
|
|
Legals.layout = (page: React.ReactNode) => <AppLayout>{page}</AppLayout>;
|