diff --git a/fwt/components/Box/Box.sass b/fwt/components/Box/Box.sass deleted file mode 100644 index 17165bb..0000000 --- a/fwt/components/Box/Box.sass +++ /dev/null @@ -1,6 +0,0 @@ -.box - padding: 1rem - -.curvedbox - @extend .box - border-radius: 8px diff --git a/fwt/components/Box/Box.tsx b/fwt/components/Box/Box.tsx deleted file mode 100644 index dc71de3..0000000 --- a/fwt/components/Box/Box.tsx +++ /dev/null @@ -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 ( -
- {props.children} -
- ) -} diff --git a/fwt/components/Column/Column.sass b/fwt/components/Column/Column.sass index b26f108..7a9309e 100644 --- a/fwt/components/Column/Column.sass +++ b/fwt/components/Column/Column.sass @@ -1,4 +1,4 @@ -.column-top +.top display: flex flex-direction: column flex-wrap: wrap @@ -6,7 +6,7 @@ align-items: center align-content: center -.column-center +.center display: flex flex-direction: column flex-wrap: wrap @@ -14,7 +14,7 @@ align-items: center align-content: center -.column-right +.right display: flex flex-direction: column flex-wrap: wrap @@ -22,7 +22,7 @@ align-items: center align-content: center -.column-split +.split display: flex flex-direction: column flex-wrap: wrap @@ -30,7 +30,7 @@ align-items: center align-content: center -.column-spaced +.spaced display: flex flex-direction: column flex-wrap: wrap diff --git a/fwt/components/Column/Column.tsx b/fwt/components/Column/Column.tsx index 3f5c786..27e0e05 100644 --- a/fwt/components/Column/Column.tsx +++ b/fwt/components/Column/Column.tsx @@ -3,16 +3,16 @@ import './Column.sass' interface Props { children: JSXElement - content?: 'top' | 'center' | 'right' | 'split' | 'spaced' + content: 'top' | 'center' | 'right' | 'split' | 'spaced' gap?: number } export default (props: Props) => { return ( <> -
+
{props.children} -
+ ) } diff --git a/fwt/components/Footer/Footer.tsx b/fwt/components/Footer/Footer.tsx index 2c47f07..a8f4780 100644 --- a/fwt/components/Footer/Footer.tsx +++ b/fwt/components/Footer/Footer.tsx @@ -1,5 +1,6 @@ import './Footer.sass' import type { JSXElement } from 'solid-js' +import Row from '../Row/Row' interface Props { children: JSXElement diff --git a/fwt/components/Form/Form.tsx b/fwt/components/Form/Form.tsx index a498c76..9436017 100644 --- a/fwt/components/Form/Form.tsx +++ b/fwt/components/Form/Form.tsx @@ -1,15 +1,19 @@ import './Form.sass' import type { JSXElement } from 'solid-js' +import Button from '../Button/Button' interface Props { children: JSXElement + edges?: 'curved' | 'rounded' | 'flat' + design?: 'bu-primary' | 'bu-link' | 'bu-info' | 'bu-success' | 'bu-warning' | 'bu-danger' | 'bu-dark' | 'bu-light' | 'bu-text' | 'bu-ghost' | 'bo-primary' | 'bo-secondary' | 'bo-success' | 'bo-danger' | 'bo-warning' | 'bo-info' | 'bo-light' | 'bo-dark' | 'bo-link' } export default (props: Props) => { return ( <> -
+ {props.children} +