Merge pull request #11 from AlineRinquin/cecile

page 404
This commit is contained in:
AlineRinquin 2022-01-21 15:05:01 +01:00 committed by GitHub
commit ef3418b45c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 1727 additions and 12167 deletions

13835
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,2 +1,12 @@
<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';
@Component({
selector: 'app-page-not-found',
templateUrl: './page-not-found.component.html',
@ -7,9 +8,28 @@ import { Component, OnInit } from '@angular/core';
})
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

@ -23,6 +23,7 @@ export class AuthService {
console.log(membre);
return this.http.post(`${this.apiUrl}/membres/sign-up`, membre);
}

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB