Files
property-management-network/app/(marketing)/layout.tsx
T
Leon SerfatyandClaude Opus 5 1d02598786 chore: sync in-progress work across marketing, admin, API and tests
Snapshot of uncommitted work that had accumulated in the tree alongside
the Turnstile changes:

- marketing pages, SEO helpers (lib/seo.ts, lib/marketing/) and
  structured data
- admin billing actions and a per-user portfolio view, plus an admin
  error boundary
- rate limiting (lib/rate-limit.ts) applied across the /api/v1 surface
- CSP and proxy adjustments, accounting/webhook lib updates
- Playwright config and an e2e/unit test suite
- next bumped to ^16.3.4 with the lockfile regenerated
- generated AGENTS.md / CLAUDE.md

Authored by other sessions working in this tree; committed here so the
Turnstile work could be pushed without leaving the tree dirty.
Typecheck passes.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-05 16:27:16 -04:00

27 lines
945 B
TypeScript

import { Navbar } from "@/components/marketing/navbar"
import { Footer } from "@/components/marketing/footer"
import { SiteStructuredData } from "@/components/marketing/structured-data"
import { getSession, isAdminUser } from "@/lib/session"
import { getMaintenanceMode } from "@/lib/settings"
import { MaintenanceScreen } from "@/components/shared/maintenance-screen"
export default async function MarketingLayout({ children }: { children: React.ReactNode }) {
// Site maintenance mode: show the maintenance screen to everyone except admins.
const maintenance = await getMaintenanceMode()
if (maintenance.enabled) {
const session = await getSession()
if (!isAdminUser(session?.user)) {
return <MaintenanceScreen message={maintenance.message} />
}
}
return (
<div className="min-h-screen bg-[#09090b] text-white">
<SiteStructuredData />
<Navbar />
{children}
<Footer />
</div>
)
}