Skip to content

Commit 6e2e845

Browse files
committed
feat: improve dashboard header and not found page design
1 parent cbbe787 commit 6e2e845

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/app/not-found.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import Link from 'next/link'
22
import { buttonVariants } from '@/ui/button'
33
import { Error } from '@/components/error'
44
import { siteConfig } from '@/config/site'
5+
import { cn } from '@/utils/cn'
56

67
export default function NotFound() {
78
return (
@@ -18,7 +19,13 @@ export default function NotFound() {
1819
</span>
1920
}
2021
>
21-
<Link className={buttonVariants({ variant: 'outline', size: 'sm', className: 'text-black' })} href='/'>
22+
<Link
23+
className={cn(
24+
buttonVariants({ variant: 'outline', size: 'sm' }),
25+
'text-black dark:bg-neutral-700 dark:text-white'
26+
)}
27+
href='/'
28+
>
2229
Go Home
2330
</Link>
2431
</Error>

src/layout/dashboard/header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export function DashboardHeader() {
66
return (
77
<header className='flex h-14 w-full items-center justify-between px-6'>
88
<DashboardHomeLink />
9-
<div className='flex gap-2'>
9+
<div className='flex items-center gap-2'>
1010
<ThemeSwitcher />
1111
<AvatarMenu />
1212
</div>

0 commit comments

Comments
 (0)