Adds a self-service editor at admin.larpaso.de so texts, images, links, Impressum/Datenschutz, fonts, font sizes and colors can be changed without a developer. All homepage/legal content moves into content/site.json and a new content/theme.json drives every CSS color/font/size token; the Astro pages read from these at build time. The admin/ service (Node/Express) provides bcrypt+session login with rate limiting, a schema-driven form UI (including a hex/RGB/alpha color picker), image upload, and a publish action that runs the Astro build and republishes into a volume shared with the nginx website container - so edits go live without redeploying that container. See DEPLOYMENT_ADMIN.md for the server-side setup steps.
215 lines
6 KiB
CSS
215 lines
6 KiB
CSS
:root {
|
|
color-scheme: dark;
|
|
--bg: #14110f;
|
|
--surface: #1f1a16;
|
|
--surface-2: #241e19;
|
|
--border: #3a332c;
|
|
--text: #f2ede4;
|
|
--text-muted: #a89a86;
|
|
--accent: #c9a876;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
}
|
|
|
|
.topbar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
padding: 0.9rem 1.5rem;
|
|
background: var(--surface);
|
|
border-bottom: 1px solid var(--border);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.topbar h1 { font-size: 1.05rem; margin: 0; }
|
|
|
|
.topbar-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
|
|
|
|
.status { font-size: 0.8rem; color: var(--text-muted); min-width: 6rem; }
|
|
.status.error { color: #f2b8b8; }
|
|
.status.ok { color: #b8d9a8; }
|
|
|
|
button {
|
|
font: inherit;
|
|
cursor: pointer;
|
|
border-radius: 6px;
|
|
border: 1px solid var(--border);
|
|
background: var(--surface-2);
|
|
color: var(--text);
|
|
padding: 0.5rem 0.9rem;
|
|
}
|
|
|
|
button:hover { border-color: var(--accent); }
|
|
button:disabled { opacity: 0.5; cursor: not-allowed; }
|
|
|
|
.btn-accent { background: var(--accent); color: #14110f; border-color: var(--accent); font-weight: 600; }
|
|
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
|
|
|
|
.section-nav {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.4rem;
|
|
padding: 1rem 1.5rem 0;
|
|
}
|
|
|
|
.section-nav a {
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
text-decoration: none;
|
|
padding: 0.3rem 0.6rem;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.section-nav a:hover { color: var(--accent); border-color: var(--accent); }
|
|
|
|
main { max-width: 860px; margin: 0 auto; padding: 1.5rem; }
|
|
|
|
.section-block {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
padding: 1.25rem 1.5rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.section-block h2 { font-size: 1rem; margin: 0 0 1rem; color: var(--accent); }
|
|
|
|
.field { margin-bottom: 1rem; }
|
|
|
|
.field label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.3rem; }
|
|
|
|
.field input[type="text"],
|
|
.field input[type="email"],
|
|
.field textarea {
|
|
width: 100%;
|
|
padding: 0.55rem 0.7rem;
|
|
border-radius: 6px;
|
|
border: 1px solid var(--border);
|
|
background: var(--surface-2);
|
|
color: var(--text);
|
|
font-family: inherit;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.field textarea { resize: vertical; min-height: 4.5rem; }
|
|
|
|
.field-hint { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.25rem; }
|
|
|
|
.field-bool { display: flex; align-items: center; gap: 0.5rem; }
|
|
.field-bool input { width: auto; }
|
|
.field-bool label { margin: 0; }
|
|
|
|
.field select {
|
|
width: 100%;
|
|
padding: 0.55rem 0.7rem;
|
|
border-radius: 6px;
|
|
border: 1px solid var(--border);
|
|
background: var(--surface-2);
|
|
color: var(--text);
|
|
font-family: inherit;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.size-field { display: flex; align-items: center; gap: 0.75rem; }
|
|
.size-field input[type="range"] { flex: 1; }
|
|
.size-value { font-size: 0.8rem; color: var(--text-muted); min-width: 3.5rem; text-align: right; }
|
|
|
|
.group-field {
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 0.9rem 1rem 0.2rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
.group-field legend { font-size: 0.8rem; color: var(--accent); padding: 0 0.4rem; }
|
|
|
|
.color-field { display: flex; align-items: flex-start; gap: 0.9rem; flex-wrap: wrap; }
|
|
.color-swatch {
|
|
width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0;
|
|
border: 1px solid var(--border);
|
|
background-image: linear-gradient(45deg, #444 25%, transparent 25%), linear-gradient(-45deg, #444 25%, transparent 25%),
|
|
linear-gradient(45deg, transparent 75%, #444 75%), linear-gradient(-45deg, transparent 75%, #444 75%);
|
|
background-size: 12px 12px;
|
|
background-position: 0 0, 0 6px, 6px -6px, -6px 0;
|
|
}
|
|
.color-field-controls { display: flex; flex-direction: column; gap: 0.5rem; min-width: 220px; flex: 1; }
|
|
.color-field-row { display: flex; gap: 0.5rem; align-items: center; }
|
|
.color-field-row input[type="color"] { width: 2.5rem; height: 2.2rem; padding: 0; border: 1px solid var(--border); border-radius: 6px; background: none; }
|
|
.color-hex { width: 8rem; font-family: monospace; }
|
|
.color-channels { display: grid; grid-template-columns: 1rem 1fr 2.4rem; gap: 0.35rem 0.5rem; align-items: center; }
|
|
.channel-label { font-size: 0.72rem; color: var(--text-muted); }
|
|
.channel-value { font-size: 0.75rem; color: var(--text-muted); text-align: right; }
|
|
|
|
.image-field { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
|
|
.image-preview {
|
|
width: 84px; height: 84px; border-radius: 8px; object-fit: cover;
|
|
background: var(--surface-2); border: 1px dashed var(--border);
|
|
}
|
|
.image-field-controls { display: flex; flex-direction: column; gap: 0.4rem; }
|
|
.image-field-controls input[type="text"] { width: 220px; }
|
|
|
|
.list-item-card {
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 0.9rem 1rem;
|
|
margin-bottom: 0.75rem;
|
|
background: var(--surface-2);
|
|
}
|
|
|
|
.list-item-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 0.6rem;
|
|
}
|
|
|
|
.list-item-card-header span { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
|
|
|
|
.list-string-row { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
|
|
.list-string-row input { flex: 1; }
|
|
|
|
.remove-btn { background: transparent; border-color: transparent; color: #d99; padding: 0.3rem 0.5rem; }
|
|
.add-btn { font-size: 0.8rem; }
|
|
|
|
.build-log {
|
|
position: fixed;
|
|
inset: auto 1.5rem 1.5rem auto;
|
|
width: min(560px, 90vw);
|
|
max-height: 60vh;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.build-log-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.6rem 1rem;
|
|
border-bottom: 1px solid var(--border);
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.build-log pre {
|
|
margin: 0;
|
|
padding: 1rem;
|
|
overflow: auto;
|
|
font-size: 0.75rem;
|
|
white-space: pre-wrap;
|
|
}
|