Rebuild the site to the Claude Design drafts
Carries the 11 page drafts plus the shared SiteNav and SiteFooter onto the project's own design system: tier-2 tokens, the published type roles, logical properties throughout, and both locales. Surfaces - The page stands on #0B0B0A with #1D1D1B bands lifted off it, as the drafts do; the body previously painted the band colour, so every band was a step too light. - A card is drawn one step off whatever it stands on (#1D1D1B on the ground, #141413 inside a band). Components paint --surface-card and a band re-points it for its subtree, so a card can never come out the same colour as its band. Shell - Nav: translucent ground with a blur, chevrons on group triggers, an accent rule under the current section, the drafts' compact dropdown card, and an EN | AR toggle in place of the globe menu. - Footer: the drafts' four-column grid, one-line brand text, Facebook as a bordered button, the EU lockup, the implemented-by row and the funding disclaimer. Pages - Home: hero with counting figures, launch band, three areas of change, newsroom, FAQ accordion and the consortium band. - The nine interior pages rebuilt and then audited section by section against their drafts. - Applications: the three-step application form now posts real submissions to the Strapi `application` type, validated server-side and working without JavaScript. Motion - Every animation in the drafts, as classes in _page-kit/motion.css: staggered entrances, scroll-driven reveals, the drifting washes (each page carries its own geometry), the sheen, the counting figures and the accordion. The drafts' coloured hover glow is deliberately not shipped. CMS - New `faq` collection type behind the home page's accordion. - `role` added to the consortium member component so an editor can supply the chip and the deliverable separately. Content - No invented figure, date, name or commitment ships: the five-working-day reply, the placeholder email and Facebook handle, the sample news, events, publications and FAQs, the invented application rules and the TBD counters are all withheld pending real content. Figures that survived (3 consortium partners, 4 areas of work, 16 human security sub-projects, Dec 2025 - Dec 2027) are verified against docs/ and the bundled draft copy. Verified: pnpm typecheck (web + CMS) and pnpm --filter web build pass; all 20 page/locale URLs render 200 through the built SSR handler, including with the CMS unreachable; no raw hex or physical-direction utility in components or routes. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -28,7 +28,10 @@
|
||||
|
||||
/* --- surfaces / backgrounds ------------------------------------------ */
|
||||
--surface-page: var(--color-neutral-800); /* figma background/primary */
|
||||
--surface-raised: var(--color-neutral-700); /* cards sitting on the page */
|
||||
/* The drafts draw a card on a band DARKER than the band (#141413 on
|
||||
#1D1D1B), not lighter - so "raised" is a recessed panel here, and the
|
||||
old neutral-700 step is not used by the dark palette at all. */
|
||||
--surface-raised: var(--color-neutral-850); /* the drafts' card / panel */
|
||||
--surface-sunken: var(--color-neutral-900); /* figma Neutral Black/900 */
|
||||
--surface-muted: var(--color-white-a08); /* subtle fills, chips, wells */
|
||||
--surface-accent: var(--color-green-600); /* figma background/accent */
|
||||
@@ -36,7 +39,14 @@
|
||||
--surface-danger: var(--color-red-500);
|
||||
--surface-danger-subtle: var(--color-red-a24);
|
||||
--surface-inverse: var(--color-white); /* figma background/inverse */
|
||||
--surface-footer: var(--color-black); /* figma base/black - the footer sits below the page, not on it */
|
||||
--surface-footer: var(--color-neutral-850); /* the drafts' #141413 - the footer sits below the page, not on it */
|
||||
/* The drafts float the bar over the page: the ground colour at 90%, with a
|
||||
blur behind it, so content shows through as it scrolls under. */
|
||||
--surface-nav: color-mix(in srgb, var(--color-neutral-900) 90%, transparent);
|
||||
/* A card is one step off whatever it stands on: #1D1D1B on the #0B0B0A
|
||||
ground, #141413 inside a #1D1D1B band. Components paint
|
||||
`--surface-card`; a band re-points it for its own subtree (.sh-band). */
|
||||
--surface-card: var(--surface-page);
|
||||
--surface-selection: var(--color-green-a40);
|
||||
|
||||
/* --- text ------------------------------------------------------------- */
|
||||
@@ -80,7 +90,9 @@
|
||||
--interactive-secondary-fg: var(--color-neutral-50);
|
||||
--interactive-secondary-fg-hover: var(--color-neutral-50);
|
||||
--interactive-secondary-fg-disabled: var(--color-neutral-500);
|
||||
--interactive-secondary-border: var(--color-neutral-50);
|
||||
/* The redesign's outline button: a mid-grey ring at rest that brightens to
|
||||
white under the pointer, rather than a full-white ring throughout. */
|
||||
--interactive-secondary-border: var(--color-neutral-400);
|
||||
--interactive-secondary-border-hover: var(--color-neutral-50);
|
||||
--interactive-secondary-border-disabled: var(--color-white-a24);
|
||||
|
||||
@@ -127,7 +139,9 @@
|
||||
--interactive-ghost-border-disabled: var(--color-transparent);
|
||||
|
||||
/* --- form fields --------------------------------------------------------- */
|
||||
--field-bg: var(--color-white-a08);
|
||||
/* The drafts sink an input into its panel (#0B0B0A inside #1D1D1B) rather
|
||||
than lifting it with a translucent white. */
|
||||
--field-bg: var(--color-neutral-900);
|
||||
--field-bg-disabled: var(--color-white-a04);
|
||||
--field-fg: var(--color-neutral-50);
|
||||
--field-fg-disabled: var(--color-neutral-500);
|
||||
@@ -163,6 +177,7 @@
|
||||
/* --- surfaces / backgrounds ------------------------------------------ */
|
||||
--surface-page: var(--color-white); /* figma background/primary (light) */
|
||||
--surface-raised: var(--color-white);
|
||||
--surface-card: var(--surface-raised);
|
||||
--surface-sunken: var(--color-neutral-50);
|
||||
--surface-muted: var(--color-neutral-100); /* figma stroke/subtle as a fill */
|
||||
--surface-accent: var(--color-green-600);
|
||||
@@ -322,6 +337,13 @@
|
||||
--layout-gutter: var(--spacing-lg);
|
||||
--layout-gutter-lg: var(--spacing-xl);
|
||||
--layout-section-gap: var(--spacing-3xl);
|
||||
/* Hero block padding. The drafts open a hero at 52px and grow it to 92px on
|
||||
a wide screen, closing it at 44 -> 68. Kept as tokens because the hero is
|
||||
what the drifting wash is clipped by: a short hero crops the glow. */
|
||||
--layout-hero-top: clamp(3.25rem, 7vw, 5.75rem);
|
||||
--layout-hero-bottom: clamp(2.75rem, 6vw, 4.25rem);
|
||||
/* Clearance under the sticky bar for a sticky column (the drafts' 100px). */
|
||||
--layout-sticky-top: 6.25rem;
|
||||
--layout-stack-gap: var(--spacing-md);
|
||||
--layout-content-max: var(--container-content);
|
||||
--layout-prose-max: var(--container-prose);
|
||||
@@ -341,6 +363,8 @@
|
||||
--motion-duration-fast: var(--duration-fast);
|
||||
--motion-duration-base: var(--duration-base);
|
||||
--motion-duration-slow: var(--duration-slow);
|
||||
--motion-duration-reveal: var(--duration-slowest); /* 800ms - one-off brand reveals */
|
||||
--motion-delay-reveal: var(--duration-slow); /* 320ms - lets first paint settle */
|
||||
--motion-ease-standard: var(--ease-standard);
|
||||
--motion-ease-entrance: var(--ease-decelerate);
|
||||
--motion-ease-exit: var(--ease-accelerate);
|
||||
|
||||
Reference in New Issue
Block a user