-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
69c592b
commit b0cf2f4
Showing
11 changed files
with
252 additions
and
265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,54 @@ | ||
import { styled } from '../styles'; | ||
|
||
export const Button = styled('button', { | ||
display: 'flex', | ||
pos: 'relative', | ||
p: ['8px 20px'], | ||
// bg: '$bgPrimary', | ||
rounded: '$button', | ||
fontFamily: '$primary', | ||
gradient: '$primary', | ||
justifyContent: 'center', | ||
cursor: 'pointer', | ||
borderStyle: 'none', | ||
'&:hover': { | ||
boxShadow: '$lg', | ||
opacity: '$hover', | ||
}, | ||
variants: { | ||
style: { | ||
primary: { | ||
color: '$white', | ||
gradient: '$gradient-primary-button', | ||
}, | ||
secondary: { | ||
color: '$textOnSecondary', | ||
gradient: '$gradient-secondary-button', | ||
}, | ||
'action-primary': { | ||
p: ['4px 16px'], | ||
color: '$white', | ||
gradient: '$gradient-primary-button', | ||
rounded: '$button-action', | ||
border: '1px solid $primary', | ||
}, | ||
'action-secondary': { | ||
p: ['4px 16px'], | ||
color: '$textSecondary', | ||
bg: '$white', | ||
rounded: '$button-action', | ||
border: '1px solid $primary', | ||
}, | ||
export const Button = (styled: any) => | ||
styled('button', { | ||
display: 'flex', | ||
pos: 'relative', | ||
p: ['8px 20px'], | ||
// bg: '$bgPrimary', | ||
rounded: '$button', | ||
fontFamily: '$primary', | ||
gradient: '$primary', | ||
justifyContent: 'center', | ||
cursor: 'pointer', | ||
borderStyle: 'none', | ||
'&:hover': { | ||
boxShadow: '$lg', | ||
opacity: '$hover', | ||
}, | ||
size: { | ||
sm: { | ||
p: ['6px 10px'], | ||
}, | ||
md: { | ||
p: ['8px 20px'], | ||
variants: { | ||
style: { | ||
primary: { | ||
color: '$white', | ||
gradient: '$gradient-primary-button', | ||
}, | ||
secondary: { | ||
color: '$textOnSecondary', | ||
gradient: '$gradient-secondary-button', | ||
}, | ||
'action-primary': { | ||
p: ['4px 16px'], | ||
color: '$white', | ||
gradient: '$gradient-primary-button', | ||
rounded: '$button-action', | ||
border: '1px solid $primary', | ||
}, | ||
'action-secondary': { | ||
p: ['4px 16px'], | ||
color: '$textSecondary', | ||
bg: '$white', | ||
rounded: '$button-action', | ||
border: '1px solid $primary', | ||
}, | ||
}, | ||
lg: { | ||
p: ['15px 25px'], | ||
size: { | ||
sm: { | ||
p: ['6px 10px'], | ||
}, | ||
md: { | ||
p: ['8px 20px'], | ||
}, | ||
lg: { | ||
p: ['15px 25px'], | ||
}, | ||
}, | ||
}, | ||
}, | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
import { styled } from '../styles'; | ||
// import { styled } from '../styles'; | ||
|
||
export const Card = styled('div', { | ||
display: 'flex', | ||
w: '100%', | ||
bg: 'white', | ||
rounded: '20px', | ||
justify: 'center', | ||
boxShadow: '0px 4px 10px rgba(0, 0, 0, 0.25)', | ||
}); | ||
export const Card = (styled: any) => | ||
styled('div', { | ||
display: 'flex', | ||
w: '100%', | ||
bg: 'white', | ||
rounded: '20px', | ||
justify: 'center', | ||
boxShadow: '0px 4px 10px rgba(0, 0, 0, 0.25)', | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
export * from './button'; | ||
export * from './card'; | ||
export * from './input'; | ||
export * from './overlay'; | ||
export * from './text'; | ||
export * from './textConfig'; | ||
import { Button } from './button'; | ||
import { Card } from './card'; | ||
import { Input } from './input'; | ||
import { Overlay, OverlayInteract } from './overlay'; | ||
import { Text } from './text'; | ||
|
||
export const sidanAtoms = (styled: any) => ({ | ||
Card: Card(styled), | ||
Button: Button(styled), | ||
Input: Input(styled), | ||
Overlay: Overlay(styled), | ||
OverlayInteract: OverlayInteract(styled), | ||
Text: Text(styled), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
import { styled } from '../styles'; | ||
|
||
export const Input = styled('input', { | ||
boxShadow: 'none', | ||
borderStyle: 'none', | ||
border: '1px solid', | ||
textColor: '#666666', | ||
background: 'white', | ||
p: ['12px 16px'], | ||
h: '100%', | ||
w: '100%', | ||
text: ['16px'], | ||
rounded: '10px', | ||
'&::placeholder': { | ||
export const Input = (styled: any) => | ||
styled('input', { | ||
boxShadow: 'none', | ||
borderStyle: 'none', | ||
border: '1px solid', | ||
textColor: '#666666', | ||
}, | ||
'&:hover': { | ||
outline: 'none', | ||
}, | ||
}); | ||
background: 'white', | ||
p: ['12px 16px'], | ||
h: '100%', | ||
w: '100%', | ||
text: ['16px'], | ||
rounded: '10px', | ||
'&::placeholder': { | ||
textColor: '#666666', | ||
}, | ||
'&:hover': { | ||
outline: 'none', | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
import { styled } from '../styles'; | ||
export const Overlay = (styled: any) => | ||
styled('div', { | ||
position: 'fixed', | ||
top: '0', | ||
left: '0', | ||
width: '100dvw', | ||
height: '100dvh', | ||
display: 'flex', | ||
justify: 'center', | ||
items: 'center', | ||
backdropFilter: 'blur(3px)', | ||
zIndex: 999, | ||
color: 'white', | ||
}); | ||
|
||
export const Overlay = styled('div', { | ||
position: 'fixed', | ||
top: '0', | ||
left: '0', | ||
width: '100dvw', | ||
height: '100dvh', | ||
display: 'flex', | ||
justify: 'center', | ||
items: 'center', | ||
backdropFilter: 'blur(3px)', | ||
zIndex: 999, | ||
color: 'white', | ||
}); | ||
|
||
export const OverlayInteract = styled('div', { | ||
position: 'absolute', | ||
top: '0', | ||
left: '0', | ||
width: '100%', | ||
height: '100%', | ||
zIndex: -1, | ||
}); | ||
export const OverlayInteract = (styled: any) => | ||
styled('div', { | ||
position: 'absolute', | ||
top: '0', | ||
left: '0', | ||
width: '100%', | ||
height: '100%', | ||
zIndex: -1, | ||
}); |
Oops, something went wrong.