Home, styles

This commit is contained in:
2023-07-09 21:10:35 +04:00
parent 9382da5750
commit 6438d1900c
9 changed files with 168 additions and 36 deletions

View File

@@ -1,7 +1,9 @@
export default function Home() {
return (
<main>
<pre>{JSON.stringify(new Date().toISOString().split('T').join(' ').substring(0, 16), null, 2)}</pre>
</main>
)
import Page, { getStaticProps as gsp } from '~/pages/[slug]'
export const getStaticProps = async () => {
return gsp({ params: { slug: 'home' } })
}
export default function Home(props) {
return <Page {...props} />
}