Implementa Footer
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
<app-header></app-header>
|
<app-header></app-header>
|
||||||
|
|
||||||
<router-outlet></router-outlet>
|
<router-outlet></router-outlet>
|
||||||
|
|
||||||
|
<app-footer></app-footer>
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
18
src/app/footer/footer.component.css
Normal file
18
src/app/footer/footer.component.css
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
.page-footer {
|
||||||
|
position: absolute;
|
||||||
|
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