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 @@
|
||||
export { PublicShell } from "./ui/public-shell";
|
||||
@@ -0,0 +1,42 @@
|
||||
.shell {
|
||||
display: grid;
|
||||
grid-template-rows: auto 1fr auto;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.header {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-2) var(--space-5);
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: var(--space-3) var(--gutter);
|
||||
border-bottom: var(--line-thin) solid var(--color-divider);
|
||||
background: var(--color-surface);
|
||||
}
|
||||
|
||||
.nav {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-1);
|
||||
margin: 0 calc(-1 * var(--space-3));
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.main {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.footer {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-2) var(--space-5);
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: var(--space-4) var(--gutter);
|
||||
border-top: var(--line-thin) solid var(--color-divider);
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-s);
|
||||
background: var(--color-surface);
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
import { Outlet } from "react-router-dom";
|
||||
import { paths } from "../../../shared/config";
|
||||
import { BrandLogo, MainRegion, NavItem, SkipLink, TextLink } from "../../../shared/ui";
|
||||
import styles from "./public-shell.module.css";
|
||||
|
||||
/** Layout of public pages: sign-in, registration, email confirmation, support. */
|
||||
export function PublicShell() {
|
||||
return (
|
||||
<div className={styles.shell}>
|
||||
<SkipLink />
|
||||
<header className={styles.header}>
|
||||
<BrandLogo />
|
||||
<nav aria-label="Публичные разделы">
|
||||
<ul className={styles.nav}>
|
||||
<li>
|
||||
<NavItem to={paths.login}>Вход</NavItem>
|
||||
</li>
|
||||
<li>
|
||||
<NavItem to={paths.register}>Регистрация</NavItem>
|
||||
</li>
|
||||
<li>
|
||||
<NavItem to={paths.support}>Поддержка</NavItem>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
<MainRegion className={styles.main}>
|
||||
<Outlet />
|
||||
</MainRegion>
|
||||
<footer className={styles.footer}>
|
||||
<p>Lincodex. Каркас интерфейса: пользовательские сценарии в разработке.</p>
|
||||
<TextLink to={paths.status}>Технический статус</TextLink>
|
||||
</footer>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user