2026-03-28 17:35:28 +01:00
|
|
|
|
import { Link, usePage } from '@inertiajs/react';
|
|
|
|
|
|
import { Button } from '@/components/ui/button';
|
|
|
|
|
|
import { dashboard, register } from '@/routes';
|
|
|
|
|
|
import { type SharedData } from '@/types';
|
2026-03-30 18:50:04 +02:00
|
|
|
|
import IllustrationLogo from '@/img/utils/lrl-logo-full.svg';
|
2026-03-28 17:35:28 +01:00
|
|
|
|
|
|
|
|
|
|
export function AlternativeSection() {
|
|
|
|
|
|
const { auth } = usePage<SharedData>().props;
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
|
<section className="w-full py-16">
|
2026-03-30 18:50:04 +02:00
|
|
|
|
<div className="bg-gray-100 rounded-4xl max-w-7xl mx-auto px-4">
|
2026-03-28 17:35:28 +01:00
|
|
|
|
<div className="flex flex-col lg:flex-row items-center gap-12">
|
2026-03-30 18:50:04 +02:00
|
|
|
|
<div className="lg:w-1/2 flex justify-center">
|
|
|
|
|
|
<img
|
|
|
|
|
|
src={IllustrationLogo}
|
|
|
|
|
|
alt="Le Retzien Libre"
|
|
|
|
|
|
className="rounded-lg max-w-md w-full"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
2026-03-28 17:35:28 +01:00
|
|
|
|
<div className="flex flex-col gap-6 lg:w-1/2">
|
2026-03-30 18:50:04 +02:00
|
|
|
|
<h2 className="text-3xl text-black font-medium">
|
2026-03-28 17:35:28 +01:00
|
|
|
|
Notre alternative : Le Retzien Libre
|
|
|
|
|
|
</h2>
|
|
|
|
|
|
<p>
|
2026-03-30 18:50:04 +02:00
|
|
|
|
Ici, pas d’exploitation des vos données personnelles à des fins commerciales, ni de dépense aux services centralisés.<br/>
|
|
|
|
|
|
Le Retzien Libre, c’est une association locale engagée pour la promotion du logiciel libre et la protection de vos données personnelles.
|
2026-03-28 17:35:28 +01:00
|
|
|
|
</p>
|
|
|
|
|
|
{auth.user ? (
|
|
|
|
|
|
<Link href={dashboard()}>
|
|
|
|
|
|
<Button variant="default">Accéder à mon espace</Button>
|
|
|
|
|
|
</Link>
|
|
|
|
|
|
) : (
|
|
|
|
|
|
<Link href={register()}>
|
2026-03-30 18:50:04 +02:00
|
|
|
|
<Button variant="secondary">Rejoignez-nous</Button>
|
2026-03-28 17:35:28 +01:00
|
|
|
|
</Link>
|
|
|
|
|
|
)}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</section>
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|