@burdenoff/website-sdk 2026.1029.1 → 2026.1031.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -620,6 +620,12 @@ function ContactPage({
620
620
  setIsSubmitting(false);
621
621
  }
622
622
  };
623
+ const heroDescriptionText = replacePlaceholders(
624
+ heroDescription,
625
+ displayName,
626
+ contactEmail
627
+ ).trim();
628
+ const hasHero = heroTitle.trim() !== "" || heroDescriptionText !== "";
623
629
  return /* @__PURE__ */ jsxs("div", { className: "w-full", children: [
624
630
  seo && /* @__PURE__ */ jsx(
625
631
  PageHead,
@@ -632,13 +638,13 @@ function ContactPage({
632
638
  url: seo.url
633
639
  }
634
640
  ),
635
- /* @__PURE__ */ jsx(
641
+ hasHero && /* @__PURE__ */ jsx(
636
642
  "section",
637
643
  {
638
644
  className: headingLevel === 2 ? "py-12 md:py-16" : "bg-gradient-to-b from-background to-muted/20 py-12 sm:py-16 md:py-20 lg:py-24",
639
645
  children: /* @__PURE__ */ jsx("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ jsxs("div", { className: "text-center max-w-3xl mx-auto", children: [
640
- headingLevel === 2 ? /* @__PURE__ */ jsx("h2", { className: "text-2xl md:text-3xl font-bold mb-3", children: heroTitle }) : /* @__PURE__ */ jsx("h1", { className: "text-3xl sm:text-4xl md:text-5xl font-bold mb-4 sm:mb-6", children: heroTitle }),
641
- /* @__PURE__ */ jsx("p", { className: "text-lg sm:text-xl text-muted-foreground leading-relaxed", children: replacePlaceholders(heroDescription, displayName, contactEmail) })
646
+ !heroTitle.trim() ? null : headingLevel === 2 ? /* @__PURE__ */ jsx("h2", { className: "text-2xl md:text-3xl font-bold mb-3", children: heroTitle }) : /* @__PURE__ */ jsx("h1", { className: "text-3xl sm:text-4xl md:text-5xl font-bold mb-4 sm:mb-6", children: heroTitle }),
647
+ heroDescriptionText && /* @__PURE__ */ jsx("p", { className: "text-lg sm:text-xl text-muted-foreground leading-relaxed", children: heroDescriptionText })
642
648
  ] }) })
643
649
  }
644
650
  ),