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,41 @@
|
||||
import { Outlet } from "react-router-dom";
|
||||
import { paths } from "../../../shared/config";
|
||||
import { BrandLogo, MainRegion, NavItem, SkipLink } from "../../../shared/ui";
|
||||
import styles from "./employer-shell.module.css";
|
||||
|
||||
const navigation = [
|
||||
{ to: paths.employer.company, label: "Компания и команда" },
|
||||
{ to: paths.employer.needs, label: "Потребности" },
|
||||
{ to: paths.employer.candidates, label: "Кандидаты" },
|
||||
{ to: paths.employer.invitations, label: "Приглашения" },
|
||||
] as const;
|
||||
|
||||
/**
|
||||
* Employer cabinet layout, designed for desktop first: a graphite sidebar
|
||||
* with vertical navigation next to a wide work area. Below 1024px the
|
||||
* sidebar turns into a top bar with a scrollable section strip.
|
||||
*/
|
||||
export function EmployerShell() {
|
||||
return (
|
||||
<div className={styles.shell}>
|
||||
<SkipLink />
|
||||
<header className={styles.sidebar}>
|
||||
<BrandLogo tone="dark" to={paths.employer.root} context="Кабинет работодателя" />
|
||||
<nav className={styles.nav} aria-label="Разделы кабинета работодателя">
|
||||
<ul className={styles.list}>
|
||||
{navigation.map((item) => (
|
||||
<li key={item.to}>
|
||||
<NavItem to={item.to} tone="dark">
|
||||
{item.label}
|
||||
</NavItem>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
<MainRegion className={styles.main}>
|
||||
<Outlet />
|
||||
</MainRegion>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user