feat: implement Fil-A-Management Django MVP
This commit is contained in:
commit
1127e7ecf4
66 files changed
+3774
No files matched your search
@@ -0,0 +1,659 @@
|
||||
/* Self-hosted, dependency-free UI. */
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--ink: #172d2c;
|
||||
--muted: #667b78;
|
||||
--green: #176d59;
|
||||
--light: #edf5f1;
|
||||
--line: #e0e8e3;
|
||||
--paper: #f6f8f5;
|
||||
--danger: #a63c34;
|
||||
font-family:
|
||||
Inter,
|
||||
ui-sans-serif,
|
||||
system-ui,
|
||||
-apple-system,
|
||||
BlinkMacSystemFont,
|
||||
"Segoe UI",
|
||||
sans-serif;
|
||||
color: var(--ink);
|
||||
background: var(--paper);
|
||||
}
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
a {
|
||||
color: var(--green);
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
button,
|
||||
input,
|
||||
select {
|
||||
font: inherit;
|
||||
}
|
||||
button,
|
||||
a,
|
||||
input,
|
||||
select {
|
||||
touch-action: manipulation;
|
||||
}
|
||||
button {
|
||||
cursor: pointer;
|
||||
}
|
||||
:focus-visible {
|
||||
outline: 3px solid #e9ab36;
|
||||
outline-offset: 3px;
|
||||
}
|
||||
.shell {
|
||||
display: flex;
|
||||
min-height: 100vh;
|
||||
}
|
||||
.sidebar {
|
||||
width: 244px;
|
||||
background: #fff;
|
||||
border-right: 1px solid var(--line);
|
||||
padding: 36px 24px 24px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
font-size: 27px;
|
||||
font-weight: 800;
|
||||
color: var(--ink);
|
||||
line-height: 1.1;
|
||||
margin-bottom: 48px;
|
||||
}
|
||||
.brand:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
.brand-icon {
|
||||
font-size: 40px;
|
||||
color: var(--green);
|
||||
}
|
||||
.brand-small {
|
||||
display: block;
|
||||
font-size: 9px;
|
||||
letter-spacing: 2.6px;
|
||||
margin-top: 6px;
|
||||
font-weight: 650;
|
||||
}
|
||||
.nav-label {
|
||||
font-size: 10px;
|
||||
letter-spacing: 1.6px;
|
||||
font-weight: 700;
|
||||
color: #899a93;
|
||||
margin: 24px 12px 12px;
|
||||
}
|
||||
nav > a {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
padding: 13px 12px;
|
||||
color: #5d716c;
|
||||
font-size: 14px;
|
||||
border-radius: 8px;
|
||||
margin: 3px 0;
|
||||
}
|
||||
nav > a[aria-current] {
|
||||
background: var(--light);
|
||||
color: var(--green);
|
||||
font-weight: 650;
|
||||
}
|
||||
nav > a:hover {
|
||||
background: var(--paper);
|
||||
text-decoration: none;
|
||||
}
|
||||
.sidebar-bottom {
|
||||
margin-top: auto;
|
||||
padding-top: 40px;
|
||||
}
|
||||
.profile-link {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
color: var(--ink);
|
||||
}
|
||||
.profile-link small,
|
||||
td small {
|
||||
display: block;
|
||||
margin-top: 4px;
|
||||
font-size: 11px;
|
||||
color: var(--muted);
|
||||
}
|
||||
.avatar {
|
||||
background: #e6efe8;
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border-radius: 50%;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
}
|
||||
.profile-link strong {
|
||||
font-size: 13px;
|
||||
}
|
||||
.logout {
|
||||
border: 0;
|
||||
background: none;
|
||||
color: var(--muted);
|
||||
padding: 14px 0 0 50px;
|
||||
font-size: 12px;
|
||||
}
|
||||
.main-wrap {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.topbar {
|
||||
height: 75px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0 46px;
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
background: #ffffff80;
|
||||
}
|
||||
.badge {
|
||||
display: inline-block;
|
||||
background: #edf2ee;
|
||||
padding: 5px 10px;
|
||||
border-radius: 5px;
|
||||
color: #587067;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
white-space: nowrap;
|
||||
}
|
||||
main {
|
||||
padding: 42px 46px;
|
||||
flex: 1;
|
||||
max-width: 1550px;
|
||||
width: 100%;
|
||||
}
|
||||
.page-heading {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.eyebrow {
|
||||
letter-spacing: 2px;
|
||||
font-size: 10px;
|
||||
font-weight: 750;
|
||||
color: var(--green);
|
||||
margin: 0 0 12px;
|
||||
}
|
||||
h1 {
|
||||
font-size: 30px;
|
||||
letter-spacing: -1px;
|
||||
margin: 0 0 12px;
|
||||
font-weight: 730;
|
||||
}
|
||||
h2 {
|
||||
font-size: 15px;
|
||||
margin: 0;
|
||||
}
|
||||
h3 {
|
||||
font-size: 19px;
|
||||
margin: 12px 0;
|
||||
}
|
||||
p {
|
||||
line-height: 1.65;
|
||||
}
|
||||
.muted {
|
||||
font-size: 13px;
|
||||
color: var(--muted);
|
||||
margin: 0;
|
||||
}
|
||||
.button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
padding: 12px 18px;
|
||||
border-radius: 7px;
|
||||
background: var(--green);
|
||||
color: #fff;
|
||||
border: 1px solid var(--green);
|
||||
font-size: 12px;
|
||||
font-weight: 650;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.button:hover {
|
||||
background: #105542;
|
||||
text-decoration: none;
|
||||
}
|
||||
.secondary {
|
||||
background: white;
|
||||
color: var(--green);
|
||||
border-color: var(--line);
|
||||
}
|
||||
.secondary:hover {
|
||||
background: var(--light);
|
||||
}
|
||||
.danger {
|
||||
background: var(--danger);
|
||||
border-color: var(--danger);
|
||||
}
|
||||
.stats {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 18px;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
.stat {
|
||||
padding: 22px 24px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
}
|
||||
.stat > span {
|
||||
font-size: 12px;
|
||||
color: var(--muted);
|
||||
}
|
||||
.stat strong {
|
||||
display: block;
|
||||
font-size: 33px;
|
||||
letter-spacing: -1px;
|
||||
margin: 10px 0;
|
||||
}
|
||||
.stat small {
|
||||
font-size: 11px;
|
||||
color: #84958c;
|
||||
}
|
||||
.privacy {
|
||||
background: #eaf2ec;
|
||||
border-color: #d7e7dc;
|
||||
}
|
||||
.privacy strong {
|
||||
font-size: 29px;
|
||||
color: var(--green);
|
||||
}
|
||||
.panel {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
overflow: hidden;
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
.panel-heading {
|
||||
padding: 22px 24px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
.table-wrap {
|
||||
/* Keep absolute screen-reader labels inside the horizontally scrolling table. */
|
||||
position: relative;
|
||||
overflow-x: auto;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
text-align: left;
|
||||
font-size: 12px;
|
||||
}
|
||||
th {
|
||||
padding: 14px 22px;
|
||||
background: #fafcf9;
|
||||
color: #7c8f84;
|
||||
font-size: 10px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
font-weight: 650;
|
||||
}
|
||||
td {
|
||||
padding: 20px 22px;
|
||||
border-top: 1px solid #eef2ed;
|
||||
}
|
||||
td.quantity {
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
color: var(--green);
|
||||
}
|
||||
.actions {
|
||||
white-space: nowrap;
|
||||
font-size: 11px;
|
||||
}
|
||||
.actions a + a {
|
||||
margin-left: 14px;
|
||||
}
|
||||
.danger-link,
|
||||
.warning {
|
||||
color: var(--danger);
|
||||
}
|
||||
.empty {
|
||||
max-width: 480px;
|
||||
margin: auto;
|
||||
text-align: center;
|
||||
padding: 60px 28px;
|
||||
}
|
||||
.empty p {
|
||||
font-size: 13px;
|
||||
color: var(--muted);
|
||||
margin: 12px 0 24px;
|
||||
}
|
||||
.empty-icon {
|
||||
font-size: 50px;
|
||||
color: #9fbdac;
|
||||
}
|
||||
.hint {
|
||||
font-size: 11px;
|
||||
color: var(--muted);
|
||||
}
|
||||
footer {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
font-size: 10px;
|
||||
color: #93a096;
|
||||
border-top: 1px solid var(--line);
|
||||
padding: 22px 46px;
|
||||
}
|
||||
.form-panel {
|
||||
padding: 28px;
|
||||
max-width: 850px;
|
||||
}
|
||||
.form-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 18px;
|
||||
}
|
||||
.field {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.form-grid .field {
|
||||
margin: 0;
|
||||
}
|
||||
.field label {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
font-weight: 650;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.field input,
|
||||
.field select {
|
||||
width: 100%;
|
||||
padding: 11px 12px;
|
||||
border: 1px solid #cddbd2;
|
||||
border-radius: 6px;
|
||||
background: #fff;
|
||||
color: var(--ink);
|
||||
min-height: 42px;
|
||||
}
|
||||
.field input:disabled {
|
||||
background: var(--paper);
|
||||
}
|
||||
.field small,
|
||||
.helptext {
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.form-actions {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
border-top: 1px solid var(--line);
|
||||
padding-top: 22px;
|
||||
margin-top: 22px;
|
||||
}
|
||||
.back-link {
|
||||
display: inline-block;
|
||||
font-size: 12px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.errorlist {
|
||||
font-size: 12px;
|
||||
color: var(--danger);
|
||||
padding-left: 18px;
|
||||
}
|
||||
.message {
|
||||
padding: 14px 18px;
|
||||
background: #e1f0e6;
|
||||
color: #24613f;
|
||||
font-size: 13px;
|
||||
border-radius: 7px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.login-card {
|
||||
max-width: 430px;
|
||||
padding: 36px;
|
||||
background: white;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 12px;
|
||||
margin: 30px auto;
|
||||
}
|
||||
.login-card h1 {
|
||||
font-size: 27px;
|
||||
}
|
||||
.login-card form {
|
||||
margin-top: 28px;
|
||||
}
|
||||
.full {
|
||||
width: 100%;
|
||||
}
|
||||
.sr-only,
|
||||
.skip:not(:focus) {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
}
|
||||
.skip:focus {
|
||||
position: absolute;
|
||||
z-index: 9;
|
||||
background: #fff;
|
||||
padding: 15px;
|
||||
}
|
||||
.split {
|
||||
display: grid;
|
||||
grid-template-columns: 1.5fr 1fr;
|
||||
gap: 22px;
|
||||
}
|
||||
.people {
|
||||
display: flex;
|
||||
gap: 7px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.person {
|
||||
background: var(--paper);
|
||||
border-radius: 4px;
|
||||
padding: 5px 8px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.cards {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
||||
gap: 18px;
|
||||
}
|
||||
.printer-card {
|
||||
padding: 24px;
|
||||
}
|
||||
.printer-card h2 {
|
||||
font-size: 20px;
|
||||
margin: 10px 0;
|
||||
}
|
||||
.printer-card .actions {
|
||||
margin-top: 22px;
|
||||
}
|
||||
.notice {
|
||||
padding: 20px 24px;
|
||||
background: var(--light);
|
||||
border-radius: 8px;
|
||||
font-size: 12px;
|
||||
color: var(--green);
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
@media (min-width: 1800px) {
|
||||
main {
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
@media (max-width: 1100px) {
|
||||
.sidebar {
|
||||
width: 210px;
|
||||
padding: 28px 16px;
|
||||
}
|
||||
main {
|
||||
padding: 30px 24px;
|
||||
}
|
||||
.topbar,
|
||||
footer {
|
||||
padding-left: 24px;
|
||||
padding-right: 24px;
|
||||
}
|
||||
.page-heading {
|
||||
align-items: flex-start;
|
||||
}
|
||||
.page-heading > .button {
|
||||
margin-top: 24px;
|
||||
}
|
||||
td,
|
||||
th {
|
||||
padding-left: 15px;
|
||||
padding-right: 15px;
|
||||
}
|
||||
.stat {
|
||||
padding: 20px;
|
||||
}
|
||||
.stats {
|
||||
gap: 12px;
|
||||
}
|
||||
}
|
||||
@media (max-width: 760px) {
|
||||
.shell {
|
||||
display: block;
|
||||
}
|
||||
.sidebar {
|
||||
width: 100%;
|
||||
padding: 18px 20px;
|
||||
border-right: 0;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
.brand {
|
||||
font-size: 23px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
.brand-icon {
|
||||
font-size: 32px;
|
||||
}
|
||||
.brand-small {
|
||||
font-size: 8px;
|
||||
}
|
||||
.sidebar > .nav-label,
|
||||
nav .nav-label {
|
||||
display: none;
|
||||
}
|
||||
nav {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px;
|
||||
}
|
||||
nav > a {
|
||||
padding: 10px;
|
||||
font-size: 11px;
|
||||
gap: 5px;
|
||||
}
|
||||
.sidebar-bottom {
|
||||
padding: 14px 0 0;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.profile-link small {
|
||||
display: none;
|
||||
}
|
||||
.avatar {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
}
|
||||
.logout {
|
||||
padding: 0;
|
||||
}
|
||||
.topbar {
|
||||
height: 48px;
|
||||
padding: 0 20px;
|
||||
}
|
||||
main {
|
||||
padding: 28px 18px;
|
||||
}
|
||||
.page-heading {
|
||||
display: block;
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
.page-heading > .button {
|
||||
margin-top: 16px;
|
||||
}
|
||||
h1 {
|
||||
font-size: 26px;
|
||||
}
|
||||
.stats {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 10px;
|
||||
}
|
||||
.privacy {
|
||||
grid-column: 1/-1;
|
||||
}
|
||||
.privacy > span {
|
||||
display: block;
|
||||
}
|
||||
.privacy strong {
|
||||
font-size: 22px;
|
||||
display: block;
|
||||
margin: 7px 0;
|
||||
}
|
||||
.privacy small {
|
||||
display: block;
|
||||
}
|
||||
.stat {
|
||||
padding: 17px;
|
||||
}
|
||||
.stat strong {
|
||||
font-size: 28px;
|
||||
}
|
||||
.panel-heading {
|
||||
padding: 18px;
|
||||
}
|
||||
.form-grid,
|
||||
.split {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.form-panel {
|
||||
padding: 22px;
|
||||
}
|
||||
.form-actions {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.login-card {
|
||||
padding: 26px;
|
||||
margin: 12px auto;
|
||||
}
|
||||
.empty {
|
||||
padding: 40px 20px;
|
||||
}
|
||||
footer {
|
||||
padding: 18px;
|
||||
display: block;
|
||||
}
|
||||
footer span {
|
||||
display: block;
|
||||
margin-top: 6px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
const form = document.querySelector("[data-catalog-form]");
|
||||
if (form) {
|
||||
const selects = [...form.querySelectorAll("select")];
|
||||
selects.forEach((select, index) => {
|
||||
select.addEventListener("change", () => {
|
||||
selects.slice(index + 1).forEach((next) => {
|
||||
next.value = "";
|
||||
});
|
||||
form.requestSubmit(form.querySelector("[data-filter-button]"));
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user