feat: initialize full-stack architecture with backend routes, database schema, and glassmorphic frontend UI
This commit is contained in:
@@ -1,22 +1,31 @@
|
||||
/* frontend/css/styles.css */
|
||||
/* Premium dark‑mode + glassmorphism design */
|
||||
/* Ultimate Premium Dark Mode + Glassmorphism */
|
||||
|
||||
:root {
|
||||
--font-family: 'Inter', sans-serif;
|
||||
--color-bg: hsl(220, 10%, 10%);
|
||||
--color-surface: hsla(220, 10%, 15%, 0.8);
|
||||
--color-primary: hsl(210, 80%, 55%);
|
||||
--color-primary-hover: hsl(210, 80%, 45%);
|
||||
--color-success: hsl(140, 60%, 45%);
|
||||
--color-error: hsl(0, 70%, 50%);
|
||||
--color-text: hsl(0, 0%, 90%);
|
||||
--radius: 0.75rem;
|
||||
--shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
||||
--font-family: 'Inter', system-ui, -apple-system, sans-serif;
|
||||
|
||||
/* Palette */
|
||||
--color-bg: #0b0e14;
|
||||
--color-surface: rgba(23, 28, 38, 0.7);
|
||||
--color-surface-hover: rgba(35, 42, 56, 0.85);
|
||||
--color-primary: #3b82f6; /* Modern Blue */
|
||||
--color-primary-glow: rgba(59, 130, 246, 0.5);
|
||||
--color-success: #10b981; /* Emerald */
|
||||
--color-success-glow: rgba(16, 185, 129, 0.4);
|
||||
--color-warning: #f59e0b; /* Amber */
|
||||
--color-error: #ef4444; /* Rose */
|
||||
--color-text: #f3f4f6;
|
||||
--color-text-dim: #9ca3af;
|
||||
|
||||
/* Utils */
|
||||
--radius-lg: 1.25rem;
|
||||
--radius-md: 0.75rem;
|
||||
--shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
||||
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
|
||||
--glass-border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
*, *::before, *::after {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
@@ -24,248 +33,307 @@
|
||||
|
||||
body {
|
||||
font-family: var(--font-family);
|
||||
background: var(--color-bg);
|
||||
background-color: var(--color-bg);
|
||||
background-image:
|
||||
radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
|
||||
radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
|
||||
color: var(--color-text);
|
||||
line-height: 1.6;
|
||||
line-height: 1.5;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
/* Custom Scrollbar */
|
||||
::-webkit-scrollbar { width: 8px; }
|
||||
::-webkit-scrollbar-track { background: var(--color-bg); }
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: rgba(255,255,255,0.1);
|
||||
border-radius: 10px;
|
||||
}
|
||||
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
|
||||
|
||||
/* Header */
|
||||
.header {
|
||||
text-align: center;
|
||||
padding: 2rem 1rem;
|
||||
background: linear-gradient(135deg, hsla(210, 70%, 55%, 0.6), hsla(210, 70%, 35%, 0.6));
|
||||
backdrop-filter: blur(12px);
|
||||
box-shadow: var(--shadow);
|
||||
padding: 2.5rem 1rem;
|
||||
background: rgba(11, 14, 20, 0.8);
|
||||
backdrop-filter: blur(20px);
|
||||
border-bottom: var(--glass-border);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
font-size: 2.2rem;
|
||||
margin-bottom: 0.5rem;
|
||||
color: var(--color-primary);
|
||||
font-size: 2.5rem;
|
||||
font-weight: 800;
|
||||
background: linear-gradient(to right, #60a5fa, #34d399);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
letter-spacing: -0.025em;
|
||||
}
|
||||
|
||||
.container {
|
||||
flex: 1;
|
||||
padding: 1.5rem;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
.header p {
|
||||
color: var(--color-text-dim);
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.section {
|
||||
/* Auth Section */
|
||||
.auth-box {
|
||||
max-width: 420px;
|
||||
margin: 6rem auto;
|
||||
padding: 2.5rem;
|
||||
background: var(--color-surface);
|
||||
backdrop-filter: blur(16px);
|
||||
border-radius: var(--radius-lg);
|
||||
border: var(--glass-border);
|
||||
box-shadow: var(--shadow-xl);
|
||||
}
|
||||
|
||||
.auth-box h2 {
|
||||
font-size: 1.75rem;
|
||||
margin-bottom: 2rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin-bottom: 1rem;
|
||||
font-weight: 600;
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.controls {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.controls input,
|
||||
.controls select {
|
||||
padding: 0.5rem 0.75rem;
|
||||
border: 1px solid hsla(0, 0%, 100%, 0.1);
|
||||
border-radius: var(--radius);
|
||||
background: var(--color-surface);
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: var(--color-primary);
|
||||
border: none;
|
||||
.auth-box input {
|
||||
width: 100%;
|
||||
padding: 0.875rem 1.25rem;
|
||||
margin-top: 0.75rem;
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
border: var(--glass-border);
|
||||
border-radius: var(--radius-md);
|
||||
color: #fff;
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: var(--radius);
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background: var(--color-primary-hover);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background: hsla(0, 0%, 100%, 0.1);
|
||||
border: none;
|
||||
color: var(--color-text);
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: var(--radius);
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background: hsla(0, 0%, 100%, 0.2);
|
||||
}
|
||||
|
||||
.table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
backdrop-filter: blur(6px);
|
||||
background: var(--color-surface);
|
||||
border-radius: var(--radius);
|
||||
overflow: hidden;
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.table th,
|
||||
.table td {
|
||||
padding: 0.75rem 1rem;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid hsla(0, 0%, 100%, 0.05);
|
||||
}
|
||||
|
||||
.table th {
|
||||
background: hsla(0, 0%, 100%, 0.05);
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.hidden { display: none; }
|
||||
|
||||
label {
|
||||
display: block;
|
||||
margin-bottom: 0.75rem;
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
label input,
|
||||
label textarea {
|
||||
width: 100%;
|
||||
padding: 0.5rem;
|
||||
margin-top: 0.25rem;
|
||||
border: 1px solid hsla(0,0%,100%,0.1);
|
||||
border-radius: var(--radius);
|
||||
background: var(--color-surface);
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.preview {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.preview img {
|
||||
max-width: 120px;
|
||||
max-height: 120px;
|
||||
object-fit: cover;
|
||||
border-radius: var(--radius);
|
||||
box-shadow: var(--shadow);
|
||||
.auth-box input:focus {
|
||||
outline: none;
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: 0 0 0 3px var(--color-primary-glow);
|
||||
}
|
||||
|
||||
/* Tabs */
|
||||
.tabs-container {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 1rem;
|
||||
padding: 1rem;
|
||||
background: var(--color-surface);
|
||||
border-bottom: 1px solid hsla(0,0%,100%,0.1);
|
||||
gap: 0.5rem;
|
||||
padding: 0.75rem;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
margin-top: 1rem;
|
||||
border-radius: var(--radius-md);
|
||||
max-width: 800px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.tab-btn {
|
||||
background: transparent;
|
||||
color: var(--color-text);
|
||||
color: var(--color-text-dim);
|
||||
border: none;
|
||||
padding: 0.5rem 1rem;
|
||||
font-size: 1.1rem;
|
||||
padding: 0.625rem 1.25rem;
|
||||
border-radius: var(--radius-md);
|
||||
cursor: pointer;
|
||||
border-bottom: 2px solid transparent;
|
||||
font-weight: 500;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.tab-btn:hover {
|
||||
color: var(--color-primary);
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.tab-btn.active {
|
||||
color: var(--color-primary);
|
||||
border-bottom: 2px solid var(--color-primary);
|
||||
background: var(--color-primary);
|
||||
color: #fff;
|
||||
box-shadow: 0 4px 12px var(--color-primary-glow);
|
||||
}
|
||||
|
||||
/* Main Content */
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 2.5rem 1.5rem;
|
||||
}
|
||||
|
||||
.section {
|
||||
animation: fadeIn 0.4s ease-out;
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; transform: translateY(10px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
/* Cards & Grid */
|
||||
.platforms-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
||||
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.platform-card {
|
||||
background: var(--color-surface);
|
||||
padding: 1.5rem;
|
||||
border-radius: var(--radius);
|
||||
border: 1px solid hsla(0,0%,100%,0.1);
|
||||
transition: transform 0.2s;
|
||||
padding: 1.75rem;
|
||||
border-radius: var(--radius-lg);
|
||||
border: var(--glass-border);
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.platform-card:hover {
|
||||
transform: translateY(-2px);
|
||||
transform: translateY(-4px);
|
||||
background: var(--color-surface-hover);
|
||||
border-color: rgba(255,255,255,0.15);
|
||||
box-shadow: var(--shadow-xl);
|
||||
}
|
||||
|
||||
.platform-card h3 {
|
||||
color: var(--color-primary);
|
||||
margin-bottom: 0.5rem;
|
||||
font-size: 1.25rem;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.platform-card .status {
|
||||
font-size: 0.9rem;
|
||||
margin-bottom: 1rem;
|
||||
/* Buttons */
|
||||
.btn-primary {
|
||||
background: var(--color-primary);
|
||||
color: #fff;
|
||||
font-weight: 600;
|
||||
padding: 0.75rem 1.5rem;
|
||||
border-radius: var(--radius-md);
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.active-platform {
|
||||
border-color: var(--color-success);
|
||||
.btn-primary:hover {
|
||||
filter: brightness(1.1);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 15px var(--color-primary-glow);
|
||||
}
|
||||
|
||||
.active-platform h3 {
|
||||
color: var(--color-success);
|
||||
.btn-secondary {
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
color: var(--color-text);
|
||||
font-weight: 500;
|
||||
padding: 0.75rem 1.5rem;
|
||||
border-radius: var(--radius-md);
|
||||
border: var(--glass-border);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.platform-form {
|
||||
.btn-secondary:hover {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
/* Table */
|
||||
.table {
|
||||
width: 100%;
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
background: var(--color-surface);
|
||||
border-radius: var(--radius-lg);
|
||||
overflow: hidden;
|
||||
border: var(--glass-border);
|
||||
}
|
||||
|
||||
.table th {
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
padding: 1rem 1.5rem;
|
||||
text-transform: uppercase;
|
||||
font-size: 0.75rem;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--color-text-dim);
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.table td {
|
||||
padding: 1.25rem 1.5rem;
|
||||
border-top: var(--glass-border);
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.table tr:hover td {
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
}
|
||||
|
||||
/* Status Badges */
|
||||
.status-pill {
|
||||
padding: 0.25rem 0.75rem;
|
||||
border-radius: 9999px;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.status-new { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
|
||||
.status-closed { background: rgba(16, 185, 129, 0.15); color: #34d399; }
|
||||
|
||||
/* Icons */
|
||||
.icon-sm {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
vertical-align: middle;
|
||||
margin-right: 0.25rem;
|
||||
stroke-width: 2.5px;
|
||||
}
|
||||
|
||||
.icon-sm.spin {
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
from { transform: rotate(0deg); }
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
.hidden { display: none !important; }
|
||||
|
||||
/* Form Controls */
|
||||
input, select, textarea {
|
||||
font-family: inherit;
|
||||
transition: border-color 0.2s;
|
||||
}
|
||||
|
||||
/* Chart Container */
|
||||
canvas {
|
||||
margin-top: 1rem;
|
||||
filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.1));
|
||||
}
|
||||
/* Toast Notifications */
|
||||
.toast-container {
|
||||
position: fixed;
|
||||
bottom: 2rem;
|
||||
right: 2rem;
|
||||
z-index: 1000;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.platform-form input {
|
||||
padding: 0.5rem;
|
||||
border: 1px solid hsla(0,0%,100%,0.1);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(0,0,0,0.2);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.auth-box {
|
||||
max-width: 400px;
|
||||
margin: 4rem auto;
|
||||
padding: 2rem;
|
||||
.toast {
|
||||
background: var(--color-surface);
|
||||
border-radius: var(--radius);
|
||||
border: 1px solid hsla(0,0%,100%,0.1);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.auth-box input {
|
||||
width: 100%;
|
||||
padding: 0.75rem;
|
||||
margin-top: 0.5rem;
|
||||
border: 1px solid hsla(0,0%,100%,0.1);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(0,0,0,0.2);
|
||||
backdrop-filter: blur(20px);
|
||||
border: var(--glass-border);
|
||||
padding: 1rem 1.5rem;
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: var(--shadow-xl);
|
||||
color: #fff;
|
||||
min-width: 300px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
border-left: 4px solid var(--color-primary);
|
||||
}
|
||||
|
||||
.auth-box a {
|
||||
color: var(--color-primary);
|
||||
text-decoration: none;
|
||||
}
|
||||
.auth-box a:hover {
|
||||
text-decoration: underline;
|
||||
@keyframes slideIn {
|
||||
from { opacity: 0; transform: translateX(100%); }
|
||||
to { opacity: 1; transform: translateX(0); }
|
||||
}
|
||||
|
||||
.toast.success { border-left-color: var(--color-success); }
|
||||
.toast.error { border-left-color: var(--color-error); }
|
||||
.toast.info { border-left-color: var(--color-primary); }
|
||||
|
||||
.toast-message { font-size: 0.9rem; font-weight: 500; }
|
||||
|
||||
Reference in New Issue
Block a user