From d69685fa0f70480fa5aa63e8b686de288c3faa82 Mon Sep 17 00:00:00 2001 From: eleanor Date: Tue, 6 Nov 2018 11:11:03 -0500 Subject: [PATCH] add basic footer component with horizontal logo --- src/app/app.component.html | 2 +- src/app/app.module.ts | 2 ++ src/app/footer/footer.component.html | 6 ++++++ src/app/footer/footer.component.scss | 4 ++++ src/app/footer/footer.component.spec.ts | 25 +++++++++++++++++++++++++ src/app/footer/footer.component.ts | 15 +++++++++++++++ 6 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 src/app/footer/footer.component.html create mode 100644 src/app/footer/footer.component.scss 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 4831ad1..f9c8da5 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,6 +1,6 @@
-
+
diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 5c1c669..d520905 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -5,11 +5,13 @@ import { NgModule } from '@angular/core'; import { FlexLayoutModule } from '@angular/flex-layout'; import { AppComponent } from './app.component'; +import { FooterComponent } from './footer/footer.component'; import { HeaderComponent } from './header/header.component'; @NgModule({ declarations: [ AppComponent, + FooterComponent, HeaderComponent ], imports: [ diff --git a/src/app/footer/footer.component.html b/src/app/footer/footer.component.html new file mode 100644 index 0000000..dc38bc4 --- /dev/null +++ b/src/app/footer/footer.component.html @@ -0,0 +1,6 @@ +
+ +
diff --git a/src/app/footer/footer.component.scss b/src/app/footer/footer.component.scss new file mode 100644 index 0000000..9613d07 --- /dev/null +++ b/src/app/footer/footer.component.scss @@ -0,0 +1,4 @@ +.welcome { + background-color: #4c4b4c; + padding: 5%; +} diff --git a/src/app/footer/footer.component.spec.ts b/src/app/footer/footer.component.spec.ts new file mode 100644 index 0000000..2ca6c45 --- /dev/null +++ b/src/app/footer/footer.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { FooterComponent } from './footer.component'; + +describe('FooterComponent', () => { + let component: FooterComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ FooterComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + 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..da17d82 --- /dev/null +++ b/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() { + } + +}