feat: create json file header for vibentec page
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
export const DESIGN_JSON_FILE = [
|
||||
{
|
||||
id: "drsquatch",
|
||||
file: "nam.drsquatch.design.json",
|
||||
},
|
||||
{
|
||||
id: "3bear",
|
||||
file: "nam.3bear.design.json",
|
||||
},
|
||||
{
|
||||
id: "vibentec",
|
||||
file: "nam.vibentec.design.json",
|
||||
},
|
||||
{
|
||||
id: "medusa-starter",
|
||||
file: "ste.medusa-starter.design.json",
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,17 @@
|
||||
import { DynamicLayoutRenderer, DynamicLayoutRendererProps } from "vibentec/renderer"
|
||||
|
||||
type TextItem = { text: string; className?: string }
|
||||
|
||||
export default async function AnnouncementBanner({
|
||||
className,
|
||||
nodes,
|
||||
context,
|
||||
}: DynamicLayoutRendererProps & { className: string; label: TextItem[] }) {
|
||||
return (
|
||||
<div className={className}>
|
||||
<div className="w-full mx-auto flex justify-between items-center py-2 px-20">
|
||||
{nodes && <DynamicLayoutRenderer nodes={nodes} context={context} />}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user