Refactor layout and styling: update HTML structure and apply Bootstrap for improved responsiveness

This commit is contained in:
Cédric OLIVIER
2026-05-22 19:06:46 +02:00
parent 8bd2b4853f
commit f6203d41b8
17 changed files with 203 additions and 984 deletions
-67
View File
@@ -2,70 +2,3 @@
display: block;
}
.page-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 1rem;
}
.page-header h1 {
margin: 0;
font-size: 2rem;
}
.page-header p {
margin: 0.5rem 0 1.5rem;
color: #4b5563;
}
.create-button {
border: none;
border-radius: 0.5rem;
background-color: #2563eb;
color: #ffffff;
padding: 0.65rem 1rem;
font-weight: 600;
cursor: pointer;
}
.create-button:hover {
background-color: #1d4ed8;
}
.table-wrapper {
background-color: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 0.75rem;
overflow-x: auto;
}
table {
width: 100%;
border-collapse: collapse;
}
th,
td {
padding: 0.85rem 1rem;
text-align: left;
border-bottom: 1px solid #e5e7eb;
}
th {
font-size: 0.85rem;
text-transform: uppercase;
letter-spacing: 0.03em;
color: #6b7280;
background-color: #f9fafb;
}
tbody tr:last-child td {
border-bottom: none;
}
@media (max-width: 768px) {
.page-header {
flex-direction: column;
}
}
+27 -25
View File
@@ -1,32 +1,34 @@
<header class="page-header">
<div class="d-flex flex-column flex-md-row align-items-md-center justify-content-between gap-3 mb-4">
<div>
<h1>Projets</h1>
<p>Vue d'ensemble des projets actifs.</p>
<h1 class="h2 mb-2">Projets</h1>
<p class="text-secondary mb-0">Vue d'ensemble des projets actifs.</p>
</div>
<button type="button" class="create-button" (click)="createProject()">
<button type="button" class="btn btn-primary" (click)="createProject()">
Nouveau projet
</button>
</header>
</div>
<section class="table-wrapper" aria-label="Tableau des projets">
<table>
<thead>
<tr>
<th>Nom</th>
<th>Responsable</th>
<th>Statut</th>
<th>Progression</th>
</tr>
</thead>
<tbody>
@for (project of projects(); track project.id) {
<div class="card shadow-sm">
<div class="table-responsive">
<table class="table table-hover align-middle mb-0">
<thead class="table-light">
<tr>
<td>{{ project.name }}</td>
<td>{{ project.owner }}</td>
<td>{{ project.status }}</td>
<td>{{ project.progress }}%</td>
<th>Nom</th>
<th>Responsable</th>
<th>Statut</th>
<th>Progression</th>
</tr>
}
</tbody>
</table>
</section>
</thead>
<tbody>
@for (project of projects(); track project.id) {
<tr>
<td>{{ project.name }}</td>
<td>{{ project.owner }}</td>
<td>{{ project.status }}</td>
<td>{{ project.progress }}%</td>
</tr>
}
</tbody>
</table>
</div>
</div>