This commit is contained in:
Patrick Alvin Alcala 2026-02-16 14:43:56 +08:00
parent 4ece98daf3
commit fa67b238af
12 changed files with 56 additions and 18 deletions

View file

@ -0,0 +1,16 @@
import '../styles/Footer.sass'
import type { JSXElement } from 'solid-js'
interface Props {
children: JSXElement
}
export default (props: Props) => {
return (
<>
<footer class="dasig-footer">
<small>{props.children}</small>
</footer>
</>
)
}

View file

@ -0,0 +1,24 @@
import '../styles/Row.sass'
import { Show, type JSXElement } from 'solid-js'
interface Props {
children: JSXElement
content?: 'left' | 'center' | 'right' | 'split' | 'spaced' | 'even'
gap?: number
}
export default (props: Props) => {
return (
<>
<Show when={props.gap}>
<section class={`dasig-row-${props.content || 'center'}`} style={`gap: ${props.gap}rem`}>
{props.children}
</section>
</Show>
<Show when={!props.gap}>
<section class={`dasig-row-${props.content || 'center'}`}>{props.children}</section>
</Show>
</>
)
}