LoginPage.tsx 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import SignupForm from './SignupForm'
  2. import { LoginForm } from '..'
  3. import theme from '../../styles/theme'
  4. const LoginPage = () => {
  5. return (
  6. <section className='login-page'>
  7. <div className='login-tile'>
  8. <h2>Join the u-fit Community</h2>
  9. <p>
  10. u-fit is a short 30-45 minute fitness program. u-blox offers it's employees this training
  11. for free.
  12. </p>
  13. <SignupForm />
  14. </div>
  15. <div className='login-tile'>
  16. <h2>Log in</h2>
  17. <p>Already signed up? Welcome back!</p>
  18. <LoginForm />
  19. </div>
  20. <style jsx>{`
  21. .login-page {
  22. display: grid;
  23. grid-template-columns: 1fr;
  24. align-items: center;
  25. background-color: #f7f7f7;
  26. border-radius: 8px;
  27. margin: 0 auto;
  28. padding: 1em;
  29. max-width: ${theme.maxWidth};
  30. box-shadow: ${theme.bsSmall};
  31. }
  32. @media (min-width: 768px) {
  33. .login-page {
  34. grid-template-columns: 1fr 1fr;
  35. grid-gap: 4em;
  36. margin: 2em auto;
  37. padding: 2em;
  38. }
  39. .login-tile {
  40. }
  41. }
  42. `}</style>
  43. </section>
  44. )
  45. }
  46. export default LoginPage