added dashboard
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
.documents-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start; /* contenu aligné à gauche */
|
||||
gap: 16px; /* espace entre le titre et la liste */
|
||||
margin: 40px 6%;
|
||||
}
|
||||
|
||||
/* Titre */
|
||||
.documents-section h1 {
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
color: #111827;
|
||||
margin: 0; /* on gère l’espace avec le gap */
|
||||
letter-spacing: 0.5px;
|
||||
text-transform: capitalize;
|
||||
border-left: 4px solid #3b82f6;
|
||||
padding-left: 12px;
|
||||
}
|
||||
|
||||
/* Liste de documents scrollable */
|
||||
.content {
|
||||
width: 1000px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 16px;
|
||||
padding: 30px 15px;
|
||||
border-radius: 20px;
|
||||
box-shadow:
|
||||
0 4px 8px rgba(0, 0, 0, 0.06),
|
||||
0 8px 20px rgba(0, 0, 0, 0.08),
|
||||
0 16px 40px rgba(0, 0, 0, 0.06);
|
||||
max-height: 390px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
/* Chaque carte */
|
||||
.content > div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 120px;
|
||||
height: 140px;
|
||||
padding: 12px;
|
||||
background: #ffffff;
|
||||
border-radius: 14px;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 6px 16px rgba(0,0,0,0.08);
|
||||
transition: all 0.2s ease;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.content > div:hover {
|
||||
transform: translateY(-3px);
|
||||
box-shadow: 0 10px 22px rgba(0,0,0,0.12);
|
||||
}
|
||||
|
||||
.content img {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
margin-bottom: 10px;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.content p {
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: #111827;
|
||||
word-break: break-word;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<div class="documents-section">
|
||||
<h1>Documents récents</h1>
|
||||
<div class="content">
|
||||
@for (doc of purchaseOrder(); track doc.id) {
|
||||
<div>
|
||||
<img src="https://cdn-icons-png.flaticon.com/512/337/337946.png" alt="pdf">
|
||||
<p>{{ doc.name }}</p>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,44 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
interface PurchaseOrder {
|
||||
id: number;
|
||||
name: string;
|
||||
}
|
||||
|
||||
@Component({
|
||||
selector: 'app-info-table',
|
||||
templateUrl: './info-table.html',
|
||||
styleUrls: ['./info-table.css'],
|
||||
})
|
||||
export class InfoTable {
|
||||
docs: PurchaseOrder[] = [
|
||||
{ id: 1, name: 'Bon de commande'},
|
||||
{ id: 2, name: 'Bon de commande'},
|
||||
{ id: 3, name: 'Bon de commande'},
|
||||
{ id: 1, name: 'Bon de commande'},
|
||||
{ id: 2, name: 'Bon de commande'},
|
||||
{ id: 3, name: 'Bon de commande'},
|
||||
{ id: 1, name: 'Bon de commande'},
|
||||
{ id: 2, name: 'Bon de commande'},
|
||||
{ id: 3, name: 'Bon de commande'},
|
||||
{ id: 1, name: 'Bon de commande'},
|
||||
{ id: 2, name: 'Bon de commande'},
|
||||
{ id: 3, name: 'Bon de commande'},
|
||||
{ id: 1, name: 'Bon de commande'},
|
||||
{ id: 2, name: 'Bon de commande'},
|
||||
{ id: 3, name: 'Bon de commande'},
|
||||
{ id: 1, name: 'Bon de commande'},
|
||||
{ id: 2, name: 'Bon de commande'},
|
||||
{ id: 3, name: 'Bon de commande'},
|
||||
{ id: 1, name: 'Bon de commande'},
|
||||
{ id: 2, name: 'Bon de commande'},
|
||||
{ id: 3, name: 'Bon de commande'},
|
||||
{ id: 1, name: 'Bon de commande'},
|
||||
{ id: 2, name: 'Bon de commande'},
|
||||
{ id: 3, name: 'Bon de commande'},
|
||||
];
|
||||
|
||||
purchaseOrder(): PurchaseOrder[] {
|
||||
return this.docs;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user