update design, privacy policy checkbox added to registration form
This commit is contained in:
parent
f8d8d07879
commit
72dbbcc456
6 changed files with 48 additions and 3 deletions
|
|
@ -67,7 +67,6 @@
|
||||||
<app-btn-large
|
<app-btn-large
|
||||||
[value]="'Log in'"
|
[value]="'Log in'"
|
||||||
[disabled]="
|
[disabled]="
|
||||||
!checkbox.checked ||
|
|
||||||
!authData.mail ||
|
!authData.mail ||
|
||||||
(!isUserEmailValid(authData.mail) && authData.mail.length > 0) ||
|
(!isUserEmailValid(authData.mail) && authData.mail.length > 0) ||
|
||||||
!password.valid
|
!password.valid
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,20 @@
|
||||||
<p>The passwords do not match</p>
|
<p>The passwords do not match</p>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
<div class="checkbox">
|
||||||
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
id="checkbox"
|
||||||
|
name="checkbox"
|
||||||
|
#checkbox
|
||||||
|
[(ngModel)]="authData.privacyPolicy"
|
||||||
|
/>
|
||||||
|
<label for="checkbox"
|
||||||
|
>I agree to the
|
||||||
|
<a routerLink="/privacy-policy" target="_blank">Privacy policy</a
|
||||||
|
>.</label
|
||||||
|
>
|
||||||
|
</div>
|
||||||
<app-btn-large
|
<app-btn-large
|
||||||
[value]="'Get Started'"
|
[value]="'Get Started'"
|
||||||
[disabled]="
|
[disabled]="
|
||||||
|
|
@ -93,7 +107,8 @@
|
||||||
authData.mail.length > 0) ||
|
authData.mail.length > 0) ||
|
||||||
authData.password !== authData.passwordConfirm ||
|
authData.password !== authData.passwordConfirm ||
|
||||||
!authData.password ||
|
!authData.password ||
|
||||||
!authData.passwordConfirm
|
!authData.passwordConfirm ||
|
||||||
|
!authData.privacyPolicy
|
||||||
"
|
"
|
||||||
></app-btn-large>
|
></app-btn-large>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
||||||
|
|
@ -6,3 +6,32 @@ section {
|
||||||
background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
|
background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
|
||||||
url(./../../../../assets/img/backgrounds/register.png);
|
url(./../../../../assets/img/backgrounds/register.png);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.checkbox {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
width: 90%;
|
||||||
|
height: 24px;
|
||||||
|
margin-bottom: 24px;
|
||||||
|
input {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
margin: 12px;
|
||||||
|
}
|
||||||
|
label {
|
||||||
|
width: fit-content;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 400;
|
||||||
|
color: $black;
|
||||||
|
a {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 400;
|
||||||
|
color: $blue;
|
||||||
|
text-decoration: none;
|
||||||
|
cursor: pointer;
|
||||||
|
&:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ export class RegisterComponent {
|
||||||
mail: '',
|
mail: '',
|
||||||
password: '',
|
password: '',
|
||||||
passwordConfirm: '',
|
passwordConfirm: '',
|
||||||
|
privacyPolicy: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
registrationSuccess: boolean = false;
|
registrationSuccess: boolean = false;
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ footer {
|
||||||
padding: 0 36px;
|
padding: 0 36px;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
text-decoration: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
&:hover {
|
&:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
&:disabled {
|
&:disabled {
|
||||||
background-color: $light-blue;
|
background-color: $light-blue;
|
||||||
color: darken($white, 10%);
|
color: darken($white, 10%);
|
||||||
border: 1px solid $gray;
|
border: 1px solid $light-blue;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue