add header component

This commit is contained in:
eleanor 2018-09-19 16:58:41 -04:00
parent cdd3e0ea04
commit f91454cb95
4 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,5 @@
.fill-remaining-space {
/* This fills the remaining space, by using flexbox.
Every toolbar row uses a flexbox row layout. */
flex: 1 1 auto;
}

View File

@ -0,0 +1,11 @@
<mat-toolbar color="primary">
<span>Sartography</span>
<!-- This fills the remaining space of the current row -->
<span class="fill-remaining-space"></span>
<span>Where are we?
<mat-icon color="accent">build</mat-icon>
<mat-icon color="warn">bug_report</mat-icon>
</span>
</mat-toolbar>

View File

@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { HeaderComponent } from './header.component';
describe('HeaderComponent', () => {
let component: HeaderComponent;
let fixture: ComponentFixture<HeaderComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ HeaderComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(HeaderComponent);
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: 'app-header',
templateUrl: './header.component.html',
styleUrls: ['./header.component.css']
})
export class HeaderComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}