mirror of
https://github.com/spliit-app/spliit.git
synced 2026-02-19 14:06:12 +01:00
* Added french version and title/description from json messages * Revert back default language to en-US * Code reviewed with prettier :) * Updated json to add information field * Updated json to add information block (missed on previous) * Reviewed code language * correction traduction "groupes étoilés" en "groupes favoris" --------- Co-authored-by: Andy Trouvé <andy@strekol.eu>
41 lines
1.4 KiB
TypeScript
41 lines
1.4 KiB
TypeScript
import { Button } from '@/components/ui/button'
|
|
import { Github } from 'lucide-react'
|
|
import { useTranslations } from 'next-intl'
|
|
import Link from 'next/link'
|
|
|
|
// FIX for https://github.com/vercel/next.js/issues/58615
|
|
// export const dynamic = 'force-dynamic'
|
|
|
|
export default function HomePage() {
|
|
const t = useTranslations()
|
|
return (
|
|
<main>
|
|
<section className="py-16 md:py-24 lg:py-32">
|
|
<div className="container flex max-w-screen-md flex-col items-center gap-4 text-center">
|
|
<h1 className="!leading-none font-bold text-2xl sm:text-3xl md:text-4xl lg:text-5xl landing-header py-2">
|
|
{t.rich('Homepage.title', {
|
|
strong: (chunks) => <strong>{chunks}</strong>,
|
|
})}
|
|
</h1>
|
|
<p className="max-w-[42rem] leading-normal text-muted-foreground sm:text-xl sm:leading-8">
|
|
{t.rich('Homepage.description', {
|
|
strong: (chunks) => <strong>{chunks}</strong>,
|
|
})}
|
|
</p>
|
|
<div className="flex gap-2">
|
|
<Button asChild>
|
|
<Link href="/groups">{t('Homepage.button.groups')}</Link>
|
|
</Button>
|
|
<Button asChild variant="secondary">
|
|
<Link href="https://github.com/spliit-app/spliit">
|
|
<Github className="w-4 h-4 mr-2" />
|
|
{t('Homepage.button.github')}
|
|
</Link>
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
)
|
|
}
|