Initial commit

This commit is contained in:
Patrick Alvin Alcala 2025-10-24 16:09:57 +08:00
commit 6e8391f7d1
77 changed files with 6391 additions and 0 deletions

19
fwt/components/Box.tsx Normal file
View file

@ -0,0 +1,19 @@
import '../styles/Box.sass'
import { 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>
)
}