|
|
@@ -1,4 +1,4 @@
|
|
|
-<div>
|
|
|
+<div *ngIf="isBrowser">
|
|
|
|
|
|
<mat-toolbar color="primary" class="fatboar-navbar">
|
|
|
<div fxShow="true" fxHide.gt-sm="true">
|
|
|
@@ -6,94 +6,76 @@
|
|
|
<mat-icon>menu</mat-icon>
|
|
|
</button>
|
|
|
</div>
|
|
|
-
|
|
|
- <a routerLink="/" class="">
|
|
|
- <span><img src="assets/img/logo-fatboar.png" width="50" height="50" class="logo-fatboar" alt="fatboar"></span>
|
|
|
-
|
|
|
- </a>
|
|
|
+
|
|
|
+ <a routerLink="/">
|
|
|
+ <span>
|
|
|
+ <img src="assets/img/logo-fatboar.png" width="50" height="50" class="logo-fatboar" alt="fatboar">
|
|
|
+ </span>
|
|
|
+ </a>
|
|
|
+
|
|
|
<span class="example-spacer"></span>
|
|
|
+
|
|
|
<div fxShow="true" fxHide.lt-md="true">
|
|
|
- <a class="navbtn" mat-button routerLink="/login" *ngIf="!isLogged"> Connexion</a>
|
|
|
+ <a class="navbtn" mat-button routerLink="/login" *ngIf="!isLogged">Connexion</a>
|
|
|
<a class="navbtn" mat-button routerLink="/register" *ngIf="!isLogged">Inscription</a>
|
|
|
<a class="navbtn" mat-button routerLink="/auth" *ngIf="isLogged && !isAdmin">Gain</a>
|
|
|
- <a class="navbtn" mat-button routerLink="/tirage" [hidden]="!isAdmin">Tirage</a>
|
|
|
- <a class="navbtn" mat-button routerLink="/profil" *ngIf="isLogged"><mat-icon>person</mat-icon>Mon profil</a>
|
|
|
- <a class="navbtn" mat-button routerLink="/users" [hidden]="!isAdmin">Clients</a>
|
|
|
- <a class="navbtn" mat-button routerLink="/statistique" [hidden]="!isAdmin">Statistique</a>
|
|
|
- <a class="navbtn" mat-button routerLink="/emailing" [hidden]="!isAdmin">Emailing</a>
|
|
|
- <a class="navbtn" mat-button routerLink="/assistance" [hidden]="!isAdmin">Assistance</a>
|
|
|
- <!-- <a class="navbtn" mat-button routerLink="/users" [hidden]="!isAdmin">Employés</a> -->
|
|
|
- <a class="navbtn" mat-button routerLink="/contact" *ngIf="!isLogged && !isAdmin" >Contact</a>
|
|
|
+ <a class="navbtn" mat-button routerLink="/tirage" *ngIf="isAdmin">Tirage</a>
|
|
|
+ <a class="navbtn" mat-button routerLink="/profil" *ngIf="isLogged">
|
|
|
+ <mat-icon>person</mat-icon>Mon profil
|
|
|
+ </a>
|
|
|
+ <a class="navbtn" mat-button routerLink="/users" *ngIf="isAdmin">Clients</a>
|
|
|
+ <a class="navbtn" mat-button routerLink="/statistique" *ngIf="isAdmin">Statistique</a>
|
|
|
+ <a class="navbtn" mat-button routerLink="/emailing" *ngIf="isAdmin">Emailing</a>
|
|
|
+ <a class="navbtn" mat-button routerLink="/assistance" *ngIf="isAdmin">Assistance</a>
|
|
|
+ <a class="navbtn" mat-button routerLink="/contact" *ngIf="!isLogged && !isAdmin">Contact</a>
|
|
|
<a class="navbtn" mat-icon-button color="basic" aria-label="" (click)="logOut()" *ngIf="isLogged">
|
|
|
<mat-icon>power_settings_new</mat-icon>
|
|
|
</a>
|
|
|
</div>
|
|
|
</mat-toolbar>
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
<mat-sidenav-container fxFlexFill class="fatboar-sidenav-containe">
|
|
|
-
|
|
|
- <!-- le menu -->
|
|
|
- <mat-sidenav color="primary" #sidenav fxLayout="column" mode="over" opened="false" fxHide.gt-sm="true">
|
|
|
+ <mat-sidenav #sidenav fxLayout="column" mode="over" opened="false" fxHide.gt-sm="true">
|
|
|
<div fxLayout="column" class="msidenav">
|
|
|
- <!-- <a mat-button routerLink="/about-us">About us</a>
|
|
|
- <a mat-button routerLink="/prices">Prices</a>
|
|
|
- <a mat-button routerLink="/start-page">Start page</a>
|
|
|
- <a mat-button routerLink="/offer"> <mat-icon>home</mat-icon>Offer</a>
|
|
|
- <a mat-button routerLink="/contact">Contact</a> -->
|
|
|
<mat-nav-list>
|
|
|
- <a mat-list-item routerLink="/" *ngIf="!isLogged">
|
|
|
- <mat-icon mat-list-icon>home</mat-icon>
|
|
|
- <span mat-line>Menu</span>
|
|
|
- </a>
|
|
|
- <a mat-list-item routerLink="/login" *ngIf="!isLogged">
|
|
|
- <mat-icon mat-list-icon>account_circle</mat-icon>
|
|
|
- <span mat-line>Connexion</span>
|
|
|
- </a>
|
|
|
- <a mat-list-item routerLink="/register" *ngIf="!isLogged">
|
|
|
- <mat-icon mat-list-icon>article</mat-icon>
|
|
|
- <span mat-line>Inscription</span>
|
|
|
- </a>
|
|
|
- <a mat-list-item routerLink="/user" *ngIf="isLogged">
|
|
|
- <mat-icon mat-list-icon>account_circle</mat-icon>
|
|
|
- <span mat-line>users</span>
|
|
|
- </a>
|
|
|
- <a mat-list-item routerLink="/contact">
|
|
|
- <mat-icon mat-list-icon>forward_to_inbox</mat-icon>
|
|
|
- <span mat-line>Contact</span>
|
|
|
- </a>
|
|
|
- <a mat-list-item (click)="logOut()" *ngIf="isLogged">
|
|
|
- <mat-icon mat-list-icon>power_settings_new</mat-icon>
|
|
|
- <span mat-line>Déconnecter</span>
|
|
|
- </a>
|
|
|
- <a mat-list-item (click)="sidenav.toggle()">
|
|
|
- <mat-icon mat-list-icon>clear</mat-icon>
|
|
|
- <span mat-line>Fermer</span>
|
|
|
- </a>
|
|
|
- </mat-nav-list>
|
|
|
- <!-- <a mat-button (click)="sidenav.toggle()" >Close</a>
|
|
|
- <a class="navbtn" mat-button (click)="sidenav.toggle()" color="basic" aria-label="">
|
|
|
- <mat-icon>clear</mat-icon>
|
|
|
- </a> -->
|
|
|
+ <a mat-list-item routerLink="/" *ngIf="!isLogged">
|
|
|
+ <mat-icon mat-list-icon>home</mat-icon>
|
|
|
+ <span mat-line>Menu</span>
|
|
|
+ </a>
|
|
|
+ <a mat-list-item routerLink="/login" *ngIf="!isLogged">
|
|
|
+ <mat-icon mat-list-icon>account_circle</mat-icon>
|
|
|
+ <span mat-line>Connexion</span>
|
|
|
+ </a>
|
|
|
+ <a mat-list-item routerLink="/register" *ngIf="!isLogged">
|
|
|
+ <mat-icon mat-list-icon>article</mat-icon>
|
|
|
+ <span mat-line>Inscription</span>
|
|
|
+ </a>
|
|
|
+ <a mat-list-item routerLink="/user" *ngIf="isLogged">
|
|
|
+ <mat-icon mat-list-icon>account_circle</mat-icon>
|
|
|
+ <span mat-line>users</span>
|
|
|
+ </a>
|
|
|
+ <a mat-list-item routerLink="/contact">
|
|
|
+ <mat-icon mat-list-icon>forward_to_inbox</mat-icon>
|
|
|
+ <span mat-line>Contact</span>
|
|
|
+ </a>
|
|
|
+ <a mat-list-item (click)="logOut()" *ngIf="isLogged">
|
|
|
+ <mat-icon mat-list-icon>power_settings_new</mat-icon>
|
|
|
+ <span mat-line>Déconnecter</span>
|
|
|
+ </a>
|
|
|
+ <a mat-list-item (click)="sidenav.toggle()">
|
|
|
+ <mat-icon mat-list-icon>clear</mat-icon>
|
|
|
+ <span mat-line>Fermer</span>
|
|
|
+ </a>
|
|
|
+ </mat-nav-list>
|
|
|
</div>
|
|
|
</mat-sidenav>
|
|
|
|
|
|
<mat-sidenav-content fxFlexFill class="fatboar-sidenav-content">
|
|
|
-
|
|
|
- <router-outlet></router-outlet>
|
|
|
- <div class="footer">
|
|
|
- <app-footer></app-footer>
|
|
|
- </div>
|
|
|
-
|
|
|
-
|
|
|
+ <router-outlet></router-outlet>
|
|
|
+ <div class="footer">
|
|
|
+ <app-footer></app-footer>
|
|
|
+ </div>
|
|
|
</mat-sidenav-content>
|
|
|
-
|
|
|
</mat-sidenav-container>
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
</div>
|