-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from CerealKiller97/dev
Footer on contact and 404 page FIXED
- Loading branch information
Showing
10 changed files
with
170 additions
and
96 deletions.
There are no files selected for viewing
174 changes: 112 additions & 62 deletions
174
src/app/modules/contact/components/contact/contact.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,127 @@ | ||
<!-- <h1 class="text-center light-text"> | ||
Contact | ||
<span> | ||
<mat-icon>mail</mat-icon> | ||
</span> | ||
</h1> | ||
<form [formGroup]="contactForm"> | ||
<div class="row"> | ||
<div class="col col-lg-6 offset-col-lg-3"> | ||
<!-- <div class="container my-5 mx-5"> | ||
<mat-toolbar> | ||
<h1 class="light-text text-center">Contact</h1> | ||
</mat-toolbar> | ||
<div class="row"> | ||
<p class="light-text text-center"> Do you have any questions? Please do not hesitate to contact us directly. Our | ||
team will come | ||
back to you within a | ||
matter of hours to help you. | ||
</p> | ||
<form [formGroup]="contactForm"> | ||
<div class="col"> | ||
<div class="mx-5 my-5"> | ||
<mat-form-field> | ||
<input matInput formControlName="name" placeholder="Enter your name..." /> | ||
<span *ngIf="!contactForm.get('name').valid && contactForm.get('name').touched">Name field is | ||
required.</span> | ||
</mat-form-field> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="mx-5 my-5"> | ||
<mat-form-field> | ||
<input matInput formControlName="subject" placeholder="Enter your subject..." /> | ||
</mat-form-field> | ||
</div> | ||
</form> --> | ||
<div class="col"> | ||
<div class="mx-5 my-5"> | ||
<mat-form-field> | ||
<input matInput formControlName="email" placeholder="Enter your email..." /> | ||
<span *ngIf="!contactForm.get('email').valid && contactForm.get('email').touched">Email field is | ||
required.</span> | ||
</mat-form-field> | ||
</div> | ||
</div> | ||
<div class="w-100"></div> | ||
<div class="col"> | ||
<div class="mx-5 my-5"> | ||
<mat-form-field> | ||
<input matInput formControlName="subject" placeholder="Enter your subject..." /> | ||
<span *ngIf="!contactForm.get('subject').valid && contactForm.get('subject').touched">Subject field is | ||
required.</span> | ||
</mat-form-field> | ||
</div> | ||
</div> | ||
<div class="col"> | ||
<div class="mx-5 my-5"> | ||
<mat-form-field> | ||
<textarea matInput formControlName="body" placeholder="Message body..."></textarea> | ||
<span *ngIf="!contactForm.get('body').valid && contactForm.get('body').touched">Body field is | ||
required.</span> | ||
</mat-form-field> | ||
</div> | ||
<button mat-raised-button color="primary" type="button" (click)="onSubmitContactForm();">Submit</button> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
--> | ||
|
||
<div class="container"> | ||
<section class="container my-5 mx-5"> | ||
<div class="row"> | ||
<mat-toolbar> | ||
<h1 class="light-text text-center">Contact</h1> | ||
</mat-toolbar> | ||
<div class="row"> | ||
<!--Grid column--> | ||
<div class="col-lg-12"> | ||
<form [formGroup]="contactForm"> | ||
<div class="col"> | ||
<div class="mx-5 my-5"> | ||
<mat-form-field> | ||
<input matInput formControlName="name" placeholder="Enter your name..." /> | ||
<span *ngIf="!contactForm.get('name').valid && contactForm.get('name').touched">Name field is | ||
required.</span> | ||
</mat-form-field> | ||
|
||
<!--Grid row--> | ||
<div class="row"> | ||
|
||
<!--Grid column--> | ||
<div class="col"> | ||
<div class="mx-5 my-5"> | ||
<mat-form-field> | ||
<input matInput formControlName="name" placeholder="Enter your name..." /> | ||
<span *ngIf="!contactForm.get('name').valid && contactForm.get('name').touched">Name field is | ||
required.</span> | ||
</mat-form-field> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col"> | ||
<div class="mx-5 my-5"> | ||
<mat-form-field> | ||
<input matInput formControlName="email" placeholder="Enter your email..." /> | ||
<span *ngIf="!contactForm.get('email').valid && contactForm.get('email').touched">Email field is | ||
required.</span> | ||
</mat-form-field> | ||
<!--Grid column--> | ||
|
||
<!--Grid column--> | ||
<div class="col-md-6"> | ||
<div class="col"> | ||
<div class="mx-5 my-5"> | ||
<mat-form-field> | ||
<input matInput formControlName="email" placeholder="Enter your email..." /> | ||
<span *ngIf="!contactForm.get('email').valid && contactForm.get('email').touched">Email field is | ||
required.</span> | ||
</mat-form-field> | ||
</div> | ||
</div> | ||
</div> | ||
<!--Grid column--> | ||
|
||
</div> | ||
<div class="w-100"></div> | ||
<div class="col"> | ||
<div class="mx-5 my-5"> | ||
<mat-form-field> | ||
<input matInput formControlName="subject" placeholder="Enter your subject..." /> | ||
<span *ngIf="!contactForm.get('subject').valid && contactForm.get('subject').touched">Subject field is | ||
required.</span> | ||
</mat-form-field> | ||
<!--Grid row--> | ||
|
||
<!--Grid row--> | ||
<div class="row"> | ||
|
||
<div class="col"> | ||
<div class="mx-5 my-5"> | ||
<mat-form-field> | ||
<input matInput formControlName="subject" placeholder="Enter your subject..." /> | ||
<span *ngIf="!contactForm.get('subject').valid && contactForm.get('subject').touched">Subject field is | ||
required.</span> | ||
</mat-form-field> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col"> | ||
<div class="mx-5 my-5"> | ||
<mat-form-field> | ||
<textarea matInput formControlName="body" placeholder="Message body..."></textarea> | ||
<span *ngIf="!contactForm.get('body').valid && contactForm.get('body').touched">Body field is | ||
required.</span> | ||
</mat-form-field> | ||
|
||
<div class="col-md-6"> | ||
|
||
<div class="col"> | ||
<div class="mx-5 my-5"> | ||
<mat-form-field> | ||
<textarea matInput formControlName="body" placeholder="Message body..."></textarea> | ||
<span *ngIf="!contactForm.get('body').valid && contactForm.get('body').touched">Body field is | ||
required.</span> | ||
</mat-form-field> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
<button mat-raised-button color="primary" type="button" (click)="onSubmitContactForm();">Submit</button> | ||
</div> | ||
<button mat-raised-button color="primary" type="button" (click)="onSubmitContactForm();">Submit</button> | ||
</form> | ||
</div> | ||
</div> | ||
</section> |
18 changes: 12 additions & 6 deletions
18
src/app/modules/errors/components/errors/errors.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-6 offset-md-3"> | ||
<h1 class="light-text">Ooops look you got lost :( 404 page</h1> | ||
<mat-grid-list cols="1" rowHeight="500"> | ||
<mat-grid-tile> | ||
<div class="container my-5 mx-5"> | ||
<div class="row"> | ||
<div class="col-md-6 offset-md-3"> | ||
<h1 class="light-text">Ooops looks you got lost :( 404 page</h1> | ||
<button mat-raised-button (click)="goBack();">Go back</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</mat-grid-tile> | ||
</mat-grid-list> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,8 @@ | |
.padding-left { | ||
padding-left: 5px !important; | ||
} | ||
|
||
.fixed { | ||
position: fixed !important; | ||
bottom: 0; | ||
} |
2 changes: 1 addition & 1 deletion
2
src/app/modules/shared-components/components/footer/footer.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 12 additions & 2 deletions
14
src/app/modules/shared-components/components/footer/footer.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,22 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { ActivatedRoute, Router } from '@angular/router'; | ||
|
||
@Component({ | ||
selector: 'app-footer', | ||
templateUrl: './footer.component.html', | ||
styleUrls: ['./footer.component.css'] | ||
}) | ||
export class FooterComponent implements OnInit { | ||
constructor() {} | ||
public shouldBeFixed: boolean; | ||
|
||
ngOnInit() {} | ||
constructor(private readonly route: ActivatedRoute, private readonly router: Router) {} | ||
|
||
ngOnInit() { | ||
let url: string; | ||
if (this.router.routerState.snapshot.url === '/gaming/contact') { | ||
this.shouldBeFixed = true; | ||
} else if (this.router.routerState.snapshot.url === '/contact') { | ||
this.shouldBeFixed = true; | ||
} | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
src/app/modules/shared-components/components/loading-spinner/loading-spinner.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<div *ngIf="loading" id="overlay"> | ||
<!-- <h1 id="loading-text" class="light-text text-center mx-2 my-5"></h1> --> | ||
<!-- <mat-spinner class="my-5" [value]="400" color="warn"></mat-spinner> --> | ||
<app-fingerprint-spinner [animationDuration]="1000" [size]="100" [color]="'#ff1d5e'"> | ||
<!-- <mat-spinner class="my-5" [value]="400" color="warn"></mat-spinner> ff1d5e--> | ||
<app-fingerprint-spinner [animationDuration]="1000" [size]="100" [color]="'#ffffff'"> | ||
</app-fingerprint-spinner> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,5 @@ | |
"angularCompilerOptions": { | ||
"fullTemplateTypeCheck": true, | ||
"strictInjectionParameters": true | ||
}, | ||
|
||
} | ||
} |
6bc8204
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully aliased the URL https://ng-videogamer-1l83v75p3.now.sh to the following aliases: