diff --git a/angular.json b/angular.json index 26d1d85..8def314 100644 --- a/angular.json +++ b/angular.json @@ -75,9 +75,14 @@ "defaultConfiguration": "production" }, "serve": { - "builder": "@angular-builders/custom-webpack:dev-server", - "options": { - "browserTarget": "frontend-hideyoshi.com:build:build" + "builder": "@angular-devkit/build-angular:dev-server", + "configurations": { + "production": { + "browserTarget": "frontend-hideyoshi.com:build:production" + }, + "development": { + "browserTarget": "frontend-hideyoshi.com:build:development" + } }, "defaultConfiguration": "development" }, 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 09a2e25..898fe16 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,3 +1,7 @@ - \ No newline at end of file +
+ +
+ + diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 3ea41ac..07e3469 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -35,7 +35,7 @@ export class AppComponent implements OnInit { let cookieConsentStatus = this.cookieConsentService.getCookieConsentStatusFromLocalStorage(); if (cookieConsentStatus) { - this.ccService.fadeOut(); + this.ccService.destroy(); } this.cookieStatusChangeSubscription = this.ccService.statusChange$.subscribe( 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..0feb53c --- /dev/null +++ b/src/app/footer/footer.component.css @@ -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; +} 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; +}