-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5f0da7a
commit 9566063
Showing
8 changed files
with
434 additions
and
444 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,29 @@ | ||
'use client'; | ||
|
||
// import { useEffect } from 'react'; | ||
import { useEffect } from 'react'; | ||
|
||
export default function Error() { | ||
// { | ||
// error, | ||
// reset, | ||
// }: { | ||
// error: Error & { digest?: string }; | ||
// reset: () => void; | ||
// } | ||
// useEffect(() => { | ||
// console.error(error); | ||
// }, [error]); | ||
export default function Error({ | ||
error, | ||
reset, | ||
}: { | ||
error: Error & { digest?: string }; | ||
reset: () => void; | ||
}) { | ||
useEffect(() => { | ||
console.error(error); | ||
}, [error]); | ||
|
||
return ( | ||
<></> | ||
// <div> | ||
// <h2>Something went wrong!</h2> | ||
// <button | ||
// onClick={ | ||
// // Attempt to recover by trying to re-render the segment | ||
// () => reset() | ||
// } | ||
// > | ||
// Try again | ||
// </button> | ||
// </div> | ||
<div> | ||
<h2>Something went wrong!</h2> | ||
<button | ||
onClick={ | ||
// Attempt to recover by trying to re-render the segment | ||
() => reset() | ||
} | ||
> | ||
Try again | ||
</button> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,29 @@ | ||
// import '@mdxeditor/editor/style.css'; | ||
// import { Viewport } from 'next'; | ||
// import { Roboto } from 'next/font/google'; | ||
// import { Application } from '../shared/components/application/application.component'; | ||
import '@mdxeditor/editor/style.css'; | ||
import { Viewport } from 'next'; | ||
import { Roboto } from 'next/font/google'; | ||
import { Application } from '../shared/components/application/application.component'; | ||
import './global.css'; | ||
|
||
// const roboto = Roboto({ | ||
// weight: ['300', '400', '500', '700'], | ||
// subsets: ['latin'], | ||
// }); | ||
const roboto = Roboto({ | ||
weight: ['300', '400', '500', '700'], | ||
subsets: ['latin'], | ||
}); | ||
|
||
// export const viewport: Viewport = { | ||
// initialScale: 1, | ||
// width: 'device-width', | ||
// }; | ||
export const viewport: Viewport = { | ||
initialScale: 1, | ||
width: 'device-width', | ||
}; | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}) { | ||
return ( | ||
<html | ||
lang="en" | ||
// className={roboto.className} | ||
> | ||
<body>{/* <Application>{children}</Application> */}</body> | ||
<html lang="en" className={roboto.className}> | ||
<body> | ||
<Application>{children}</Application> | ||
</body> | ||
</html> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,44 @@ | ||
'use client'; | ||
|
||
// import MuiLink from '@mui/material/Link'; | ||
// import Typography from '@mui/material/Typography'; | ||
// import Grid2 from '@mui/material/Unstable_Grid2'; | ||
// import Link from 'next/link'; | ||
import MuiLink from '@mui/material/Link'; | ||
import Typography from '@mui/material/Typography'; | ||
import Grid2 from '@mui/material/Unstable_Grid2'; | ||
import Link from 'next/link'; | ||
|
||
export default function NotFound() { | ||
return ( | ||
<></> | ||
// <Grid2 | ||
// container | ||
// textAlign="center" | ||
// direction="column" | ||
// padding={13} | ||
// > | ||
// <Grid2> | ||
// <Typography variant="h1" aria-label="404" color="slategray"> | ||
// 404 | ||
// </Typography> | ||
// </Grid2> | ||
// <Grid2> | ||
// <Typography | ||
// aria-label="Page not found" | ||
// variant="body1" | ||
// letterSpacing={1.2} | ||
// color="slategray" | ||
// > | ||
// Page not found | ||
// </Typography> | ||
// </Grid2> | ||
// <Grid2> | ||
// <MuiLink | ||
// href="/" | ||
// variant="body2" | ||
// underline="none" | ||
// component={Link} | ||
// aria-label="Go to the front page" | ||
// > | ||
// Go to the front page → | ||
// </MuiLink> | ||
// </Grid2> | ||
// </Grid2> | ||
<Grid2 | ||
container | ||
textAlign="center" | ||
direction="column" | ||
padding={13} | ||
> | ||
<Grid2> | ||
<Typography variant="h1" aria-label="404" color="slategray"> | ||
404 | ||
</Typography> | ||
</Grid2> | ||
<Grid2> | ||
<Typography | ||
aria-label="Page not found" | ||
variant="body1" | ||
letterSpacing={1.2} | ||
color="slategray" | ||
> | ||
Page not found | ||
</Typography> | ||
</Grid2> | ||
<Grid2> | ||
<MuiLink | ||
href="/" | ||
variant="body2" | ||
underline="none" | ||
component={Link} | ||
aria-label="Go to the front page" | ||
> | ||
Go to the front page → | ||
</MuiLink> | ||
</Grid2> | ||
</Grid2> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.