This commit is contained in:
cecilesimplon93 2022-01-21 14:55:35 +01:00
parent 8d5cd03d33
commit 080a694838
6 changed files with 12606 additions and 26 deletions

12572
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,2 +1,12 @@
<app-header></app-header> <app-header></app-header>
<p>Error 404 Page Not FOUND!!!!!!!!!!!</p>
<div>
<p> Page introuvable</p>
<a routerLink="" routerLinkActive="!active"><br><br>
Je retourne à l'accueil<br><br><br><br><br><br><br><br><br><br><br><br></a>
</div>

View File

@ -0,0 +1,22 @@
a.hover {
color :rgb(219, 200, 28)
}
a {
color: rgb(32, 114, 45);
}
div {
text-align: center;
font-weight: bold;
// si on préfère une image en fond
// background-image: url("../../../assets/images/404.jpg");
// background-size: cover;
background-image: linear-gradient(to left top, #051937, #004d7a, #008793, #e2ebe7, #f8faf5);
}

View File

@ -1,5 +1,6 @@
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
@Component({ @Component({
selector: 'app-page-not-found', selector: 'app-page-not-found',
templateUrl: './page-not-found.component.html', templateUrl: './page-not-found.component.html',
@ -7,9 +8,28 @@ import { Component, OnInit } from '@angular/core';
}) })
export class PageNotFoundComponent implements OnInit { export class PageNotFoundComponent implements OnInit {
constructor() { }
ngOnInit(): void { constructor() {
} }
ngOnInit(): void {
}
} }
/* version alternative pour mettre une redirection automatique
---------------
---------------
import { Router } from '@angular/router';
----------------
constructor(private routeur: Router) { }
----------------
ngOnInit(): void {
setTimeout(
() => {
this.routeur.navigate(["accueil"]);
}, 3000
);
} } */

View File

@ -20,7 +20,7 @@ export class AuthService {
signup(membre: Membre): Observable<any> { signup(membre: Membre): Observable<any> {
console.log(membre); console.log(membre);
return this.http.post(`${this.apiUrl}/creation-compte`, membre); return this.http.post(`${this.apiUrl}/membres/signup`, membre);
} }
signin(email: string, password: string): Observable<any> { signin(email: string, password: string): Observable<any> {

BIN
src/assets/images/404.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB