jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
34 lines (29 loc) • 715 B
JavaScript
import styled from 'styled-components';
/**
* @file index.tsx
*
* @fileoverview Shows a form centered on the page.
*/
/**
* Places the form on the center of the page. Useful for login or register
* pages where what we want the user to do is very clear.
* It makes the main action and form very clear. Shouldn't be used for very long forms.
*/
const CenterForm = styled.form `
display: flex;
flex-direction: column;
min-width: 300px;
input[type='email'],
input[type='text'],
input[type='password'] {
margin-bottom: 0.5rem;
width: 100%;
}
.button-submit {
width: 100%;
margin-left: 0;
margin-right: 0;
}
`;
export default CenterForm;
export { CenterForm };