Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 1266 | Rev 1399 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1255 stevensc 1
import React from 'react'
2
import styled from 'styled-components'
3
 
4
const StyledForm = styled.form`
1277 stevensc 5
  position: relative;
6
 
1255 stevensc 7
  h3 {
8
    font-size: 18px;
9
    padding-bottom: 0.5rem;
10
    margin-bottom: 1rem;
11
    position: relative;
12
    width: fit-content;
13
    &:before {
14
      content: '';
15
      position: absolute;
16
      background-color: #0961bf;
17
      bottom: 0;
18
      left: 0;
19
      width: 100%;
20
      height: 2px;
21
    }
22
  }
23
 
24
  input {
1256 stevensc 25
    margin-bottom: 0.5rem;
1255 stevensc 26
  }
27
 
28
  button {
29
    padding-top: 0.5rem;
30
    padding-bottom: 0.5rem;
1266 stevensc 31
    margin-top: 0.5rem;
1255 stevensc 32
    width: 100%;
33
  }
34
`
35
 
36
const Form = ({ children, ...rest }) => {
37
  return <StyledForm {...rest}>{children}</StyledForm>
38
}
39
 
40
export default Form