Re-organized files
This commit is contained in:
parent
ea7be8fb39
commit
621faea4c2
53 changed files with 1434 additions and 1059 deletions
|
|
@ -1,20 +0,0 @@
|
|||
import type { ImageMetadata } from 'astro'
|
||||
import './Box.sass'
|
||||
import { Show, type JSXElement, createMemo } from 'solid-js'
|
||||
|
||||
interface Props {
|
||||
thickness: number
|
||||
color?: string
|
||||
children: JSXElement
|
||||
curved?: boolean
|
||||
}
|
||||
|
||||
export default (props: Props) => {
|
||||
const boxClass = createMemo(() => (props.curved ? 'curvedbox' : 'box'))
|
||||
|
||||
return (
|
||||
<section class={boxClass()} style={{ border: `${props.thickness}px solid ${props.color || 'white'}` }}>
|
||||
{props.children}
|
||||
</section>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue