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:
@@ -0,0 +1,63 @@
|
||||
/* ============================================================================
|
||||
HERO WORDMARK SUFFIX - the "-ER" after "SHARP" on the home hero
|
||||
----------------------------------------------------------------------------
|
||||
Not drawn in Figma: a project request, so the hero finishes on the full
|
||||
name. "SHARP" is on screen from the first paint; once the page has settled,
|
||||
"-ER" slides out from behind the P while it fades in.
|
||||
|
||||
HOW "BEHIND THE P" WORKS: the suffix sits in its own box whose inline-start
|
||||
edge is exactly the P's right edge, and that box clips. The mark starts a
|
||||
full box-width back - entirely inside the P's side of the clip, so nothing
|
||||
overlaps "SHARP" - and travels forward to rest. The opacity reaches 1 before
|
||||
the travel ends, so the glyphs read as solid for the last, slowest part of
|
||||
the decelerating slide.
|
||||
|
||||
The translate is physical (translateX) on purpose: the lockup row is pinned
|
||||
to dir="ltr" because a Latin wordmark never mirrors, so the P is always to
|
||||
the left of the suffix, in Arabic too.
|
||||
|
||||
Pure CSS, so it runs from the server-rendered HTML without waiting for
|
||||
hydration, and the `both` fill keeps the suffix hidden through the delay
|
||||
instead of flashing in first. It replays whenever the hero mounts again,
|
||||
e.g. on a client-side navigation back to the home page.
|
||||
|
||||
REDUCED MOTION: app.css shortens every animation to 0.01ms but leaves the
|
||||
delay alone, which would hold the suffix hidden for the delay and then pop
|
||||
it in. Here the animation is removed outright, so "SHARP-ER" is simply there
|
||||
from the start.
|
||||
========================================================================= */
|
||||
|
||||
@layer theme, base, components, utilities;
|
||||
|
||||
@layer components {
|
||||
.sh-hero-suffix {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.sh-hero-suffix__mark {
|
||||
animation: sh-hero-suffix-in var(--motion-duration-reveal)
|
||||
var(--motion-ease-entrance) var(--motion-delay-reveal) both;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.sh-hero-suffix__mark {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes sh-hero-suffix-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
|
||||
60% {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateX(0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user