aboutsummaryrefslogtreecommitdiff
path: root/src/app/components
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-03-21 13:50:39 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-03-21 13:50:39 +0200
commit17a8110e3e0450a88207b9b8b05ebde166a433bc (patch)
tree6c80cdd5eaeac6e92e15e05d24f4772c68ed1ee2 /src/app/components
parent05498013ab02d44ea1e6906c2f64ae63eeaea93a (diff)
downloadDevHive-Angular-17a8110e3e0450a88207b9b8b05ebde166a433bc.tar
DevHive-Angular-17a8110e3e0450a88207b9b8b05ebde166a433bc.tar.gz
DevHive-Angular-17a8110e3e0450a88207b9b8b05ebde166a433bc.zip
Major redesign of login component styling
Diffstat (limited to 'src/app/components')
-rw-r--r--src/app/components/login/login.component.css28
-rw-r--r--src/app/components/login/login.component.html27
2 files changed, 13 insertions, 42 deletions
diff --git a/src/app/components/login/login.component.css b/src/app/components/login/login.component.css
index 103f5c0..3cd7198 100644
--- a/src/app/components/login/login.component.css
+++ b/src/app/components/login/login.component.css
@@ -1,32 +1,8 @@
-form {
- width: 100%;
-}
-
-#content hr {
- width: 100%;
- border: 1px solid black;
- box-sizing: border-box;
-}
-
-.submit-btn {
- transition: 0.2s;
-}
-
-.input-selection:nth-of-type(1) {
- margin-top: 1.2em;
-}
-
-.submit-btn {
- margin-bottom: .2em;
+.input-selection:first-of-type {
+ margin-top: 0.5em;
}
.redirect-to-register {
color: var(--focus-color);
- background-color: var(--bg-color);
border-color: var(--focus-color);
}
-
-.redirect-to-register:hover {
- border-color: black !important;
- color: black;
-}
diff --git a/src/app/components/login/login.component.html b/src/app/components/login/login.component.html
index 9f74faa..5ed1ac8 100644
--- a/src/app/components/login/login.component.html
+++ b/src/app/components/login/login.component.html
@@ -1,30 +1,25 @@
-<main id="content">
- <summary class="title">Login</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">Login</summary>
- <form [formGroup]="loginUserFormGroup" (ngSubmit)="onSubmit()">
- <hr>
-
- <section class="input-selection">
- <input type="text" placeholder="Username" class="input-field" formControlName="username" required>
- <label class="input-field-label">Username</label>
+ <app-error-bar class="full-width margin-top-normal"></app-error-bar>
+ <form class="full-width card padding-big" [formGroup]="loginUserFormGroup" (ngSubmit)="onSubmit()">
+ <section class="input-selection full-width">
+ <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="loginUserFormGroup.get('username')?.errors?.required" class="error">*Required</label>
</div>
</section>
-
<section class="input-selection">
- <input type="password" placeholder="Password" 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="loginUserFormGroup.get('password')?.errors?.required" class="error">*Required</label>
</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-register" (click)="onRedirectRegister()">New to DevHive? Register instead</button>
+ <button class="focus-fg-color faded-slim-border padding-smaller lighter-hover click-effect border-radius-smaller full-width margin-top-normal" (click)="onRedirectRegister()">New to DevHive? Register instead</button>
</main>