feat(frontend): add cabinet shells, brand tokens, and state primitives
This commit is contained in:
1 parent
dda3825786
commit
0e2a3b02ab
85 files changed
+3313
-113
No files matched your search
@@ -0,0 +1,79 @@
|
||||
.cabinets {
|
||||
display: grid;
|
||||
gap: var(--space-4);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.card {
|
||||
position: relative;
|
||||
display: grid;
|
||||
gap: var(--space-2);
|
||||
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;
|
||||
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);
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.summary {
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.state {
|
||||
width: fit-content;
|
||||
padding: 0 var(--space-2);
|
||||
border: var(--line-thin) dashed var(--color-border-strong);
|
||||
border-radius: var(--radius-pill);
|
||||
font-size: var(--font-size-xs);
|
||||
}
|
||||
|
||||
@media (width >= 48rem) {
|
||||
.cabinets {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
import { Link } from "react-router-dom";
|
||||
import { paths } from "../../../shared/config";
|
||||
import { Page, Section, TextLink } from "../../../shared/ui";
|
||||
import styles from "./welcome-page.module.css";
|
||||
|
||||
const cabinets = [
|
||||
{
|
||||
to: paths.candidate.root,
|
||||
title: "Кабинет кандидата",
|
||||
format: "Для телефона",
|
||||
summary: "Профиль, тест, результаты, приглашения и настройки приватности.",
|
||||
},
|
||||
{
|
||||
to: paths.employer.root,
|
||||
title: "Кабинет работодателя",
|
||||
format: "Для компьютера",
|
||||
summary: "Компания и команда, потребности, подбор кандидатов и приглашения.",
|
||||
},
|
||||
] as const;
|
||||
|
||||
/**
|
||||
* Public start page. It states plainly that only the interface scaffold
|
||||
* exists, so it cannot be mistaken for a working product.
|
||||
*/
|
||||
export function WelcomePage() {
|
||||
return (
|
||||
<Page
|
||||
title="Протокол подтвержденных навыков"
|
||||
eyebrow="Lincodex"
|
||||
lead="Сейчас доступен только каркас интерфейса: навигация, общие состояния экранов и оформление. Вход, регистрация и рабочие сценарии кабинетов появятся в следующих задачах."
|
||||
>
|
||||
<Section title="Кабинеты">
|
||||
<ul className={styles.cabinets}>
|
||||
{cabinets.map((cabinet) => (
|
||||
<li key={cabinet.to}>
|
||||
<Link className={styles.card} to={cabinet.to}>
|
||||
<span className={styles.format}>{cabinet.format}</span>
|
||||
<span className={styles["card-title"]}>{cabinet.title}</span>
|
||||
<span className={styles.summary}>{cabinet.summary}</span>
|
||||
<span className={styles.state}>Пустой каркас</span>
|
||||
</Link>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</Section>
|
||||
<Section title="Публичные страницы">
|
||||
<p>
|
||||
Заготовки: <TextLink to={paths.login}>вход</TextLink>,{" "}
|
||||
<TextLink to={paths.register}>регистрация</TextLink>,{" "}
|
||||
<TextLink to={paths.verifyEmail}>подтверждение почты</TextLink> и{" "}
|
||||
<TextLink to={paths.support}>поддержка</TextLink>.
|
||||
</p>
|
||||
</Section>
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user