diff --git a/src/app/app.html b/src/app/app.html index 3ddb212..298a3e2 100644 --- a/src/app/app.html +++ b/src/app/app.html @@ -69,7 +69,9 @@
- + + + diff --git a/src/app/app.ts b/src/app/app.ts index 311370e..8747de2 100644 --- a/src/app/app.ts +++ b/src/app/app.ts @@ -5,10 +5,11 @@ import { NzMenuModule } from 'ng-zorro-antd/menu'; import {NzIconDirective} from "ng-zorro-antd/icon"; import {ModalNav} from "./components/modal-nav/modal-nav"; import {Profil} from "./components/profil/profil"; +import {NotifList} from "./components/notif-list/notif-list"; @Component({ selector: 'app-root', - imports: [RouterOutlet, NzLayoutModule, NzMenuModule, NzIconDirective, RouterLinkActive, RouterLink, ModalNav, Profil], + imports: [RouterOutlet, NzLayoutModule, NzMenuModule, NzIconDirective, RouterLinkActive, RouterLink, ModalNav, Profil, NotifList], templateUrl: './app.html', styleUrl: './app.css' }) diff --git a/src/app/components/deliverer-table/deliverer-table.ts b/src/app/components/deliverer-table/deliverer-table.ts index 8100913..9cb0b7d 100644 --- a/src/app/components/deliverer-table/deliverer-table.ts +++ b/src/app/components/deliverer-table/deliverer-table.ts @@ -5,7 +5,6 @@ import {ModalNav} from "../modal-nav/modal-nav"; import {NzDividerComponent} from "ng-zorro-antd/divider"; import {NzIconDirective} from "ng-zorro-antd/icon"; import {NzTableComponent} from "ng-zorro-antd/table"; -import {ProfilForm} from "../profil-form/profil-form"; import {ModalButton} from "../modal-button/modal-button"; import {DatePipe} from "@angular/common"; import {DelivererForm} from "../deliverer-form/deliverer-form"; @@ -17,7 +16,6 @@ import {DelivererForm} from "../deliverer-form/deliverer-form"; NzDividerComponent, NzIconDirective, NzTableComponent, - ProfilForm, ModalButton, DatePipe, DelivererForm diff --git a/src/app/components/notif-list/notif-list.css b/src/app/components/notif-list/notif-list.css new file mode 100644 index 0000000..e69de29 diff --git a/src/app/components/notif-list/notif-list.html b/src/app/components/notif-list/notif-list.html new file mode 100644 index 0000000..d61b903 --- /dev/null +++ b/src/app/components/notif-list/notif-list.html @@ -0,0 +1,34 @@ +
+

+ Tout supprimer +

+
+ + + @for (item of notifList; track item) { + + + + + info + + + +

{{item.title}}

+

{{item.author}}

+
+ + +

{{item.content}}

+
+
+ + + logo + + +
+ } +
diff --git a/src/app/components/notif-list/notif-list.ts b/src/app/components/notif-list/notif-list.ts new file mode 100644 index 0000000..46ff877 --- /dev/null +++ b/src/app/components/notif-list/notif-list.ts @@ -0,0 +1,92 @@ +import { Component } from '@angular/core'; +import {NotifInfo} from "../../interfaces/notif.interface"; +import { + NzListComponent, + NzListItemComponent, + NzListItemExtraComponent, NzListItemMetaAvatarComponent, + NzListItemMetaComponent, NzListItemMetaDescriptionComponent, NzListItemMetaTitleComponent +} from "ng-zorro-antd/list"; +import {NzIconDirective} from "ng-zorro-antd/icon"; + +@Component({ + selector: 'app-notif-list', + imports: [ + NzListComponent, + NzListItemComponent, + NzListItemMetaComponent, + NzListItemExtraComponent, + NzListItemMetaDescriptionComponent, + NzListItemMetaAvatarComponent, + NzListItemMetaTitleComponent, + NzIconDirective + ], + templateUrl: './notif-list.html', + styleUrl: './notif-list.css', +}) +export class NotifList { + notifList: NotifInfo[] = [ + { + author: 'Admin', + title: 'Information system', + content: 'L\'utilisateur à bien été crée.' + }, + { + author: 'Admin', + title: 'Information system', + content: 'L\'utilisateur à bien été crée.' + }, + { + author: 'Admin', + title: 'Information system', + content: 'L\'utilisateur à bien été crée.' + }, + { + author: 'Admin', + title: 'Information system', + content: 'L\'utilisateur à bien été crée.' + }, + { + author: 'Admin', + title: 'Information system', + content: 'L\'utilisateur à bien été crée.' + }, + { + author: 'Admin', + title: 'Information system', + content: 'L\'utilisateur à bien été crée.' + }, + { + author: 'Admin', + title: 'Information system', + content: 'L\'utilisateur à bien été crée.' + }, + { + author: 'Admin', + title: 'Information system', + content: 'L\'utilisateur à bien été crée.' + }, + { + author: 'Admin', + title: 'Information system', + content: 'L\'utilisateur à bien été crée.' + }, + { + author: 'Admin', + title: 'Information system', + content: 'L\'utilisateur à bien été crée.' + }, + { + author: 'Admin', + title: 'Information system', + content: 'L\'utilisateur à bien été crée.' + } + ]; + + delete() { + this.notifList = []; + } + + addContent(author: string, title: string, content: string) { + this.notifList.push({ author, title, content }); + } +} diff --git a/src/app/interfaces/notif.interface.ts b/src/app/interfaces/notif.interface.ts new file mode 100644 index 0000000..ff5ce4f --- /dev/null +++ b/src/app/interfaces/notif.interface.ts @@ -0,0 +1,5 @@ +export interface NotifInfo { + author: string; + title: string; + content: string; +} \ No newline at end of file