Compare commits
4 commits
b559b0b2e4
...
14e92cd884
| Author | SHA1 | Date | |
|---|---|---|---|
| 14e92cd884 | |||
| d083411adf | |||
| 371498f892 | |||
| a574ae40dd |
6 changed files with 35 additions and 0 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 4.3 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 5.6 KiB |
15
src/builtin-components/Page/Page.sass
Normal file
15
src/builtin-components/Page/Page.sass
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
.page
|
||||||
|
margin: 2rem
|
||||||
|
height: auto
|
||||||
|
|
||||||
|
.column
|
||||||
|
@extend .page
|
||||||
|
display: flex
|
||||||
|
flex-direction: column
|
||||||
|
text-align: center
|
||||||
|
justify-content: center
|
||||||
|
align-items: center
|
||||||
|
|
||||||
|
.row
|
||||||
|
@extend .column
|
||||||
|
flex-direction: row
|
||||||
20
src/builtin-components/Page/Page.tsx
Normal file
20
src/builtin-components/Page/Page.tsx
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
import './Page.sass'
|
||||||
|
import { Show, Switch, Match } 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