feat(frontend): redesign the candidate cabinet with step-by-step profile and questionnaire forms
This commit is contained in:
1 parent
15590d127c
commit
c836d02ea3
77 files changed
+5409
-1618
No files matched your search
@@ -1,16 +1,18 @@
|
||||
/* A card of the system; a demonstration run has a dashed boundary, so it is
|
||||
* never mistaken for a qualification result. */
|
||||
.root {
|
||||
display: grid;
|
||||
gap: var(--space-4);
|
||||
min-width: 0;
|
||||
padding: var(--space-4);
|
||||
padding: var(--space-5);
|
||||
border: var(--line-thin) solid var(--color-divider);
|
||||
border-inline-start: var(--line-strong) solid var(--color-accent);
|
||||
border-radius: var(--radius-m);
|
||||
background: var(--color-canvas);
|
||||
background: var(--color-surface);
|
||||
}
|
||||
|
||||
.root[data-express="true"] {
|
||||
border-inline-start-style: dashed;
|
||||
border-style: dashed;
|
||||
border-color: var(--color-border-hover);
|
||||
}
|
||||
|
||||
.root p {
|
||||
@@ -24,7 +26,8 @@
|
||||
}
|
||||
|
||||
.kind {
|
||||
color: var(--color-text-secondary);
|
||||
color: var(--color-accent);
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--font-size-xs);
|
||||
letter-spacing: var(--letter-spacing-label);
|
||||
text-transform: uppercase;
|
||||
@@ -32,6 +35,7 @@
|
||||
|
||||
.title {
|
||||
margin: 0;
|
||||
color: var(--color-text-strong);
|
||||
font-size: var(--font-size-xl);
|
||||
line-height: var(--line-height-snug);
|
||||
overflow-wrap: anywhere;
|
||||
@@ -47,17 +51,12 @@
|
||||
display: none;
|
||||
}
|
||||
|
||||
.badge {
|
||||
padding: var(--space-1) var(--space-3);
|
||||
border: var(--line-strong) solid var(--color-border-strong);
|
||||
border-radius: var(--radius-pill);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: var(--font-weight-bold);
|
||||
}
|
||||
|
||||
.summary {
|
||||
font-size: var(--font-size-m);
|
||||
font-weight: var(--font-weight-bold);
|
||||
color: var(--color-text-strong);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 1.125rem;
|
||||
font-weight: var(--font-weight-medium);
|
||||
line-height: var(--line-height-snug);
|
||||
}
|
||||
|
||||
.demo {
|
||||
@@ -87,6 +86,13 @@
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
/* The decision facts as small readouts on nested surfaces. */
|
||||
.facts-main > div {
|
||||
padding: var(--space-3);
|
||||
border-radius: var(--radius-s);
|
||||
background: var(--color-canvas);
|
||||
}
|
||||
|
||||
.block {
|
||||
display: grid;
|
||||
gap: var(--space-3);
|
||||
@@ -119,6 +125,6 @@
|
||||
|
||||
@media (width < 42rem) {
|
||||
.root {
|
||||
padding: var(--space-3);
|
||||
padding: var(--space-4);
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useId, type ReactNode } from "react";
|
||||
import type { AssessmentResult } from "../../../shared/api/schemas";
|
||||
import { paths } from "../../../shared/config/paths";
|
||||
import { ButtonLink, Mono } from "../../../shared/ui";
|
||||
import { ButtonLink, Mono, Tag } from "../../../shared/ui";
|
||||
import { describeAssessmentResult } from "../model/result-presentation";
|
||||
import styles from "./assessment-result-view.module.css";
|
||||
|
||||
@@ -54,9 +54,11 @@ export function AssessmentResultView({
|
||||
{view.title}
|
||||
</Heading>
|
||||
<p className={styles.badges}>
|
||||
{view.isExpress ? <span className={styles.badge}>Демонстрация</span> : null}
|
||||
{view.isExpress ? <Tag tone="accent">Демонстрация</Tag> : null}
|
||||
{!view.isExpress && view.isProvisional ? (
|
||||
<span className={styles.badge}>Предварительный результат</span>
|
||||
<Tag tone="neutral" dot>
|
||||
Предварительный результат
|
||||
</Tag>
|
||||
) : null}
|
||||
</p>
|
||||
</header>
|
||||
@@ -72,7 +74,7 @@ export function AssessmentResultView({
|
||||
</>
|
||||
) : null}
|
||||
|
||||
<dl className={styles.facts}>
|
||||
<dl className={`${styles.facts} ${styles["facts-main"]}`}>
|
||||
{view.facts.map((fact) => (
|
||||
<div key={fact.label}>
|
||||
<dt>{fact.label}</dt>
|
||||
|
||||
Reference in new issue
Block a user