First product
This commit is contained in:
parent
778da9e2fc
commit
4433d7d2c4
157 changed files with 23975 additions and 0 deletions
501
app/static/app.css
Normal file
501
app/static/app.css
Normal file
|
|
@ -0,0 +1,501 @@
|
|||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
color: var(--md-sys-color-on-surface);
|
||||
font-family: var(--font-body);
|
||||
background:
|
||||
radial-gradient(circle at 10% 5%, var(--md-sys-color-primary-container) 0%, transparent 30%),
|
||||
radial-gradient(circle at 90% 0%, var(--md-sys-color-secondary-container) 0%, transparent 28%),
|
||||
var(--md-sys-color-surface);
|
||||
}
|
||||
|
||||
.loading-indicator {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 3px;
|
||||
z-index: 40;
|
||||
transform: scaleX(0);
|
||||
transform-origin: left;
|
||||
background: linear-gradient(90deg, var(--md-sys-color-primary), var(--md-sys-color-tertiary));
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
body.is-page-loading .loading-indicator {
|
||||
opacity: 1;
|
||||
animation: loading-bar 1.2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.app-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
background:
|
||||
linear-gradient(130deg, var(--md-sys-color-primary-tint), transparent 40%),
|
||||
linear-gradient(230deg, var(--md-sys-color-surface-tint), transparent 45%);
|
||||
opacity: 0.28;
|
||||
}
|
||||
|
||||
.top-app-bar {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 10;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.8rem;
|
||||
flex-wrap: wrap;
|
||||
padding: 0.8rem 1.1rem;
|
||||
border-bottom: 1px solid var(--md-sys-color-outline-variant);
|
||||
backdrop-filter: blur(9px);
|
||||
background: color-mix(in srgb, var(--md-sys-color-surface) 88%, white 12%);
|
||||
}
|
||||
|
||||
.brand-wrap {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.65rem;
|
||||
}
|
||||
|
||||
.brand {
|
||||
color: var(--md-sys-color-primary);
|
||||
text-decoration: none;
|
||||
font-family: var(--font-heading);
|
||||
font-weight: 700;
|
||||
font-size: 1.2rem;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
.session-user {
|
||||
margin: 0;
|
||||
padding: 0.24rem 0.58rem;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--md-sys-color-outline-variant);
|
||||
background: var(--md-sys-color-surface-container-high);
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
|
||||
.site-nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.35rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
text-decoration: none;
|
||||
padding: 0.42rem 0.78rem;
|
||||
border-radius: 999px;
|
||||
border: 1px solid transparent;
|
||||
font-size: 0.92rem;
|
||||
}
|
||||
|
||||
.nav-link:hover {
|
||||
background: var(--md-sys-color-surface-container);
|
||||
border-color: var(--md-sys-color-outline-variant);
|
||||
}
|
||||
|
||||
.nav-link.is-active {
|
||||
color: var(--md-sys-color-on-secondary-container);
|
||||
background: var(--md-sys-color-secondary-container);
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
.header-actions {
|
||||
margin-left: auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.7rem;
|
||||
}
|
||||
|
||||
.theme-control-wrap {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.45rem;
|
||||
}
|
||||
|
||||
.theme-control-wrap label {
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
font-size: 0.82rem;
|
||||
}
|
||||
|
||||
.theme-control {
|
||||
border: 1px solid var(--md-sys-color-outline);
|
||||
border-radius: 999px;
|
||||
background: var(--md-sys-color-surface-container-low);
|
||||
color: var(--md-sys-color-on-surface);
|
||||
padding: 0.32rem 0.64rem;
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
.logout-form {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.page-shell {
|
||||
position: relative;
|
||||
display: grid;
|
||||
gap: 0.9rem;
|
||||
width: min(1100px, calc(100vw - 1.4rem));
|
||||
margin: 0 auto;
|
||||
padding: 1.1rem 0 1.6rem;
|
||||
}
|
||||
|
||||
.flash {
|
||||
margin: 0;
|
||||
padding: 0.72rem 0.82rem;
|
||||
border-radius: 14px;
|
||||
border: 1px solid var(--md-sys-color-outline-variant);
|
||||
background: var(--md-sys-color-surface-container);
|
||||
}
|
||||
|
||||
.flash-notice {
|
||||
color: var(--md-sys-color-on-tertiary-container);
|
||||
border-color: var(--md-sys-color-tertiary-container);
|
||||
background: color-mix(in srgb, var(--md-sys-color-tertiary-container) 30%, white 70%);
|
||||
}
|
||||
|
||||
.flash-error {
|
||||
color: var(--md-sys-color-on-error-container);
|
||||
border-color: var(--md-sys-color-error-container);
|
||||
background: color-mix(in srgb, var(--md-sys-color-error-container) 25%, white 75%);
|
||||
}
|
||||
|
||||
.hero,
|
||||
.sandbox {
|
||||
border-radius: 24px;
|
||||
border: 1px solid var(--md-sys-color-outline-variant);
|
||||
background: var(--md-sys-color-surface-container-low);
|
||||
box-shadow: var(--elevation-card);
|
||||
}
|
||||
|
||||
.hero {
|
||||
padding: 1.3rem;
|
||||
}
|
||||
|
||||
.sandbox {
|
||||
padding: 1.05rem;
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
margin: 0;
|
||||
font-size: 0.78rem;
|
||||
color: var(--md-sys-color-primary);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.11em;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0.28rem 0 0.5rem;
|
||||
color: var(--md-sys-color-on-surface);
|
||||
font-family: var(--font-heading);
|
||||
font-size: clamp(1.45rem, 3vw, 2.05rem);
|
||||
line-height: 1.15;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin: 0;
|
||||
color: var(--md-sys-color-on-surface);
|
||||
font-family: var(--font-heading);
|
||||
font-size: 1.08rem;
|
||||
}
|
||||
|
||||
.lede {
|
||||
margin: 0;
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
max-width: 68ch;
|
||||
}
|
||||
|
||||
.section-heading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.55rem;
|
||||
margin-bottom: 0.7rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.stat-strip {
|
||||
margin-top: 0.95rem;
|
||||
display: grid;
|
||||
gap: 0.75rem;
|
||||
grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
|
||||
}
|
||||
|
||||
.stat-item {
|
||||
margin: 0;
|
||||
padding: 0.72rem 0.78rem;
|
||||
border-radius: 16px;
|
||||
border: 1px solid var(--md-sys-color-outline-variant);
|
||||
background: var(--md-sys-color-surface-container);
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
margin: 0;
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
margin: 0.2rem 0 0;
|
||||
color: var(--md-sys-color-on-surface);
|
||||
font-size: 1.36rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
form {
|
||||
display: grid;
|
||||
gap: 0.45rem;
|
||||
}
|
||||
|
||||
.stack-form {
|
||||
max-width: 560px;
|
||||
}
|
||||
|
||||
label {
|
||||
font-size: 0.9rem;
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
}
|
||||
|
||||
input,
|
||||
select {
|
||||
width: 100%;
|
||||
border: 1px solid var(--md-sys-color-outline);
|
||||
border-radius: 12px;
|
||||
padding: 0.56rem 0.64rem;
|
||||
font: inherit;
|
||||
color: var(--md-sys-color-on-surface);
|
||||
background: var(--md-sys-color-surface);
|
||||
}
|
||||
|
||||
input:focus,
|
||||
select:focus {
|
||||
outline: 2px solid color-mix(in srgb, var(--md-sys-color-primary) 35%, transparent);
|
||||
border-color: var(--md-sys-color-primary);
|
||||
}
|
||||
|
||||
.checkbox-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.54rem;
|
||||
}
|
||||
|
||||
.checkbox-row input {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
button,
|
||||
.button {
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
padding: 0.54rem 0.86rem;
|
||||
font: inherit;
|
||||
font-weight: 600;
|
||||
color: var(--md-sys-color-on-primary);
|
||||
background: var(--md-sys-color-primary);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
button:hover,
|
||||
.button:hover {
|
||||
filter: brightness(0.97);
|
||||
}
|
||||
|
||||
button:disabled,
|
||||
.button:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.button-text {
|
||||
color: var(--md-sys-color-primary);
|
||||
background: transparent;
|
||||
border: 1px solid var(--md-sys-color-outline-variant);
|
||||
}
|
||||
|
||||
.danger-button {
|
||||
color: var(--md-sys-color-on-error);
|
||||
background: var(--md-sys-color-error);
|
||||
}
|
||||
|
||||
.inline-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.45rem;
|
||||
}
|
||||
|
||||
.inline-actions form {
|
||||
display: inline-flex;
|
||||
gap: 0.42rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.inline-reset-form input {
|
||||
min-width: 160px;
|
||||
}
|
||||
|
||||
form.is-loading button[type="submit"],
|
||||
form.is-loading input[type="submit"] {
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
background: var(--md-sys-color-surface);
|
||||
}
|
||||
|
||||
th,
|
||||
td {
|
||||
padding: 0.54rem;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid var(--md-sys-color-outline-variant);
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
thead th {
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
font-size: 0.84rem;
|
||||
font-weight: 600;
|
||||
background: var(--md-sys-color-surface-container-high);
|
||||
}
|
||||
|
||||
tbody tr:last-child td {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--md-sys-color-primary);
|
||||
}
|
||||
|
||||
.link-button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 0.45rem 0.78rem;
|
||||
border: 1px solid var(--md-sys-color-outline-variant);
|
||||
border-radius: 999px;
|
||||
color: var(--md-sys-color-primary);
|
||||
text-decoration: none;
|
||||
background: var(--md-sys-color-surface-container-low);
|
||||
}
|
||||
|
||||
.link-button.is-active {
|
||||
color: var(--md-sys-color-on-secondary-container);
|
||||
background: var(--md-sys-color-secondary-container);
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
.badge {
|
||||
display: inline-block;
|
||||
border-radius: 999px;
|
||||
padding: 0.16rem 0.48rem;
|
||||
font-size: 0.76rem;
|
||||
text-transform: lowercase;
|
||||
border: 1px solid var(--md-sys-color-outline-variant);
|
||||
}
|
||||
|
||||
.badge.ok {
|
||||
color: var(--md-sys-color-on-tertiary-container);
|
||||
background: var(--md-sys-color-tertiary-container);
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
.badge.warn,
|
||||
.badge.danger {
|
||||
color: var(--md-sys-color-on-error-container);
|
||||
background: var(--md-sys-color-error-container);
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
.helper-text {
|
||||
margin: 0.24rem 0 0;
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
font-size: 0.82rem;
|
||||
}
|
||||
|
||||
.auth-card {
|
||||
max-width: 520px;
|
||||
}
|
||||
|
||||
.auth-form {
|
||||
max-width: 360px;
|
||||
}
|
||||
|
||||
.form-error {
|
||||
margin: 0.5rem 0 0;
|
||||
color: var(--md-sys-color-error);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.form-note {
|
||||
margin: 0.35rem 0 0;
|
||||
color: var(--md-sys-color-on-surface-variant);
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: var(--font-code);
|
||||
background: var(--md-sys-color-surface-container-high);
|
||||
border-radius: 6px;
|
||||
padding: 0.1rem 0.25rem;
|
||||
}
|
||||
|
||||
pre {
|
||||
margin: 0.6rem 0 0;
|
||||
border-radius: 12px;
|
||||
border: 1px solid var(--md-sys-color-outline-variant);
|
||||
background: var(--md-sys-color-surface-container-high);
|
||||
color: var(--md-sys-color-on-surface);
|
||||
padding: 0.75rem;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
@media (max-width: 880px) {
|
||||
.top-app-bar {
|
||||
padding: 0.7rem 0.8rem;
|
||||
}
|
||||
|
||||
.header-actions {
|
||||
width: 100%;
|
||||
justify-content: space-between;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.page-shell {
|
||||
width: min(100vw, calc(100vw - 0.9rem));
|
||||
padding-top: 0.8rem;
|
||||
}
|
||||
|
||||
.hero,
|
||||
.sandbox {
|
||||
border-radius: 18px;
|
||||
padding: 0.9rem;
|
||||
}
|
||||
|
||||
.inline-actions form {
|
||||
width: 100%;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes loading-bar {
|
||||
0% {
|
||||
transform: scaleX(0.1);
|
||||
}
|
||||
50% {
|
||||
transform: scaleX(0.7);
|
||||
}
|
||||
100% {
|
||||
transform: scaleX(1);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue