aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/profile-settings
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-03-22 20:23:30 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-03-22 20:23:30 +0200
commit9906b285148f54b4060c71012854a814409cc9d7 (patch)
tree6bc62baa8fd2d10ef99144d950a30c2a48e851b3 /src/app/components/profile-settings
parent75594e7eac044e9398fd1b74246f22cabe6ddeba (diff)
downloadDevHive-Angular-9906b285148f54b4060c71012854a814409cc9d7.tar
DevHive-Angular-9906b285148f54b4060c71012854a814409cc9d7.tar.gz
DevHive-Angular-9906b285148f54b4060c71012854a814409cc9d7.zip
Improved readability and consistency of font-size, text, border, colors and padding CSS class names
Diffstat (limited to 'src/app/components/profile-settings')
-rw-r--r--src/app/components/profile-settings/profile-settings.component.html54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/app/components/profile-settings/profile-settings.component.html b/src/app/components/profile-settings/profile-settings.component.html
index 62513ef..871fd7e 100644
--- a/src/app/components/profile-settings/profile-settings.component.html
+++ b/src/app/components/profile-settings/profile-settings.component.html
@@ -3,68 +3,68 @@
<app-loading *ngIf="!dataArrived"></app-loading>
<main class="scroll-standalone under-navbar centered-content flex-col">
- <section class="card full-width" *ngIf="this.isAdminUser">
- <button class="full-width faded-slim-border padding-smaller lighter-hover click-effect border-radius-smaller" (click)="goToAdminPanel()">
+ <section class="card width-full" *ngIf="this.isAdminUser">
+ <button class="width-full border-faded-slim padding-dot3 lighter-hover click-effect border-radius-dot3" (click)="goToAdminPanel()">
Go to admin panel
</button>
</section>
- <form class="flex-row card full-width font-size-dot9 margin-top-bot-very-big" [formGroup]="updateProfilePictureFormGroup" (ngSubmit)="updateProfilePicture()">
+ <form class="flex-row card width-full font-size-dot9 margin-top-bot-very-big" [formGroup]="updateProfilePictureFormGroup" (ngSubmit)="updateProfilePicture()">
<img id="profile-picture" class="round-image" [src]="user.profilePictureURL">
- <section class="flexible flex-col flex-center-align-items flex-justify-center side-padding-font">
- <input class="full-width faded-slim-border padding-smaller lighter-hover click-effect border-radius-smaller" type="file" accept="image/*" formControlName="fileUpload" (change)="onFileUpload($event)">
- <button class="full-width faded-slim-border padding-smaller lighter-hover click-effect border-radius-smaller margin-top-normal" type="submit" *ngIf="newProfilePicture.size > 0">
+ <section class="flexible flex-col flex-center-align-items flex-justify-center padding-side-font">
+ <input class="width-full border-faded-slim padding-dot3 lighter-hover click-effect border-radius-dot3" type="file" accept="image/*" formControlName="fileUpload" (change)="onFileUpload($event)">
+ <button class="width-full border-faded-slim padding-dot3 lighter-hover click-effect border-radius-dot3 margin-top-normal" type="submit" *ngIf="newProfilePicture.size > 0">
Update profile picture
</button>
</section>
</form>
- <form class="flex-col card full-width padding-big" [formGroup]="updateUserFormGroup" (ngSubmit)="onSubmit()">
+ <form class="flex-col card width-full padding-dot6" [formGroup]="updateUserFormGroup" (ngSubmit)="onSubmit()">
<section class="flex-col">
<div class="flex-row">
- <label class="flexible focus-fg-color">First Name</label>
+ <label class="flexible fg-focus">First Name</label>
<label *ngIf="updateUserFormGroup.get('firstName')?.errors?.required" class="error">*Required</label>
<label *ngIf="updateUserFormGroup.get('firstName')?.errors?.minlength" class="error">*Minimum 3 characters</label>
</div>
- <input type="text" class="fancy-input faded-slim-border border-bottom-only" formControlName="firstName" required>
+ <input type="text" class="fancy-input border-faded-slim border-bottom-only" formControlName="firstName" required>
</section>
<section class="flex-col">
<div class="flex-row">
- <label class="flexible focus-fg-color">Last Name</label>
+ <label class="flexible fg-focus">Last Name</label>
<label *ngIf="updateUserFormGroup.get('lastName')?.errors?.required" class="error">*Required</label>
<label *ngIf="updateUserFormGroup.get('lastName')?.errors?.minlength" class="error">*Minimum 3 characters</label>
</div>
- <input type="text" class="fancy-input faded-slim-border border-bottom-only" formControlName="lastName" required>
+ <input type="text" class="fancy-input border-faded-slim border-bottom-only" formControlName="lastName" required>
</section>
<section class="flex-col">
<div class="flex-row">
- <label class="flexible focus-fg-color">Username</label>
+ <label class="flexible fg-focus">Username</label>
<label *ngIf="updateUserFormGroup.get('username')?.errors?.required" class="error">*Required</label>
<label *ngIf="updateUserFormGroup.get('username')?.errors?.minlength" class="error">*Minimum 3 characters</label>
</div>
- <input type="text" class="fancy-input faded-slim-border border-bottom-only" formControlName="username" required>
+ <input type="text" class="fancy-input border-faded-slim border-bottom-only" formControlName="username" required>
</section>
<section class="flex-col">
<div class="flex-row">
- <label class="flexible focus-fg-color">Email</label>
+ <label class="flexible fg-focus">Email</label>
<label *ngIf="updateUserFormGroup.get('email')?.errors?.required" class="error">*Required</label>
<label *ngIf="updateUserFormGroup.get('email')?.errors?.email" class="error">*Invalid email</label>
</div>
- <input type="text" class="fancy-input faded-slim-border border-bottom-only" formControlName="email" required>
+ <input type="text" class="fancy-input border-faded-slim border-bottom-only" formControlName="email" required>
</section>
<section class="flex-col">
<div class="flex-row">
- <label class="flexible focus-fg-color">Password</label>
+ <label class="flexible fg-focus">Password</label>
<label *ngIf="updateUserFormGroup.get('password')?.errors?.required" class="error">*Required</label>
<label *ngIf="updateUserFormGroup.get('password')?.errors?.minlength" class="error">*Minimum 3 characters</label>
<label *ngIf="updateUserFormGroup.get('password')?.errors?.pattern" class="error">*At least 1 number</label>
</div>
- <input type="password" class="fancy-input faded-slim-border border-bottom-only" formControlName="password" required>
+ <input type="password" class="fancy-input border-faded-slim border-bottom-only" formControlName="password" required>
</section>
- <button type="button" class="focus-fg-color full-width faded-slim-border padding-smaller lighter-hover click-effect margin-top-normal" (click)="toggleLanguages()">
+ <button type="button" class="fg-focus width-full border-faded-slim padding-dot3 lighter-hover click-effect margin-top-normal" (click)="toggleLanguages()">
▼ Edit Languages ▼
</button>
<section *ngIf="showLanguages">
@@ -72,7 +72,7 @@
<label class="error">
Type in your desired languages, separated by a space
</label>
- <input class="fancy-input full-width faded-slim-border border-bottom-only" type="text" placeholder="You have no selected languages!" formControlName="languageInput" required>
+ <input class="fancy-input width-full border-faded-slim border-bottom-only" type="text" placeholder="You have no selected languages!" formControlName="languageInput" required>
</div>
<div class="none-message" *ngIf="availableLanguages.length === 0">
No languages available!
@@ -81,12 +81,12 @@
Available languages:
</div>
<div class="flex-row margin-top-normal" *ngFor="let lang of availableLanguages">
- <div class="sec-info border-radius-normal padding-small">
+ <div class="sec-info border-radius-dot5r padding-dot2">
{{ lang.name }}
</div>
</div>
</section>
- <button type="button" class="focus-fg-color full-width faded-slim-border padding-smaller lighter-hover click-effect margin-top-normal" (click)="toggleTechnologies()">
+ <button type="button" class="fg-focus width-full border-faded-slim padding-dot3 lighter-hover click-effect margin-top-normal" (click)="toggleTechnologies()">
▼ Edit Technologies ▼
</button>
<section *ngIf="showTechnologies">
@@ -94,7 +94,7 @@
<label class="error">
Type in your desired technologies, separated by a space
</label>
- <input class="fancy-input full-width faded-slim-border border-bottom-only" type="text" placeholder="You have no selected technologies!" formControlName="technologyInput" required>
+ <input class="fancy-input width-full border-faded-slim border-bottom-only" type="text" placeholder="You have no selected technologies!" formControlName="technologyInput" required>
</div>
<div class="none-message" *ngIf="availableTechnologies.length === 0">
No technologies available!
@@ -103,7 +103,7 @@
Available technologies:
</div>
<div class="flex-row margin-top-normal" *ngFor="let tech of availableTechnologies">
- <div class="sec-info border-radius-normal padding-small">
+ <div class="sec-info border-radius-dot5r padding-dot2">
{{ tech.name }}
</div>
</div>
@@ -112,15 +112,15 @@
<app-success-bar></app-success-bar>
<app-error-bar></app-error-bar>
</section>
- <button class="full-width faded-slim-border padding-smaller lighter-hover click-effect border-radius-smaller" type="submit">
+ <button class="width-full border-faded-slim padding-dot3 lighter-hover click-effect border-radius-dot3" type="submit">
Update profile
</button>
</form>
- <section class="card full-width">
- <div class="margin-bot-bigger text-centered error-fg-color" *ngIf="deleteAccountConfirm">
+ <section class="card width-full">
+ <div class="margin-bot-bigger text-centered fg-error" *ngIf="deleteAccountConfirm">
Are you sure you want to delete your account?<br>This is permanent!
</div>
- <button class="full-width faded-slim-border padding-smaller lighter-hover click-effect border-radius-smaller error-fg-color" (click)="deleteAccount()">
+ <button class="width-full border-faded-slim padding-dot3 lighter-hover click-effect border-radius-dot3 fg-error" (click)="deleteAccount()">
Delete account
</button>
</section>