feat(story-1.5): add React frontend with auth pages and dark theme

This commit is contained in:
Michael committed 2026-02-04 14:48:41 +01:00
1 parent d67e169a43
commit dbea4b47af
23 files changed
+4373 -2

No files matched your search

+262
View File
@@ -0,0 +1,262 @@
:root {
--primary: #6366f1;
--primary-hover: #4f46e5;
--background: #0f172a;
--surface: #1e293b;
--surface-hover: #334155;
--text: #f8fafc;
--text-muted: #94a3b8;
--error: #ef4444;
--success: #22c55e;
--border: #334155;
--radius: 12px;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: var(--background);
color: var(--text);
min-height: 100vh;
}
/* Login/Register Container */
.login-container {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
background: linear-gradient(135deg, var(--background) 0%, #1a1a2e 100%);
}
.login-card {
background: var(--surface);
border-radius: var(--radius);
padding: 2.5rem;
width: 100%;
max-width: 400px;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.login-card h1 {
font-size: 2rem;
font-weight: 700;
text-align: center;
background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 0.5rem;
}
.login-card .subtitle {
text-align: center;
color: var(--text-muted);
margin-bottom: 2rem;
}
/* Form Styles */
.form-group {
margin-bottom: 1.25rem;
}
.form-group label {
display: block;
font-size: 0.875rem;
font-weight: 500;
color: var(--text-muted);
margin-bottom: 0.5rem;
}
.form-group input {
width: 100%;
padding: 0.875rem 1rem;
background: var(--background);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text);
font-size: 1rem;
transition: all 0.2s ease;
}
.form-group input:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.form-group input::placeholder {
color: var(--text-muted);
}
button[type="submit"] {
width: 100%;
padding: 0.875rem;
background: var(--primary);
border: none;
border-radius: 8px;
color: white;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
margin-top: 0.5rem;
}
button[type="submit"]:hover:not(:disabled) {
background: var(--primary-hover);
transform: translateY(-1px);
}
button[type="submit"]:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.error-message {
background: rgba(239, 68, 68, 0.1);
border: 1px solid var(--error);
color: var(--error);
padding: 0.75rem;
border-radius: 8px;
margin-bottom: 1rem;
font-size: 0.875rem;
}
.register-link {
text-align: center;
margin-top: 1.5rem;
color: var(--text-muted);
font-size: 0.875rem;
}
.register-link a {
color: var(--primary);
text-decoration: none;
font-weight: 500;
}
.register-link a:hover {
text-decoration: underline;
}
/* Dashboard */
.dashboard {
min-height: 100vh;
display: flex;
flex-direction: column;
}
.dashboard-header {
background: var(--surface);
padding: 1rem 1.5rem;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--border);
}
.dashboard-header h1 {
font-size: 1.25rem;
font-weight: 600;
background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.user-info {
display: flex;
align-items: center;
gap: 1rem;
}
.user-info span {
color: var(--text-muted);
font-size: 0.875rem;
}
.logout-btn {
background: transparent;
border: 1px solid var(--border);
color: var(--text-muted);
padding: 0.5rem 1rem;
border-radius: 6px;
cursor: pointer;
font-size: 0.875rem;
transition: all 0.2s ease;
}
.logout-btn:hover {
background: var(--surface-hover);
color: var(--text);
}
.dashboard-main {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: 2rem;
}
.empty-state {
text-align: center;
}
.empty-state h2 {
font-size: 2rem;
margin-bottom: 0.5rem;
}
.empty-state p {
color: var(--text-muted);
margin-bottom: 0.25rem;
}
.empty-state .hint {
font-size: 0.875rem;
font-style: italic;
}
/* Loading */
.loading-screen {
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 1rem;
}
.spinner {
width: 40px;
height: 40px;
border: 3px solid var(--border);
border-top-color: var(--primary);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* Mobile First */
@media (max-width: 480px) {
.login-card {
padding: 1.5rem;
}
.login-card h1 {
font-size: 1.5rem;
}
}