refactor: init new version

This commit is contained in:
Daniel Soares
2021-12-10 20:54:28 -03:00
parent eb8ab7029a
commit db839b267a
31 changed files with 2177 additions and 14915 deletions

5
src/pages/_app.tsx Normal file
View File

@@ -0,0 +1,5 @@
import type { AppProps } from 'next/app'
export default function App({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />
}

19
src/pages/_document.tsx Normal file
View File

@@ -0,0 +1,19 @@
import NextDocument, { Head, Html, Main, NextScript } from 'next/document'
import { getCssText } from '../styles/stitches.config'
export default class Document extends NextDocument {
render() {
return (
<Html>
<Head>
<style id="stitches" dangerouslySetInnerHTML={{ __html: getCssText() }} />
</Head>
<body>
<Main />
<NextScript />
</body>
</Html>
)
}
}

7
src/pages/index.tsx Normal file
View File

@@ -0,0 +1,7 @@
export default function Home() {
return (
<div>
<h1>Hello</h1>
</div>
)
}

9
src/styles/globals.ts Normal file
View File

@@ -0,0 +1,9 @@
import { globalCss } from './stitches.config'
export const globalStyles = globalCss({
'*': {
margin: 0,
padding: 0,
boxSizing: 'border-box'
}
})

View File

@@ -0,0 +1,5 @@
import { createStitches } from '@stitches/react'
export const { css, styled, globalCss, theme, keyframes, getCssText } = createStitches({
theme: {}
})