mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 12:24:18 +00:00
feat: page 404
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import { Layout } from "src/components/common"
|
||||
import { NotFoundPage } from "src/components/modules/404"
|
||||
|
||||
export default function NotFound() {
|
||||
return (
|
||||
<div>
|
||||
The requested page doesn't exist or you don't have access to it.
|
||||
<NotFoundPage/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
NotFound.Layout = Layout
|
||||
|
28
src/components/modules/404/404Page/404Page.module.scss
Normal file
28
src/components/modules/404/404Page/404Page.module.scss
Normal file
@@ -0,0 +1,28 @@
|
||||
.wrapper{
|
||||
@apply flex justify-center;
|
||||
text-align: center;
|
||||
height:100%;
|
||||
|
||||
background-color: white;
|
||||
.inner{
|
||||
height: 100vh;
|
||||
.logo{
|
||||
margin-top: 2rem;
|
||||
}
|
||||
.text{
|
||||
@apply flex justify-center;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
height:80%;
|
||||
|
||||
h1{
|
||||
font-weight: bold;
|
||||
font-size: 17rem;
|
||||
color: var(--primary);
|
||||
font-family: var(--font-heading);
|
||||
text-shadow: 2px 4px 5px var(--primary);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
27
src/components/modules/404/404Page/404Page.tsx
Normal file
27
src/components/modules/404/404Page/404Page.tsx
Normal file
@@ -0,0 +1,27 @@
|
||||
import React from 'react'
|
||||
import { Logo } from 'src/components/common'
|
||||
import s from './404Page.module.scss'
|
||||
|
||||
interface Props {
|
||||
}
|
||||
|
||||
const NotFoundPage = ({ }: Props) => {
|
||||
return (
|
||||
|
||||
<div className={s.wrapper}>
|
||||
<div className={s.inner}>
|
||||
<div className={s.logo}>
|
||||
<Logo/>
|
||||
</div>
|
||||
|
||||
<div className={s.text}>
|
||||
<h1>
|
||||
404
|
||||
</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div >
|
||||
)
|
||||
}
|
||||
|
||||
export default NotFoundPage
|
1
src/components/modules/404/index.tsx
Normal file
1
src/components/modules/404/index.tsx
Normal file
@@ -0,0 +1 @@
|
||||
export {default as NotFoundPage} from './404Page/404Page';
|
Reference in New Issue
Block a user