feat: initial commit web-cad-neu with docker-compose, frontend and backend

This commit is contained in:
2026-06-26 10:50:24 +02:00
commit 4ec76fe406
102 changed files with 25722 additions and 0 deletions
+313
View File
@@ -0,0 +1,313 @@
/* Auth Pages Login, Register, Dashboard */
/* ─── Auth Page Layout ─────────────────────────────── */
.auth-page {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background: var(--bg-primary, #1a1a2e);
color: var(--text-primary, #e0e0e0);
font-family: 'Inter', system-ui, sans-serif;
}
.auth-card {
background: var(--bg-secondary, #16213e);
border: 1px solid var(--border-color, #2a2a4a);
border-radius: 12px;
padding: 2.5rem;
width: 100%;
max-width: 400px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.auth-title {
font-size: 1.75rem;
font-weight: 700;
margin: 0 0 0.25rem 0;
text-align: center;
color: var(--accent-primary, #4a9eff);
}
.auth-subtitle {
font-size: 1rem;
color: var(--text-secondary, #888);
text-align: center;
margin: 0 0 1.5rem 0;
}
/* ─── Auth Form ────────────────────────────────────── */
.auth-form {
display: flex;
flex-direction: column;
gap: 1rem;
}
.auth-field {
display: flex;
flex-direction: column;
gap: 0.375rem;
}
.auth-field label {
font-size: 0.8125rem;
font-weight: 500;
color: var(--text-secondary, #888);
}
.auth-field input {
padding: 0.625rem 0.875rem;
border: 1px solid var(--border-color, #2a2a4a);
border-radius: 6px;
background: var(--bg-input, #0f0f23);
color: var(--text-primary, #e0e0e0);
font-size: 0.875rem;
outline: none;
transition: border-color 0.15s;
}
.auth-field input:focus {
border-color: var(--accent-primary, #4a9eff);
}
.auth-button {
margin-top: 0.5rem;
padding: 0.625rem 1rem;
border: none;
border-radius: 6px;
background: var(--accent-primary, #4a9eff);
color: #fff;
font-size: 0.875rem;
font-weight: 600;
cursor: pointer;
transition: opacity 0.15s;
}
.auth-button:hover:not(:disabled) {
opacity: 0.9;
}
.auth-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* ─── Auth Error ───────────────────────────────────── */
.auth-error {
background: rgba(239, 68, 68, 0.15);
border: 1px solid rgba(239, 68, 68, 0.3);
color: #ef4444;
padding: 0.625rem 0.875rem;
border-radius: 6px;
font-size: 0.8125rem;
margin-bottom: 1rem;
cursor: pointer;
text-align: center;
}
/* ─── Auth Switch Link ─────────────────────────────── */
.auth-switch {
text-align: center;
margin-top: 1.5rem;
font-size: 0.8125rem;
color: var(--text-secondary, #888);
}
.auth-link {
background: none;
border: none;
color: var(--accent-primary, #4a9eff);
cursor: pointer;
font-size: 0.8125rem;
font-weight: 500;
padding: 0;
text-decoration: none;
}
.auth-link:hover {
text-decoration: underline;
}
/* ─── Dashboard ────────────────────────────────────── */
.dashboard-page {
min-height: 100vh;
background: var(--bg-primary, #1a1a2e);
color: var(--text-primary, #e0e0e0);
font-family: 'Inter', system-ui, sans-serif;
}
.dashboard-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 2rem;
border-bottom: 1px solid var(--border-color, #2a2a4a);
background: var(--bg-secondary, #16213e);
}
.dashboard-brand {
display: flex;
align-items: center;
gap: 1rem;
}
.dashboard-brand h1 {
font-size: 1.25rem;
font-weight: 700;
margin: 0;
color: var(--accent-primary, #4a9eff);
}
.dashboard-user {
font-size: 0.8125rem;
color: var(--text-secondary, #888);
}
.dashboard-logout {
padding: 0.375rem 0.875rem;
border: 1px solid var(--border-color, #2a2a4a);
border-radius: 6px;
background: transparent;
color: var(--text-primary, #e0e0e0);
font-size: 0.8125rem;
cursor: pointer;
transition: background 0.15s;
}
.dashboard-logout:hover {
background: rgba(255, 255, 255, 0.05);
}
.dashboard-content {
max-width: 1000px;
margin: 0 auto;
padding: 2rem;
}
.dashboard-section-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 1.5rem;
}
.dashboard-section-header h2 {
font-size: 1.25rem;
font-weight: 600;
margin: 0;
}
.dashboard-create-btn {
padding: 0.5rem 1rem;
border: none;
border-radius: 6px;
background: var(--accent-primary, #4a9eff);
color: #fff;
font-size: 0.8125rem;
font-weight: 600;
cursor: pointer;
}
.dashboard-create-form {
display: flex;
gap: 0.5rem;
margin-bottom: 1.5rem;
flex-wrap: wrap;
}
.dashboard-create-form input {
flex: 1;
min-width: 150px;
padding: 0.5rem 0.75rem;
border: 1px solid var(--border-color, #2a2a4a);
border-radius: 6px;
background: var(--bg-input, #0f0f23);
color: var(--text-primary, #e0e0e0);
font-size: 0.8125rem;
outline: none;
}
.dashboard-create-form input:focus {
border-color: var(--accent-primary, #4a9eff);
}
.dashboard-create-form button {
padding: 0.5rem 1rem;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 0.8125rem;
font-weight: 500;
}
.dashboard-create-form button:first-of-type {
background: var(--accent-primary, #4a9eff);
color: #fff;
}
.dashboard-create-form button:last-of-type {
background: transparent;
color: var(--text-secondary, #888);
border: 1px solid var(--border-color, #2a2a4a);
}
.dashboard-loading,
.dashboard-empty {
text-align: center;
color: var(--text-secondary, #888);
padding: 2rem;
}
.dashboard-project-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 1rem;
}
.dashboard-project-card {
background: var(--bg-secondary, #16213e);
border: 1px solid var(--border-color, #2a2a4a);
border-radius: 8px;
padding: 1.25rem;
cursor: pointer;
transition: border-color 0.15s, transform 0.1s;
}
.dashboard-project-card:hover {
border-color: var(--accent-primary, #4a9eff);
transform: translateY(-2px);
}
.dashboard-project-card h3 {
font-size: 1rem;
font-weight: 600;
margin: 0 0 0.5rem 0;
}
.dashboard-project-card p {
font-size: 0.8125rem;
color: var(--text-secondary, #888);
margin: 0 0 0.75rem 0;
}
.dashboard-project-meta {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 0.75rem;
color: var(--text-secondary, #888);
}
.dashboard-delete-btn {
padding: 0.25rem 0.5rem;
border: 1px solid rgba(239, 68, 68, 0.3);
border-radius: 4px;
background: transparent;
color: #ef4444;
font-size: 0.75rem;
cursor: pointer;
}
.dashboard-delete-btn:hover {
background: rgba(239, 68, 68, 0.1);
}