LoginBox.js 672 B

12345678910111213141516171819202122232425262728293031
  1. import React from 'react';
  2. import PropTypes from 'prop-types';
  3. import styled from 'styled-components';
  4. import { fadeIn } from '../../helpers/animations';
  5. const Box = styled.form`
  6. position: relative;
  7. flex-basis: 400px;
  8. display: flex;
  9. flex-direction: column;
  10. justify-content: space-between;
  11. align-items: stretch;
  12. animation: ${fadeIn} 0.8s ease-out;
  13. input {
  14. margin-bottom: 48px;
  15. }
  16. @media only screen and (max-width: 768px) {
  17. input {
  18. margin-bottom: 32px;
  19. }
  20. }
  21. `;
  22. const LoginBox = ({ children, ...props }) => <Box {...props}>{children}</Box>;
  23. LoginBox.propTypes = {
  24. children: PropTypes.node.isRequired,
  25. };
  26. export default LoginBox;