-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
# dependencies | ||
/node_modules | ||
/.idea | ||
/.pnp | ||
.pnp.js | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { ThemeProvider } from 'styled-components' | ||
import { AnimatePresence } from 'framer-motion' | ||
|
||
import GlobalStyle from '../styles/global' | ||
import theme from '../styles/theme' | ||
|
||
function MyApp({ Component, pageProps }) { | ||
return ( | ||
<AnimatePresence exitBeforeEnter> | ||
<ThemeProvider theme={theme}> | ||
<Component {...pageProps}/> | ||
<GlobalStyle /> | ||
</ThemeProvider> | ||
</AnimatePresence> | ||
) | ||
} | ||
|
||
export default MyApp |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import React from 'react' | ||
import Document, { | ||
Html, | ||
Head, | ||
Main, | ||
NextScript | ||
} from 'next/document' | ||
import {ServerStyleSheet} from 'styled-components' | ||
|
||
export default class MyDocument extends Document { | ||
static async getInitialProps(ctx) { | ||
const sheet = new ServerStyleSheet() | ||
const originalRenderPage = ctx.renderPage | ||
try { | ||
ctx.renderPage = () => | ||
originalRenderPage({ | ||
enhanceApp: App => props => sheet.collectStyles(<App {...props} />) | ||
}) | ||
const initialProps = await Document.getInitialProps(ctx) | ||
return { | ||
...initialProps, | ||
styles: ( | ||
<> | ||
{initialProps.styles} | ||
{sheet.getStyleElement()} | ||
</> | ||
) | ||
} | ||
} finally { | ||
sheet.seal() | ||
} | ||
} | ||
|
||
render() { | ||
return ( | ||
<Html lang="pt"> | ||
<Head> | ||
{/* eslint-disable-next-line @next/next/no-title-in-document-head */} | ||
<title>My page title</title> | ||
<meta charSet="utf-8"/> | ||
<meta name="robots" content="index, follow"/> | ||
<link rel="icon" href="https://www.freenfe.com.br/favicon.ico"/> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@100;400;600;700&display=swap" | ||
rel="stylesheet" | ||
/> | ||
</Head> | ||
<body> | ||
<Main/> | ||
<NextScript/> | ||
</body> | ||
</Html> | ||
) | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import Head from 'next/head' | ||
import styles from '../styles/Home.module.css' | ||
|
||
export default function Home() { | ||
return ( | ||
<div className={styles.container}> | ||
<Head> | ||
<title>Naweby</title> | ||
</Head> | ||
|
||
<main className={styles.main}> | ||
<h1 className={styles.title}> | ||
Welcome to <a href="#">Naweby</a> | ||
</h1> | ||
</main> | ||
</div> | ||
) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import { createGlobalStyle } from 'styled-components' | ||
export default createGlobalStyle` | ||
::selection { | ||
background-color: ${props => props.theme.colors.secundary}; | ||
color: ${props => props.theme.colors.text}; | ||
} | ||
*, ::after, ::before { | ||
box-sizing: border-box; | ||
} | ||
html, | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
font: ${props => props.theme.fontPatterns}; | ||
color: ${props => props.theme.colors.text}; | ||
background-color: ${props => props.theme.colors.background}; | ||
p { | ||
font-size: 18px; | ||
line-height: 26px; | ||
margin-top: 0; | ||
} | ||
h1 { | ||
font-size: 2rem; | ||
font-weight: 700; | ||
margin-top: 0; | ||
margin-bottom: 1rem; | ||
} | ||
strong { | ||
font-weight: 600; | ||
} | ||
button { | ||
font: ${props => props.theme.fontPatterns}; | ||
} | ||
} | ||
::-webkit-scrollbar-track { | ||
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); | ||
border-radius: 10px; | ||
background-color: #F5F5F5; | ||
} | ||
::-webkit-scrollbar { | ||
width: 12px; | ||
background-color: #F5F5F5; | ||
} | ||
::-webkit-scrollbar-thumb { | ||
border-radius: 10px; | ||
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3); | ||
background-color: ${props => props.theme.colors.primary}; | ||
} | ||
` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const theme = { | ||
colors: { | ||
background: '#f6f5fb', | ||
text: '#2F2E3E', | ||
primary: '#3a4ecf', | ||
dark_primary: '#2a3bac', | ||
secundary: '#23a488', | ||
dark_secundary: '#1a7a65' | ||
}, | ||
fontPatterns: "400 17px 'Montserrat', sans-serif !important" | ||
} | ||
|
||
export default theme |
This file was deleted.
463ee1d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: