feat(frontend): switch to the dark graphite design system with a Lincodex wordmark
This commit is contained in:
1 parent
945ab6d6a9
commit
3c4acff803
81 files changed
+3187
-619
No files matched your search
@@ -1,6 +1,13 @@
|
||||
import { Outlet } from "react-router-dom";
|
||||
import { paths } from "../../../shared/config";
|
||||
import { BrandLogo, MainRegion, NavItem, SkipLink } from "../../../shared/ui";
|
||||
import {
|
||||
MainRegion,
|
||||
MenuButton,
|
||||
NavItem,
|
||||
SkipLink,
|
||||
Wordmark,
|
||||
useMenuToggle,
|
||||
} from "../../../shared/ui";
|
||||
import styles from "./employer-shell.module.css";
|
||||
|
||||
const navigation = [
|
||||
@@ -13,21 +20,41 @@ const navigation = [
|
||||
] 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.
|
||||
* Employer cabinet layout, designed for desktop first: a floating 240px
|
||||
* sidebar with vertical navigation next to a wide work area. Below 1024px
|
||||
* the sidebar turns into a sticky header plate whose sections open from a
|
||||
* menu button.
|
||||
*/
|
||||
export function EmployerShell() {
|
||||
const menu = useMenuToggle();
|
||||
|
||||
return (
|
||||
<div className={styles.shell}>
|
||||
<SkipLink />
|
||||
<header className={styles.sidebar}>
|
||||
<BrandLogo tone="dark" to={paths.employer.root} context="Кабинет работодателя" />
|
||||
<nav className={styles.nav} aria-label="Разделы кабинета работодателя">
|
||||
<div className={styles.top}>
|
||||
<div className={styles.brand}>
|
||||
<Wordmark to={paths.employer.root} />
|
||||
<span className={styles.context}>Кабинет работодателя</span>
|
||||
</div>
|
||||
<MenuButton
|
||||
className={styles.toggle}
|
||||
menuId={menu.menuId}
|
||||
isOpen={menu.isOpen}
|
||||
onToggle={menu.toggle}
|
||||
buttonRef={menu.buttonRef}
|
||||
/>
|
||||
</div>
|
||||
<nav
|
||||
id={menu.menuId}
|
||||
className={styles.nav}
|
||||
data-open={menu.isOpen || undefined}
|
||||
aria-label="Разделы кабинета работодателя"
|
||||
>
|
||||
<ul className={styles.list}>
|
||||
{navigation.map((item) => (
|
||||
<li key={item.to}>
|
||||
<NavItem to={item.to} tone="dark">
|
||||
<NavItem to={item.to} layout="rail">
|
||||
{item.label}
|
||||
</NavItem>
|
||||
</li>
|
||||
|
||||
Reference in new issue
Block a user