Skip to content

Commit 3cb33e5

Browse files
committed
fix(ui): fix invite layout flex centering, use BrandedButton on 404 page
1 parent d904f81 commit 3cb33e5

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

apps/sim/app/invite/components/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ interface InviteLayoutProps {
99

1010
export default function InviteLayout({ children }: InviteLayoutProps) {
1111
return (
12-
<div className='relative min-h-screen bg-[#1C1C1C] font-[430] font-season text-[#ECECEC]'>
12+
<div className='relative flex min-h-screen flex-col bg-[#1C1C1C] font-[430] font-season text-[#ECECEC]'>
1313
<header>
1414
<Navbar logoOnly />
1515
</header>
16-
<main className='flex flex-1 flex-col items-center justify-center px-4 pt-[15vh]'>
16+
<main className='flex flex-1 flex-col items-center justify-center px-4'>
1717
<div className='w-full max-w-lg px-4'>
1818
<div className='flex flex-col items-center justify-center'>{children}</div>
1919
</div>

apps/sim/app/not-found.tsx

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
import Link from 'next/link'
1+
'use client'
2+
3+
import { useRouter } from 'next/navigation'
24
import AuthBackground from '@/app/(auth)/components/auth-background'
5+
import { BrandedButton } from '@/app/(auth)/components/branded-button'
36
import Navbar from '@/app/(home)/components/navbar/navbar'
47

58
export default function NotFound() {
9+
const router = useRouter()
10+
611
return (
712
<AuthBackground className='dark font-[430] font-season'>
813
<main className='relative flex min-h-full flex-col text-[#ECECEC]'>
@@ -14,12 +19,11 @@ export default function NotFound() {
1419
<p className='mt-2 text-[#999] text-[16px]'>
1520
The page you&apos;re looking for doesn&apos;t exist or has been moved.
1621
</p>
17-
<Link
18-
href='/'
19-
className='mt-8 inline-flex h-[30px] items-center rounded-[5px] border border-[#FFFFFF] bg-[#FFFFFF] px-[9px] text-[13.5px] text-black transition-colors hover:border-[#E0E0E0] hover:bg-[#E0E0E0]'
20-
>
21-
Return to Home
22-
</Link>
22+
<div className='mt-8 w-full max-w-[200px]'>
23+
<BrandedButton onClick={() => router.push('/')} showArrow={false}>
24+
Return to Home
25+
</BrandedButton>
26+
</div>
2327
</div>
2428
</main>
2529
</AuthBackground>

0 commit comments

Comments
 (0)