Changed from astro to pure solidjs

This commit is contained in:
Patrick Alvin Alcala 2025-09-23 18:38:13 +08:00
parent 3203e91c5a
commit e85dc60101
76 changed files with 2281 additions and 3843 deletions

View file

@ -0,0 +1,13 @@
.page
margin: 2rem
height: auto
min-height: 90vh
.column
@extend .page
display: flex
flex-direction: column
.row
@extend .column
flex-direction: row

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