feat: add footer drSquatch page
This commit is contained in:
@@ -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>
|
||||
)
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user