From b955c480910b5dbf24b83cbfb2ff7a64d0803b83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Ign=C3=A1cio=20Fontoura=20Solla?= Date: Sun, 15 Feb 2026 16:19:57 -0300 Subject: [PATCH] feat(cms): add homepage global and wire frontend to Payload content - add global () with required media upload field - register new global in and include it in admin live preview - replace hardcoded frontend landing content with CMS-driven homepage image - add typed cached utilities for globals/documents + centralized revalidation helpers - migrate components to new global utility module and remove deprecated helper - update revalidation hook to use shared global revalidation - refine frontend layout/header and simplify legacy homepage CSS - regenerate for new global/schema changes --- src/app/(frontend)/layout.tsx | 2 +- src/app/(frontend)/page.tsx | 69 +++++-------------- src/app/(frontend)/styles.css | 76 +-------------------- src/components/Header.tsx | 6 +- src/components/socialLinks.tsx | 2 +- src/globals/HomePage.ts | 30 ++++++++ src/globals/SiteSettings.ts | 7 +- src/payload-types.ts | 22 ++++++ src/payload.config.ts | 5 +- src/utilities/documents.ts | 32 +++++++++ src/utilities/{getGlobals.ts => globals.ts} | 7 +- 11 files changed, 122 insertions(+), 136 deletions(-) create mode 100644 src/globals/HomePage.ts create mode 100644 src/utilities/documents.ts rename src/utilities/{getGlobals.ts => globals.ts} (64%) diff --git a/src/app/(frontend)/layout.tsx b/src/app/(frontend)/layout.tsx index 5b0c4498..ff24e8b1 100644 --- a/src/app/(frontend)/layout.tsx +++ b/src/app/(frontend)/layout.tsx @@ -18,7 +18,7 @@ export default async function RootLayout(props: { children: React.ReactNode }) {
-
{children}
+ {children}