Skip to content
Snippets Groups Projects
Commit fb4438e3 authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

fix(design sprint1): login page, onboarding

parent 4e5f7e22
No related branches found
No related tags found
4 merge requests!418V2.1.0,!400V2.0,!262Fix/us147 design sprint 1,!230V2.0
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
p.special { p.special {
@include lato-regular-14; @include lato-regular-14;
color: $grey-3; color: $grey-3;
margin: 4px 0 8px 0; margin: 4px 0;
width: 280px; width: 280px;
&.invalid { &.invalid {
color: $orange-warning; color: $orange-warning;
......
...@@ -92,6 +92,20 @@ ...@@ -92,6 +92,20 @@
} }
.footer { .footer {
margin-bottom: 1rem; margin-bottom: 1rem;
gap: 24px;
}
::ng-deep app-button {
flex: 1;
.secondary {
width: 100% !important;
div {
width: 95% !important;
}
}
.tertiary {
border-radius: 4px !important;
}
} }
} }
......
<div class="content"> <div class="content">
<div class="resetPage"> <div class="resetPage">
<div class="resetPasswordForm"> <div class="resetPasswordForm">
<h1>Mot de passe oublié</h1> <div class="title">
<p>Saisissez votre email afin de réinitialiser votre mot de passe</p> <h1>Mot de passe oublié</h1>
<form [formGroup]="resetForm" (ngSubmit)="onSubmit()"> <p>Saisissez votre email afin de réinitialiser votre mot de passe</p>
<div class="form-group"> </div>
<label for="email">Email du compte</label> <div class="fields">
<div fxLayout="row" fxLayoutGap="13px"> <form [formGroup]="resetForm" (ngSubmit)="onSubmit()">
<input <div class="form-group">
type="text" <label for="email">Email du compte</label>
autocomplete="on" <div fxLayout="row" fxLayoutGap="13px">
formControlName="email" <input
class="form-input" type="text"
[ngClass]="{ inputInvalid: submitted && f.email.errors }" autocomplete="on"
/> formControlName="email"
class="form-input"
[ngClass]="{ inputInvalid: submitted && f.email.errors }"
/>
</div>
<div *ngIf="submitted && f.email.errors" class="incorrectId">
<div *ngIf="f.email.errors.required">L'adresse e-mail est requise</div>
</div>
</div> </div>
<div *ngIf="submitted && f.email.errors" class="incorrectId"> <div class="footer" fxLayout="row" fxLayoutAlign="space-between center">
<div *ngIf="f.email.errors.required">L'adresse e-mail est requise</div> <app-button
(action)="goLogin()"
[type]="'button'"
[text]="'Annuler'"
[style]="buttonTypeEnum.Secondary"
[extraClass]="'fullButton'"
>
</app-button>
<app-button
[type]="'submit'"
[disabled]="loading"
[text]="'Envoyer'"
[style]="buttonTypeEnum.Primary"
[extraClass]="'fullWidth'"
>
</app-button>
</div> </div>
</div> </form>
<div class="footer" fxLayout="row" fxLayoutAlign="space-around center"> </div>
<app-button
(action)="goLogin()"
[type]="'button'"
[text]="'Annuler'"
[style]="buttonTypeEnum.Secondary"
[extraClass]="'fullButton'"
>
</app-button>
<app-button
[type]="'submit'"
[disabled]="loading"
[text]="'Envoyer'"
[style]="buttonTypeEnum.Primary"
[extraClass]="'fullButton'"
>
</app-button>
</div>
</form>
<!-- <app-password-form *ngIf="token" (passwordForm)="onSubmitPassword($event)"></app-password-form> --> <!-- <app-password-form *ngIf="token" (passwordForm)="onSubmitPassword($event)"></app-password-form> -->
</div> </div>
</div> </div>
......
...@@ -34,8 +34,9 @@ ...@@ -34,8 +34,9 @@
} }
} }
.resetPasswordForm { .resetPasswordForm {
max-width: 430px; display: flex;
margin: auto; flex-direction: column;
align-items: center;
h1, h1,
p { p {
text-align: center; text-align: center;
...@@ -50,8 +51,8 @@ ...@@ -50,8 +51,8 @@
} }
.form-group { .form-group {
max-width: 320px; max-width: 320px;
margin: auto;
margin-top: 2rem; margin-top: 2rem;
label { label {
color: $grey-2; color: $grey-2;
} }
...@@ -71,6 +72,5 @@ ...@@ -71,6 +72,5 @@
} }
.footer { .footer {
width: 340px; width: 340px;
margin: auto;
margin-top: 2rem; margin-top: 2rem;
} }
...@@ -23,7 +23,6 @@ export class ResetPasswordComponent implements OnInit { ...@@ -23,7 +23,6 @@ export class ResetPasswordComponent implements OnInit {
private formBuilder: FormBuilder, private formBuilder: FormBuilder,
private authService: AuthService, private authService: AuthService,
private router: Router, private router: Router,
private activatedRoute: ActivatedRoute,
private notificationService: NotificationService private notificationService: NotificationService
) {} ) {}
......
...@@ -249,11 +249,10 @@ button { ...@@ -249,11 +249,10 @@ button {
} }
} }
.fullButton { .fullButton {
@include lato-regular-14;
width: 125px !important; width: 125px !important;
} }
.fullWidth { .fullWidth {
width: 100%; width: 100% !important;
} }
.bigButton { .bigButton {
width: 280px !important; width: 280px !important;
......
<button <button (click)="clicked()" [ngClass]="{ selected: isChecked }">
(click)="clicked()"
[ngClass]="{ selected: isChecked }"
fxLayout="row"
fxLayoutAlign=" center"
fxLayoutGap="17px"
>
<div class="checkmark"> <div class="checkmark">
<svg class="validate" aria-hidden="true"> <svg class="validate" aria-hidden="true">
<use [attr.xlink:href]="'assets/form/sprite.svg#checkVectorSquareFull'"></use> <use *ngIf="isChecked" [attr.xlink:href]="'assets/form/sprite.svg#checkVectorSquareFull'"></use>
<use *ngIf="isChecked === false" [attr.xlink:href]="'assets/form/sprite.svg#checkVectorSquareEmpty'"></use>
</svg> </svg>
</div> </div>
<svg *ngIf="iconSvg" aria-hidden="true" [ngClass]="iconType"> <svg *ngIf="iconSvg" aria-hidden="true" [ngClass]="iconType" class="icon">
<use [attr.xlink:href]="'assets/form/sprite.svg#' + iconSvg"></use> <use [attr.xlink:href]="'assets/form/sprite.svg#' + iconSvg"></use>
</svg> </svg>
<p>{{ text }}</p> <p>{{ text }}</p>
......
@import '../../../../assets/scss/color'; @import '../../../../assets/scss/color';
@import '../../../../assets/scss/typography'; @import '../../../../assets/scss/typography';
svg {
min-width: 44px;
width: 44px;
height: 44px;
fill: $primary-color;
stroke: $primary-color;
&.validate {
stroke: none;
display: none;
}
&.labels {
min-width: 50px;
width: 50px;
}
}
button { button {
width: 296px; width: 296px;
height: 65px;
margin-top: 8px;
background: $grey-8; background: $grey-8;
border-radius: 4px;
padding: 0 16px; padding: 0 16px;
height: 65px; border-radius: 4px;
outline: none; outline: none;
border: none; border: 3px solid transparent;
cursor: pointer; cursor: pointer;
margin: 8px 0 0 0; box-sizing: border-box;
&.selected {
background: $white; display: flex;
border: 3px solid $green-1; justify-content: flex-start;
.validate { align-items: center;
display: initial; gap: 8px;
width: 100%;
height: 100%; svg.validate {
} width: 24px;
.checkmark { height: 24px;
width: 24px;
height: 24px;
// to compensate viewbox of svg
margin-right: 8px !important;
transform: translate(-5px);
border: none;
}
} }
svg.icon {
height: 44px;
width: 44px;
min-width: 44px;
}
p { p {
@include lato-bold-16; @include lato-bold-16;
text-align: left; text-align: left;
color: $grey-2; color: $grey-2;
} }
.checkmark {
width: 18px; &:hover {
height: 18px; p {
min-width: 18px; color: $grey-3;
}
}
&.selected {
background: $white; background: $white;
border: 1px solid $grey-3; border: 3px solid $green-1;
border-radius: 4px;
box-sizing: border-box;
} }
} }
...@@ -27,6 +27,11 @@ ...@@ -27,6 +27,11 @@
<path d="M7 12.8182L10.8889 16L17 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> <path d="M7 12.8182L10.8889 16L17 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</symbol> </symbol>
<symbol id="checkVectorSquareEmpty" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="3.5" y="3.5" width="17" height="17" rx="3.5" fill="white" stroke="#696969"/>
</symbol>
<symbol id="typeStructure_privateLucratif" viewBox="0 0 20 45" xmlns="http://www.w3.org/2000/svg"> <symbol id="typeStructure_privateLucratif" viewBox="0 0 20 45" xmlns="http://www.w3.org/2000/svg">
<path d="M3.56201 15.4203L16.562 10V43H3.56201V15.4203Z" stroke="none"/> <path d="M3.56201 15.4203L16.562 10V43H3.56201V15.4203Z" stroke="none"/>
<rect x="0.562012" y="44" width="19" height="1" stroke="none"/> <rect x="0.562012" y="44" width="19" height="1" stroke="none"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment