Compare commits

...

4 commits

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

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

Before After
Before After

View 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

View 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>
</>
)
}