Skip to content

Commit b3e9bf0

Browse files
committed
fix(landing): render proper 404 for invalid /models and /integrations routes
1 parent bc09865 commit b3e9bf0

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import type { Metadata } from 'next'
2+
import Link from 'next/link'
3+
import { AUTH_PRIMARY_CTA_BASE } from '@/app/(auth)/components/auth-button-classes'
4+
5+
export const metadata: Metadata = {
6+
title: 'Page Not Found',
7+
robots: { index: false, follow: true },
8+
}
9+
10+
export default function IntegrationsNotFound() {
11+
return (
12+
<div className='flex min-h-[60vh] items-center justify-center px-4 py-24'>
13+
<div className='flex flex-col items-center gap-3'>
14+
<h1 className='text-balance font-[430] font-season text-[40px] text-white leading-[110%] tracking-[-0.02em]'>
15+
Page not found
16+
</h1>
17+
<p className='font-[430] font-season text-[color-mix(in_srgb,var(--landing-text-subtle)_60%,transparent)] text-lg leading-[125%] tracking-[0.02em]'>
18+
The page you&apos;re looking for doesn&apos;t exist or has been moved.
19+
</p>
20+
<div className='mt-3 flex items-center gap-2'>
21+
<Link href='/' className={AUTH_PRIMARY_CTA_BASE}>
22+
Return to Home
23+
</Link>
24+
</div>
25+
</div>
26+
</div>
27+
)
28+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import type { Metadata } from 'next'
2+
import Link from 'next/link'
3+
import { AUTH_PRIMARY_CTA_BASE } from '@/app/(auth)/components/auth-button-classes'
4+
5+
export const metadata: Metadata = {
6+
title: 'Page Not Found',
7+
robots: { index: false, follow: true },
8+
}
9+
10+
export default function ModelsNotFound() {
11+
return (
12+
<div className='flex min-h-[60vh] items-center justify-center px-4 py-24'>
13+
<div className='flex flex-col items-center gap-3'>
14+
<h1 className='text-balance font-[430] font-season text-[40px] text-white leading-[110%] tracking-[-0.02em]'>
15+
Page not found
16+
</h1>
17+
<p className='font-[430] font-season text-[color-mix(in_srgb,var(--landing-text-subtle)_60%,transparent)] text-lg leading-[125%] tracking-[0.02em]'>
18+
The page you&apos;re looking for doesn&apos;t exist or has been moved.
19+
</p>
20+
<div className='mt-3 flex items-center gap-2'>
21+
<Link href='/' className={AUTH_PRIMARY_CTA_BASE}>
22+
Return to Home
23+
</Link>
24+
</div>
25+
</div>
26+
</div>
27+
)
28+
}

0 commit comments

Comments
 (0)