Skip to content

Commit

Permalink
add 404
Browse files Browse the repository at this point in the history
  • Loading branch information
imhson committed Feb 12, 2024
1 parent 2150035 commit f2be025
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 23 deletions.
1 change: 1 addition & 0 deletions app/components/homeComponents/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import LeaderboardSection from './leaderboardSection'
import LixiStage from './lixiStage'
import RuleSection from './ruleSection'
import { getItem } from '@/utils/localStorage'
import NFImage from '@/assets/404.png'
export default function HomePage() {
const { account, submitCode } = useContext(Context)
const [loading, setLoading] = useState(false)
Expand Down
59 changes: 36 additions & 23 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { Bounce, ToastContainer } from 'react-toastify'
import 'react-toastify/dist/ReactToastify.css'
import { Header } from './components/header'
import './globals.css'
import Image from 'next/image'
import NFImage from '@/assets/404.png'
const roboto = Roboto({
subsets: ['latin'],
weight: ['100', '300', '400', '500', '700', '900'],
Expand All @@ -27,32 +29,43 @@ export default function RootLayout({
</html>
)
}

return (
<html lang='en'>
<body className={`${roboto.variable} bg-[#860204] overflow-x-hidden w-[100vw] min-h-[100dvh] min-w-[375px]`}>
<NextUIProvider>
<ContextProvider>
<Header />
<main className='relative pb-20 md:pb-0'>{children}</main>
</ContextProvider>
</NextUIProvider>
<ToastContainer
position='top-center'
autoClose={3000}
hideProgressBar
newestOnTop={false}
closeOnClick={false}
rtl={false}
closeButton={() => <></>}
pauseOnFocusLoss
draggable={false}
pauseOnHover={false}
theme='dark'
transition={Bounce}
limit={3}
/>
<body className='bg-[#000] '>
<main className='relative min-h-screen grid place-items-center'>
<Image src={NFImage} alt='' className='w-screen h-screen object-contain' />
</main>
</body>
<GoogleTagManager gtmId='GTM-K3NWXQS' />
</html>
)

// return (
// <html lang='en'>
// <body className={`${roboto.variable} bg-[#860204] overflow-x-hidden w-[100vw] min-h-[100dvh] min-w-[375px]`}>
// <NextUIProvider>
// <ContextProvider>
// <Header />
// <main className='relative pb-20 md:pb-0'>{children}</main>
// </ContextProvider>
// </NextUIProvider>
// <ToastContainer
// position='top-center'
// autoClose={3000}
// hideProgressBar
// newestOnTop={false}
// closeOnClick={false}
// rtl={false}
// closeButton={() => <></>}
// pauseOnFocusLoss
// draggable={false}
// pauseOnHover={false}
// theme='dark'
// transition={Bounce}
// limit={3}
// />
// </body>
// <GoogleTagManager gtmId='GTM-K3NWXQS' />
// </html>
// )
}
Binary file added assets/404.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f2be025

Please sign in to comment.