feat: add WannPassts booking app with Go backend and Vue frontend
Initial project setup for a privacy-focused, self-hosted scheduling app: - Go backend with JWT auth, SQLite storage, and chi router - Calendar integrations via Google OAuth (FreeBusy), CalDAV, and ICS links - Public booking pages with configurable slots and booking requests - AES-256-GCM encryption for stored provider tokens - Vue 3 + TypeScript frontend with Vite, Pinia, and Vue Router - Docs, .gitignore, and .env.example for local development
This commit is contained in:
commit
cb30223fd4
47 changed files with 6599 additions and 0 deletions
324
frontend/src/styles/main.css
Normal file
324
frontend/src/styles/main.css
Normal file
|
|
@ -0,0 +1,324 @@
|
|||
/* ─── WannPassts · Liquid Glass Dark ──────────────────────────────────────── */
|
||||
|
||||
:root {
|
||||
--bg-0: #05070c;
|
||||
--bg-1: #0a0e18;
|
||||
--text: #eef1f8;
|
||||
--text-muted: rgba(238, 241, 248, 0.58);
|
||||
--text-faint: rgba(238, 241, 248, 0.34);
|
||||
--border: rgba(255, 255, 255, 0.13);
|
||||
--border-soft: rgba(255, 255, 255, 0.08);
|
||||
--accent: #7db0ff;
|
||||
--accent-2: #b78cff;
|
||||
--accent-3: #6fe3c4;
|
||||
--danger: #ff7a8a;
|
||||
--ok: #46e0a5;
|
||||
--radius-lg: 24px;
|
||||
--radius-md: 16px;
|
||||
--radius-sm: 12px;
|
||||
--font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--font);
|
||||
color: var(--text);
|
||||
background:
|
||||
radial-gradient(1200px 800px at 85% -10%, rgba(125, 176, 255, 0.10), transparent 60%),
|
||||
radial-gradient(1000px 700px at -10% 30%, rgba(183, 140, 255, 0.09), transparent 55%),
|
||||
radial-gradient(900px 600px at 50% 110%, rgba(111, 227, 196, 0.06), transparent 60%),
|
||||
linear-gradient(180deg, var(--bg-1), var(--bg-0));
|
||||
background-attachment: fixed;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
#app { min-height: 100vh; }
|
||||
|
||||
/* Farbliche "Orbs" hinter allem – geben dem Glass etwas zum Brechen */
|
||||
.bg-scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
|
||||
.orb {
|
||||
position: absolute;
|
||||
border-radius: 50%;
|
||||
filter: blur(110px);
|
||||
opacity: 0.45;
|
||||
animation: orb-drift 26s ease-in-out infinite alternate;
|
||||
}
|
||||
.orb-1 { width: 46vw; height: 46vw; left: -10vw; top: -14vh; background: radial-gradient(circle, #2b5cc4, transparent 70%); }
|
||||
.orb-2 { width: 40vw; height: 40vw; right: -8vw; top: 22vh; background: radial-gradient(circle, #6d3fb8, transparent 70%); animation-delay: -8s; }
|
||||
.orb-3 { width: 34vw; height: 34vw; left: 28vw; bottom: -18vh; background: radial-gradient(circle, #1a7f68, transparent 70%); animation-delay: -16s; }
|
||||
|
||||
@keyframes orb-drift {
|
||||
from { transform: translate3d(0, 0, 0) scale(1); }
|
||||
to { transform: translate3d(6vw, 5vh, 0) scale(1.12); }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.orb { animation: none; }
|
||||
* { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
|
||||
}
|
||||
|
||||
/* ─── Glass-Bausteine ─────────────────────────────────────────────────────── */
|
||||
|
||||
.glass {
|
||||
background: linear-gradient(150deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.028));
|
||||
backdrop-filter: blur(26px) saturate(170%);
|
||||
-webkit-backdrop-filter: blur(26px) saturate(170%);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.10);
|
||||
}
|
||||
|
||||
.glass-soft {
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: var(--radius-md);
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
}
|
||||
|
||||
/* ─── Layout ──────────────────────────────────────────────────────────────── */
|
||||
|
||||
.page {
|
||||
max-width: 1060px;
|
||||
margin: 0 auto;
|
||||
padding: 24px 20px 80px;
|
||||
}
|
||||
|
||||
.row { display: flex; gap: 12px; align-items: center; }
|
||||
.col { display: flex; flex-direction: column; gap: 12px; }
|
||||
.grow { flex: 1; }
|
||||
.muted { color: var(--text-muted); }
|
||||
.faint { color: var(--text-faint); }
|
||||
.small { font-size: 13px; }
|
||||
|
||||
/* ─── Buttons ─────────────────────────────────────────────────────────────── */
|
||||
|
||||
.btn {
|
||||
appearance: none;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 999px;
|
||||
background: linear-gradient(150deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
|
||||
color: var(--text);
|
||||
font: 600 14px/1 var(--font);
|
||||
padding: 11px 20px;
|
||||
cursor: pointer;
|
||||
backdrop-filter: blur(14px);
|
||||
-webkit-backdrop-filter: blur(14px);
|
||||
transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
|
||||
}
|
||||
.btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.24); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
|
||||
.btn:active { transform: translateY(0); }
|
||||
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
|
||||
|
||||
.btn-primary {
|
||||
background: linear-gradient(135deg, var(--accent), var(--accent-2));
|
||||
border: none;
|
||||
color: #071018;
|
||||
box-shadow: 0 10px 34px rgba(125, 176, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
|
||||
}
|
||||
.btn-primary:hover { box-shadow: 0 14px 40px rgba(125, 176, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
|
||||
|
||||
.btn-danger {
|
||||
border-color: rgba(255, 122, 138, 0.4);
|
||||
color: var(--danger);
|
||||
background: rgba(255, 122, 138, 0.08);
|
||||
}
|
||||
.btn-danger:hover { border-color: rgba(255, 122, 138, 0.7); box-shadow: 0 8px 24px rgba(255, 122, 138, 0.18); }
|
||||
|
||||
.btn-sm { padding: 8px 14px; font-size: 13px; }
|
||||
|
||||
/* ─── Formulare ───────────────────────────────────────────────────────────── */
|
||||
|
||||
label.field { display: flex; flex-direction: column; gap: 7px; }
|
||||
label.field > span { font-size: 13px; color: var(--text-muted); font-weight: 500; }
|
||||
|
||||
.input, select.input, textarea.input {
|
||||
width: 100%;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--text);
|
||||
font: 500 14px/1.4 var(--font);
|
||||
padding: 11px 14px;
|
||||
outline: none;
|
||||
transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
|
||||
}
|
||||
.input:focus {
|
||||
border-color: rgba(125, 176, 255, 0.65);
|
||||
box-shadow: 0 0 0 3px rgba(125, 176, 255, 0.18);
|
||||
background: rgba(255, 255, 255, 0.07);
|
||||
}
|
||||
.input::placeholder { color: var(--text-faint); }
|
||||
select.input option { background: #10141f; color: var(--text); }
|
||||
textarea.input { resize: vertical; min-height: 84px; }
|
||||
|
||||
/* ─── Badges & Chips ──────────────────────────────────────────────────────── */
|
||||
|
||||
.badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
padding: 4px 11px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--border);
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
color: var(--text-muted);
|
||||
}
|
||||
.badge-pending { border-color: rgba(125, 176, 255, 0.45); color: var(--accent); background: rgba(125, 176, 255, 0.10); }
|
||||
.badge-accepted { border-color: rgba(70, 224, 165, 0.45); color: var(--ok); background: rgba(70, 224, 165, 0.10); }
|
||||
.badge-declined { border-color: rgba(255, 122, 138, 0.4); color: var(--danger); background: rgba(255, 122, 138, 0.08); }
|
||||
|
||||
/* ─── Tabs ────────────────────────────────────────────────────────────────── */
|
||||
|
||||
.tabs {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
padding: 6px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--border-soft);
|
||||
background: rgba(255, 255, 255, 0.035);
|
||||
backdrop-filter: blur(18px);
|
||||
-webkit-backdrop-filter: blur(18px);
|
||||
overflow-x: auto;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
.tabs::-webkit-scrollbar { display: none; }
|
||||
.tab {
|
||||
flex: 1;
|
||||
white-space: nowrap;
|
||||
appearance: none;
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: var(--text-muted);
|
||||
font: 600 14px/1 var(--font);
|
||||
padding: 10px 18px;
|
||||
border-radius: 999px;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
|
||||
}
|
||||
.tab:hover { color: var(--text); }
|
||||
.tab.active {
|
||||
color: var(--text);
|
||||
background: linear-gradient(150deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 18px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
/* ─── Toasts ──────────────────────────────────────────────────────────────── */
|
||||
|
||||
.toasts {
|
||||
position: fixed;
|
||||
bottom: 22px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
z-index: 100;
|
||||
width: min(480px, calc(100vw - 32px));
|
||||
}
|
||||
.toast {
|
||||
padding: 13px 18px;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
animation: toast-in 0.25s ease;
|
||||
}
|
||||
.toast-ok { border-color: rgba(70, 224, 165, 0.5); }
|
||||
.toast-error { border-color: rgba(255, 122, 138, 0.5); }
|
||||
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
|
||||
|
||||
/* ─── Slot-Chips (Buchungsseite) ──────────────────────────────────────────── */
|
||||
|
||||
.slot-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
|
||||
gap: 10px;
|
||||
}
|
||||
.slot-chip {
|
||||
appearance: none;
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: var(--radius-sm);
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
color: var(--text-muted);
|
||||
font: 600 14px/1 var(--font);
|
||||
padding: 12px 0;
|
||||
cursor: pointer;
|
||||
transition: all 0.13s ease;
|
||||
}
|
||||
.slot-chip:hover:not(:disabled) {
|
||||
color: var(--text);
|
||||
border-color: rgba(125, 176, 255, 0.5);
|
||||
background: rgba(125, 176, 255, 0.10);
|
||||
}
|
||||
.slot-chip.selected {
|
||||
color: #071018;
|
||||
background: linear-gradient(135deg, var(--accent), var(--accent-2));
|
||||
border-color: transparent;
|
||||
box-shadow: 0 8px 26px rgba(125, 176, 255, 0.4);
|
||||
}
|
||||
.slot-chip:disabled { opacity: 0.28; cursor: not-allowed; text-decoration: line-through; }
|
||||
|
||||
/* ─── Day-Picker ──────────────────────────────────────────────────────────── */
|
||||
|
||||
.day-strip {
|
||||
display: flex;
|
||||
gap: 9px;
|
||||
overflow-x: auto;
|
||||
padding-bottom: 6px;
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
.day-chip {
|
||||
appearance: none;
|
||||
flex: 0 0 auto;
|
||||
min-width: 74px;
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
color: var(--text-muted);
|
||||
font-family: var(--font);
|
||||
padding: 10px 8px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
transition: all 0.13s ease;
|
||||
}
|
||||
.day-chip:hover { border-color: var(--border); color: var(--text); }
|
||||
.day-chip.selected {
|
||||
color: var(--text);
|
||||
border-color: rgba(125, 176, 255, 0.55);
|
||||
background: linear-gradient(150deg, rgba(125, 176, 255, 0.16), rgba(183, 140, 255, 0.10));
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 24px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
.day-chip .wd { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
|
||||
.day-chip .dom { font-size: 20px; font-weight: 700; color: inherit; }
|
||||
.day-chip .mon { font-size: 11px; }
|
||||
|
||||
/* ─── Verschiedenes ───────────────────────────────────────────────────────── */
|
||||
|
||||
.divider { height: 1px; background: var(--border-soft); border: none; margin: 4px 0; }
|
||||
|
||||
.skeleton {
|
||||
border-radius: var(--radius-md);
|
||||
background: linear-gradient(100deg, rgba(255,255,255,0.04) 40%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 60%);
|
||||
background-size: 200% 100%;
|
||||
animation: shimmer 1.4s infinite;
|
||||
}
|
||||
@keyframes shimmer { to { background-position: -200% 0; } }
|
||||
|
||||
.fade-enter-active, .fade-leave-active { transition: opacity 0.18s ease, transform 0.18s ease; }
|
||||
.fade-enter-from, .fade-leave-to { opacity: 0; transform: translateY(6px); }
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.page { padding: 16px 14px 64px; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue