Skip to content

Instantly share code, notes, and snippets.

@cristianoap
Created April 5, 2023 13:05
Show Gist options
  • Save cristianoap/7b9e65e9da7a13701020111ef799e06c to your computer and use it in GitHub Desktop.
Save cristianoap/7b9e65e9da7a13701020111ef799e06c to your computer and use it in GitHub Desktop.
Chakra UI
import { Box, Container, Heading } from '@chakra-ui/react'
const boxStyles = {
p: '10px',
bg: 'blue.400',
color: 'white',
m: '10px',
textAlign: 'center',
borderRadius: '5px',
}
function App() {
return (
<Container
textAlign="center"
display="flex"
flexDirection="column"
alignItems="center"
justifyContent="center"
h="100vh"
>
<Heading>Meu primeiro projeto utilizando Chakra-ui!</Heading>
<Box sx={boxStyles}>
<a
href="https://github.com/camilacno/chakra-ui-tutorial"
target="_blank"
rel="noopener noreferrer"
>
Acesse o repositório
</a>
</Box>
</Container>
)
}
export default App
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment