refactor: replace hardcoded text styles with reusable Text components

This commit is contained in:
2025-10-22 13:07:51 +02:00
parent bca730681e
commit d03b67df7d
10 changed files with 223 additions and 122 deletions

View File

@@ -1,4 +1,5 @@
import { Button } from '@/components/Button'
import { P, SectionHeader, Small } from '@/components/Texts'
import { CirclesBackground } from '@/components/CirclesBackground'
import { Container } from '@/components/Container'
import { Layout } from '@/components/Layout'
@@ -8,13 +9,13 @@ export default function NotFound() {
<Layout>
<Container className="relative isolate flex h-full flex-col items-center justify-center py-20 text-center sm:py-32">
<CirclesBackground className="absolute top-1/2 left-1/2 -z-10 mt-44 w-272.5 -translate-x-1/2 -translate-y-1/2 mask-[linear-gradient(to_bottom,white_20%,transparent_75%)] stroke-gray-300/30" />
<p className="text-sm font-semibold text-gray-900">404</p>
<h1 className="mt-2 text-3xl lg:text-4xl font-medium tracking-tight text-gray-900">
<Small as="p" color="primary">404</Small>
<SectionHeader as="h1" className="mt-2">
Page not found
</h1>
<p className="mt-2 text-lg text-gray-600">
</SectionHeader>
<P color="secondary" className="mt-2">
Sorry, we couldnt find the page youre looking for.
</p>
</P>
<Button href="/" variant="outline" className="mt-8">
Go back home
</Button>