41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
import Head from "@/front/Components/Layout/Head";
|
|
import AppLayout from "@/front/Layouts/AppLayout";
|
|
|
|
interface LegalProps {
|
|
title: string;
|
|
content: string;
|
|
seoDesc: string;
|
|
}
|
|
|
|
export default function Legal({
|
|
title,
|
|
content,
|
|
seoDesc,
|
|
}: Readonly<LegalProps>) {
|
|
return (
|
|
<>
|
|
<Head title={title} description={seoDesc} />
|
|
<section className="mx-auto max-w-5xl px-6 py-16 font-baloo lg:py-24">
|
|
<h1>
|
|
<span
|
|
className="banner-clip inline-block -rotate-1 px-6 py-6 text-2xl font-extrabold uppercase text-white lg:px-8 lg:py-3 lg:text-4xl"
|
|
style={{ background: "#E01B1B" }}
|
|
>
|
|
{title}
|
|
</span>
|
|
</h1>
|
|
<div
|
|
className="mt-8 space-y-4 leading-relaxed text-neutral-800 lg:mt-10
|
|
[&_p]:text-base [&_p]:lg:text-xl
|
|
[&_li]:text-base [&_li]:lg:text-xl [&_li]:list-disc
|
|
[&_ul]:pl-8 [&_ul]:lg:pl-12
|
|
[&_a]:text-blue-400 [&_a]:underline
|
|
[&_h2]:mt-6 [&_h2]:text-2xl [&_h2]:font-bold [&_h2]:lg:mt-8 [&_h2]:lg:text-4xl
|
|
[&_h3]:py-1.5 [&_h3]:text-xl [&_h3]:lg:text-2xl"
|
|
dangerouslySetInnerHTML={{ __html: content }}
|
|
/>
|
|
</section>
|
|
</>
|
|
);
|
|
}
|
|
Legal.layout = (page: React.ReactNode) => <AppLayout>{page}</AppLayout>;
|