init here

This commit is contained in:
2025-11-26 21:32:41 +03:00
commit 33c97acade
91 changed files with 9155 additions and 0 deletions

236
frontend/styles.css Normal file
View File

@@ -0,0 +1,236 @@
:root {
--bg: #f6f1df;
--accent: #d6b87a;
--accent-strong: #c39a3a;
--text: #3a3a3a;
--muted: #8a8a8a;
--panel: #fffaf0;
--border: #e0d7c4;
--ok: #3aa76d;
--warn: #c97c2a;
--danger: #c43e3e;
}
* {
box-sizing: border-box;
}
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
"Noto Sans", sans-serif;
background: var(--bg);
color: var(--text);
}
.topbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 16px;
background: var(--accent);
color: #fff;
border-bottom: 2px solid var(--accent-strong);
}
.topbar .brand {
display: flex;
align-items: center;
gap: 10px;
font-weight: 600;
}
.topbar .logo {
filter: grayscale(20%);
}
.topbar .top-actions {
display: flex;
align-items: center;
gap: 16px;
}
.topbar .linklike {
background: none;
border: none;
color: #fff;
cursor: pointer;
text-decoration: underline;
}
.layout {
display: grid;
grid-template-columns: 240px 1fr;
min-height: calc(100vh - 44px);
}
.sidebar {
background: var(--panel);
border-right: 1px solid var(--border);
padding: 10px 0;
}
.sidebar .menu-title {
padding: 10px 16px;
color: var(--muted);
text-transform: uppercase;
font-size: 12px;
}
.sidebar ul {
list-style: none;
margin: 0;
padding: 0;
}
.sidebar li {
border-top: 1px solid var(--border);
}
.sidebar li.sep {
height: 10px;
border: none;
}
.sidebar a {
display: block;
padding: 12px 16px;
color: var(--text);
text-decoration: none;
}
.sidebar a:hover {
background: #fff;
}
.content {
padding: 16px;
}
.card {
background: #fff;
border: 1px solid var(--border);
border-radius: 6px;
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.card .card-header {
padding: 12px 16px;
border-bottom: 1px solid var(--border);
background: #fffdf7;
font-weight: 600;
}
.card .card-body {
padding: 16px;
}
.form-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 12px;
}
.input {
display: flex;
flex-direction: column;
gap: 6px;
}
.input label {
color: var(--muted);
font-size: 12px;
}
.input input,
.input select,
.input textarea {
padding: 10px;
border: 1px solid var(--border);
border-radius: 6px;
background: #fff;
}
.actions {
display: flex;
gap: 8px;
margin-top: 12px;
}
.btn {
background: var(--accent-strong);
color: #fff;
border: none;
border-radius: 6px;
padding: 10px 14px;
cursor: pointer;
}
.btn.secondary {
background: #8b8b8b;
}
.btn.danger {
background: var(--danger);
}
.table {
width: 100%;
border-collapse: collapse;
}
.table th,
.table td {
padding: 10px;
border-bottom: 1px solid var(--border);
text-align: left;
}
.table th {
background: #fffdf7;
color: var(--muted);
font-weight: 600;
font-size: 13px;
}
.badge {
display: inline-block;
padding: 2px 6px;
border-radius: 10px;
font-size: 12px;
background: #eee;
}
.badge.ok {
background: #e6f6ed;
color: var(--ok);
}
.badge.warn {
background: #fff1e3;
color: var(--warn);
}
.notice {
padding: 10px 14px;
border: 1px solid var(--border);
border-radius: 6px;
background: #fffbe6;
}
.error {
padding: 10px 14px;
border: 1px solid var(--danger);
border-radius: 6px;
background: #fff0f0;
color: var(--danger);
}
.tabs {
display: flex;
gap: 8px;
border-bottom: 1px solid var(--border);
margin-bottom: 12px;
}
.tabs a {
padding: 8px 12px;
text-decoration: none;
color: var(--text);
border: 1px solid transparent;
border-radius: 6px 6px 0 0;
}
.tabs a.active {
background: #fff;
border-color: var(--border);
border-bottom-color: #fff;
}
.small {
font-size: 12px;
color: var(--muted);
}
.grid-two {
display: grid;
grid-template-columns: 360px 1fr;
gap: 16px;
}
.hidden {
display: none !important;
}
.center {
text-align: center;
}