This commit is contained in:
Patrick Alvin Alcala 2026-03-24 19:27:19 +08:00
parent 8197905483
commit efc045bebd
48 changed files with 779 additions and 1140 deletions

View 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>