Initial commit
This commit is contained in:
commit
eb8731d039
90 changed files with 6380 additions and 0 deletions
55
@dasig/components/Column.astro
Normal file
55
@dasig/components/Column.astro
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
---
|
||||
interface Props {
|
||||
children: any
|
||||
content?: 'top' | 'center' | 'right' | 'split' | 'spaced'
|
||||
gap?: number
|
||||
}
|
||||
|
||||
const { children, content, gap } = Astro.props
|
||||
---
|
||||
|
||||
<section class={`dasig-column-${content || 'center'}`} style={`gap: ${gap}rem`}>
|
||||
{children}
|
||||
</section>
|
||||
|
||||
<style lang="sass">
|
||||
.dasig-column-top
|
||||
display: flex
|
||||
flex-direction: column
|
||||
flex-wrap: wrap
|
||||
justify-content: flex-start
|
||||
align-items: center
|
||||
align-content: center
|
||||
|
||||
.dasig-column-center
|
||||
display: flex
|
||||
flex-direction: column
|
||||
flex-wrap: wrap
|
||||
justify-content: center
|
||||
align-items: center
|
||||
align-content: center
|
||||
|
||||
.dasig-column-right
|
||||
display: flex
|
||||
flex-direction: column
|
||||
flex-wrap: wrap
|
||||
justify-content: flex-end
|
||||
align-items: center
|
||||
align-content: center
|
||||
|
||||
.dasig-column-split
|
||||
display: flex
|
||||
flex-direction: column
|
||||
flex-wrap: wrap
|
||||
justify-content: space-between
|
||||
align-items: center
|
||||
align-content: center
|
||||
|
||||
.dasig-column-spaced
|
||||
display: flex
|
||||
flex-direction: column
|
||||
flex-wrap: wrap
|
||||
justify-content: space-around
|
||||
align-items: center
|
||||
align-content: center
|
||||
</style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue