FCI theming refresh, contact identity fields, Amplify secrets fix
- Remap globals.css tokens to FCI brand palette (Eggplant #801d7f, Spring Pea #96bc33, Seed Grant #679038, Squash #c9ad2d, FCI gray #4b5657). Existing leaf-* / clay-* class names preserved. - Switch body font to Open Sans (FCI's free fallback for Museo Sans). Headings keep Fraunces. - Add contact identity (first name, last name, email) as readonly fields at the top of Stage 0. /api/data fetches via APIv4 Contact.get with email_primary.email join; values flow through FormDataPayload.contact and into the form's evalState so the readonly renderer displays them. Draft restore re-applies them so a stale local draft can't override. - amplify.yml: fetch Amplify Secrets from SSM Parameter Store when they don't arrive as build-shell env vars (the common failure mode behind "Refusing to run in production without CIVI_*"). Adds a length-only diagnostic echo and a hard-fail guard so a missing required var stops the build with a clear message instead of bundling empty strings and crashing the SSR Lambda at runtime.
This commit is contained in:
+6
-5
@@ -1,5 +1,5 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Fraunces, DM_Sans } from "next/font/google";
|
||||
import { Fraunces, Open_Sans } from "next/font/google";
|
||||
import "./globals.css";
|
||||
|
||||
/**
|
||||
@@ -16,13 +16,14 @@ const display = Fraunces({
|
||||
});
|
||||
|
||||
/**
|
||||
* Body face: DM Sans. A humanist geometric sans with a slightly soft feel —
|
||||
* legible at small sizes for forms, doesn't read as cold/corporate the way
|
||||
* Inter or Helvetica does.
|
||||
* Body face: Open Sans. Per the FCI brand guidelines, Open Sans is the free
|
||||
* substitute for the brand's primary type family (Museo Sans). It pairs
|
||||
* cleanly with the Fraunces headings while keeping the form copy on-brand.
|
||||
*/
|
||||
const body = DM_Sans({
|
||||
const body = Open_Sans({
|
||||
variable: "--font-body",
|
||||
subsets: ["latin"],
|
||||
weight: ["300", "400", "500", "600", "700"],
|
||||
display: "swap",
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user