From 3e22599ebb66b60f901bfeb6b677b78e66974039 Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Date: Fri, 13 Oct 2023 10:48:45 -0300 Subject: [PATCH 1/2] Implementa Footer --- src/app/app.component.html | 4 ++- src/app/app.module.ts | 4 ++- src/app/footer/footer.component.css | 18 ++++++++++++ src/app/footer/footer.component.html | 37 +++++++++++++++++++++++++ src/app/footer/footer.component.spec.ts | 21 ++++++++++++++ src/app/footer/footer.component.ts | 16 +++++++++++ 6 files changed, 98 insertions(+), 2 deletions(-) create mode 100644 src/app/footer/footer.component.css create mode 100644 src/app/footer/footer.component.html create mode 100644 src/app/footer/footer.component.spec.ts create mode 100644 src/app/footer/footer.component.ts diff --git a/src/app/app.component.html b/src/app/app.component.html index 09a2e25..20c39af 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,3 +1,5 @@ - \ No newline at end of file + + + diff --git a/src/app/app.module.ts b/src/app/app.module.ts index f10a9ee..d64a7fc 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -10,11 +10,13 @@ import { FontAwesomeModule } from '@fortawesome/angular-fontawesome'; import { AppServiceWorkerModule } from './app-service-worker.module'; import { ServiceWorkerModule } from '@angular/service-worker'; import { environment } from '../environments/environment'; +import {FooterComponent} from "./footer/footer.component"; @NgModule({ declarations: [ AppComponent, - HomeComponent + HomeComponent, + FooterComponent ], imports: [ BrowserModule, diff --git a/src/app/footer/footer.component.css b/src/app/footer/footer.component.css new file mode 100644 index 0000000..37e3577 --- /dev/null +++ b/src/app/footer/footer.component.css @@ -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; +} diff --git a/src/app/footer/footer.component.html b/src/app/footer/footer.component.html new file mode 100644 index 0000000..a1cb848 --- /dev/null +++ b/src/app/footer/footer.component.html @@ -0,0 +1,37 @@ + diff --git a/src/app/footer/footer.component.spec.ts b/src/app/footer/footer.component.spec.ts new file mode 100644 index 0000000..832b03a --- /dev/null +++ b/src/app/footer/footer.component.spec.ts @@ -0,0 +1,21 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { FooterComponent } from './footer.component'; + +describe('FooterComponent', () => { + let component: FooterComponent; + let fixture: ComponentFixture; + + beforeEach(() => { + TestBed.configureTestingModule({ + declarations: [FooterComponent] + }); + fixture = TestBed.createComponent(FooterComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/footer/footer.component.ts b/src/app/footer/footer.component.ts new file mode 100644 index 0000000..299f209 --- /dev/null +++ b/src/app/footer/footer.component.ts @@ -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; +} From e7e07c90c2e1f0e5a249ef10b4af4239e548725b Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Date: Fri, 13 Oct 2023 11:18:28 -0300 Subject: [PATCH 2/2] Fixes Footer Location --- src/app/app.component.css | 3 +++ src/app/app.component.html | 4 +++- src/app/footer/footer.component.css | 6 +++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/app/app.component.css b/src/app/app.component.css index e69de29..0730e93 100644 --- a/src/app/app.component.css +++ b/src/app/app.component.css @@ -0,0 +1,3 @@ +.app-body { + min-height: 74vh; +} diff --git a/src/app/app.component.html b/src/app/app.component.html index 20c39af..898fe16 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,5 +1,7 @@ - +
+ +
diff --git a/src/app/footer/footer.component.css b/src/app/footer/footer.component.css index 37e3577..0feb53c 100644 --- a/src/app/footer/footer.component.css +++ b/src/app/footer/footer.component.css @@ -1,5 +1,9 @@ +footer { + max-height: 100px; + margin-top: auto; +} + .page-footer { - position: absolute; bottom: 0; width: 100%; }