feat: add footer drSquatch page

This commit is contained in:
Nam Doan
2025-12-03 22:10:28 +07:00
parent f3fb70d073
commit 1e99ead658
6 changed files with 446 additions and 5 deletions
@@ -23,7 +23,7 @@ export default async function VtFooter({
const props = nodes?.config ?? {}
return (
<footer className="relative mx-auto duration-200 bg-white border-ui-border-base border-t-2">
<footer className={props?.className ?? ""}>
{props.children && <DynamicLayoutRenderer nodes={props.children} context={context} />}
</footer>
)
+2
View File
@@ -18,6 +18,7 @@ import VtButton from "@modules/layout/templates/vt-button"
import VtSearchInput from "@modules/layout/templates/vt-search-input"
import VtSection from "@modules/layout/templates/vt-section"
import VtText from "@modules/layout/templates/vt-text"
import VtInput from "@modules/layout/templates/vt-input"
type ComponentConfig = Record<string, any>;
@@ -64,6 +65,7 @@ export const componentMap: Record<string, ComponentRenderer> = {
SearchInput: nodesContextRenderer(VtSearchInput),
VtCartButton: nodesContextRenderer(VtCartButton),
Link: nodesContextRenderer(VtLink),
Input: nodesContextRenderer(VtInput),
Image: nodesContextRenderer(VtImage),
Text: nodesContextRenderer(VtText),
Dropdown: nodesContextRenderer(VtDropdown),
+1 -1
View File
@@ -2,7 +2,7 @@ import fs from "fs"
import path from "path"
import { jsonFileNames } from "./devJsonFileNames";
const fileName = jsonFileNames.namVibentec;
const fileName = jsonFileNames.namDrsquatch;
export async function loadDesignConfig() {
const filePath = path.join(process.cwd(), "config", fileName)