Files
Random-Christmas-Bot/webapp/static/style.css
T
jeanGaston 5393feefc5 Add web GUI and Docker deployment for managing the Secret Santa draw
- webapp/: FastAPI dashboard to add/remove participants and exclusions,
  view draw history, and trigger the draw (reuses main.run_draw()).
  Optional HTTP basic auth via WEBAPP_USERNAME/WEBAPP_PASSWORD.
- file_io.py: add add/remove_participant, add/remove_exclusion, load_year
  helpers backing the web GUI's CRUD actions.
- Dockerfile + docker-compose.yml: containerize the web GUI, with CSV_PATH
  bind-mounted to a host folder so participant data persists outside the
  container. Verified with a local docker compose build/up smoke test.
- README: document the web GUI, Docker usage, and the exclusions CSV file
  (existing feature that wasn't documented yet).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-20 14:36:02 +02:00

116 lines
2.2 KiB
CSS

:root {
--bg: #fbfaf7;
--fg: #1f2421;
--card-bg: #ffffff;
--border: #e0ddd4;
--accent: #1a6b3c;
--accent-fg: #ffffff;
--danger: #a3242a;
--hint: #6b6558;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #14171a;
--fg: #eae7e0;
--card-bg: #1d2124;
--border: #33383d;
--accent: #2e9c5c;
--accent-fg: #0c130f;
--danger: #e0666c;
--hint: #9aa0a6;
}
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
background: var(--bg);
color: var(--fg);
line-height: 1.5;
}
header {
padding: 1rem 1.5rem;
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
gap: 1.5rem;
flex-wrap: wrap;
}
header h1 { margin: 0; font-size: 1.3rem; }
nav a {
color: var(--accent);
text-decoration: none;
margin-right: 1rem;
font-weight: 600;
}
nav a:hover { text-decoration: underline; }
main {
max-width: 900px;
margin: 0 auto;
padding: 1.5rem;
}
.card {
background: var(--card-bg);
border: 1px solid var(--border);
border-radius: 10px;
padding: 1.25rem 1.5rem;
margin-bottom: 1.5rem;
}
.card h2 { margin-top: 0; }
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 1rem;
overflow-x: auto;
display: block;
}
th, td {
text-align: left;
padding: 0.4rem 0.6rem;
border-bottom: 1px solid var(--border);
white-space: nowrap;
}
.hint, .count { color: var(--hint); font-size: 0.9rem; }
.error { color: var(--danger); font-weight: 600; }
.inline-form {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
align-items: center;
margin-top: 0.5rem;
}
input[type=text], input[type=email] {
padding: 0.4rem 0.6rem;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--bg);
color: var(--fg);
}
button {
padding: 0.4rem 0.9rem;
border: none;
border-radius: 6px;
background: var(--accent);
color: var(--accent-fg);
cursor: pointer;
font-weight: 600;
}
button:hover { opacity: 0.9; }
button.danger { background: var(--danger); }