diff --git a/src/app/app.css b/src/app/app.css index 73a1c7e..2c96a5f 100644 --- a/src/app/app.css +++ b/src/app/app.css @@ -1,46 +1,74 @@ :host { - display: flex; + display: flex; } .app-layout { - height: 100vh; + height: 100vh; } .top-nav { - line-height: 64px; + line-height: 64px; } .logo { - float: left; - height: 64px; - padding-right: 24px; - line-height: 64px; - background: #001529; + float: left; + height: 64px; + padding-right: 24px; + line-height: 64px; } .logo img { - display: inline-block; - height: 32px; - width: 32px; - vertical-align: middle; + display: inline-block; + height: 32px; + width: 32px; + vertical-align: middle; } .logo h1 { - display: inline-block; - margin: 0 0 0 15px; - color: #fff; - font-weight: 600; - font-size: 20px; - font-family: Avenir,Helvetica Neue,Arial,Helvetica,sans-serif; - vertical-align: middle; + display: inline-block; + margin: 0 0 0 15px; + color: #fff; + font-weight: 600; + font-size: 20px; + font-family: Avenir,Helvetica Neue,Arial,Helvetica,sans-serif; + vertical-align: middle; } nz-content { - padding: 24px 50px; + padding: 24px 50px; } .inner-content { - padding: 24px; - background: #fff; - height: 100%; + padding: 24px; + background: #fff; + height: 100%; } + +.header-container { + display: flex; + align-items: center; + justify-content: space-between; +} + +.logo { + display: flex; + align-items: center; +} + +.top-nav { + flex: 1; + margin-left: 40px; +} + +.right-icons { + display: flex; + align-items: center; + gap: 20px; + color: #fff; + font-size: 18px; + cursor: pointer; +} + +.right-icons nz-icon:hover { + color: #40a9ff; +} \ No newline at end of file diff --git a/src/app/app.html b/src/app/app.html index 8f2b8dc..8c565bd 100644 --- a/src/app/app.html +++ b/src/app/app.html @@ -57,9 +57,15 @@ Utilisateur -
  • -
  • -
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • diff --git a/src/app/app.ts b/src/app/app.ts index fa98bea..555fbd8 100644 --- a/src/app/app.ts +++ b/src/app/app.ts @@ -4,10 +4,11 @@ import { NzLayoutModule } from 'ng-zorro-antd/layout'; import { NzMenuModule } from 'ng-zorro-antd/menu'; import {NzFlexDirective} from "ng-zorro-antd/flex"; import {NzIconDirective} from "ng-zorro-antd/icon"; +import {ModalNav} from "./components/modalNav/modalNav"; @Component({ selector: 'app-root', - imports: [RouterOutlet, NzLayoutModule, NzMenuModule, NzFlexDirective, NzIconDirective, RouterLinkActive, RouterLink], + imports: [RouterOutlet, NzLayoutModule, NzMenuModule, NzFlexDirective, NzIconDirective, RouterLinkActive, RouterLink, ModalNav], templateUrl: './app.html', styleUrl: './app.css' }) diff --git a/src/app/components/modalNav/modalNav.css b/src/app/components/modalNav/modalNav.css new file mode 100644 index 0000000..e69de29 diff --git a/src/app/components/modalNav/modalNav.html b/src/app/components/modalNav/modalNav.html new file mode 100644 index 0000000..102ad5c --- /dev/null +++ b/src/app/components/modalNav/modalNav.html @@ -0,0 +1,18 @@ +
    + +
    + + + + + + + + diff --git a/src/app/components/modalNav/modalNav.ts b/src/app/components/modalNav/modalNav.ts new file mode 100644 index 0000000..cb149f5 --- /dev/null +++ b/src/app/components/modalNav/modalNav.ts @@ -0,0 +1,34 @@ +import {Component, Input, input} from '@angular/core'; +import { NzButtonModule } from 'ng-zorro-antd/button'; +import { NzModalModule } from 'ng-zorro-antd/modal'; +import {NzIconDirective} from "ng-zorro-antd/icon"; + +@Component({ + selector: 'app-modalNav', + imports: [NzButtonModule, NzModalModule, NzIconDirective], + templateUrl: 'modalNav.html', + styleUrls: ['./modalNav.css'], +}) +export class ModalNav { + @Input() nameIcon: string = ''; + @Input() name: string = ''; + + isVisible = false; + isOkLoading = false; + + showModal(): void { + this.isVisible = true; + } + + handleOk(): void { + this.isOkLoading = true; + setTimeout(() => { + this.isVisible = false; + this.isOkLoading = false; + }, 1000); + } + + handleCancel(): void { + this.isVisible = false; + } +} diff --git a/src/app/pages/welcome/welcome.html b/src/app/pages/welcome/welcome.html index 608dfe6..12f389f 100644 --- a/src/app/pages/welcome/welcome.html +++ b/src/app/pages/welcome/welcome.html @@ -1 +1 @@ -

    welcome works!

    \ No newline at end of file +

    hello work

    \ No newline at end of file diff --git a/src/app/pages/welcome/welcome.ts b/src/app/pages/welcome/welcome.ts index 92e8bde..6ade90b 100644 --- a/src/app/pages/welcome/welcome.ts +++ b/src/app/pages/welcome/welcome.ts @@ -1,8 +1,13 @@ import { Component } from '@angular/core'; +import {ModalNav} from "../../components/modalNav/modalNav"; +import {NzIconDirective} from "ng-zorro-antd/icon"; @Component({ selector: 'app-welcome', - imports: [], + imports: [ + ModalNav, + NzIconDirective + ], templateUrl: './welcome.html', styleUrl: './welcome.css' })