page d'accueil fixed

This commit is contained in:
Blandine Bajard 2022-02-14 12:25:49 +01:00
parent acfb169715
commit 2f5705e766
4 changed files with 28 additions and 23 deletions

View File

@ -1,5 +1,6 @@
<app-header></app-header>
<body>
<div class="container">
<div class="bienvenue">
<h2 class="titre">BIENVENUE</h2>
<p>
@ -13,6 +14,7 @@ lu, nous sommes là pour vous aider !</p>
<div class="connexion">
<app-signin></app-signin>
</div>
</div>
<div class="pub">
<img src="../../../assets/images/menu.png" />
<img src="../../../assets/images/repertoire.png" />

View File

@ -1,10 +1,15 @@
.container {
display: flex;
}
.bienvenue {
float: left;
display: inline;
// display: inline-block;
// height: 300px;
border: 4px solid #5d5fef;
border-radius: 10px;
margin-top: 50px;
margin-left: 200px;
// margin-left: 200px;
padding-right: 10px;
padding-left: 10px;
}
@ -18,17 +23,20 @@ p {
line-height: 2em;
}
.connexion {
float: right;
// float: right;
height: 350px;
display: inline;
margin-top: -40px;
margin-right: 200px;
margin-left: 10px;
// margin-right: 200px;
}
.pub {
padding-top: 100px;
padding-right: 100px;
padding-left: 200px;
display: flex;
flex-wrap: wrap;
padding-top: 100px;
padding-right: 200px;
padding-left: 200px;
justify-content: space-between;
}

View File

@ -13,10 +13,10 @@
routerLinkActive="active-custom">Ré-initialiser mon mot de passe</button>
</form>
<!--
<div *ngIf="errorForm">
<p class="text-danger">Il manque des informations dans le formulaire...</p>
</div>
</div> -->
</main>
</div>

View File

@ -14,25 +14,20 @@ import {
styleUrls: ['./page-forgot-password.component.scss']
})
export class PageForgotPasswordComponent implements OnInit {
public errorForm: boolean;
constructor(private authService: AuthService, private router: Router) {
this.errorForm = false;
}
ngOnInit(): void {}
public onSubmit(submittedForm: any): void {
console.log(submittedForm.form.value);
const email = submittedForm.form.value['email'];
if (email !== '') {
this.authService.forgotPassword(email).subscribe((resp) => {
console.log('Component : PageForgotPassword ', resp);
console.log(email);
window.alert("Vous allez recevoir un email pour re-initialiser votre mot de passe !")
this.router.navigate(['reinitialisation-password']);
});
} else {
// afficher une erreur à l'utilisateur
this.errorForm = true;
;
}
}
}