feat: create footer vibentec design and common component text

This commit is contained in:
Nam Doan
2025-12-02 10:59:28 +07:00
parent 154d52732d
commit efe48a200f
4 changed files with 42 additions and 5 deletions
@@ -23,7 +23,7 @@ export default async function VtFooter({
const props = nodes?.config ?? {}
return (
<footer className="relative mx-auto border-b duration-200 bg-white border-ui-border-base border-t-2">
<footer className="relative mx-auto duration-200 bg-white border-ui-border-base border-t-2">
{props.children && <DynamicLayoutRenderer nodes={props.children} context={context} />}
</footer>
)
@@ -0,0 +1,18 @@
import { LayoutComponentDefinition } from "@vibentec/component-map"
import { LayoutContext } from "@vibentec/component-map"
export default function VtText({
nodes,
context,
}: {
nodes: LayoutComponentDefinition
context: LayoutContext
}) {
const props = nodes.config || {}
return (
<span className={props?.className ?? ""}>
{props?.label && <span>{props.label}</span>}
</span>
)
}