Created
September 9, 2020 15:24
-
-
Save diego3g/e2faeec0fc2cfe6404e344db94ee3073 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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