Performance follow-ups

This commit is contained in:
adilallo
2026-05-26 07:24:36 -06:00
parent 3be188a3cc
commit eded97559d
16 changed files with 432 additions and 72 deletions
+10 -5
View File
@@ -1,6 +1,9 @@
import dynamic from "next/dynamic";
import type { ReactNode } from "react";
import MarketingNavigation from "../components/navigation/MarketingNavigation";
import { MessagesProvider } from "../contexts/MessagesContext";
import { AuthModalProvider } from "../contexts/AuthModalContext";
import marketingMessages from "../../messages/en/marketing";
// Site footer is part of the public marketing chrome only — not rendered for
// signed-in product surfaces, admin dashboards, or dev previews. See
@@ -14,10 +17,12 @@ const Footer = dynamic(() => import("../components/navigation/Footer"), {
export default function MarketingLayout({ children }: { children: ReactNode }) {
return (
<>
<MarketingNavigation />
<main className="flex-1">{children}</main>
<Footer />
</>
<MessagesProvider messages={marketingMessages}>
<AuthModalProvider>
<MarketingNavigation />
<main className="flex-1">{children}</main>
<Footer />
</AuthModalProvider>
</MessagesProvider>
);
}