Compare commits
4 Commits
main
...
feature/pr
| Author | SHA1 | Date | |
|---|---|---|---|
| cbf01acb99 | |||
| 043899db3f | |||
| e1d85fc49e | |||
| c3ec0e8afd |
16
logo-navbar.svg
Normal file
16
logo-navbar.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 22 KiB |
BIN
logo-pyro-fetes.png
Normal file
BIN
logo-pyro-fetes.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
16
public/logo-navbar.svg
Normal file
16
public/logo-navbar.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 22 KiB |
BIN
public/logo-pyro-fetes.png
Normal file
BIN
public/logo-pyro-fetes.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
@@ -3,11 +3,27 @@
|
||||
}
|
||||
|
||||
.app-layout {
|
||||
height: 100vh;
|
||||
height: 150vh;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.main-title {
|
||||
color:#eabf63;
|
||||
}
|
||||
|
||||
.top-nav {
|
||||
line-height: 64px;
|
||||
background-color: #2c2c2c;
|
||||
}
|
||||
|
||||
.top-nav a {
|
||||
display: block;
|
||||
background-color: #4c4c4c;
|
||||
}
|
||||
|
||||
.nav-item {
|
||||
color: #eabf63;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.logo {
|
||||
@@ -15,22 +31,21 @@
|
||||
height: 64px;
|
||||
padding-right: 24px;
|
||||
line-height: 64px;
|
||||
background: #001529;
|
||||
background: #1c1c1c;
|
||||
}
|
||||
|
||||
.logo img {
|
||||
display: inline-block;
|
||||
height: 32px;
|
||||
width: 32px;
|
||||
vertical-align: middle;
|
||||
height: 70px;
|
||||
width: 130px;
|
||||
}
|
||||
|
||||
.logo h1 {
|
||||
display: inline-block;
|
||||
margin: 0 0 0 15px;
|
||||
color: #fff;
|
||||
margin: 0 0 0 10px;
|
||||
color: #eabf63;
|
||||
font-weight: 600;
|
||||
font-size: 20px;
|
||||
font-size: 22px;
|
||||
font-family: Avenir,Helvetica Neue,Arial,Helvetica,sans-serif;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
<nz-header>
|
||||
<div class="logo">
|
||||
<a>
|
||||
<img src="../logo.svg" alt="logo">
|
||||
<h1>Pyrofêtes P4</h1>
|
||||
<img src="../logo-navbar.svg" alt="logo">
|
||||
<h1>Gestion des relations</h1>
|
||||
</a>
|
||||
</div>
|
||||
<ul nz-menu class="top-nav" nzTheme="dark" nzMode="horizontal">
|
||||
<li nz-menu-item routerLinkActive="ant-menu-item-selected" routerLink="/customers">Clients</li>
|
||||
<li nz-menu-item routerLinkActive="ant-menu-item-selected" routerLink="/providers">Prestataires</li>
|
||||
<li nz-menu-item routerLinkActive="ant-menu-item-selected" routerLink="/staff">Artificiers</li>
|
||||
<li nz-menu-item routerLinkActive="ant-menu-item-selected" routerLink="/opportunities">Opportunités</li>
|
||||
</ul>
|
||||
<ul nz-menu class="top-nav" nzTheme="dark" nzMode="horizontal">
|
||||
<li nz-menu-item class="nav-item" routerLinkActive="ant-menu-item-selected" routerLink="/customers"><nz-icon nzType="shop" nzTheme="outline" /> Clients</li>
|
||||
<li nz-menu-item class="nav-item" routerLinkActive="ant-menu-item-selected" routerLink="/providers"><nz-icon nzType="solution" nzTheme="outline" /> Prestataires</li>
|
||||
<li nz-menu-item class="nav-item" routerLinkActive="ant-menu-item-selected" routerLink="/staff"><nz-icon nzType="fire" nzTheme="fill" /> Artificiers</li>
|
||||
<li nz-menu-item class="nav-item" routerLinkActive="ant-menu-item-selected" routerLink="/opportunities"><nz-icon nzType="stock" nzTheme="outline" /> Opportunités</li>
|
||||
</ul>
|
||||
</nz-header>
|
||||
<nz-content>
|
||||
<div class="inner-content">
|
||||
|
||||
@@ -2,10 +2,11 @@ import { Component } from '@angular/core';
|
||||
import {RouterLink, RouterLinkActive, RouterOutlet} from '@angular/router';
|
||||
import { NzLayoutModule } from 'ng-zorro-antd/layout';
|
||||
import { NzMenuModule } from 'ng-zorro-antd/menu';
|
||||
import {NzIconDirective} from "ng-zorro-antd/icon";
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
imports: [RouterOutlet, NzLayoutModule, NzMenuModule, RouterLinkActive, RouterLink],
|
||||
imports: [RouterOutlet, NzLayoutModule, NzMenuModule, RouterLinkActive, RouterLink, NzIconDirective],
|
||||
templateUrl: './app.html',
|
||||
styleUrl: './app.css'
|
||||
})
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
.ant-modal-content {
|
||||
background: #272727;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<p>providers-card-form works!</p>
|
||||
@@ -0,0 +1,55 @@
|
||||
import { Component } from '@angular/core';
|
||||
import {NzModalComponent, NzModalModule} from "ng-zorro-antd/modal";
|
||||
import {NzButtonComponent, NzButtonModule} from "ng-zorro-antd/button";
|
||||
import {NzMessageService} from "ng-zorro-antd/message";
|
||||
|
||||
@Component({
|
||||
selector: 'app-providers-card-form',
|
||||
imports: [NzButtonModule, NzModalModule],
|
||||
template: `
|
||||
<button nz-button nzType="primary" (click)="showModal()">
|
||||
<span>+</span>
|
||||
</button>
|
||||
<nz-modal
|
||||
[(nzVisible)]="isVisible"
|
||||
[nzTitle]="modalTitle"
|
||||
[nzContent]="modalContent"
|
||||
[nzFooter]="modalFooter"
|
||||
(nzOnCancel)="handleCancel()"
|
||||
>
|
||||
<ng-template #modalTitle style="text-align: center">Création de prestataires</ng-template>
|
||||
|
||||
<ng-template #modalContent>
|
||||
<app-providers-add-form></app-providers-add-form>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #modalFooter>
|
||||
<button nz-button nzType="default" (click)="handleCancel()">Annuler</button>
|
||||
<button nz-button nzType="primary" (click)="handleOk()" [nzLoading]="isConfirmLoading">Confirmer</button>
|
||||
</ng-template>
|
||||
</nz-modal>
|
||||
`,
|
||||
styleUrl: './providers-card-form.css',
|
||||
})
|
||||
export class ProvidersCardForm {
|
||||
constructor(private message: NzMessageService) {}
|
||||
isVisible = false;
|
||||
isConfirmLoading = false;
|
||||
|
||||
showModal(): void {
|
||||
this.isVisible = true;
|
||||
}
|
||||
|
||||
handleOk(): void {
|
||||
this.isConfirmLoading = true;
|
||||
this.message.success('Prestataire créé !');
|
||||
setTimeout(() => {
|
||||
this.isVisible = false;
|
||||
this.isConfirmLoading = false;
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
handleCancel(): void {
|
||||
this.isVisible = false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<app-providers-card-form/>
|
||||
12
src/app/pages/providers/providers-card/providers-card.ts
Normal file
12
src/app/pages/providers/providers-card/providers-card.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Component } from '@angular/core';
|
||||
import {ProvidersCardForm} from "../providers-card-form/providers-card-form";
|
||||
|
||||
@Component({
|
||||
selector: 'app-providers-card',
|
||||
imports: [ProvidersCardForm],
|
||||
templateUrl: './providers-card.html',
|
||||
styleUrl: './providers-card.css',
|
||||
})
|
||||
export class ProvidersCard {
|
||||
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
<p>providers works!</p>
|
||||
<app-providers-card-form></app-providers-card-form>
|
||||
@@ -1,8 +1,11 @@
|
||||
import { Component } from '@angular/core';
|
||||
import {ProvidersCardForm} from "./providers-card-form/providers-card-form";
|
||||
|
||||
@Component({
|
||||
selector: 'app-providers',
|
||||
imports: [],
|
||||
imports: [
|
||||
ProvidersCardForm
|
||||
],
|
||||
templateUrl: './providers.html',
|
||||
styleUrl: './providers.css',
|
||||
})
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<title>Pyrofètes Frontend</title>
|
||||
<base href="/">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
||||
<link rel="icon" type="image/x-icon" href="./public/logo-navbar.svg">
|
||||
</head>
|
||||
<body>
|
||||
<app-root></app-root>
|
||||
|
||||
Reference in New Issue
Block a user