-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
port shadcn components and install packages
- Loading branch information
1 parent
bb56b5b
commit f86afea
Showing
38 changed files
with
3,983 additions
and
38 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
120 changes: 120 additions & 0 deletions
120
packages/ui/src/BackgroundBlobs/BackgroundBlobs.stories.js
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 |
---|---|---|
@@ -0,0 +1,120 @@ | ||
import BackgroundBlobs from '../src/components/art/BackgroundBlobs'; | ||
import '../src/styles/_all.scss'; | ||
|
||
export default { title: 'Art/Background Blobs' }; | ||
|
||
export const normal = () => ( | ||
<div | ||
style={{ | ||
width: '800px', | ||
height: '600px', | ||
border: '1px solid white', | ||
borderRadius: 'var(--nc-border-radius)', | ||
overflow: 'hidden', | ||
background: 'white', | ||
}} | ||
> | ||
<BackgroundBlobs /> | ||
</div> | ||
); | ||
|
||
export const fullScreen = () => ( | ||
<div | ||
style={{ | ||
position: 'absolute', | ||
top: 0, | ||
left: 0, | ||
width: '100%', | ||
height: '100%', | ||
background: 'white', | ||
}} | ||
> | ||
<BackgroundBlobs /> | ||
</div> | ||
); | ||
|
||
export const small = () => ( | ||
<div | ||
style={{ | ||
width: '300px', | ||
height: '300px', | ||
border: '1px solid white', | ||
borderRadius: 'var(--nc-border-radius)', | ||
overflow: 'hidden', | ||
background: 'white', | ||
}} | ||
> | ||
<BackgroundBlobs /> | ||
</div> | ||
); | ||
|
||
export const customNumbers = () => ( | ||
<div style={{ display: 'flex' }}> | ||
<div | ||
style={{ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
margin: '1rem', | ||
alignItems: 'center', | ||
}} | ||
> | ||
<h4>Loadsa large</h4> | ||
<div | ||
style={{ | ||
width: '300px', | ||
height: '300px', | ||
border: '1px solid white', | ||
borderRadius: 'var(--nc-border-radius)', | ||
overflow: 'hidden', | ||
background: 'white', | ||
}} | ||
> | ||
<BackgroundBlobs large={7} medium={0} small={0} /> | ||
</div> | ||
</div> | ||
<div | ||
style={{ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
margin: '1rem', | ||
alignItems: 'center', | ||
}} | ||
> | ||
<h4>Twenty Small</h4> | ||
<div | ||
style={{ | ||
width: '300px', | ||
height: '300px', | ||
border: '1px solid white', | ||
borderRadius: 'var(--nc-border-radius)', | ||
overflow: 'hidden', | ||
background: 'white', | ||
}} | ||
> | ||
<BackgroundBlobs large={0} medium={0} small={20} /> | ||
</div> | ||
</div> | ||
<div | ||
style={{ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
margin: '1rem', | ||
alignItems: 'center', | ||
}} | ||
> | ||
<h4>Medium and Small</h4> | ||
<div | ||
style={{ | ||
width: '300px', | ||
height: '300px', | ||
border: '1px solid white', | ||
borderRadius: 'var(--nc-border-radius)', | ||
overflow: 'hidden', | ||
background: 'white', | ||
}} | ||
> | ||
<BackgroundBlobs large={0} medium={5} small={5} /> | ||
</div> | ||
</div> | ||
</div> | ||
); |
Oops, something went wrong.