From 3c4acff80316da236d3c405245361c844a565a01 Mon Sep 17 00:00:00 2001 From: shira Date: Sat, 10 Oct 2026 02:01:39 +0300 Subject: [PATCH] feat(frontend): switch to the dark graphite design system with a Lincodex wordmark --- docs/en/DEVELOPMENT.md | 2 +- docs/ru/DEVELOPMENT.md | 2 +- frontend/README.en.md | 85 +++++-- frontend/README.md | 85 +++++-- frontend/index.html | 6 +- frontend/public/favicon.svg | 1 + frontend/src/app/ui/styles.css | 131 +++++++++- .../ui/accept-contact-consent-form.module.css | 2 +- .../ui/answer-form.module.css | 2 +- .../ui/consent-management.module.css | 2 +- .../ui/match-filter-form.module.css | 2 +- ...organization-notification-inbox.module.css | 1 + .../ui/visibility-controls.module.css | 2 +- .../ui/register-form.module.css | 4 +- .../ui/decline-invitation-form.module.css | 2 +- frontend/src/pages/auth/ui/auth.module.css | 21 ++ frontend/src/pages/auth/ui/login-page.tsx | 17 +- frontend/src/pages/auth/ui/register-page.tsx | 34 ++- .../src/pages/auth/ui/verify-email-page.tsx | 25 +- .../pages/matches/ui/matches-page.module.css | 2 +- .../welcome/ui/protocol-trace.module.css | 183 ++++++++++++++ .../src/pages/welcome/ui/protocol-trace.tsx | 63 +++++ .../pages/welcome/ui/welcome-page.module.css | 226 +++++++++++++----- .../src/pages/welcome/ui/welcome-page.tsx | 133 +++++++---- .../src/shared/ui/brand/brand-logo.module.css | 45 ---- frontend/src/shared/ui/brand/brand-logo.tsx | 36 --- .../src/shared/ui/brand/fsp-logo-on-dark.svg | 12 - .../src/shared/ui/brand/fsp-logo-on-light.svg | 12 - .../src/shared/ui/brand/wordmark.module.css | 73 ++++++ frontend/src/shared/ui/brand/wordmark.tsx | 31 +++ .../src/shared/ui/button/button.module.css | 74 ++++-- frontend/src/shared/ui/card/card.module.css | 26 ++ frontend/src/shared/ui/card/card.tsx | 31 +++ .../shared/ui/decor/circuit-trace.module.css | 47 ++++ .../src/shared/ui/decor/circuit-trace.tsx | 36 +++ .../ui/header-plate/header-plate.module.css | 30 +++ .../shared/ui/header-plate/header-plate.tsx | 21 ++ frontend/src/shared/ui/index.ts | 17 +- .../src/shared/ui/layout/layout.module.css | 58 +++-- .../src/shared/ui/link/text-link.module.css | 71 +++--- frontend/src/shared/ui/link/text-link.tsx | 16 +- .../ui/menu-button/menu-button.module.css | 58 +++++ .../src/shared/ui/menu-button/menu-button.tsx | 33 +++ .../shared/ui/menu-button/use-menu-toggle.ts | 39 +++ frontend/src/shared/ui/mono/mono.module.css | 2 + .../src/shared/ui/notice/notice.module.css | 45 ++++ frontend/src/shared/ui/notice/notice.tsx | 27 +++ frontend/src/shared/ui/primitives.test.tsx | 162 +++++++++++++ .../segmented-control.module.css | 80 +++++++ .../segmented-control/segmented-control.tsx | 53 ++++ .../shared/ui/skeleton/skeleton.module.css | 54 +++++ frontend/src/shared/ui/skeleton/skeleton.tsx | 23 ++ .../shared/ui/skip-link/skip-link.module.css | 19 +- .../ui/status-view/status-view.module.css | 102 ++++++-- .../src/shared/ui/status-view/status-view.tsx | 13 +- frontend/src/shared/ui/stepper/build-steps.ts | 22 ++ .../src/shared/ui/stepper/stepper.module.css | 89 +++++++ frontend/src/shared/ui/stepper/stepper.tsx | 55 +++++ frontend/src/shared/ui/tabs/tab-keys.ts | 20 ++ frontend/src/shared/ui/tabs/tabs.module.css | 56 +++++ frontend/src/shared/ui/tabs/tabs.tsx | 88 +++++++ frontend/src/shared/ui/tag/tag.module.css | 66 +++++ frontend/src/shared/ui/tag/tag.tsx | 45 ++++ frontend/src/shared/ui/theme/fonts.css | 28 ++- .../src/shared/ui/theme/fonts/Inter-OFL.txt | 93 +++++++ .../ui/theme/fonts/Inter-Variable.woff2 | Bin 0 -> 62532 bytes .../ui/theme/fonts/JetBrainsMono-Bold.woff2 | Bin 94588 -> 0 bytes .../theme/fonts/JetBrainsMono-Regular.woff2 | Bin 92164 -> 0 bytes .../theme/fonts/JetBrainsMono-Variable.woff2 | Bin 0 -> 48860 bytes .../src/shared/ui/theme/fonts/SOURCES.txt | 31 +++ .../shared/ui/theme/fonts/Unbounded-OFL.txt | 93 +++++++ .../ui/theme/fonts/Unbounded-Variable.woff2 | Bin 0 -> 16428 bytes frontend/src/shared/ui/theme/tokens.css | 171 +++++++++---- .../ui/trust-level/trust-level.module.css | 2 +- .../ui/candidate-shell.module.css | 96 ++++++-- .../candidate-shell/ui/candidate-shell.tsx | 60 +++-- .../ui/demo-stand-banner.module.css | 32 ++- .../ui/employer-shell.module.css | 169 +++++++++---- .../employer-shell/ui/employer-shell.tsx | 41 +++- .../public-shell/ui/public-shell.module.css | 97 ++++++-- .../widgets/public-shell/ui/public-shell.tsx | 73 ++++-- 81 files changed, 3187 insertions(+), 619 deletions(-) create mode 100644 frontend/public/favicon.svg create mode 100644 frontend/src/pages/auth/ui/auth.module.css create mode 100644 frontend/src/pages/welcome/ui/protocol-trace.module.css create mode 100644 frontend/src/pages/welcome/ui/protocol-trace.tsx delete mode 100644 frontend/src/shared/ui/brand/brand-logo.module.css delete mode 100644 frontend/src/shared/ui/brand/brand-logo.tsx delete mode 100644 frontend/src/shared/ui/brand/fsp-logo-on-dark.svg delete mode 100644 frontend/src/shared/ui/brand/fsp-logo-on-light.svg create mode 100644 frontend/src/shared/ui/brand/wordmark.module.css create mode 100644 frontend/src/shared/ui/brand/wordmark.tsx create mode 100644 frontend/src/shared/ui/card/card.module.css create mode 100644 frontend/src/shared/ui/card/card.tsx create mode 100644 frontend/src/shared/ui/decor/circuit-trace.module.css create mode 100644 frontend/src/shared/ui/decor/circuit-trace.tsx create mode 100644 frontend/src/shared/ui/header-plate/header-plate.module.css create mode 100644 frontend/src/shared/ui/header-plate/header-plate.tsx create mode 100644 frontend/src/shared/ui/menu-button/menu-button.module.css create mode 100644 frontend/src/shared/ui/menu-button/menu-button.tsx create mode 100644 frontend/src/shared/ui/menu-button/use-menu-toggle.ts create mode 100644 frontend/src/shared/ui/notice/notice.module.css create mode 100644 frontend/src/shared/ui/notice/notice.tsx create mode 100644 frontend/src/shared/ui/primitives.test.tsx create mode 100644 frontend/src/shared/ui/segmented-control/segmented-control.module.css create mode 100644 frontend/src/shared/ui/segmented-control/segmented-control.tsx create mode 100644 frontend/src/shared/ui/skeleton/skeleton.module.css create mode 100644 frontend/src/shared/ui/skeleton/skeleton.tsx create mode 100644 frontend/src/shared/ui/stepper/build-steps.ts create mode 100644 frontend/src/shared/ui/stepper/stepper.module.css create mode 100644 frontend/src/shared/ui/stepper/stepper.tsx create mode 100644 frontend/src/shared/ui/tabs/tab-keys.ts create mode 100644 frontend/src/shared/ui/tabs/tabs.module.css create mode 100644 frontend/src/shared/ui/tabs/tabs.tsx create mode 100644 frontend/src/shared/ui/tag/tag.module.css create mode 100644 frontend/src/shared/ui/tag/tag.tsx create mode 100644 frontend/src/shared/ui/theme/fonts/Inter-OFL.txt create mode 100644 frontend/src/shared/ui/theme/fonts/Inter-Variable.woff2 delete mode 100644 frontend/src/shared/ui/theme/fonts/JetBrainsMono-Bold.woff2 delete mode 100644 frontend/src/shared/ui/theme/fonts/JetBrainsMono-Regular.woff2 create mode 100644 frontend/src/shared/ui/theme/fonts/JetBrainsMono-Variable.woff2 create mode 100644 frontend/src/shared/ui/theme/fonts/SOURCES.txt create mode 100644 frontend/src/shared/ui/theme/fonts/Unbounded-OFL.txt create mode 100644 frontend/src/shared/ui/theme/fonts/Unbounded-Variable.woff2 diff --git a/docs/en/DEVELOPMENT.md b/docs/en/DEVELOPMENT.md index 50767f2..95d9d05 100644 --- a/docs/en/DEVELOPMENT.md +++ b/docs/en/DEVELOPMENT.md @@ -141,7 +141,7 @@ S3 storage connects through the outbound `ObjectStorage` port and `backend/inter The frontend is a React/Vite SPA. Keep FSD boundaries as product screens are added. -Implemented frontend scaffold: a React Router data router with public routes and separate candidate and employer cabinet shells, a TanStack Query client over the shared same-origin `apiRequest`, brand tokens in CSS variables, and shared primitives for loading, empty, error, forbidden, and saving states. JetBrains Mono 2.304 is self-hosted from the brandbook with its OFL license. Sign-in, registration, email confirmation, support, and cabinet screens are placeholders; business screens are later tasks. /status is a technical API liveness page, not product readiness. Vitest runs in the Node environment without a DOM. The Playwright suite in `frontend/e2e/` loads pages in Chromium but does not yet test interactions, so clicks and keyboard focus are verified manually in a browser until it covers them. See [frontend/README.en.md](../../frontend/README.en.md). Generated transport types are not automatically entity models. MSW supports UI development; its fixtures do not prove that the API is implemented. +Implemented frontend scaffold: a React Router data router with public routes and separate candidate and employer cabinet shells, a TanStack Query client over the shared same-origin `apiRequest`, dark graphite theme tokens in CSS variables, and shared primitives for loading, empty, error, forbidden, and saving states. JetBrains Mono, Inter, and Unbounded (for the Lincodex wordmark) are self-hosted with their OFL licenses. Sign-in, registration, email confirmation, support, and cabinet screens are placeholders; business screens are later tasks. /status is a technical API liveness page, not product readiness. Vitest runs in the Node environment without a DOM. The Playwright suite in `frontend/e2e/` loads pages in Chromium but does not yet test interactions, so clicks and keyboard focus are verified manually in a browser until it covers them. See [frontend/README.en.md](../../frontend/README.en.md). Generated transport types are not automatically entity models. MSW supports UI development; its fixtures do not prove that the API is implemented. ML runs as a separate FastAPI process. It currently provides operational health/readiness only. Readiness stays at 503 without a model. Do not add placeholder inference that looks like a real result. diff --git a/docs/ru/DEVELOPMENT.md b/docs/ru/DEVELOPMENT.md index c83567b..cb9c4e9 100644 --- a/docs/ru/DEVELOPMENT.md +++ b/docs/ru/DEVELOPMENT.md @@ -141,7 +141,7 @@ S3-хранилище подключено через outbound-порт `ObjectS Frontend строится как React/Vite SPA. При разработке продуктовых экранов соблюдайте FSD границы. -Реализованный каркас frontend: data router React Router с публичными маршрутами и отдельными оболочками кабинетов кандидата и работодателя, клиент TanStack Query поверх общего `apiRequest` того же origin, токены бренда в CSS variables и общие примитивы состояний загрузки, пустого результата, ошибки, запрета доступа и сохранения. JetBrains Mono 2.304 раздается с нашего сервера из брендбука вместе с лицензией OFL. Вход, регистрация, подтверждение почты, поддержка и экраны кабинетов - заготовки; бизнес-экраны делаются отдельными задачами. /status - техническая страница доступности API, а не показатель готовности продукта. Vitest работает в окружении Node без DOM. Набор Playwright в `frontend/e2e/` открывает страницы в Chromium, но пока не проверяет взаимодействия, поэтому нажатия и фокус клавиатуры проверяются вручную в браузере, пока набор их не покрывает. Подробнее: [frontend/README.md](../../frontend/README.md). Generated API transport не превращается в entity model сам по себе. MSW полезен для интерфейсной разработки, но его fixture не подтверждает API реализации. +Реализованный каркас frontend: data router React Router с публичными маршрутами и отдельными оболочками кабинетов кандидата и работодателя, клиент TanStack Query поверх общего `apiRequest` того же origin, токены темной графитовой темы в CSS variables и общие примитивы состояний загрузки, пустого результата, ошибки, запрета доступа и сохранения. Шрифты JetBrains Mono, Inter и Unbounded (для словесного знака Lincodex) раздаются с нашего сервера вместе с лицензиями OFL. Вход, регистрация, подтверждение почты, поддержка и экраны кабинетов - заготовки; бизнес-экраны делаются отдельными задачами. /status - техническая страница доступности API, а не показатель готовности продукта. Vitest работает в окружении Node без DOM. Набор Playwright в `frontend/e2e/` открывает страницы в Chromium, но пока не проверяет взаимодействия, поэтому нажатия и фокус клавиатуры проверяются вручную в браузере, пока набор их не покрывает. Подробнее: [frontend/README.md](../../frontend/README.md). Generated API transport не превращается в entity model сам по себе. MSW полезен для интерфейсной разработки, но его fixture не подтверждает API реализации. ML - отдельный FastAPI процесс. Сейчас он предоставляет только operational health/readiness. Readiness остается 503 без модели. Не добавляйте placeholder inference, который выглядит как рабочий результат. diff --git a/frontend/README.en.md b/frontend/README.en.md index d8ef55d..e97a581 100644 --- a/frontend/README.en.md +++ b/frontend/README.en.md @@ -8,7 +8,7 @@ A React and TypeScript SPA built with Vite and organized using FSD. Registration - `src/pages/` holds public pages, sign-in and registration, candidate profile and questionnaire, assessment results, company and employer needs pages, candidate search, the invitation to a candidate, the candidate's incoming invitations, support cases, technical status, and remaining placeholders. - `src/widgets/` holds shells: `public-shell`, `candidate-shell`, `employer-shell`, the result history widget `assessment-history`, the search result widget `match-list`, the invitation preview `invitation-preview`, and the technical `system-status` widget. - `src/entities/` holds entity models, including `need` (see [Need entity](#need-entity)), `company`, and `invitation`; `src/features/` holds user actions and forms. -- `src/shared/ui/` holds design tokens, fonts, logos, and primitives; `src/shared/config/` holds route paths; `src/shared/api/` holds the API client with generated endpoints, Zod schemas, and MSW mocks. +- `src/shared/ui/` holds design tokens, fonts, the wordmark, and primitives; `src/shared/config/` holds route paths; `src/shared/api/` holds the API client with generated endpoints, Zod schemas, and MSW mocks. - `codegen/orval.config.ts` configures generation from the shared OpenAPI contract; `codegen/mock-patterns.ts` is the step after Orval that fixes MSW mocks of strings with a `pattern` (see [API client generation](#api-client-generation)). - `scripts/` checks FSD boundaries and Orval compatibility with the OpenAPI 3.2 fixture. - `e2e/` holds Playwright specs and `playwright.config.ts` configures them; they run only against a Compose stack. @@ -186,44 +186,79 @@ The server resolves the text of every item from its current source. An item with ## Tokens and theme -Tokens live in `shared/ui/theme/tokens.css`: palette, semantic colors, type scale, spacing in 4px steps, radii, lines, focus ring, content widths, and motion. Breakpoints are fixed in media queries: 360px minimum, 768px tablet (`48rem`), 1024px desktop navigation (`64rem`), and 1280px verified wide layout. +Tokens live in `shared/ui/theme/tokens.css`: palette, semantic colors, type scale, spacing in 4px steps, radii, lines, focus ring, content widths, header height, and motion. The values come from the graphite system in `docs/other/design/DESIGN.md`, except the FSP brand mark: the product is Lincodex. Breakpoints are fixed in media queries: 360px minimum, phone layout below 700px (`43.75rem`), 768px tablet (`48rem`), 1024px desktop navigation (`64rem`), and 1280px verified wide layout. -Only the light theme ships. The graphite employer sidebar is a local dark region with its own checked text, link, and focus colors. A dark theme must define and check its own pairs instead of inheriting the light accents. +One dark theme ships, and it is the default (`color-scheme: dark`). The canvas is `#1B1C21`, cards and fields are `#202129`, elevated surfaces are `#2D2E37`, boundaries are 1px hairlines, and only popover menus have a shadow. The single action color is blue `#402FFF` on primary buttons; on hover the button inverts to `#EDEDED` with blue text. Text, links, the focus ring, and selected markers use the readable accent `#9A92FF`: `#402FFF` itself reaches only 2.49 on graphite. Red `#EC1D35` is used only for 6-8px dots, error text is `#FF5A6A`, and success is `#3CCF7E`. The current section, the selected tab, and the current step are shown by inversion: a light capsule with graphite text. Every button, field, tab, and tag is a capsule; cards have a 24px radius, panels 32px, surfaces nested in a card 16px, and small objects 6px. + +`app/ui/styles.css` sets the base: headings use JetBrains Mono, paragraphs and meta use Inter. Native inputs and selects get the dark capsule and padding from element rules with specificity (0,1,2): above a module rule such as `.field input`, below a state rule such as `.field input[aria-invalid]`. Field borders stay in the screen modules and use `--color-border-strong`. WCAG 2.2 contrast of the pairs in use: -| Foreground | Background | Ratio | Use | -| ---------- | ---------- | ----- | ----------------------------------------- | -| #1B1C21 | #FFFFFF | 17.01 | Text on surfaces | -| #1B1C21 | #EDEDED | 14.53 | Text on the canvas | -| #2D2E37 | #FFFFFF | 13.48 | Secondary text | -| #2D2E37 | #EDEDED | 11.52 | Secondary text on the canvas | -| #402FFF | #FFFFFF | 6.84 | Links, active navigation, focus ring | -| #402FFF | #EDEDED | 5.85 | Labels and links on the canvas | -| #FFFFFF | #402FFF | 6.84 | Primary button, skip link | -| #EDEDED | #1B1C21 | 14.53 | Employer sidebar text | -| #FFFFFF | #1B1C21 | 17.01 | Active item and focus ring in the sidebar | -| #EC1D35 | #FFFFFF | 4.38 | Error graphics only (needs 3:1) | -| #FFFFFF | #EC1D35 | 4.38 | Glyph inside the error mark (graphic) | +| Foreground | Background | Ratio | Use | +| ---------- | ---------- | ----- | ----------------------------------------------------------- | +| #EDEDED | #1B1C21 | 14.53 | Text on the canvas | +| #EDEDED | #202129 | 13.68 | Text on cards, fields, and the header | +| #EDEDED | #2D2E37 | 11.52 | Secondary button, menus | +| #FFFFFF | #1B1C21 | 17.01 | Headings on the canvas | +| #FFFFFF | #202129 | 16.02 | Card titles, salary | +| #FFFFFF | #414246 | 10.04 | Secondary button on hover | +| #9B9C9E | #1B1C21 | 6.19 | Secondary text, meta | +| #9B9C9E | #202129 | 5.83 | Secondary text on cards | +| #9B9C9E | #2D2E37 | 4.91 | Secondary text on the elevated surface | +| #878994 | #1B1C21 | 4.89 | Hints and placeholders | +| #878994 | #202129 | 4.60 | Field placeholders | +| #9A92FF | #1B1C21 | 6.42 | Links, accent labels, focus ring | +| #9A92FF | #202129 | 6.05 | Links and focus ring on cards | +| #9A92FF | #2D2E37 | 5.09 | Links and focus in menus | +| #FFFFFF | #402FFF | 6.84 | Primary button, skip link | +| #FFFFFF | #3324E0 | 8.50 | Primary button when pressed | +| #402FFF | #EDEDED | 5.85 | Primary button on hover (inversion) | +| #1B1C21 | #EDEDED | 14.53 | Current section, selected tab, current step | +| #1B1C21 | #9A92FF | 6.42 | Completed step, text selection | +| #FF5A6A | #1B1C21 | 5.61 | Error text | +| #FF5A6A | #202129 | 5.28 | Error text on cards | +| #FF5A6A | #30212A | 5.03 | Text in the error box (8% red over #202129) | +| #9B9C9E | #30212A | 5.55 | Description in the error box | +| #FF5A6A | #41202B | 4.72 | Error tag (16% red over #202129) | +| #3CCF7E | #1B1C21 | 8.44 | Success: saved, confirmed | +| #3CCF7E | #243935 | 6.09 | Success tag (14% green over #202129) | +| #9A92FF | #262450 | 5.47 | Accent tag (18% blue over #202129) | +| #9B9C9E | #2C2D35 | 4.98 | Neutral tag (6% paper over #202129) | +| #EDEDED | #34353D | 10.41 | Stack tag (10% paper over #202129) | +| #EDEDED | #1F2028 | 13.85 | Text on the glass header (88% #202129 over the canvas) | +| #73757F | #1B1C21 | 3.71 | Field and control boundary (needs 3:1) | +| #73757F | #202129 | 3.49 | Field boundary on cards (needs 3:1) | +| #1B1C21 | #FF5A6A | 5.61 | Glyph inside the error mark (graphic) | +| #EC1D35 | #1B1C21 | 3.88 | Red "new" or "live" dot (graphic, meaning repeated in text) | -Excluded pairs: red is not used for body text (4.38 is below 4.5); #402FFF on #1B1C21 (2.49) and on #2D2E37 (1.97) is not used; grey #C8C9CA (1.66 on white) is only for decorative dividers. +Excluded pairs: `#402FFF` is not used as text or as a boundary on graphite (2.49 on `#1B1C21`); `#878994` and `#FF5A6A` are not used on `#2D2E37` (3.88 and 4.44); the `#2D2E37` hairline on the canvas (1.26) is decorative only and is never the only boundary of a control. -## Fonts and logos +## Fonts and wordmark -JetBrains Mono 2.304 (SIL OFL 1.1) is self-hosted from `requirements/brandbook/`: regular and bold woff2 files plus the license and authors list live in `shared/ui/theme/fonts/`. The font is used through `Mono` for numbers, scores, codes, and pseudonyms. Text uses the system font stack: Unbounded and Golos Text are not added, because their files and licenses are not in the repository. +All fonts are self-hosted (`font-src 'self'`) under the SIL Open Font License 1.1; licenses, authors, sources, and character ranges are in `shared/ui/theme/fonts/` (`SOURCES.txt`). The files are subsets made with fontTools: -The header uses the FSP brandbook logo: `logo_02w.svg` on light backgrounds and `logo_01.svg` on the graphite sidebar, unchanged, with the product name beside it. +- JetBrains Mono 2.304 from the brandbook archive, variable weight 400-700: headings, navigation, buttons, labels, numbers, grades, stack, codes; `Mono` adds tabular figures. +- Inter 4.001 from the Google Fonts repository, variable weight 400-700, Latin and Cyrillic: paragraphs, meta, form fields. +- Unbounded 1.701 from the Google Fonts repository, Latin only, used only for the wordmark. The wide geometric face sets the name apart from interface text, which is set in mono and Inter. + +The interface has no FSP logo. `Wordmark` is the text mark "Lincodex" with a terminal caret in the action color; the link's accessible name is exactly "Lincodex", the caret is decorative, and the cabinet name sits next to the link. The tab icon `public/favicon.svg` is an L with a caret on a blue square. ## Shared components -- `Page`, `Section`, `Stack`: page layout; `Page` owns the only `h1` and the document title. -- `Button`, `ButtonLink`, `TextLink`, `NavItem`: controls with text labels; `NavItem` marks the active section with `aria-current`, a bar, and weight. -- `StatusView`, `LoadingState`, `EmptyState`, `ErrorState`, `ForbiddenState`, `SavingStatus`: screen states. Each state has its own shape and text. `ErrorState` shows the code, status, server text, and request ID as plain text and offers a retry. +- `Page`, `Section`, `Stack`: page layout; `Page` owns the only `h1` and the document title. `Section` hangs on a circuit trace: a node at the heading and a line down the section. +- `Button`, `ButtonLink` (variants `primary`, `secondary`, `quiet`), `TextLink`, `NavItem`: controls with text labels; `NavItem` marks the active section with `aria-current` and an inverted capsule. +- `HeaderPlate`, `MenuButton`, `useMenuToggle`, `Wordmark`: the shell header: a floating glass plate, a menu button with `aria-expanded` (the menu closes after a navigation and on Escape, and focus returns to the button), and the wordmark. +- `Card` (`raised`, `inset`, `panel`), `Tag` (`neutral`, `grade`, `stack`, `accent`, `success`, `danger`), `AttentionDot`, `Notice`: containers, tags, and messages. The meaning is always given in text; color only repeats it. +- `Stepper` and `buildSteps`: progress through a multi-step flow: a "Шаг N из M" line and a list with `aria-current="step"` and a text status for each step. +- `Tabs` (WAI-ARIA tabs pattern, arrow keys, Home and End; inactive panels stay mounted with the hidden attribute, so form state survives) and `SegmentedControl` (a native radio group drawn as capsules). +- `StatusView`, `LoadingState`, `EmptyState`, `ErrorState`, `ForbiddenState`, `SavingStatus`: screen states. Each state has its own shape and text; the empty state draws a circuit trace that ends at an open node. `ErrorState` shows the code, status, server text, and request ID as plain text and offers a retry. `Skeleton`: decorative placeholder lines while loading, always next to a loading message. - `QueryView`: maps a query result to loading, error, forbidden (401 and 403 without retry), empty, or data. - `TrustLevel`: an empty mark, ring, partial fill, or full mark with a visible label. -- `Mono`, `VisuallyHidden`, `SkipLink`, `MainRegion`, `BrandLogo`. +- `CircuitTrace`, `Mono`, `VisuallyHidden`, `SkipLink`, `MainRegion`. -Accessibility: every shell starts with a skip link to `main`, has landmarks and a visible focus ring, and moves focus to `main` after navigation. Animations respect `prefers-reduced-motion`. +Shells. Public: a floating plate with the wordmark and links; below 700px the links open from a "Меню" button; a footer links the technical status. Candidate (phone first): below 700px the sections form a scrolling bottom tab bar and the current tab scrolls to the middle; from 700px the tabs sit in the plate. The navigation comes before `main` in the document, so the keyboard order is the same at every width. Employer (desktop first): from 1024px a floating 240px sidebar, below that a plate with a "Меню" button. + +Accessibility: every shell starts with a skip link to `main`, has landmarks and a visible focus ring (2px `#9A92FF`, 2px offset), and moves focus to `main` after navigation. Animations respect `prefers-reduced-motion`. ## Tests diff --git a/frontend/README.md b/frontend/README.md index 8e4612f..4f57cc9 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -8,7 +8,7 @@ SPA на React и TypeScript со сборкой Vite и структурой FS - `src/pages/` - публичные страницы, вход и регистрация, профиль и анкета кандидата, результаты проверок, компания и потребности работодателя, подбор кандидатов, приглашение кандидату, входящие приглашения кандидата, обращения в поддержку, технический статус и оставшиеся заготовки экранов. - `src/widgets/` - оболочки: `public-shell`, `candidate-shell`, `employer-shell`, виджет истории результатов `assessment-history`, виджет выдачи подбора `match-list`, предпросмотр приглашения `invitation-preview` и технический виджет `system-status`. - `src/entities/` - модели сущностей, в том числе `need` (см. [сущность потребности](#сущность-потребности)), `company` и `invitation`; `src/features/` - действия пользователя и формы. -- `src/shared/ui/` - токены дизайна, шрифты, логотипы и примитивы; `src/shared/config/` - пути маршрутов; `src/shared/api/` - API-клиент со сгенерированными endpoints, схемами Zod и MSW-моками. +- `src/shared/ui/` - токены дизайна, шрифты, словесный знак и примитивы; `src/shared/config/` - пути маршрутов; `src/shared/api/` - API-клиент со сгенерированными endpoints, схемами Zod и MSW-моками. - `codegen/orval.config.ts` - генерация из общего OpenAPI-контракта; `codegen/mock-patterns.ts` - шаг после Orval, который исправляет MSW-моки строк с `pattern` (см. [генерацию API-клиента](#генерация-api-клиента)). - `scripts/` - проверки границ FSD и совместимости Orval с фикстурой OpenAPI 3.2. - `e2e/` - спецификации Playwright, их настройки в `playwright.config.ts`; запускаются только на Compose-стеке. @@ -186,44 +186,79 @@ SPA на React и TypeScript со сборкой Vite и структурой FS ## Токены и тема -Токены лежат в `shared/ui/theme/tokens.css`: палитра, семантические цвета, шкала шрифтов, отступы с шагом 4px, радиусы, линии, кольцо фокуса, ширины контента и анимация. Точки перелома зафиксированы в media-запросах: минимум 360px, планшет 768px (`48rem`), навигация для компьютера 1024px (`64rem`) и проверенная широкая ширина 1280px. +Токены лежат в `shared/ui/theme/tokens.css`: палитра, семантические цвета, шкала шрифтов, отступы с шагом 4px, радиусы, линии, кольцо фокуса, ширины контента, высота шапки и анимация. Значения взяты из графитовой системы `docs/other/design/DESIGN.md`, кроме фирменного знака ФСП: продукт называется Lincodex. Точки перелома зафиксированы в media-запросах: минимум 360px, телефонная раскладка до 700px (`43.75rem`), планшет 768px (`48rem`), навигация для компьютера 1024px (`64rem`) и проверенная широкая ширина 1280px. -Поставляется только светлая тема. Графитовая боковая панель работодателя - локальная темная область со своими проверенными цветами текста, ссылок и фокуса. Темная тема должна задать и проверить свои пары, а не наследовать светлые акценты. +Поставляется одна темная тема, она же тема по умолчанию (`color-scheme: dark`). Холст `#1B1C21`, карточки и поля `#202129`, приподнятые поверхности `#2D2E37`, границы - линии в 1px, тень есть только у всплывающих меню. Единственный цвет действия - синий `#402FFF` на основных кнопках; при наведении кнопка инвертируется в `#EDEDED` с синим текстом. Текст, ссылки, кольцо фокуса и выбранные метки используют читаемый акцент `#9A92FF`: сам `#402FFF` на графите дает только 2.49. Красный `#EC1D35` - только точки 6-8px, текст ошибок - `#FF5A6A`, успех - `#3CCF7E`. Текущий раздел, выбранная вкладка и текущий шаг показаны инверсией: светлая капсула с графитовым текстом. Все кнопки, поля, вкладки и метки - капсулы, карточки скруглены на 24px, панели на 32px, вложенные поверхности на 16px, мелкие объекты на 6px. + +`app/ui/styles.css` задает базу: заголовки набраны JetBrains Mono, абзацы и мета - Inter. Нативные поля ввода и списки получают темную капсулу и отступы правилами элементов со специфичностью (0,1,2): выше правила модуля вроде `.field input`, ниже правил состояния вроде `.field input[aria-invalid]`. Границы полей остаются в модулях экранов и используют `--color-border-strong`. Контраст используемых пар по WCAG 2.2: -| Текст | Фон | Контраст | Где | -| ------- | ------- | -------- | ----------------------------------------- | -| #1B1C21 | #FFFFFF | 17.01 | Текст на поверхностях | -| #1B1C21 | #EDEDED | 14.53 | Текст на фоне страницы | -| #2D2E37 | #FFFFFF | 13.48 | Второстепенный текст | -| #2D2E37 | #EDEDED | 11.52 | Второстепенный текст на фоне страницы | -| #402FFF | #FFFFFF | 6.84 | Ссылки, активная навигация, кольцо фокуса | -| #402FFF | #EDEDED | 5.85 | Метки и ссылки на фоне страницы | -| #FFFFFF | #402FFF | 6.84 | Основная кнопка, ссылка пропуска | -| #EDEDED | #1B1C21 | 14.53 | Текст боковой панели работодателя | -| #FFFFFF | #1B1C21 | 17.01 | Активный пункт и кольцо фокуса в панели | -| #EC1D35 | #FFFFFF | 4.38 | Только графика ошибок (нужно 3:1) | -| #FFFFFF | #EC1D35 | 4.38 | Знак внутри метки ошибки (графика) | +| Текст | Фон | Контраст | Где | +| ------- | ------- | -------- | ----------------------------------------------------------------- | +| #EDEDED | #1B1C21 | 14.53 | Текст на холсте | +| #EDEDED | #202129 | 13.68 | Текст на карточках, полях и шапке | +| #EDEDED | #2D2E37 | 11.52 | Вторичная кнопка, меню | +| #FFFFFF | #1B1C21 | 17.01 | Заголовки на холсте | +| #FFFFFF | #202129 | 16.02 | Заголовки карточек, зарплата | +| #FFFFFF | #414246 | 10.04 | Вторичная кнопка при наведении | +| #9B9C9E | #1B1C21 | 6.19 | Вторичный текст, мета | +| #9B9C9E | #202129 | 5.83 | Вторичный текст на карточках | +| #9B9C9E | #2D2E37 | 4.91 | Вторичный текст на приподнятой поверхности | +| #878994 | #1B1C21 | 4.89 | Подсказки и плейсхолдеры | +| #878994 | #202129 | 4.60 | Плейсхолдеры полей | +| #9A92FF | #1B1C21 | 6.42 | Ссылки, акцентные метки, кольцо фокуса | +| #9A92FF | #202129 | 6.05 | Ссылки и кольцо фокуса на карточках | +| #9A92FF | #2D2E37 | 5.09 | Ссылки и фокус в меню | +| #FFFFFF | #402FFF | 6.84 | Основная кнопка, ссылка пропуска | +| #FFFFFF | #3324E0 | 8.50 | Основная кнопка при нажатии | +| #402FFF | #EDEDED | 5.85 | Основная кнопка при наведении (инверсия) | +| #1B1C21 | #EDEDED | 14.53 | Текущий раздел, выбранная вкладка, текущий шаг | +| #1B1C21 | #9A92FF | 6.42 | Выполненный шаг, выделение текста | +| #FF5A6A | #1B1C21 | 5.61 | Текст ошибок | +| #FF5A6A | #202129 | 5.28 | Текст ошибок на карточках | +| #FF5A6A | #30212A | 5.03 | Ошибка в блоке ошибки (8% красного на #202129) | +| #9B9C9E | #30212A | 5.55 | Пояснение в блоке ошибки | +| #FF5A6A | #41202B | 4.72 | Метка ошибки (16% красного на #202129) | +| #3CCF7E | #1B1C21 | 8.44 | Успех: сохранено, подтверждено | +| #3CCF7E | #243935 | 6.09 | Метка успеха (14% зеленого на #202129) | +| #9A92FF | #262450 | 5.47 | Акцентная метка (18% синего на #202129) | +| #9B9C9E | #2C2D35 | 4.98 | Нейтральная метка (6% светлого на #202129) | +| #EDEDED | #34353D | 10.41 | Метка стека (10% светлого на #202129) | +| #EDEDED | #1F2028 | 13.85 | Текст на стеклянной шапке (88% #202129 на холсте) | +| #73757F | #1B1C21 | 3.71 | Граница полей и элементов управления (нужно 3:1) | +| #73757F | #202129 | 3.49 | Граница полей на карточках (нужно 3:1) | +| #1B1C21 | #FF5A6A | 5.61 | Знак внутри метки ошибки (графика) | +| #EC1D35 | #1B1C21 | 3.88 | Красная точка "новое", "live" (графика, смысл дублирован текстом) | -Исключенные пары: красный не используется для основного текста (4.38 меньше 4.5); #402FFF на #1B1C21 (2.49) и на #2D2E37 (1.97) не используется; серый #C8C9CA (1.66 на белом) - только для декоративных разделителей. +Исключенные пары: `#402FFF` не используется как текст или граница на графите (2.49 на `#1B1C21`); `#878994` и `#FF5A6A` не используются на `#2D2E37` (3.88 и 4.44); волосяная линия `#2D2E37` на холсте (1.26) только декоративна и не является единственной границей элемента управления. -## Шрифты и логотипы +## Шрифты и словесный знак -JetBrains Mono 2.304 (SIL OFL 1.1) раздается с нашего сервера из `requirements/brandbook/`: файлы woff2 обычного и жирного начертания, текст лицензии и список авторов лежат в `shared/ui/theme/fonts/`. Шрифт применяется через `Mono` для чисел, баллов, кодов и псевдонимов. Для текста используется системный набор шрифтов: Unbounded и Golos Text не добавлены, потому что их файлов и лицензий нет в репозитории. +Все шрифты раздаются с нашего сервера (`font-src 'self'`), лицензия SIL OFL 1.1; лицензии, авторы, источники и диапазоны символов лежат в `shared/ui/theme/fonts/` (`SOURCES.txt`). Файлы - подмножества, собранные fontTools: -В шапке используется логотип ФСП из брендбука без изменений: `logo_02w.svg` на светлом фоне и `logo_01.svg` на графитовой панели, рядом - название продукта. +- JetBrains Mono 2.304 из архива брендбука, переменный вес 400-700: заголовки, навигация, кнопки, метки, числа, грейды, стек, коды; `Mono` добавляет табличные цифры. +- Inter 4.001 из репозитория Google Fonts, переменный вес 400-700, латиница и кириллица: абзацы, мета, поля форм. +- Unbounded 1.701 из репозитория Google Fonts, только латиница, только словесный знак. Широкий геометрический гротеск отличает название от текста интерфейса, который набран моноширинным шрифтом и Inter. + +Логотипа ФСП в интерфейсе нет. `Wordmark` - текстовый знак "Lincodex" с курсором терминала цвета действия; доступное имя ссылки ровно "Lincodex", курсор декоративен, а название кабинета стоит рядом со ссылкой. Иконка вкладки `public/favicon.svg` - буква L с курсором на синем квадрате. ## Общие компоненты -- `Page`, `Section`, `Stack` - раскладка страницы; `Page` содержит единственный `h1` и задает заголовок документа. -- `Button`, `ButtonLink`, `TextLink`, `NavItem` - элементы управления с текстовыми подписями; `NavItem` отмечает активный раздел через `aria-current`, полосу и насыщенность. -- `StatusView`, `LoadingState`, `EmptyState`, `ErrorState`, `ForbiddenState`, `SavingStatus` - состояния экранов. У каждого состояния своя форма и текст. `ErrorState` показывает код, статус, текст сервера и идентификатор запроса как обычный текст и предлагает повтор. +- `Page`, `Section`, `Stack` - раскладка страницы; `Page` содержит единственный `h1` и задает заголовок документа. `Section` висит на дорожке платы: узел у заголовка и линия вдоль раздела. +- `Button`, `ButtonLink` (варианты `primary`, `secondary`, `quiet`), `TextLink`, `NavItem` - элементы управления с текстовыми подписями; `NavItem` отмечает активный раздел через `aria-current` и инверсией капсулы. +- `HeaderPlate`, `MenuButton`, `useMenuToggle`, `Wordmark` - шапка оболочек: плавающая стеклянная плашка, кнопка меню с `aria-expanded` (меню закрывается после перехода и по Escape, фокус возвращается на кнопку) и словесный знак. +- `Card` (`raised`, `inset`, `panel`), `Tag` (`neutral`, `grade`, `stack`, `accent`, `success`, `danger`), `AttentionDot`, `Notice` - контейнеры, метки и сообщения. Смысл всегда передан текстом, цвет его только повторяет. +- `Stepper` и `buildSteps` - ход многошагового сценария: строка "Шаг N из M", список с `aria-current="step"` и текстовым статусом каждого шага. +- `Tabs` (шаблон вкладок WAI-ARIA, стрелки, Home и End, неактивные панели остаются в дереве со скрытым атрибутом, поэтому состояние формы сохраняется) и `SegmentedControl` (нативная группа радиокнопок в виде капсул). +- `StatusView`, `LoadingState`, `EmptyState`, `ErrorState`, `ForbiddenState`, `SavingStatus` - состояния экранов. У каждого состояния своя форма и текст; пустое состояние рисует дорожку платы, которая заканчивается пустым узлом. `ErrorState` показывает код, статус, текст сервера и идентификатор запроса как обычный текст и предлагает повтор. `Skeleton` - декоративные заготовки строк при загрузке, только вместе с сообщением о загрузке. - `QueryView` - превращает результат запроса в загрузку, ошибку, отсутствие доступа (401 и 403 без повтора), пустое состояние или данные. - `TrustLevel` - пустая метка, кольцо, частичная или полная заливка с видимой подписью. -- `Mono`, `VisuallyHidden`, `SkipLink`, `MainRegion`, `BrandLogo`. +- `CircuitTrace`, `Mono`, `VisuallyHidden`, `SkipLink`, `MainRegion`. -Доступность: каждая оболочка начинается со ссылки пропуска к `main`, содержит ориентиры и видимое кольцо фокуса и переводит фокус на `main` после перехода. Анимации учитывают `prefers-reduced-motion`. +Оболочки. Публичная: плавающая плашка со словесным знаком и ссылками, ниже 700px ссылки открываются кнопкой "Меню"; подвал со ссылкой на технический статус. Кандидат (сначала телефон): ниже 700px разделы образуют нижнюю панель вкладок с прокруткой, текущая вкладка прокручивается в середину; с 700px вкладки стоят в плашке. Навигация в документе идет до `main`, поэтому порядок клавиатуры одинаков на любой ширине. Работодатель (сначала компьютер): с 1024px плавающая боковая панель 240px, ниже - плашка с кнопкой "Меню". + +Доступность: каждая оболочка начинается со ссылки пропуска к `main`, содержит ориентиры и видимое кольцо фокуса (2px `#9A92FF` с отступом 2px) и переводит фокус на `main` после перехода. Анимации учитывают `prefers-reduced-motion`. ## Тесты diff --git a/frontend/index.html b/frontend/index.html index 13243c3..49ffaeb 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -2,8 +2,10 @@ - - + + + + Lincodex diff --git a/frontend/public/favicon.svg b/frontend/public/favicon.svg new file mode 100644 index 0000000..f806492 --- /dev/null +++ b/frontend/public/favicon.svg @@ -0,0 +1 @@ + diff --git a/frontend/src/app/ui/styles.css b/frontend/src/app/ui/styles.css index 881d786..bf5af58 100644 --- a/frontend/src/app/ui/styles.css +++ b/frontend/src/app/ui/styles.css @@ -3,13 +3,18 @@ color: var(--color-text); font-family: var(--font-text); font-size: 100%; + font-feature-settings: + "cv11" 1, + "ss01" 0; line-height: var(--line-height-body); background-color: var(--color-canvas); - color-scheme: light; + color-scheme: dark; font-synthesis: none; text-rendering: optimizelegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; + accent-color: var(--color-action); + scrollbar-color: var(--color-border-hover) transparent; } *, @@ -18,15 +23,31 @@ box-sizing: border-box; } +/* Sticky and fixed chrome must not hide the target of an in-page jump or of + * a programmatic scroll into view. */ +html { + scroll-padding-block: calc(var(--header-height) + var(--chrome-inset) * 2 + var(--space-2)) + var(--space-4); +} + +/* The candidate cabinet has a bottom tab bar on phones. */ +@media (width < 43.75rem) { + html { + scroll-padding-bottom: 5rem; + } +} + body { min-width: 20rem; min-height: 100vh; margin: 0; font-size: var(--font-size-m); + background-color: var(--color-canvas); +} - /* Sparse dot grid: a quiet "protocol paper" texture behind surfaces. */ - background-image: radial-gradient(circle at 1px 1px, rgb(27 28 33 / 9%) 1px, transparent 1.5px); - background-size: 1.5rem 1.5rem; +::selection { + color: var(--color-on-accent); + background: var(--color-accent); } h1, @@ -42,14 +63,30 @@ figure { margin: 0; } +/* Headings speak in JetBrains Mono, the voice of the product. Paragraphs, + * meta, and form text stay in Inter: long mono text tires the eye. */ h1, h2, h3, h4 { + font-family: var(--font-mono); + font-weight: var(--font-weight-medium); + letter-spacing: -0.01em; line-height: var(--line-height-snug); text-wrap: balance; } +strong, +b { + font-weight: var(--font-weight-bold); +} + +code, +kbd, +samp { + font-family: var(--font-mono); +} + button, input, select, @@ -64,8 +101,90 @@ svg { max-width: 100%; } -/* One focus indicator for every interactive element. Local dark regions - * override --color-focus-ring with a checked value. */ +hr { + height: 0; + margin: 0; + border: 0; + border-top: var(--line-thin) solid var(--color-divider); +} + +/* + * Native form controls. Screens style their fields with module classes; these + * element rules give every field the same dark capsule and padding. The html + * prefix and the :not() list give them the specificity (0,1,2): above a + * module rule such as ".field input" or ".input", below a state rule such as + * ".field input[aria-invalid]" or ".input:focus-visible". Borders stay with + * the modules, which use --color-border-strong and the danger color. + */ +html :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]), select) { + min-height: var(--control-height); + padding-inline: var(--space-4); + border-radius: var(--radius-pill); + color: var(--color-text); + background-color: var(--color-surface); +} + +html textarea:not([hidden]) { + padding: var(--space-3) var(--space-4); + border-radius: var(--radius-s); + color: var(--color-text); + background-color: var(--color-surface); +} + +/* A drawn chevron replaces the light native arrow. */ +html select:not([multiple]) { + max-width: 100%; + padding-inline-end: var(--space-7); + appearance: none; + background-image: + linear-gradient(45deg, transparent 50%, var(--color-text-secondary) 50%), + linear-gradient(135deg, var(--color-text-secondary) 50%, transparent 50%); + background-position: + right 1.35rem center, + right 1rem center; + background-repeat: no-repeat; + background-size: + 0.35rem 0.35rem, + 0.35rem 0.35rem; +} + +select option { + color: var(--color-text); + background-color: var(--color-surface-elevated); +} + +:is(input, textarea)::placeholder { + color: var(--color-text-muted); + opacity: 1; +} + +:is(input, select, textarea):hover:not([readonly], :disabled, :focus, [aria-invalid="true"]) { + border-color: var(--color-text-secondary); +} + +input[type="checkbox"], +input[type="radio"] { + width: 1.125rem; + height: 1.125rem; + flex: none; + accent-color: var(--color-action); +} + +/* A read-only field during a pending request stays readable but quiet. */ +:is(input, textarea)[readonly] { + color: var(--color-text-secondary); +} + +:is(input, select, textarea, button):disabled { + cursor: not-allowed; + opacity: 0.55; +} + +details > summary { + cursor: pointer; +} + +/* One focus indicator for every interactive element. */ :focus-visible { outline: var(--focus-ring-width) solid var(--color-focus-ring); outline-offset: var(--focus-ring-offset); diff --git a/frontend/src/features/accept-contact-consent/ui/accept-contact-consent-form.module.css b/frontend/src/features/accept-contact-consent/ui/accept-contact-consent-form.module.css index 96d5ad2..d99dfd0 100644 --- a/frontend/src/features/accept-contact-consent/ui/accept-contact-consent-form.module.css +++ b/frontend/src/features/accept-contact-consent/ui/accept-contact-consent-form.module.css @@ -83,7 +83,7 @@ width: 1.25rem; height: 1.25rem; margin: 0.2rem 0 0; - accent-color: var(--color-accent); + accent-color: var(--color-action); } .option span { diff --git a/frontend/src/features/answer-assessment/ui/answer-form.module.css b/frontend/src/features/answer-assessment/ui/answer-form.module.css index 8b111fe..984da64 100644 --- a/frontend/src/features/answer-assessment/ui/answer-form.module.css +++ b/frontend/src/features/answer-assessment/ui/answer-form.module.css @@ -46,7 +46,7 @@ width: 1.2rem; height: 1.2rem; margin-block-start: 0.15rem; - accent-color: var(--color-accent); + accent-color: var(--color-action); } .field { diff --git a/frontend/src/features/consent-management/ui/consent-management.module.css b/frontend/src/features/consent-management/ui/consent-management.module.css index 53401dc..b16d10d 100644 --- a/frontend/src/features/consent-management/ui/consent-management.module.css +++ b/frontend/src/features/consent-management/ui/consent-management.module.css @@ -107,7 +107,7 @@ width: 1.15rem; height: 1.15rem; margin-top: 0.2em; - accent-color: var(--color-accent); + accent-color: var(--color-action); } .grant-actions { diff --git a/frontend/src/features/filter-matches/ui/match-filter-form.module.css b/frontend/src/features/filter-matches/ui/match-filter-form.module.css index 9584871..bd4a55e 100644 --- a/frontend/src/features/filter-matches/ui/match-filter-form.module.css +++ b/frontend/src/features/filter-matches/ui/match-filter-form.module.css @@ -79,7 +79,7 @@ width: 1.25rem; height: 1.25rem; margin: 0; - accent-color: var(--color-accent); + accent-color: var(--color-action); } .quota { diff --git a/frontend/src/features/notifications/ui/organization-notification-inbox.module.css b/frontend/src/features/notifications/ui/organization-notification-inbox.module.css index a366125..801ee0b 100644 --- a/frontend/src/features/notifications/ui/organization-notification-inbox.module.css +++ b/frontend/src/features/notifications/ui/organization-notification-inbox.module.css @@ -6,6 +6,7 @@ .selector { display: grid; + grid-template-columns: minmax(0, 1fr); gap: var(--space-2); max-width: 24rem; } diff --git a/frontend/src/features/profile-visibility/ui/visibility-controls.module.css b/frontend/src/features/profile-visibility/ui/visibility-controls.module.css index 3321866..6bfaefa 100644 --- a/frontend/src/features/profile-visibility/ui/visibility-controls.module.css +++ b/frontend/src/features/profile-visibility/ui/visibility-controls.module.css @@ -33,7 +33,7 @@ width: 1.15rem; height: 1.15rem; margin-top: 0.2em; - accent-color: var(--color-accent); + accent-color: var(--color-action); } .choice input:focus-visible { diff --git a/frontend/src/features/register-account/ui/register-form.module.css b/frontend/src/features/register-account/ui/register-form.module.css index c2f884e..5dec02c 100644 --- a/frontend/src/features/register-account/ui/register-form.module.css +++ b/frontend/src/features/register-account/ui/register-form.module.css @@ -67,7 +67,7 @@ width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; - accent-color: var(--color-accent); + accent-color: var(--color-action); } .choice-body { @@ -111,7 +111,7 @@ width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; - accent-color: var(--color-accent); + accent-color: var(--color-action); } .actions { diff --git a/frontend/src/features/respond-invitation/ui/decline-invitation-form.module.css b/frontend/src/features/respond-invitation/ui/decline-invitation-form.module.css index 387238c..757cdff 100644 --- a/frontend/src/features/respond-invitation/ui/decline-invitation-form.module.css +++ b/frontend/src/features/respond-invitation/ui/decline-invitation-form.module.css @@ -56,7 +56,7 @@ width: 1.25rem; height: 1.25rem; margin: 0.2rem 0 0; - accent-color: var(--color-accent); + accent-color: var(--color-action); } .option span { diff --git a/frontend/src/pages/auth/ui/auth.module.css b/frontend/src/pages/auth/ui/auth.module.css new file mode 100644 index 0000000..4f2da62 --- /dev/null +++ b/frontend/src/pages/auth/ui/auth.module.css @@ -0,0 +1,21 @@ +/* Auth forms sit on a raised panel: the one surface of the page, so the eye + * goes to the fields. */ +.panel { + display: grid; + gap: var(--space-6); + padding: var(--space-5) var(--space-4); + border: var(--line-thin) solid var(--color-divider); + border-radius: var(--radius-l); + background: var(--color-surface); +} + +.aside { + color: var(--color-text-secondary); + font-size: var(--font-size-s); +} + +@media (width >= 43.75rem) { + .panel { + padding: var(--space-6); + } +} diff --git a/frontend/src/pages/auth/ui/login-page.tsx b/frontend/src/pages/auth/ui/login-page.tsx index 3800c02..50f63bd 100644 --- a/frontend/src/pages/auth/ui/login-page.tsx +++ b/frontend/src/pages/auth/ui/login-page.tsx @@ -2,6 +2,7 @@ import { useCallback, useState } from "react"; import { ResendVerificationForm } from "../../../features/resend-email-verification"; import { SignInForm } from "../../../features/sign-in"; import { Page, Section } from "../../../shared/ui"; +import styles from "./auth.module.css"; import { clearRegistrationContext } from "../model/registration-context"; export function LoginPage() { @@ -13,14 +14,16 @@ export function LoginPage() { return ( -
- -
- {unverifiedEmail ? ( -
- +
+
+
- ) : null} + {unverifiedEmail ? ( +
+ +
+ ) : null} +
); } diff --git a/frontend/src/pages/auth/ui/register-page.tsx b/frontend/src/pages/auth/ui/register-page.tsx index 0b8dfec..d88fd47 100644 --- a/frontend/src/pages/auth/ui/register-page.tsx +++ b/frontend/src/pages/auth/ui/register-page.tsx @@ -1,7 +1,7 @@ import { useState } from "react"; import { RegisterForm, type RegistrationDraft } from "../../../features/register-account"; import { VerificationCodeForm } from "../../../features/verify-email-code"; -import { Button, Page, Section, TextLink } from "../../../shared/ui"; +import { Button, Page, Section, Stepper, TextLink, buildSteps } from "../../../shared/ui"; import { paths } from "../../../shared/config"; import { clearRegistrationContext, @@ -9,6 +9,13 @@ import { writeRegistrationContext, type RegistrationContext, } from "../model/registration-context"; +import styles from "./auth.module.css"; + +const registrationSteps = [ + { id: "account", label: "Данные аккаунта" }, + { id: "code", label: "Код из письма" }, + { id: "sign-in", label: "Вход в кабинет" }, +] as const; function scenarioLabel(scenario: RegistrationDraft["scenario"]): string { return scenario === "employer" ? "работодатель" : "кандидат"; @@ -21,6 +28,8 @@ export function RegisterPage() { // for it again. const [registrationPassword, setRegistrationPassword] = useState(); const [messageJustSent, setMessageJustSent] = useState(false); + const [confirmed, setConfirmed] = useState(false); + const stepIndex = confirmed ? 2 : context.accepted ? 1 : 0; function saveDraft(draft: RegistrationDraft) { const next = { ...draft, accepted: false }; @@ -37,6 +46,7 @@ export function RegisterPage() { } function finishConfirmation() { + setConfirmed(true); setRegistrationPassword(undefined); setMessageJustSent(false); clearRegistrationContext(); @@ -47,6 +57,7 @@ export function RegisterPage() { setContext({ email: "", scenario: "", accepted: false }); setRegistrationPassword(undefined); setMessageJustSent(false); + setConfirmed(false); } return ( @@ -54,8 +65,9 @@ export function RegisterPage() { title="Регистрация" lead="Создайте аккаунт и выберите, как вы будете пользоваться платформой." > + {context.accepted ? ( -
+

Если адрес можно зарегистрировать, письмо с кодом и ссылкой придет на него. Выбранный @@ -76,14 +88,16 @@ export function RegisterPage() {

) : ( -
- -
+
+
+ +
+
)} ); diff --git a/frontend/src/pages/auth/ui/verify-email-page.tsx b/frontend/src/pages/auth/ui/verify-email-page.tsx index a5dd719..af28408 100644 --- a/frontend/src/pages/auth/ui/verify-email-page.tsx +++ b/frontend/src/pages/auth/ui/verify-email-page.tsx @@ -2,6 +2,7 @@ import { useCallback, useState } from "react"; import { ConfirmEmailForm } from "../../../features/confirm-email"; import { VerificationCodeForm } from "../../../features/verify-email-code"; import { Page, Section } from "../../../shared/ui"; +import styles from "./auth.module.css"; import { clearRegistrationContext } from "../model/registration-context"; export function VerifyEmailPage() { @@ -18,18 +19,20 @@ export function VerifyEmailPage() { title="Подтверждение почты" lead="Подтвердите адрес ссылкой из письма или кодом из письма и паролем регистрации." > -
- -
- {needsCode ? ( -
- +
+
+
- ) : null} + {needsCode ? ( +
+ +
+ ) : null} +
); } diff --git a/frontend/src/pages/matches/ui/matches-page.module.css b/frontend/src/pages/matches/ui/matches-page.module.css index 43247f4..d17cb06 100644 --- a/frontend/src/pages/matches/ui/matches-page.module.css +++ b/frontend/src/pages/matches/ui/matches-page.module.css @@ -69,7 +69,7 @@ width: 1.25rem; height: 1.25rem; margin: 0; - accent-color: var(--color-accent); + accent-color: var(--color-action); } .hint { diff --git a/frontend/src/pages/welcome/ui/protocol-trace.module.css b/frontend/src/pages/welcome/ui/protocol-trace.module.css new file mode 100644 index 0000000..38ea30b --- /dev/null +++ b/frontend/src/pages/welcome/ui/protocol-trace.module.css @@ -0,0 +1,183 @@ +.root { + position: relative; + display: grid; + gap: var(--space-5); + margin: 0; + padding: var(--space-5); + border: var(--line-thin) solid var(--color-divider); + border-radius: var(--radius-l); + background: var(--color-surface); +} + +.caption { + display: flex; + gap: var(--space-3); + align-items: center; + justify-content: space-between; + color: var(--color-text-secondary); + font-family: var(--font-mono); + font-size: var(--font-size-xs); + font-weight: var(--font-weight-medium); + letter-spacing: var(--letter-spacing-label); + text-transform: uppercase; +} + +/* A dashed capsule says the values are an illustration. */ +.example { + padding: 0.125rem 0.625rem; + border: var(--line-thin) dashed var(--color-border-strong); + border-radius: var(--radius-pill); + letter-spacing: 0.02em; + text-transform: none; +} + +/* The trace: a hairline from the first node to the last, with a signal in + * the readable accent that runs down it once. */ +.steps { + --node-x: 0.4375rem; + --signal: 1.6s; + + position: relative; + display: grid; + gap: var(--space-5); + margin: 0; + padding: 0; + list-style: none; +} + +.steps::before, +.steps::after { + position: absolute; + top: 0.5rem; + bottom: 0.5rem; + left: calc(var(--node-x) + 0.25rem - 0.75px); + width: 1.5px; + border-radius: 1px; + content: ""; +} + +.steps::before { + background: var(--color-trace); + opacity: 0.6; +} + +.steps::after { + background: var(--color-accent); + transform-origin: top; + animation: signal var(--signal) var(--easing-emphasized) 300ms both; +} + +.step { + position: relative; + display: grid; + gap: var(--space-1); + padding-left: var(--space-6); +} + +/* An 8px node lights up when the signal reaches it. */ +.node { + position: absolute; + z-index: 1; + top: 0.3rem; + left: var(--node-x); + width: 0.5rem; + height: 0.5rem; + border-radius: 50%; + background: var(--color-accent); + box-shadow: 0 0 0 3px var(--color-surface); + animation: light 300ms var(--easing-standard) both; +} + +.step:nth-child(1) .node { + animation-delay: 300ms; +} + +.step:nth-child(2) .node { + animation-delay: 750ms; +} + +.step:nth-child(3) .node { + animation-delay: 1200ms; +} + +.step:nth-child(4) .node { + animation-delay: 1650ms; +} + +.kicker { + color: var(--color-text-secondary); + font-family: var(--font-mono); + font-size: var(--font-size-xs); + font-weight: var(--font-weight-medium); + letter-spacing: var(--letter-spacing-label); + line-height: 1.4; + text-transform: uppercase; +} + +.text { + color: var(--color-text); + font-size: var(--font-size-s); + line-height: 1.5; +} + +.artifact { + display: flex; + flex-wrap: wrap; + gap: var(--space-2); + align-items: baseline; + padding-top: var(--space-2); +} + +.query { + padding: var(--space-1) var(--space-3); + border-radius: var(--radius-pill); + color: var(--color-accent); + font-size: 0.75rem; + font-variant-ligatures: none; + background: var(--color-canvas); +} + +.salary { + color: var(--color-text-strong); + font-family: var(--font-mono); + font-size: 1.125rem; + font-variant-numeric: tabular-nums; + font-weight: var(--font-weight-bold); +} + +.basis { + color: var(--color-text-secondary); + font-size: var(--font-size-xs); +} + +@media (width >= 48rem) { + .root { + padding: var(--space-6); + } +} + +@keyframes signal { + from { + transform: scaleY(0); + } + + to { + transform: scaleY(1); + } +} + +@keyframes light { + from { + background: var(--color-surface); + box-shadow: + 0 0 0 3px var(--color-surface), + inset 0 0 0 1.5px var(--color-trace); + } +} + +@media (prefers-reduced-motion: reduce) { + .steps::after, + .node { + animation: none; + } +} diff --git a/frontend/src/pages/welcome/ui/protocol-trace.tsx b/frontend/src/pages/welcome/ui/protocol-trace.tsx new file mode 100644 index 0000000..b645fda --- /dev/null +++ b/frontend/src/pages/welcome/ui/protocol-trace.tsx @@ -0,0 +1,63 @@ +import { useId } from "react"; +import { Tag } from "../../../shared/ui"; +import styles from "./protocol-trace.module.css"; + +/** + * The matching protocol as one circuit trace: test, search, invitation, + * contacts. The values are a labeled example, not data from the service. + * The trace draws itself and the nodes light up in order once; reduced + * motion shows the finished state. + */ +export function ProtocolTrace() { + const captionId = useId(); + + return ( +
+
+ Как проходит подбор + пример +
+
    +
  1. +
  2. +
  3. +
  4. +
  5. +
  6. +
  7. +
  8. +
+
+ ); +} diff --git a/frontend/src/pages/welcome/ui/welcome-page.module.css b/frontend/src/pages/welcome/ui/welcome-page.module.css index 323dad1..f2028b3 100644 --- a/frontend/src/pages/welcome/ui/welcome-page.module.css +++ b/frontend/src/pages/welcome/ui/welcome-page.module.css @@ -1,3 +1,127 @@ +.page { + display: grid; + gap: var(--space-8); + width: 100%; + max-width: calc(var(--content-width-wide) + 2 * var(--gutter)); + margin-inline: auto; + padding: var(--space-7) var(--gutter) var(--space-6); +} + +/* Hero: the thesis, then the protocol trace; side by side on desktop. */ +.hero { + display: grid; + gap: var(--space-7); + align-items: start; +} + +.thesis { + display: grid; + gap: var(--space-5); + align-content: start; + min-width: 0; +} + +/* System-status line: a green dot because these flows work today. */ +.status { + display: inline-flex; + gap: var(--space-2); + align-items: baseline; + color: var(--color-text-secondary); + font-family: var(--font-mono); + font-size: var(--font-size-xs); + font-weight: var(--font-weight-medium); + line-height: 1.5; +} + +.status-dot { + flex: none; + width: 0.5rem; + height: 0.5rem; + border-radius: 50%; + background: var(--color-success); + transform: translateY(-0.05rem); +} + +.title { + max-width: 17ch; + color: var(--color-text-strong); + font-size: var(--font-size-display); + font-weight: var(--font-weight-medium); + letter-spacing: -0.04em; + line-height: 1.06; + overflow-wrap: anywhere; + hyphens: manual; +} + +.lead { + max-width: 36rem; + color: var(--color-text); + font-size: 1.125rem; + line-height: 1.55; +} + +.note { + max-width: 36rem; + color: var(--color-text-secondary); + font-size: var(--font-size-s); +} + +.actions { + display: flex; + flex-wrap: wrap; + gap: var(--space-3); + padding-top: var(--space-1); +} + +.help { + max-width: 36rem; + color: var(--color-text-secondary); + font-size: var(--font-size-s); +} + +/* Jury block of the demonstration stand: a panel marked with the red + * "live" dot of the design system. */ +.jury { + display: grid; + gap: var(--space-3); + justify-items: start; + padding: var(--space-5); + border: var(--line-thin) solid var(--color-divider); + border-radius: var(--radius-m); + background: var(--color-surface); +} + +.jury-title { + display: inline-flex; + gap: var(--space-2); + align-items: center; + color: var(--color-text-strong); + font-size: var(--font-size-l); +} + +.jury-title::before { + width: 0.5rem; + height: 0.5rem; + border-radius: 50%; + content: ""; + background: var(--color-attention); +} + +.jury-text { + max-width: 44rem; + color: var(--color-text-secondary); +} + +.block { + display: grid; + gap: var(--space-5); +} + +.block-title { + color: var(--color-text-strong); + font-size: var(--font-size-xl); +} + .cabinets { display: grid; gap: var(--space-4); @@ -7,67 +131,34 @@ } .card { - position: relative; display: grid; - gap: var(--space-2); + grid-template-rows: auto auto auto 1fr auto; + gap: var(--space-3); + justify-items: start; padding: var(--space-5); - border: var(--line-thin) solid var(--color-border-strong); - border-radius: var(--radius-l); - color: var(--color-text); - text-decoration: none; + border: var(--line-thin) solid var(--color-divider); + border-radius: var(--radius-m); background: var(--color-surface); - transition: - border-color var(--duration-fast) var(--easing-standard), - transform var(--duration-base) var(--easing-standard); -} - -/* Connector node in the corner, echoing the brand line graphics. */ -.card::after { - position: absolute; - top: var(--space-5); - right: var(--space-5); - width: 0.75rem; - height: 0.75rem; - border: var(--line-strong) solid var(--color-accent); - border-radius: 50%; - content: ""; - transition: background-color var(--duration-fast) var(--easing-standard); + transition: border-color var(--duration-fast) var(--easing-standard); } .card:hover { - border-color: var(--color-accent); - transform: translateY(-2px); -} - -.card:hover::after { - background: var(--color-accent); -} - -.format { - color: var(--color-accent); - font-size: var(--font-size-xs); - font-weight: var(--font-weight-bold); - letter-spacing: var(--letter-spacing-label); - text-transform: uppercase; + border-color: var(--color-border-hover); } .card-title { - font-size: var(--font-size-xl); - font-weight: var(--font-weight-bold); - line-height: var(--line-height-snug); - text-decoration: underline; - text-decoration-thickness: var(--line-thin); - text-underline-offset: 0.2em; + color: var(--color-text-strong); + font-size: var(--font-size-l); } .summary { - color: var(--color-text-secondary); + color: var(--color-text); } .features { display: grid; - gap: var(--space-1); - margin: var(--space-2) 0 0; + gap: var(--space-2); + margin: 0; padding: 0; color: var(--color-text-secondary); font-size: var(--font-size-s); @@ -76,33 +167,56 @@ .features li { position: relative; - padding-left: var(--space-3); + padding-left: var(--space-5); } -/* Short accent rule in place of bullets, matching the corner connector. */ +/* A short trace with a node in place of a bullet. */ .features li::before { position: absolute; - top: 0.7em; + top: 0.72em; left: 0; - width: 0.5rem; + width: 0.875rem; height: var(--line-thin); - background: var(--color-accent); content: ""; + background: var(--color-trace); } -.actions { - display: flex; - flex-wrap: wrap; - gap: var(--space-2); +.features li::after { + position: absolute; + top: calc(0.72em - 0.1875rem); + left: 0.875rem; + width: 0.375rem; + height: 0.375rem; + border-radius: 50%; + content: ""; + background: var(--color-accent); } -.help { - color: var(--color-text-secondary); +.card-action { + padding-top: var(--space-2); + font-family: var(--font-mono); font-size: var(--font-size-s); } +.pending { + max-width: 44rem; + color: var(--color-text-secondary); +} + @media (width >= 48rem) { .cabinets { grid-template-columns: repeat(2, minmax(0, 1fr)); } } + +@media (width >= 64rem) { + .page { + gap: var(--space-9); + padding-top: var(--space-8); + } + + .hero { + grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); + gap: var(--space-8); + } +} diff --git a/frontend/src/pages/welcome/ui/welcome-page.tsx b/frontend/src/pages/welcome/ui/welcome-page.tsx index beaf007..89fb070 100644 --- a/frontend/src/pages/welcome/ui/welcome-page.tsx +++ b/frontend/src/pages/welcome/ui/welcome-page.tsx @@ -1,12 +1,16 @@ -import { Link } from "react-router-dom"; +import { useId } from "react"; import { paths } from "../../../shared/config"; -import { ButtonLink, Page, Section, TextLink } from "../../../shared/ui"; +import { ButtonLink, Tag, TextLink } from "../../../shared/ui"; +import { ProtocolTrace } from "./protocol-trace"; import styles from "./welcome-page.module.css"; +const title = "Протокол подтвержденных навыков"; + const cabinets = [ { to: paths.candidate.root, title: "Кабинет кандидата", + action: "Открыть кабинет кандидата", format: "Для телефона", summary: "Профиль и анкета, тест на подтверждение уровня, результаты и настройки видимости.", features: [ @@ -19,6 +23,7 @@ const cabinets = [ { to: paths.employer.root, title: "Кабинет работодателя", + action: "Открыть кабинет работодателя", format: "Для компьютера", summary: "Компания и статус ее проверки, потребности, поиск кандидатов и составление приглашений.", @@ -32,65 +37,103 @@ const cabinets = [ ] as const; /** - * Public start page. It describes the cabinets that work now and names the - * screens that are still placeholders, so the page makes no promise the - * product does not keep. A demonstration stand adds the link to the jury guide. + * Public start page. The hero states the product's thesis and shows the + * matching protocol as an example; the cabinets section lists what works now, + * and the page names the screen that is still a placeholder, so it makes no + * promise the product does not keep. A demonstration stand adds the link to + * the jury guide. */ export function WelcomePage({ demoStand = false }: { demoStand?: boolean }) { + const titleId = useId(); + const juryId = useId(); + const cabinetsId = useId(); + const pendingId = useId(); + return ( - +
+ {`${title} - Lincodex`} + +
+
+

+

+

+ {title} +

+

+ Кандидат подтверждает уровень тестом. Компания находит его по подтвержденной категории и + приглашает с вилкой зарплаты. Контакты открываются, только если кандидат согласился. +

+

+ Заявленный уровень остается самооценкой: подтвержденную категорию присваивает только + результат теста. +

+
+ Зарегистрироваться + + Войти + +
+

+ Подтверждение почты и повторная отправка письма находятся на странице{" "} + подтверждения почты. Вопросы о работе + сервиса задайте в поддержке. +

+
+ +
+ {demoStand ? ( -
-

+

+

+ Для жюри +

+

Этот стенд показывает продукт на синтетических данных. Гид описывает маршрут на восемь минут двумя ролями и отделяет имитации от работающего функционала.

-
- Открыть гид для жюри +
+ + Открыть гид для жюри +
-
+
) : null} -
+ +
+

+ Кабинеты +

    {cabinets.map((cabinet) => ( -
  • - - {cabinet.format} - {cabinet.title} - {cabinet.summary} -
      - {cabinet.features.map((feature) => ( -
    • {feature}
    • - ))} -
    - +
  • + {cabinet.format} +

    {cabinet.title}

    +

    {cabinet.summary}

    +
      + {cabinet.features.map((feature) => ( +
    • {feature}
    • + ))} +
    +
    + {cabinet.action} +
  • ))}
-
-
-

+

+ +
+

+ Пока не готово +

+

Список приглашений, отправленных компанией, пока заготовка: этот экран не показывает данных и не выполняет действий.

-
-
-
- Войти - - Зарегистрироваться - -
-

- Подтверждение почты и повторная отправка письма находятся на странице{" "} - подтверждения почты. Вопросы о работе сервиса - задайте в поддержке. -

-
- +
+
); } diff --git a/frontend/src/shared/ui/brand/brand-logo.module.css b/frontend/src/shared/ui/brand/brand-logo.module.css deleted file mode 100644 index f4d1ec2..0000000 --- a/frontend/src/shared/ui/brand/brand-logo.module.css +++ /dev/null @@ -1,45 +0,0 @@ -.root { - display: inline-flex; - gap: var(--space-3); - align-items: center; - min-height: 2.75rem; - border-radius: var(--radius-s); - text-decoration: none; -} - -.logo { - width: auto; - height: 1.75rem; -} - -.divider { - align-self: stretch; - width: var(--line-thin); - margin-block: var(--space-2); - background: currentcolor; - opacity: 0.4; -} - -.name { - display: grid; - font-size: var(--font-size-m); - font-weight: var(--font-weight-bold); - letter-spacing: -0.01em; - line-height: 1.1; -} - -.context { - font-size: var(--font-size-xs); - font-weight: var(--font-weight-medium); - letter-spacing: 0; -} - -/* Graphite on white 17.01:1. */ -.light { - color: var(--color-text); -} - -/* Light grey on graphite 14.53:1. */ -.dark { - color: var(--palette-light); -} diff --git a/frontend/src/shared/ui/brand/brand-logo.tsx b/frontend/src/shared/ui/brand/brand-logo.tsx deleted file mode 100644 index 7382179..0000000 --- a/frontend/src/shared/ui/brand/brand-logo.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import { Link } from "react-router-dom"; -import logoOnDark from "./fsp-logo-on-dark.svg"; -import logoOnLight from "./fsp-logo-on-light.svg"; -import styles from "./brand-logo.module.css"; - -type BrandLogoProps = { - /** Background the logo sits on; selects the brandbook color variant. */ - tone?: "light" | "dark"; - /** Destination of the home link. */ - to?: string; - /** Cabinet name shown after the product name. */ - context?: string | undefined; -}; - -/** - * Brandbook FSP logo (logo_02w for light, logo_01 for dark backgrounds) - * followed by the product name. The whole block is one link home. - */ -export function BrandLogo({ tone = "light", to = "/", context }: BrandLogoProps) { - return ( - - ФСП -