diff --git a/components/HeroSection.tsx b/components/HeroSection.tsx index e10cafb..8c34948 100644 --- a/components/HeroSection.tsx +++ b/components/HeroSection.tsx @@ -1,7 +1,7 @@ import Link from "next/link"; import type { CommonContent, HomeContent, HomeVariantContent } from "@/content/types"; import type { Locale } from "@/lib/i18n"; -import { getEmailHref, isComingSoonMode } from "@/lib/site"; +import { getEmailHref, getModeValue, isComingSoonMode } from "@/lib/site"; type HeroSectionProps = { locale: Locale; @@ -10,7 +10,7 @@ type HeroSectionProps = { }; export default function HeroSection({ locale, home, common }: HeroSectionProps) { - const activeHome: HomeVariantContent = isComingSoonMode() ? home.comingSoon : home.full; + const activeHome: HomeVariantContent = getModeValue(home); const emailHref = getEmailHref(); return ( diff --git a/components/SiteFooter.tsx b/components/SiteFooter.tsx index 3fbf051..ace5850 100644 --- a/components/SiteFooter.tsx +++ b/components/SiteFooter.tsx @@ -1,5 +1,6 @@ import type { Locale } from "@/lib/i18n"; import type { CommonContent } from "@/content/types"; +import { getModeValue } from "@/lib/site"; type SiteFooterProps = { locale: Locale; @@ -8,13 +9,14 @@ type SiteFooterProps = { export default function SiteFooter({ locale, common }: SiteFooterProps) { const year = new Date().getFullYear(); + const commonVariant = getModeValue(common.variants); return (