Skip to content

Instantly share code, notes, and snippets.

@diego3g
Created September 9, 2020 15:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save diego3g/e2faeec0fc2cfe6404e344db94ee3073 to your computer and use it in GitHub Desktop.
Save diego3g/e2faeec0fc2cfe6404e344db94ee3073 to your computer and use it in GitHub Desktop.
return (
<Flex
as="main"
height="100vh"
justifyContent="center"
alignItems="center"
>
<Flex
as="form"
onSubmit={handleSignUpToNewsletter}
backgroundColor="gray.700"
borderRadius="md"
flexDir="column"
alignItems="stretch"
padding={8}
marginTop={4}
width="100%"
maxW="400px"
>
<Image marginBottom={8} src="/rocketseat.svg" alt="Rocketseat" />
<Text textAlign="center" fontSize="sm" color="gray.400" marginBottom={2}>
Assine a newsletter da Rocketseat e receba os melhores conteúdos sobre programação!
</Text>
<Input
placeholder="Seu melhor e-mail"
marginTop={2}
value={email}
onChange={e => setEmail(e.target.value)}
/>
<Button
type="submit"
backgroundColor="purple.500"
height="50px"
borderRadius="sm"
marginTop={6}
_hover={{ backgroundColor: 'purple.600' }}
>
INSCREVER
</Button>
</Flex>
</Flex>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment