This commit is contained in:
Patrick Alvin Alcala 2026-01-30 19:18:25 +08:00
parent b5e92165c8
commit 0b4a6856ec

View file

@ -3,14 +3,14 @@ import { Show } from 'solid-js'
interface Props {
children?: any
alignment?: 'dasig-page-row' | 'dasig-page-column'
alignment?: 'row' | 'column'
}
export default (props: Props) => {
return (
<>
<Show when={props.alignment}>
<main class={props.alignment}>{props.children}</main>
<main class={`dasig-page-${props.alignment}`}>{props.children}</main>
</Show>
<Show when={!props.alignment}>
<main class="dasig-page">{props.children}</main>