From 83e136b61cdfbd30b353e9b6bf72417299649f1e Mon Sep 17 00:00:00 2001 From: tim-herbst Date: Sun, 10 Jan 2021 16:36:10 +0100 Subject: [PATCH] add footer-component to add copyright --- .../frontend/src/app/app.component.html | 1 + .../project-3/frontend/src/app/app.module.ts | 4 ++- .../src/app/footer/footer.component.html | 5 ++++ .../src/app/footer/footer.component.scss | 8 ++++++ .../src/app/footer/footer.component.spec.ts | 25 +++++++++++++++++++ .../src/app/footer/footer.component.ts | 15 +++++++++++ .../frontend/src/app/map/map.component.scss | 2 +- 7 files changed, 58 insertions(+), 2 deletions(-) create mode 100644 projects/project-3/frontend/src/app/footer/footer.component.html create mode 100644 projects/project-3/frontend/src/app/footer/footer.component.scss create mode 100644 projects/project-3/frontend/src/app/footer/footer.component.spec.ts create mode 100644 projects/project-3/frontend/src/app/footer/footer.component.ts diff --git a/projects/project-3/frontend/src/app/app.component.html b/projects/project-3/frontend/src/app/app.component.html index 21f8668..0e0f37f 100644 --- a/projects/project-3/frontend/src/app/app.component.html +++ b/projects/project-3/frontend/src/app/app.component.html @@ -1,2 +1,3 @@ + diff --git a/projects/project-3/frontend/src/app/app.module.ts b/projects/project-3/frontend/src/app/app.module.ts index ea21c0c..399c889 100644 --- a/projects/project-3/frontend/src/app/app.module.ts +++ b/projects/project-3/frontend/src/app/app.module.ts @@ -37,6 +37,7 @@ import { MiniMapComponent } from './dashboard/mini-map/mini-map.component'; import { ToolbarComponent } from './toolbar/toolbar.component'; import { MapInteractionComponent } from './toolbar/map-interaction/map-interaction.component'; import { DashboardInteractionComponent } from './toolbar/dashboard-interaction/dashboard-interaction.component'; +import { FooterComponent } from './footer/footer.component'; @NgModule({ declarations: [ @@ -52,7 +53,8 @@ import { DashboardInteractionComponent } from './toolbar/dashboard-interaction/d MiniMapComponent, ToolbarComponent, MapInteractionComponent, - DashboardInteractionComponent + DashboardInteractionComponent, + FooterComponent ], imports: [ BrowserModule, diff --git a/projects/project-3/frontend/src/app/footer/footer.component.html b/projects/project-3/frontend/src/app/footer/footer.component.html new file mode 100644 index 0000000..6f2fd34 --- /dev/null +++ b/projects/project-3/frontend/src/app/footer/footer.component.html @@ -0,0 +1,5 @@ + diff --git a/projects/project-3/frontend/src/app/footer/footer.component.scss b/projects/project-3/frontend/src/app/footer/footer.component.scss new file mode 100644 index 0000000..daf39fc --- /dev/null +++ b/projects/project-3/frontend/src/app/footer/footer.component.scss @@ -0,0 +1,8 @@ +.footer { + height: 2vh; + background: #2f2f2f; + + .copyright { + color: white; + } +} diff --git a/projects/project-3/frontend/src/app/footer/footer.component.spec.ts b/projects/project-3/frontend/src/app/footer/footer.component.spec.ts new file mode 100644 index 0000000..a3c4af9 --- /dev/null +++ b/projects/project-3/frontend/src/app/footer/footer.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { FooterComponent } from './footer.component'; + +describe('FooterComponent', () => { + let component: FooterComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ FooterComponent ] + }) + .compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(FooterComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/projects/project-3/frontend/src/app/footer/footer.component.ts b/projects/project-3/frontend/src/app/footer/footer.component.ts new file mode 100644 index 0000000..c7a7ec5 --- /dev/null +++ b/projects/project-3/frontend/src/app/footer/footer.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-footer', + templateUrl: './footer.component.html', + styleUrls: ['./footer.component.scss'] +}) +export class FooterComponent implements OnInit { + + constructor() { } + + ngOnInit(): void { + } + +} diff --git a/projects/project-3/frontend/src/app/map/map.component.scss b/projects/project-3/frontend/src/app/map/map.component.scss index 7d7830e..26d8497 100644 --- a/projects/project-3/frontend/src/app/map/map.component.scss +++ b/projects/project-3/frontend/src/app/map/map.component.scss @@ -1,3 +1,3 @@ #map { - height: 95vh; + height: 93vh; }