aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/register/register.component.html
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-03-22 15:04:02 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-03-22 15:04:02 +0200
commit3de60965677e4ebb4205592a321ad0aea34f1a78 (patch)
tree76defade33e7427e5a6afe77a3ff1c085a0e1422 /src/app/components/register/register.component.html
parentd85955e39ec4561ba269cbd05daea6ad8e46158d (diff)
downloadDevHive-Angular-3de60965677e4ebb4205592a321ad0aea34f1a78.tar
DevHive-Angular-3de60965677e4ebb4205592a321ad0aea34f1a78.tar.gz
DevHive-Angular-3de60965677e4ebb4205592a321ad0aea34f1a78.zip
Major redesign of register page styling (following login page's styling)
Diffstat (limited to 'src/app/components/register/register.component.html')
-rw-r--r--src/app/components/register/register.component.html50
1 files changed, 20 insertions, 30 deletions
diff --git a/src/app/components/register/register.component.html b/src/app/components/register/register.component.html
index 0075b1d..4aae7ed 100644
--- a/src/app/components/register/register.component.html
+++ b/src/app/components/register/register.component.html
@@ -1,55 +1,44 @@
-<main id="content">
- <summary class="title">Register</summary>
+<main class="centered-content flex-col flex-center-align-items flex-justify-center full-height">
+ <summary class="title card full-width no-margin padding-small">Register</summary>
- <form [formGroup]="registerUserFormGroup" (ngSubmit)="onSubmit()">
- <hr>
- <!-- Value: {{ registerUserFormGroup.value | json }}
- <hr> -->
-
- <section class="input-selection">
- <input type="text" placeholder="Goshko, is that u?" class="input-field" formControlName="firstName" required>
- <label class="input-field-label">First Name</label>
+ <app-error-bar class="full-width margin-top-normal"></app-error-bar>
+ <form class="full-width card padding-big" [formGroup]="registerUserFormGroup" (ngSubmit)="onSubmit()">
+ <section class="input-selection full-width">
+ <input type="text" placeholder="First Name" class="fancy-input full-width faded-slim-border border-bottom-only" formControlName="firstName" required>
+ <label class="fancy-input-label full-width">First Name</label>
<div class="input-errors">
<label *ngIf="registerUserFormGroup.get('firstName')?.errors?.required" class="error">*Required</label>
<label *ngIf="registerUserFormGroup.get('firstName')?.errors?.minlength" class="error">*Minimum 3 characters</label>
</div>
</section>
-
<section class="input-selection">
- <input type="text" placeholder="Trapov? Really??" class="input-field" formControlName="lastName" required>
- <label class="input-field-label">Last Name</label>
-
+ <input type="text" placeholder="Last Name" class="fancy-input full-width faded-slim-border border-bottom-only" formControlName="lastName" required>
+ <label class="fancy-input-label full-width">Last Name</label>
<div class="input-errors">
<label *ngIf="registerUserFormGroup.get('lastName')?.errors?.required" class="error">*Required</label>
<label *ngIf="registerUserFormGroup.get('lastName')?.errors?.minlength" class="error">*Minimum 3 characters</label>
</div>
</section>
-
<section class="input-selection">
- <input type="text" placeholder="Think of something cool to flex on other kids" class="input-field" formControlName="username" required>
- <label class="input-field-label">Username</label>
-
+ <input type="text" placeholder="Username" class="fancy-input full-width faded-slim-border border-bottom-only" formControlName="username" required>
+ <label class="fancy-input-label full-width">Username</label>
<div class="input-errors">
<label *ngIf="registerUserFormGroup.get('username')?.errors?.required" class="error">*Required</label>
<label *ngIf="registerUserFormGroup.get('username')?.errors?.minlength" class="error">*Minimum 3 characters</label>
</div>
</section>
-
<section class="input-selection">
- <input type="text" placeholder="You expect an email joke? I have none, mail me one" class="input-field" formControlName="email" required>
- <label class="input-field-label">Email</label>
-
+ <input type="text" placeholder="Email" class="fancy-input full-width faded-slim-border border-bottom-only" formControlName="email" required>
+ <label class="fancy-input-label full-width">Email</label>
<div class="input-errors">
<label *ngIf="registerUserFormGroup.get('email')?.errors?.required" class="error">*Required</label>
<label *ngIf="registerUserFormGroup.get('email')?.errors?.email" class="error">*Invalid email</label>
</div>
</section>
-
<section class="input-selection">
- <input type="password" placeholder="Make sure it's long & strong (just like my d***)" class="input-field" formControlName="password" required>
- <label class="input-field-label">Password</label>
-
+ <input type="password" placeholder="Password" class="fancy-input full-width faded-slim-border border-bottom-only" formControlName="password" required>
+ <label class="fancy-input-label full-width">Password</label>
<div class="input-errors">
<label *ngIf="registerUserFormGroup.get('password')?.errors?.required" class="error">*Required</label>
<label *ngIf="registerUserFormGroup.get('password')?.errors?.minlength" class="error">*Minimum 3 characters</label>
@@ -57,9 +46,10 @@
</div>
</section>
- <hr>
- <button class="submit-btn" type="submit">Submit</button>
- <app-error-bar></app-error-bar>
+
+ <button class="faded-slim-border padding-smaller lighter-hover click-effect border-radius-smaller full-width" type="submit">Submit</button>
</form>
- <button class="submit-btn redirect-to-login" (click)="onRedirectLogin()">Already have an account? Login here</button>
+ <button class="focus-fg-color faded-slim-border padding-smaller lighter-hover click-effect border-radius-smaller full-width margin-top-normal" (click)="onRedirectLogin()">
+ Already have an account? Login here
+ </button>
</main>