diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx index 8e35a85a..622e5b61 100644 --- a/src/app/not-found.tsx +++ b/src/app/not-found.tsx @@ -1,25 +1,13 @@ -import Link from 'next/link' - -import { Button } from '~/components/Button' -import { Logo } from '~/components/FullLogo' -import { SlimLayout } from '~/components/SlimLayout' +import { Header } from '~/components/layout/header' +import { Hero } from '~/components/sections/404/hero' export default function NotFound() { return ( - -
- - - -
-

404

-

Page not found

-

- Sorry, we couldn’t find the page you’re looking for. -

- -
+ <> +
+
+ +
+ ) } diff --git a/src/components/layout/header/index.tsx b/src/components/layout/header/index.tsx index 9c1900af..cfb13149 100644 --- a/src/components/layout/header/index.tsx +++ b/src/components/layout/header/index.tsx @@ -1,6 +1,6 @@ 'use client' -import { useState, useEffect } from 'react' +import { useState, useEffect, FC } from 'react' import { usePathname } from 'next/navigation' import Link from 'next/link' @@ -27,7 +27,11 @@ const NAVLINKS: Navlink[] = [ { href: '/about', label: 'Company' } ] -export function Header({ variant = 'light' }: { variant?: 'dark' | 'light' }) { +type HeaderProps = { + variant?: 'dark' | 'light' +} & React.HTMLAttributes + +export const Header: FC = ({ variant = 'light', className, ...rest }) => { const toggle = useToggleState() const [scrollProgress, setScrollProgress] = useState(0) const pathname = usePathname() @@ -55,8 +59,10 @@ export function Header({ variant = 'light' }: { variant?: 'dark' | 'light' }) { { ['border-b border-gray-100 !bg-white shadow-[0px_2px_18px_0px_rgba(5,73,30,0.08)]']: variant === 'light' && (scrollProgress > 0 || toggle.isOn) - } + }, + className )} + {...rest} >