Merge pull request #33 from HideyoshiNakazone/devel
Devel - Implements Footer
This commit is contained in:
11
angular.json
11
angular.json
@@ -75,9 +75,14 @@
|
|||||||
"defaultConfiguration": "production"
|
"defaultConfiguration": "production"
|
||||||
},
|
},
|
||||||
"serve": {
|
"serve": {
|
||||||
"builder": "@angular-builders/custom-webpack:dev-server",
|
"builder": "@angular-devkit/build-angular:dev-server",
|
||||||
"options": {
|
"configurations": {
|
||||||
"browserTarget": "frontend-hideyoshi.com:build:build"
|
"production": {
|
||||||
|
"browserTarget": "frontend-hideyoshi.com:build:production"
|
||||||
|
},
|
||||||
|
"development": {
|
||||||
|
"browserTarget": "frontend-hideyoshi.com:build:development"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"defaultConfiguration": "development"
|
"defaultConfiguration": "development"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
.app-body {
|
||||||
|
min-height: 74vh;
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
<app-header></app-header>
|
<app-header></app-header>
|
||||||
|
|
||||||
|
<div class="app-body">
|
||||||
<router-outlet></router-outlet>
|
<router-outlet></router-outlet>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<app-footer></app-footer>
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export class AppComponent implements OnInit {
|
|||||||
let cookieConsentStatus = this.cookieConsentService.getCookieConsentStatusFromLocalStorage();
|
let cookieConsentStatus = this.cookieConsentService.getCookieConsentStatusFromLocalStorage();
|
||||||
|
|
||||||
if (cookieConsentStatus) {
|
if (cookieConsentStatus) {
|
||||||
this.ccService.fadeOut();
|
this.ccService.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.cookieStatusChangeSubscription = this.ccService.statusChange$.subscribe(
|
this.cookieStatusChangeSubscription = this.ccService.statusChange$.subscribe(
|
||||||
|
|||||||
@@ -10,11 +10,13 @@ import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|||||||
import { AppServiceWorkerModule } from './app-service-worker.module';
|
import { AppServiceWorkerModule } from './app-service-worker.module';
|
||||||
import { ServiceWorkerModule } from '@angular/service-worker';
|
import { ServiceWorkerModule } from '@angular/service-worker';
|
||||||
import { environment } from '../environments/environment';
|
import { environment } from '../environments/environment';
|
||||||
|
import {FooterComponent} from "./footer/footer.component";
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
AppComponent,
|
AppComponent,
|
||||||
HomeComponent
|
HomeComponent,
|
||||||
|
FooterComponent
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
|
|||||||
22
src/app/footer/footer.component.css
Normal file
22
src/app/footer/footer.component.css
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
footer {
|
||||||
|
max-height: 100px;
|
||||||
|
margin-top: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-footer {
|
||||||
|
bottom: 0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-btn {
|
||||||
|
color: #ffffff;
|
||||||
|
font-size: 18px;
|
||||||
|
border: 1px solid #ffffff;
|
||||||
|
border-radius: 50%;
|
||||||
|
margin: 0 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-btn:hover {
|
||||||
|
color: #525252;
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
37
src/app/footer/footer.component.html
Normal file
37
src/app/footer/footer.component.html
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
<footer class="text-center text-white page-footer">
|
||||||
|
<!-- Grid container -->
|
||||||
|
<div class="p-4 pb-0" style="background-color: #525252">
|
||||||
|
<!-- Section: Social media -->
|
||||||
|
<section class="mb-2">
|
||||||
|
<!-- Twitter -->
|
||||||
|
<a class="btn footer-btn" href="https://twitter.com/NakazoneVitor">
|
||||||
|
<fa-icon class="input-div-icon"
|
||||||
|
[icon]="_twitterIcon">
|
||||||
|
</fa-icon>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<!-- Linkedin -->
|
||||||
|
<a class="btn footer-btn" href="https://www.linkedin.com/in/vitor-hideyoshi/" role="button">
|
||||||
|
<fa-icon class="input-div-icon"
|
||||||
|
[icon]="_linkedinIcon">
|
||||||
|
</fa-icon>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<!-- Github -->
|
||||||
|
<a class="btn footer-btn" href="https://github.com/HideyoshiNakazone" role="button">
|
||||||
|
<fa-icon class="input-div-icon"
|
||||||
|
[icon]="_githubIcon">
|
||||||
|
</fa-icon>
|
||||||
|
</a>
|
||||||
|
</section>
|
||||||
|
<!-- Section: Social media -->
|
||||||
|
</div>
|
||||||
|
<!-- Grid container -->
|
||||||
|
|
||||||
|
<!-- Copyright -->
|
||||||
|
<div class="text-center p-3" style="background-color: #2E2E2E;">
|
||||||
|
© 2020 Copyright:
|
||||||
|
<a class="text-white" href="https://hideyoshi.com.br/">Hideyoshi Solutions</a>
|
||||||
|
</div>
|
||||||
|
<!-- Copyright -->
|
||||||
|
</footer>
|
||||||
21
src/app/footer/footer.component.spec.ts
Normal file
21
src/app/footer/footer.component.spec.ts
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { FooterComponent } from './footer.component';
|
||||||
|
|
||||||
|
describe('FooterComponent', () => {
|
||||||
|
let component: FooterComponent;
|
||||||
|
let fixture: ComponentFixture<FooterComponent>;
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [FooterComponent]
|
||||||
|
});
|
||||||
|
fixture = TestBed.createComponent(FooterComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
16
src/app/footer/footer.component.ts
Normal file
16
src/app/footer/footer.component.ts
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
import {Component} from '@angular/core';
|
||||||
|
import {faGithub, faLinkedinIn, faTwitter} from "@fortawesome/free-brands-svg-icons";
|
||||||
|
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-footer',
|
||||||
|
templateUrl: './footer.component.html',
|
||||||
|
styleUrls: ['./footer.component.css']
|
||||||
|
})
|
||||||
|
export class FooterComponent {
|
||||||
|
_githubIcon = faGithub;
|
||||||
|
|
||||||
|
_twitterIcon = faTwitter;
|
||||||
|
|
||||||
|
_linkedinIcon = faLinkedinIn;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user