feat: redesign dark futuriste (Luca) — thème cyan/volt, sidebar dark, JetBrains Mono + README

This commit is contained in:
Luca
2026-03-15 21:24:59 +01:00
parent 97ae64caf0
commit c8b704216d
12 changed files with 1552 additions and 691 deletions
+610 -18
View File
@@ -4,31 +4,623 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}GarageManager{% endblock %}</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg-primary: #0a0f1a;
--bg-secondary: #111827;
--bg-card: #1a2234;
--bg-input: #0d1321;
--accent-electric: #00d4ff;
--accent-volt: #facc15;
--accent-green: #22c55e;
--accent-red: #ef4444;
--text-primary: #f1f5f9;
--text-secondary: #94a3b8;
--text-muted: #64748b;
--border: #2d3a52;
--shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
--glow-electric: 0 0 20px rgba(0, 212, 255, 0.3);
}
body {
font-family: "Outfit", sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
min-height: 100vh;
display: flex;
}
body::before {
content: "";
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background:
radial-gradient(circle at 20% 20%, rgba(0,212,255,0.08) 0%, transparent 50%),
radial-gradient(circle at 80% 80%, rgba(250,204,21,0.06) 0%, transparent 50%),
linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
pointer-events: none;
z-index: -1;
}
/* ── Sidebar ── */
.app-sidebar {
width: 220px;
background: var(--bg-card);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
position: fixed;
top: 0; left: 0; bottom: 0;
z-index: 100;
}
.sidebar-brand {
padding: 1.25rem 1.25rem 1rem;
font-size: 1.15rem;
font-weight: 700;
background: linear-gradient(135deg, var(--accent-electric), var(--accent-volt));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
gap: 0.5rem;
}
.sidebar-brand i {
background: linear-gradient(135deg, var(--accent-electric), var(--accent-volt));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.sidebar-nav {
flex: 1;
padding: 0.75rem 0.5rem;
}
.sidebar-section {
font-size: 0.65rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text-muted);
padding: 0.75rem 0.75rem 0.25rem;
font-weight: 600;
}
.sidebar-link {
display: flex;
align-items: center;
gap: 0.6rem;
padding: 0.6rem 0.75rem;
color: var(--text-secondary);
text-decoration: none;
border-radius: 8px;
margin: 0.1rem 0;
transition: all 0.2s;
font-size: 0.9rem;
font-weight: 500;
}
.sidebar-link i {
width: 16px;
text-align: center;
font-size: 0.85rem;
}
.sidebar-link:hover {
background: rgba(0, 212, 255, 0.08);
color: var(--accent-electric);
}
.sidebar-link.active {
background: rgba(0, 212, 255, 0.12);
color: var(--accent-electric);
border: 1px solid rgba(0, 212, 255, 0.2);
}
.sidebar-footer {
padding: 0.75rem 1rem;
border-top: 1px solid var(--border);
font-size: 0.7rem;
color: var(--text-muted);
text-align: center;
}
/* ── Main content ── */
.app-main {
margin-left: 220px;
flex: 1;
padding: 2rem;
min-height: 100vh;
}
/* ── Cards ── */
.card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 12px;
padding: 1.5rem;
transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
border-color: rgba(0, 212, 255, 0.3);
box-shadow: var(--glow-electric);
}
.card-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 1.5rem;
border-bottom: 1px solid var(--border);
}
.card-title {
font-size: 0.95rem;
font-weight: 600;
color: var(--text-primary);
}
/* ── Tables ── */
table {
width: 100%;
border-collapse: collapse;
}
th {
background: var(--bg-secondary);
color: var(--text-muted);
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.06em;
padding: 0.75rem 1rem;
text-align: left;
font-weight: 600;
}
td {
padding: 0.875rem 1rem;
border-bottom: 1px solid var(--border);
color: var(--text-primary);
font-size: 0.88rem;
}
tr:last-child td {
border-bottom: none;
}
tr:hover td {
background: rgba(0, 212, 255, 0.03);
}
tbody tr {
transition: background 0.15s;
}
/* ── Buttons ── */
.btn-primary {
background: linear-gradient(135deg, var(--accent-electric), #0099cc);
color: #0a0f1a;
font-weight: 600;
padding: 0.5rem 1.25rem;
border-radius: 8px;
border: none;
cursor: pointer;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 0.4rem;
font-size: 0.875rem;
font-family: "Outfit", sans-serif;
transition: box-shadow 0.2s, opacity 0.2s;
}
.btn-primary:hover {
box-shadow: var(--glow-electric);
opacity: 0.95;
}
.btn-secondary {
background: transparent;
color: var(--text-secondary);
border: 1px solid var(--border);
padding: 0.5rem 1.25rem;
border-radius: 8px;
cursor: pointer;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 0.4rem;
font-size: 0.875rem;
font-family: "Outfit", sans-serif;
transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover {
border-color: var(--accent-electric);
color: var(--accent-electric);
}
.btn-danger {
background: rgba(239, 68, 68, 0.1);
color: var(--accent-red);
border: 1px solid rgba(239, 68, 68, 0.3);
padding: 0.5rem 1.25rem;
border-radius: 8px;
cursor: pointer;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 0.4rem;
font-size: 0.875rem;
font-family: "Outfit", sans-serif;
transition: background 0.2s;
}
.btn-danger:hover {
background: rgba(239, 68, 68, 0.2);
}
.btn-sm {
padding: 0.35rem 0.875rem;
font-size: 0.8rem;
}
.btn-icon {
width: 32px;
height: 32px;
padding: 0;
justify-content: center;
border-radius: 6px;
}
/* ── Inputs ── */
input, select, textarea {
background: var(--bg-input);
border: 1px solid var(--border);
color: var(--text-primary);
border-radius: 8px;
padding: 0.5rem 0.75rem;
font-family: "Outfit", sans-serif;
font-size: 0.875rem;
width: 100%;
transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
border-color: var(--accent-electric);
outline: none;
box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}
input::placeholder, textarea::placeholder {
color: var(--text-muted);
}
select option {
background: var(--bg-secondary);
}
label {
display: block;
font-size: 0.8rem;
font-weight: 600;
color: var(--text-secondary);
margin-bottom: 0.4rem;
text-transform: uppercase;
letter-spacing: 0.04em;
}
/* ── Badges ── */
.badge {
padding: 0.2rem 0.65rem;
border-radius: 20px;
font-size: 0.72rem;
font-weight: 600;
display: inline-flex;
align-items: center;
gap: 0.3rem;
}
.badge-success {
background: rgba(34, 197, 94, 0.12);
color: var(--accent-green);
border: 1px solid rgba(34, 197, 94, 0.2);
}
.badge-warning {
background: rgba(250, 204, 21, 0.12);
color: var(--accent-volt);
border: 1px solid rgba(250, 204, 21, 0.2);
}
.badge-danger {
background: rgba(239, 68, 68, 0.12);
color: var(--accent-red);
border: 1px solid rgba(239, 68, 68, 0.2);
}
.badge-info {
background: rgba(0, 212, 255, 0.1);
color: var(--accent-electric);
border: 1px solid rgba(0, 212, 255, 0.2);
}
.badge-neutral {
background: rgba(100, 116, 139, 0.12);
color: var(--text-secondary);
border: 1px solid var(--border);
}
/* ── Stats cards ── */
.stat-value {
font-size: 2.25rem;
font-weight: 700;
color: var(--accent-electric);
line-height: 1;
}
.stat-label {
font-size: 0.8rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.04em;
}
/* ── Mono ── */
.mono {
font-family: "JetBrains Mono", monospace;
}
/* ── Page header ── */
.page-header {
margin-bottom: 2rem;
}
.page-title {
font-size: 1.5rem;
font-weight: 700;
color: var(--text-primary);
}
.page-subtitle {
font-size: 0.875rem;
color: var(--text-muted);
margin-top: 0.25rem;
}
/* ── Back link ── */
.back-link {
display: inline-flex;
align-items: center;
gap: 0.4rem;
color: var(--text-muted);
text-decoration: none;
font-size: 0.85rem;
margin-bottom: 1rem;
transition: color 0.2s;
}
.back-link:hover {
color: var(--accent-electric);
}
/* ── Grid ── */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
/* ── Flex utils ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
/* ── Spacing ── */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.ml-2 { margin-left: 0.5rem; }
/* ── Text utils ── */
.text-electric { color: var(--accent-electric); }
.text-volt { color: var(--accent-volt); }
.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uppercase { text-transform: uppercase; }
/* ── Empty state ── */
.empty-state {
padding: 3rem;
text-align: center;
color: var(--text-muted);
}
.empty-state i {
font-size: 2.5rem;
margin-bottom: 0.75rem;
display: block;
color: var(--border);
}
.empty-state p {
margin-bottom: 0.5rem;
}
/* ── Overflow ── */
.overflow-x-auto { overflow-x: auto; }
/* ── Link actions ── */
.link-action {
color: var(--accent-electric);
text-decoration: none;
font-size: 0.8rem;
font-weight: 500;
transition: opacity 0.2s;
}
.link-action:hover { opacity: 0.7; }
.link-danger {
color: var(--accent-red);
text-decoration: none;
font-size: 0.8rem;
font-weight: 500;
background: none;
border: none;
cursor: pointer;
font-family: "Outfit", sans-serif;
padding: 0;
transition: opacity 0.2s;
}
.link-danger:hover { opacity: 0.7; }
.link-edit {
color: var(--accent-volt);
text-decoration: none;
font-size: 0.8rem;
font-weight: 500;
transition: opacity 0.2s;
}
.link-edit:hover { opacity: 0.7; }
/* ── Section dividers ── */
.section-divider {
border: none;
border-top: 1px solid var(--border);
margin: 1.5rem 0;
}
/* ── Scrollable list ── */
.scroll-list {
max-height: 200px;
overflow-y: auto;
border: 1px solid var(--border);
border-radius: 8px;
padding: 0.5rem;
background: var(--bg-input);
}
.scroll-list-item {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.5rem 0.75rem;
border-radius: 6px;
cursor: pointer;
transition: background 0.15s;
}
.scroll-list-item:hover {
background: rgba(0, 212, 255, 0.06);
}
/* ── Toggle section ── */
.toggle-section {
display: none;
background: var(--bg-secondary);
border-top: 1px solid var(--border);
padding: 1.25rem 1.5rem;
}
.toggle-section.open {
display: block;
}
/* ── Collapsible ── */
details summary {
list-style: none;
cursor: pointer;
}
details summary::-webkit-details-marker { display: none; }
/* ── Photo thumb ── */
.photo-thumb {
width: 40px;
height: 40px;
object-fit: cover;
border-radius: 6px;
border: 1px solid var(--border);
cursor: pointer;
}
.photo-placeholder {
width: 40px;
height: 40px;
background: var(--bg-secondary);
border-radius: 6px;
border: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: center;
color: var(--border);
}
</style>
{% block extra_head %}{% endblock %}
</head>
<body class="bg-gray-100 min-h-screen flex">
<div class="w-64 bg-slate-800 min-h-screen flex flex-col fixed left-0 top-0">
<div class="p-6 border-b border-slate-700">
<h1 class="text-white text-xl font-bold flex items-center gap-2">
<i class="fas fa-wrench text-orange-400"></i> GarageManager
</h1>
<body>
<!-- Sidebar -->
<aside class="app-sidebar">
<div class="sidebar-brand">
<i class="fas fa-wrench"></i> GarageManager
</div>
<nav class="flex-1 p-4 space-y-1">
<a href="/" class="flex items-center gap-3 px-4 py-3 rounded-lg text-sm font-medium transition {% if page == 'dashboard' %}bg-orange-500 text-white{% else %}text-slate-300 hover:bg-slate-700 hover:text-white{% endif %}">
<i class="fas fa-chart-line w-5"></i> Dashboard
<nav class="sidebar-nav">
<div class="sidebar-section">Navigation</div>
<a href="/" class="sidebar-link {% if page == 'dashboard' %}active{% endif %}">
<i class="fas fa-chart-line"></i> Dashboard
</a>
<a href="/vehicules" class="flex items-center gap-3 px-4 py-3 rounded-lg text-sm font-medium transition {% if page == 'vehicules' %}bg-orange-500 text-white{% else %}text-slate-300 hover:bg-slate-700 hover:text-white{% endif %}">
<i class="fas fa-car w-5"></i> Véhicules
<a href="/vehicules" class="sidebar-link {% if page == 'vehicules' %}active{% endif %}">
<i class="fas fa-car"></i> Véhicules
</a>
<a href="/interventions" class="flex items-center gap-3 px-4 py-3 rounded-lg text-sm font-medium transition {% if page == 'interventions' %}bg-orange-500 text-white{% else %}text-slate-300 hover:bg-slate-700 hover:text-white{% endif %}">
<i class="fas fa-tools w-5"></i> Interventions
<a href="/interventions" class="sidebar-link {% if page == 'interventions' %}active{% endif %}">
<i class="fas fa-tools"></i> Interventions
</a>
<a href="/clients" class="sidebar-link {% if page == 'clients' %}active{% endif %}">
<i class="fas fa-users"></i> Clients
</a>
</nav>
<div class="p-4 border-t border-slate-700 text-xs text-slate-500 text-center">GarageManager v2.1</div>
</div>
<div class="ml-64 flex-1 p-8">
<div class="sidebar-footer">GarageManager v2.1</div>
</aside>
<!-- Main -->
<main class="app-main">
{% block content %}{% endblock %}
</div>
</main>
</body>
</html>