feat(frontend): redesign the employer cabinet with step-by-step need and invitation forms

This commit is contained in:
shira committed 2026-10-10 03:01:36 +03:00
1 parent a0869d81a1
commit 15590d127c
45 files changed
+3600 -1983

No files matched your search

@@ -1,43 +1,11 @@
.notice {
display: flex;
flex-wrap: wrap;
gap: var(--space-2) var(--space-3);
align-items: baseline;
padding: var(--space-4) var(--space-5);
border: var(--line-thin) dashed var(--color-border-strong);
border-radius: var(--radius-m);
background: var(--color-surface);
}
.tag {
padding: 0 var(--space-2);
border: var(--line-thin) solid var(--color-accent);
border-radius: var(--radius-pill);
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;
}
.plan {
display: grid;
gap: 0;
margin: 0;
padding: 0;
list-style: none;
}
.plan li {
display: grid;
grid-template-columns: 2.5rem minmax(0, 1fr);
gap: var(--space-3);
padding: var(--space-3) 0;
border-bottom: var(--line-thin) solid var(--color-divider);
font-size: var(--font-size-l);
margin: 0;
padding-inline-start: var(--space-5);
line-height: var(--line-height-snug);
}
.plan li > :first-child {
.plan li::marker {
color: var(--color-accent);
}
@@ -1,4 +1,4 @@
import { Mono, Page, Section } from "../../../shared/ui";
import { Card, Notice, Page, Section, Tag } from "../../../shared/ui";
import { areaLabels, screens, type ScreenId } from "../model/screens";
import styles from "./placeholder-page.module.css";
@@ -8,7 +8,8 @@ type PlaceholderPageProps = {
/**
* Honest stand-in for a screen that a later task implements. It names the
* screen and lists what is planned, without imitating working features.
* screen and lists what is planned, without imitating working features. The
* planned items are not a sequence, so they are a plain list.
*/
export function PlaceholderPage({ screen }: PlaceholderPageProps) {
const plan = screens[screen];
@@ -19,19 +20,17 @@ export function PlaceholderPage({ screen }: PlaceholderPageProps) {
eyebrow={areaLabels[plan.area]}
width={plan.area === "employer" ? "wide" : "narrow"}
>
<p className={styles.notice}>
<span className={styles.tag}>Заготовка</span>
<Notice tone="neutral" title={<Tag>Заготовка</Tag>}>
Экран будет реализован в одной из следующих задач. Сейчас здесь нет данных и действий.
</p>
</Notice>
<Section title="Что здесь появится" headingLevel={2}>
<ol className={styles.plan}>
{plan.planned.map((item, index) => (
<li key={item}>
<Mono>{String(index + 1).padStart(2, "0")}</Mono>
<span>{item}</span>
</li>
))}
</ol>
<Card as="div">
<ul className={styles.plan}>
{plan.planned.map((item) => (
<li key={item}>{item}</li>
))}
</ul>
</Card>
</Section>
</Page>
);