Eulis

Login index js

Jan 21st, 2020
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. import React from 'react';
  2. import schema from './formValidation';
  3. import {
  4. Outside,
  5. Wrap,
  6. Container,
  7. Triangle,
  8. InputBox,
  9. FormCustom,
  10. InputLogin,
  11. Label,
  12. ButtonsLoginContainer,
  13. SubmitButtonLogin,
  14. Division,
  15. SocialContainer,
  16. } from './styles';
  17.  
  18. import facebook from '~/assets/icons/facebook.svg';
  19. import google from '~/assets/icons/google.svg';
  20.  
  21. export default function Login() {
  22. function loginFunction() {
  23. console.log('teste');
  24. }
  25. return (
  26. <Wrap>
  27. <Container id="login">
  28. <Triangle />
  29. <InputBox>
  30. <FormCustom schema={schema} onSubmit={loginFunction}>
  31. <Label position="top">
  32. E-mail
  33. <InputLogin name="email" screen="login" />
  34. </Label>
  35. <Label>
  36. Senha
  37. <InputLogin name="password" type="password" screen="login" />
  38. </Label>
  39. <ButtonsLoginContainer>
  40. <button value="Criar conta" type="button">
  41. Criar conta
  42. </button>
  43. <button value="Esqueci a senha" type="button">
  44. Esqueci a senha
  45. </button>
  46. </ButtonsLoginContainer>
  47. <SubmitButtonLogin
  48. value="Entrar"
  49. type="submit"
  50. onsubmit={loginFunction}
  51. >
  52. Entrar
  53. </SubmitButtonLogin>
  54. </FormCustom>
  55. <Division>
  56. <span />
  57. <p>ou</p>
  58. <span />
  59. </Division>
  60. <SocialContainer>
  61. <button position="left" type="button">
  62. <img src={facebook} alt="facebook-icon" />
  63. </button>
  64. <button position="right" type="button">
  65. <img src={google} alt="google plus icon" />
  66. </button>
  67. </SocialContainer>
  68. </InputBox>
  69. </Container>
  70. </Wrap>
  71. );
  72. }
Advertisement
Add Comment
Please, Sign In to add comment