Added fwt components
This commit is contained in:
parent
b7409d1c13
commit
b2cbd947c5
30 changed files with 852 additions and 0 deletions
20
fwt/components/Page/Page.tsx
Normal file
20
fwt/components/Page/Page.tsx
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import './Page.sass'
|
||||
import { Show } from 'solid-js'
|
||||
|
||||
interface Props {
|
||||
children?: any
|
||||
alignment?: 'row' | 'column'
|
||||
}
|
||||
|
||||
export default (props: Props) => {
|
||||
return (
|
||||
<>
|
||||
<Show when={props.alignment}>
|
||||
<main class={props.alignment}>{props.children}</main>
|
||||
</Show>
|
||||
<Show when={!props.alignment}>
|
||||
<main class="page">{props.children}</main>
|
||||
</Show>
|
||||
</>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue