Making up task list layout.

This commit is contained in:
2022-02-20 23:53:18 +01:00
parent bc5209b60e
commit d2cfa4d0f8
2 changed files with 35 additions and 2 deletions

View File

@@ -1,4 +1,14 @@
<button mat-raised-button (click)="addNewList()">Nouvelle liste</button>
<div *ngFor="let list of taskLists$ | async">
<h1>{{list?.name}}</h1>
<div class="task-list-container">
<div *ngFor="let list of taskLists$ | async" class="task-list">
<div class="card">
<span *ngIf="list?.tasks?.length">
{{list?.tasks?.length}} tâches
</span>
<span *ngIf="!list?.tasks?.length">
Aucune tâche
</span>
</div>
<h3>{{list?.name}}</h3>
</div>
</div>

View File

@@ -0,0 +1,23 @@
.task-list-container {
display: flex;
flex-direction: row;
flex-wrap: wrap;
.task-list {
width: 10rem;
margin: 1rem;
.card {
height: 10rem;
border: 1px solid black;
display: flex;
justify-content: center;
align-items: center;
border-radius: .3rem;
}
h3 {
display: flex;
justify-content: center;
}
}
}