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:
@@ -8,6 +8,7 @@
|
||||
========================================================================= */
|
||||
|
||||
import { ROUTE_SLUGS } from "~/lib/route-slugs";
|
||||
import { SITE_FACEBOOK_URL } from "~/lib/site-links";
|
||||
|
||||
import type {
|
||||
FooterCopy,
|
||||
@@ -53,23 +54,25 @@ const path = (locale: FooterLocale, slug: string): string => `/${locale}/${slug}
|
||||
------------------------------------------------------------------------ */
|
||||
export const DEFAULT_FOOTER_COPY: Readonly<Record<FooterLocale, FooterCopy>> = {
|
||||
en: {
|
||||
tagline: "Shared Action on Rule of Law Progress – Exit Route",
|
||||
description:
|
||||
"A nationwide initiative supporting Libya’s civil society, local institutions and communities in advancing justice, accountability and good governance. Running from December 2025 to December 2027.",
|
||||
brandLine:
|
||||
"Shared Action on Rule of Law Progress — Exit Route. December 2025 – December 2027.",
|
||||
euStatement: "This project is funded by the European Union",
|
||||
euEmblemAlt: "Emblem of the European Union",
|
||||
implementedByLabel: "Implemented by",
|
||||
disclaimer:
|
||||
"This website was produced with the financial support of the European Union. Its contents are the sole responsibility of the SHARP-ER consortium and do not necessarily reflect the views of the European Union.",
|
||||
socialHeading: "Follow SHARP-ER",
|
||||
homeLabel: "SHARP-ER — home",
|
||||
navLabel: "Site sections",
|
||||
},
|
||||
ar: {
|
||||
tagline: "العمل المشترك لتعزيز سيادة القانون – مسار الخروج",
|
||||
description:
|
||||
"مبادرة وطنية تدعم المجتمع المدني والمؤسسات المحلية والمجتمعات الليبية في تعزيز العدالة والمساءلة والحوكمة الرشيدة. يمتد المشروع من ديسمبر 2025 إلى ديسمبر 2027.",
|
||||
brandLine:
|
||||
"العمل المشترك لتعزيز سيادة القانون – مسار الخروج. ديسمبر 2025 – ديسمبر 2027.",
|
||||
euStatement: "هذا المشروع ممول من الاتحاد الأوروبي",
|
||||
euEmblemAlt: "شعار الاتحاد الأوروبي",
|
||||
implementedByLabel: "الجهات المنفّذة",
|
||||
disclaimer:
|
||||
"أُنتج هذا الموقع الإلكتروني بدعم مالي من الاتحاد الأوروبي. ومحتوياته هي مسؤولية ائتلاف SHARP-ER وحده، ولا تعكس بالضرورة وجهات نظر الاتحاد الأوروبي.",
|
||||
socialHeading: "تابعوا SHARP-ER",
|
||||
homeLabel: "SHARP-ER — الصفحة الرئيسية",
|
||||
navLabel: "أقسام الموقع",
|
||||
@@ -199,4 +202,31 @@ export const DEFAULT_FOOTER_PARTNERS: readonly FooterPartner[] = [
|
||||
Real profiles arrive through the `socialLinks` prop (Strapi); the footer's
|
||||
`links.length > 0` guard drops the whole row until they do.
|
||||
------------------------------------------------------------------------ */
|
||||
export const DEFAULT_FOOTER_SOCIAL_LINKS: readonly FooterSocialLink[] = [];
|
||||
export const DEFAULT_FOOTER_SOCIAL_LINKS_BY_LOCALE: Readonly<
|
||||
Record<FooterLocale, readonly FooterSocialLink[]>
|
||||
> = {
|
||||
en: [
|
||||
{
|
||||
platform: "facebook",
|
||||
label: "Follow us on Facebook",
|
||||
href: SITE_FACEBOOK_URL,
|
||||
},
|
||||
],
|
||||
ar: [
|
||||
{
|
||||
platform: "facebook",
|
||||
label: "تابعونا على فيسبوك",
|
||||
href: SITE_FACEBOOK_URL,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/** The English row, kept as the old name so the barrel's surface is unchanged. */
|
||||
export const DEFAULT_FOOTER_SOCIAL_LINKS: readonly FooterSocialLink[] =
|
||||
DEFAULT_FOOTER_SOCIAL_LINKS_BY_LOCALE.en;
|
||||
|
||||
export function defaultFooterSocialLinks(
|
||||
locale: FooterLocale,
|
||||
): readonly FooterSocialLink[] {
|
||||
return DEFAULT_FOOTER_SOCIAL_LINKS_BY_LOCALE[locale];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user