Fix #13 add basic admin panel for now

This commit is contained in:
Devin Zuczek
2026-07-17 17:43:18 -04:00
parent b77389012e
commit 9065bf5e54
15 changed files with 901 additions and 238 deletions
+184 -43
View File
@@ -1,24 +1,28 @@
/* RecFlare brand: vivid orange (#FE7101) on warm cream (#FCEFDC), sampled from the logo. */
:root {
color-scheme: light dark;
--bg: #f5f6f8;
--bg: #fdf3e7;
--card: #ffffff;
--text: #1a1d21;
--muted: #6b7280;
--border: #e2e5ea;
--accent: #4f46e5;
--text: #33241a;
--muted: #8a7360;
--border: #efe0cc;
--accent: #fe7101;
--accent-hover: #e86400;
--accent-text: #ffffff;
--error: #dc2626;
--ok: #16a34a;
--ok: #15803d;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #0f1115;
--card: #191c22;
--text: #e6e8eb;
--muted: #9aa1ab;
--border: #2a2e37;
--accent: #6366f1;
--bg: #17120d;
--card: #221a12;
--text: #f4eadb;
--muted: #b49b84;
--border: #362a1e;
--accent: #ff8320;
--accent-hover: #ff9540;
--ok: #22c55e;
}
}
@@ -41,7 +45,113 @@ body {
.shell {
max-width: 460px;
margin: 0 auto;
padding: 48px 20px 64px;
padding: 32px 20px 64px;
}
/* Widened for the account tab layout and the homepage slideshow. */
.shell.wide {
max-width: 760px;
}
/* Top navigation, shown on every page. */
.nav {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 760px;
margin: 0 auto;
padding: 16px 20px;
border-bottom: 1px solid var(--border);
}
.brand {
font-weight: 700;
font-size: 1.15rem;
color: var(--accent);
text-decoration: none;
letter-spacing: -0.01em;
}
.nav-links {
display: flex;
align-items: center;
gap: 16px;
}
.nav-links a {
color: var(--muted);
text-decoration: none;
font-size: 0.9rem;
}
.nav-links a:hover,
.nav-links a.active {
color: var(--text);
}
.linkish {
background: none;
border: none;
padding: 0;
color: var(--muted);
font-size: 0.9rem;
cursor: pointer;
}
.linkish:hover {
color: var(--text);
}
/* Homepage slideshow. */
.slide-stage {
position: relative;
aspect-ratio: 16 / 9;
background: var(--card);
border: 1px solid var(--border);
border-radius: 12px;
overflow: hidden;
}
.slide-stage img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.slide-nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 40px;
height: 40px;
border: none;
border-radius: 50%;
background: rgba(0, 0, 0, 0.45);
color: #fff;
font-size: 1.6rem;
line-height: 1;
cursor: pointer;
}
.slide-nav:hover {
background: rgba(0, 0, 0, 0.65);
}
.slide-nav.prev {
left: 12px;
}
.slide-nav.next {
right: 12px;
}
.slide-meta {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 12px;
margin-top: 14px;
}
h1 {
@@ -62,28 +172,64 @@ h2 {
margin-bottom: 16px;
}
.tabs {
display: flex;
gap: 8px;
margin-bottom: 16px;
/* Signed-in layout: a vertical tab rail on the left, the active section on the right. */
.workspace {
display: grid;
grid-template-columns: 190px 1fr;
gap: 16px;
align-items: start;
}
.tabs button {
flex: 1;
.vtabs {
display: flex;
flex-direction: column;
gap: 4px;
}
.vtabs button {
text-align: left;
background: transparent;
border: 1px solid var(--border);
border: 1px solid transparent;
color: var(--muted);
padding: 8px;
padding: 9px 12px;
border-radius: 8px;
cursor: pointer;
font-size: 0.9rem;
}
.tabs button.active {
border-color: var(--accent);
.vtabs button:hover {
color: var(--text);
background: var(--card);
}
.vtabs button.active {
background: var(--card);
border-color: var(--border);
color: var(--text);
font-weight: 600;
}
/* The active section's card already carries its own margin; drop it inside the panel. */
.panel .card {
margin-bottom: 0;
}
/* Stack the rail above the panel on narrow screens. */
@media (max-width: 620px) {
.workspace {
grid-template-columns: 1fr;
}
.vtabs {
flex-direction: row;
flex-wrap: wrap;
}
.vtabs button {
border-color: var(--border);
}
}
label {
display: block;
margin-bottom: 12px;
@@ -91,7 +237,8 @@ label {
color: var(--muted);
}
input {
input,
textarea {
display: block;
width: 100%;
margin-top: 4px;
@@ -101,48 +248,42 @@ input {
background: var(--bg);
color: var(--text);
font-size: 0.95rem;
font-family: inherit;
}
input:focus {
textarea {
resize: vertical;
min-height: 76px;
}
input:focus,
textarea:focus {
outline: 2px solid var(--accent);
outline-offset: 0;
border-color: transparent;
}
button[type='submit'],
.ghost {
button[type='submit'] {
border: none;
border-radius: 8px;
padding: 10px 16px;
font-size: 0.95rem;
cursor: pointer;
}
button[type='submit'] {
background: var(--accent);
color: var(--accent-text);
font-weight: 600;
width: 100%;
}
button[type='submit']:not(:disabled):hover {
background: var(--accent-hover);
}
button[type='submit']:disabled {
opacity: 0.6;
cursor: default;
}
.ghost {
background: transparent;
border: 1px solid var(--border);
color: var(--muted);
}
.row {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 12px;
}
.big {
font-size: 1.1rem;
font-weight: 600;