From a09706bcd36e4d0f89cf0e11defc5dd4f5b66609 Mon Sep 17 00:00:00 2001 From: insanity Date: Mon, 29 Jan 2018 18:54:59 +0900 Subject: [PATCH] layout --- .../layouts/footer/footer.component.html | 5 ++++ .../layouts/footer/footer.component.scss | 0 .../layouts/footer/footer.component.spec.ts | 25 +++++++++++++++++++ .../layouts/footer/footer.component.ts | 15 +++++++++++ src/app/commons/layouts/layouts.module.ts | 3 ++- src/app/pages/pages.component.html | 13 +--------- src/app/pages/pages.module.ts | 4 ++- 7 files changed, 51 insertions(+), 14 deletions(-) create mode 100644 src/app/commons/layouts/footer/footer.component.html create mode 100644 src/app/commons/layouts/footer/footer.component.scss create mode 100644 src/app/commons/layouts/footer/footer.component.spec.ts create mode 100644 src/app/commons/layouts/footer/footer.component.ts diff --git a/src/app/commons/layouts/footer/footer.component.html b/src/app/commons/layouts/footer/footer.component.html new file mode 100644 index 0000000..2aea852 --- /dev/null +++ b/src/app/commons/layouts/footer/footer.component.html @@ -0,0 +1,5 @@ + +
+ Copyright © 2017 Loafle. All rights reserved +
+
\ No newline at end of file diff --git a/src/app/commons/layouts/footer/footer.component.scss b/src/app/commons/layouts/footer/footer.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/commons/layouts/footer/footer.component.spec.ts b/src/app/commons/layouts/footer/footer.component.spec.ts new file mode 100644 index 0000000..2ca6c45 --- /dev/null +++ b/src/app/commons/layouts/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/commons/layouts/footer/footer.component.ts b/src/app/commons/layouts/footer/footer.component.ts new file mode 100644 index 0000000..12cfc41 --- /dev/null +++ b/src/app/commons/layouts/footer/footer.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'of-footer', + templateUrl: './footer.component.html', + styleUrls: ['./footer.component.scss'] +}) +export class FooterComponent implements OnInit { + + constructor() { } + + ngOnInit() { + } + +} diff --git a/src/app/commons/layouts/layouts.module.ts b/src/app/commons/layouts/layouts.module.ts index e72f5a4..9725fd9 100644 --- a/src/app/commons/layouts/layouts.module.ts +++ b/src/app/commons/layouts/layouts.module.ts @@ -2,11 +2,12 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { SidebarComponent } from './sidebar/sidebar.component'; import { HeaderComponent } from './header/header.component'; +import { FooterComponent } from './footer/footer.component'; @NgModule({ imports: [ CommonModule ], - declarations: [SidebarComponent, HeaderComponent] + declarations: [SidebarComponent, HeaderComponent, FooterComponent] }) export class LayoutsModule { } diff --git a/src/app/pages/pages.component.html b/src/app/pages/pages.component.html index 5b0d647..cba5356 100644 --- a/src/app/pages/pages.component.html +++ b/src/app/pages/pages.component.html @@ -1,23 +1,12 @@ - - -
-
-
- - -
- Copyright © 2017 Loafle. All rights reserved -
-
- +
\ No newline at end of file diff --git a/src/app/pages/pages.module.ts b/src/app/pages/pages.module.ts index 47f2ace..8ad6c13 100644 --- a/src/app/pages/pages.module.ts +++ b/src/app/pages/pages.module.ts @@ -6,6 +6,7 @@ import { SidebarComponent } from 'app/commons/layouts/sidebar/sidebar.component' import { CovalentModule } from 'app/commons/ui/covalent/covalent.module'; import { MaterialModule } from 'app/commons/ui/material/material.module'; import { HeaderComponent } from 'app/commons/layouts/header/header.component'; +import { FooterComponent } from 'app/commons/layouts/footer/footer.component'; @NgModule({ imports: [ @@ -17,7 +18,8 @@ import { HeaderComponent } from 'app/commons/layouts/header/header.component'; declarations: [ PagesComponent, SidebarComponent, - HeaderComponent + HeaderComponent, + FooterComponent, ] }) export class PagesModule { }