refactor: with styled-components

This commit is contained in:
Daniel Soares committed 2021-12-18 00:50:54 -03:00
1 parent 5138b4dfc2
commit 47d03b6d73
42 files changed
+845 -934

No files matched your search

+17 -36
View File
@@ -1,38 +1,19 @@
import { styled, theme } from '../../../styles/stitches.config'
import styled from 'styled-components'
export const Wrapper = styled('div', {
position: 'fixed',
top: 0,
left: 0,
width: '50%',
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
padding: '1rem',
background: theme.colors.sky200,
color: theme.colors.slate700,
fontFamily: theme.fonts.roboto,
fontSize: '0.875rem',
lineHeight: 1,
transition: 'all 0.25s ease-in-out',
export const Wrapper = styled.div`
position: fixed;
top: 0;
left: 0;
width: 50%;
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
font-size: 0.875rem;
line-height: 1;
`
variants: {
show: {
true: {
opacity: 1
},
false: {
opacity: 0
}
}
},
defaultVariant: {
show: false
}
})
export const ButtonsGroup = styled('div', {
display: 'flex',
gap: '1rem'
})
export const ButtonsGroup = styled.div`
display: flex;
gap: 1rem;
`