started work on design page

This commit is contained in:
2024-08-01 19:44:38 +02:00
parent 502ef6ea73
commit 3428bda4bc
10 changed files with 726 additions and 1085 deletions
+9
View File
@@ -0,0 +1,9 @@
---
const { size, ...rest } = Astro.props
---
<div class:list={['container', size ?? 'normal']} {...rest}>
<div class="content">
<slot />
</div>
</div>
+20
View File
@@ -0,0 +1,20 @@
---
type Props = {
colors: string[]
}
const { colors } = Astro.props
---
<div class="palette">
{
colors.map(value => (
<>
<div class="color">
<div class="region" style={{ backgroundColor: value }} />
</div>
<div class="label">{value}</div>
</>
))
}
</div>