This commit is contained in:
insanity 2018-01-29 18:54:59 +09:00
parent fcec39e126
commit a09706bcd3
7 changed files with 51 additions and 14 deletions

View File

@ -0,0 +1,5 @@
<td-layout-footer>
<div layout="row" layout-align="start center">
<span class="mat-caption">Copyright &copy; 2017 Loafle. All rights reserved</span>
</div>
</td-layout-footer>

View File

@ -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<FooterComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ FooterComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(FooterComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -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() {
}
}

View File

@ -2,11 +2,12 @@ import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { SidebarComponent } from './sidebar/sidebar.component'; import { SidebarComponent } from './sidebar/sidebar.component';
import { HeaderComponent } from './header/header.component'; import { HeaderComponent } from './header/header.component';
import { FooterComponent } from './footer/footer.component';
@NgModule({ @NgModule({
imports: [ imports: [
CommonModule CommonModule
], ],
declarations: [SidebarComponent, HeaderComponent] declarations: [SidebarComponent, HeaderComponent, FooterComponent]
}) })
export class LayoutsModule { } export class LayoutsModule { }

View File

@ -1,23 +1,12 @@
<td-layout> <td-layout>
<td-layout-nav> <td-layout-nav>
<of-header></of-header> <of-header></of-header>
<mat-sidenav-container fullscreen> <mat-sidenav-container fullscreen>
<of-sidebar></of-sidebar> <of-sidebar></of-sidebar>
<div tdMediaToggle="gt-xs" [mediaClasses]="['push-md']"> <div tdMediaToggle="gt-xs" [mediaClasses]="['push-md']">
<router-outlet></router-outlet> <router-outlet></router-outlet>
</div> </div>
</mat-sidenav-container> </mat-sidenav-container>
</td-layout-nav> </td-layout-nav>
<of-footer></of-footer>
<td-layout-footer>
<div layout="row" layout-align="start center">
<span class="mat-caption">Copyright &copy; 2017 Loafle. All rights reserved</span>
</div>
</td-layout-footer>
</td-layout> </td-layout>

View File

@ -6,6 +6,7 @@ import { SidebarComponent } from 'app/commons/layouts/sidebar/sidebar.component'
import { CovalentModule } from 'app/commons/ui/covalent/covalent.module'; import { CovalentModule } from 'app/commons/ui/covalent/covalent.module';
import { MaterialModule } from 'app/commons/ui/material/material.module'; import { MaterialModule } from 'app/commons/ui/material/material.module';
import { HeaderComponent } from 'app/commons/layouts/header/header.component'; import { HeaderComponent } from 'app/commons/layouts/header/header.component';
import { FooterComponent } from 'app/commons/layouts/footer/footer.component';
@NgModule({ @NgModule({
imports: [ imports: [
@ -17,7 +18,8 @@ import { HeaderComponent } from 'app/commons/layouts/header/header.component';
declarations: [ declarations: [
PagesComponent, PagesComponent,
SidebarComponent, SidebarComponent,
HeaderComponent HeaderComponent,
FooterComponent,
] ]
}) })
export class PagesModule { } export class PagesModule { }