diff --git a/config/nam.3bear.design.json b/config/nam.3bear.design.json index e9c9da9..b55fec1 100644 --- a/config/nam.3bear.design.json +++ b/config/nam.3bear.design.json @@ -177,6 +177,35 @@ ] } }, + { + "Hero": { + "config": { + "className": "h-[35rem]", + "ImageDisplayer": { + "config": { + "duration": 0, + "images": ["./banner-hero.webp"], + "links": ["/account"] + } + }, + "left": [ + { + "VtCtaBanner": { + "config": { + "variant": "3bear", + "className": "left-[120px] top-[80px]", + "tagText": "So einfach kann Frühstück sein – mit unseren leckeren Overnight Oats.", + "titleText": "breakfast made easy.", + "buttonText": "Jetzt entdecken" + } + } + } + ], + "center": [], + "right": [] + } + } + }, { "CartMismatchBanner": { "config": { @@ -213,10 +242,26 @@ "emailInputClassName": "w-[300px] ml-8" }, "socials": [ - { "icon": "Twitter", "href": "/", "className": "w-5 h-5 text-white" }, - { "icon": "Twitter", "href": "/", "className": "w-5 h-5 text-white" }, - { "icon": "Twitter", "href": "/", "className": "w-5 h-5 text-white" }, - { "icon": "Twitter", "href": "/", "className": "w-5 h-5 text-white" } + { + "icon": "Twitter", + "href": "/", + "className": "w-5 h-5 text-white" + }, + { + "icon": "Twitter", + "href": "/", + "className": "w-5 h-5 text-white" + }, + { + "icon": "Twitter", + "href": "/", + "className": "w-5 h-5 text-white" + }, + { + "icon": "Twitter", + "href": "/", + "className": "w-5 h-5 text-white" + } ], "socialsClassName": "ml-8 mt-10", "className": "", @@ -311,15 +356,22 @@ "config": { "className": "content-container bg-[#003f31] w-full text text-[#11314E] flex items-center justify-between", "leftClassName": "w-full", - "left": [ - ], + "left": [], "center": [], "right": [ { "VtFooterBottom": { "config": { "className": " mr-[80px]", - "icons": ["Mastercard", "PayPal", "Visa", "Mastercard","Mastercard","Mastercard","Mastercard"] + "icons": [ + "Mastercard", + "PayPal", + "Visa", + "Mastercard", + "Mastercard", + "Mastercard", + "Mastercard" + ] } } } diff --git a/config/nam.drsquatch.design.json b/config/nam.drsquatch.design.json index bcc4e8f..9338061 100644 --- a/config/nam.drsquatch.design.json +++ b/config/nam.drsquatch.design.json @@ -130,6 +130,44 @@ ] } }, + { + "Hero": { + "config": { + "className": "h-[35rem]", + "ImageDisplayer": { + "config": { + "duration": 0, + "images": [ + "./drsquatch-banner.jpg" + ], + "links": [ + "/account" + ] + } + }, + "left": [ + { + "VtCtaBanner": { + "config": { + "variant": "default", + "className": "left-[120px] top-[120px] bg-transparent border-none text-white text-center", + "tagTextClassName": "text-white bg-transparent", + "titleTextClassName": "text-white font-bold leading-normal text-[30px]", + "descriptionTextClassName": "text-white text-[1rem] w-[300px] ml-[6.6rem]", + "buttonTextClassName": "text-white bg-orange-500 w-[300px]", + "tagText": "ALL NEW!", + "titleText": "LUMBERJACK LODGE", + "descriptionText": "Step into the lodge with the warm, sweet scent of maple and vanilla.", + "buttonText": "SHOP NOW" + } + } + } + ], + "center": [], + "right": [] + } + } + }, { "CartMismatchBanner": { "config": { @@ -277,14 +315,30 @@ "buttonClassName": "bg-[#C4622C] w-[90px]", "socialsClassName": "mt-4 gap-8", "socials": [ - { "icon": "Twitter", "href": "/", "className": "w-5 h-5 text-white" }, - { "icon": "Twitter", "href": "/", "className": "w-5 h-5 text-white" }, - { "icon": "Twitter", "href": "/", "className": "w-5 h-5 text-white" }, - { "icon": "Twitter", "href": "/", "className": "w-5 h-5 text-white" } + { + "icon": "Twitter", + "href": "/", + "className": "w-5 h-5 text-white" + }, + { + "icon": "Twitter", + "href": "/", + "className": "w-5 h-5 text-white" + }, + { + "icon": "Twitter", + "href": "/", + "className": "w-5 h-5 text-white" + }, + { + "icon": "Twitter", + "href": "/", + "className": "w-5 h-5 text-white" + } ] } } - } + } ] } } diff --git a/config/nam.mds-starter-design.json b/config/nam.mds-starter-design.json index 8994524..9994c23 100644 --- a/config/nam.mds-starter-design.json +++ b/config/nam.mds-starter-design.json @@ -138,14 +138,7 @@ "Hero": { "config": { "variant": "default", - "className": "bg-custom-gradient", - "ImageDisplayer": { - "config": { - "duration": 20, - "images": ["./banner-hero.webp", "./banner-hero.webp"], - "links": [] - } - } + "className": "bg-custom-gradient" } } }, diff --git a/config/nam.vibentec.design.json b/config/nam.vibentec.design.json index c64c98f..d564a31 100644 --- a/config/nam.vibentec.design.json +++ b/config/nam.vibentec.design.json @@ -179,31 +179,35 @@ { "Hero": { "config": { - "variant": "default", "className": "h-[35rem]", "ImageDisplayer": { "config": { - "duration": 1, + "duration": 0, "images": [ "./banner-hero.webp", - "./banner-hero.webp" + "./banner-hero-1.webp", + "./banner-hero-2.webp" ], - "links": [] + "links": ["/", "/account", "/product"] } }, - "left":[{ + "left": [ + { "VtCtaBanner": { "config": { - "className": "ml-[120px]", + "variant": "default", + "className": "left-[120px] top-[80px]", + "titleTextClassName": "leading-normal", "tagText": "Besonders Aktion", "titleText": "Willkommen in Vibentec IT Shop", "descriptionText": "Insert the accordion description here. It would look better as two lines of text or more.", "buttonText": "Zum Einkaufen" } } - }], - "center":[], - "right":[] + } + ], + "center": [], + "right": [] } } }, diff --git a/public/drsquatch-banner.jpg b/public/drsquatch-banner.jpg new file mode 100644 index 0000000..dae4892 Binary files /dev/null and b/public/drsquatch-banner.jpg differ diff --git a/src/modules/layout/templates/hero/hero-default.tsx b/src/modules/layout/templates/hero/banner-hero.tsx similarity index 86% rename from src/modules/layout/templates/hero/hero-default.tsx rename to src/modules/layout/templates/hero/banner-hero.tsx index c8f80f5..cd9cc14 100644 --- a/src/modules/layout/templates/hero/hero-default.tsx +++ b/src/modules/layout/templates/hero/banner-hero.tsx @@ -9,14 +9,14 @@ export default function HeroDefault({ node, context }: { node: LayoutComponentDe if (imageDisplayer) { return ( -
+
) } return ( -
+
{ - const props = node.config ?? {} - const imageDisplayer = props.ImageDisplayer - - return ( -
- {imageDisplayer ? ( - - ) : ( - - )} -
- ) -} - -export default HeroVibentec diff --git a/src/modules/layout/templates/hero/index.tsx b/src/modules/layout/templates/hero/index.tsx index 624b9ef..3c128e6 100644 --- a/src/modules/layout/templates/hero/index.tsx +++ b/src/modules/layout/templates/hero/index.tsx @@ -3,14 +3,9 @@ import { LayoutContext, } from "vibentec/component-map" import { clx } from "@medusajs/ui" -import BannerHeroVibentec from "../hero/hero-vibentec" -import BannerHeroDefault from "../hero/hero-default" +import BannerHero from "./banner-hero" import { DynamicLayoutRenderer } from "vibentec/renderer" -interface BannerProps { - variant: "vibentec" | "default" - className?: string -} export default async function Hero({ nodes, context, @@ -18,7 +13,7 @@ export default async function Hero({ nodes: LayoutComponentDefinition context: LayoutContext }) { - const props = (nodes.config as BannerProps) ?? {} + const props = nodes.config ?? {} const left = nodes.config?.left ?? [] const center = nodes.config?.center ?? [] const right = nodes.config?.right ?? [] @@ -26,29 +21,21 @@ export default async function Hero({ "min-h-[30rem] w-full border-b border-ui-border-base relative", props.className ) - if (!props.variant) return null - - const variants = { - vibentec: BannerHeroVibentec, - default: BannerHeroDefault, - } - - const Component = variants[props.variant] return (
- -
-