Updated
This commit is contained in:
parent
8197905483
commit
efc045bebd
48 changed files with 779 additions and 1140 deletions
22
@dasig/components/Box.astro
Normal file
22
@dasig/components/Box.astro
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
type Props = {
|
||||
thickness: number
|
||||
color?: string
|
||||
curved?: boolean
|
||||
}
|
||||
const { thickness, color, curved } = Astro.props
|
||||
const boxClass = curved ? 'dasig-curvedbox' : 'dasig-box'
|
||||
---
|
||||
|
||||
<section class={boxClass} style={{ border: `${thickness}px solid ${color || 'white'}` }}>
|
||||
<slot />
|
||||
</section>
|
||||
|
||||
<style lang="sass">
|
||||
.dasig-box
|
||||
padding: 1rem
|
||||
|
||||
.dasig-curvedbox
|
||||
@extend .dasig-box
|
||||
border-radius: 8px
|
||||
</style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue