# HG changeset patch # User Lucas Thompson # Date 1477668445 -3600 # Node ID d9c0a1ca005c366e07ba11601d859f72b5b9a131 # Parent aabfa7a693dc38ee53e2382e8ddba4f09a03f063 Prototype some playback controls, and tabbed menus in the sidebar. diff -r aabfa7a693dc -r d9c0a1ca005c src/app/app.component.css --- a/src/app/app.component.css Fri Oct 28 08:29:24 2016 +0100 +++ b/src/app/app.component.css Fri Oct 28 16:27:25 2016 +0100 @@ -7,6 +7,10 @@ } md-sidenav { - width: 240px; text-align: center; } + +.md-tab-body { + background-color: black; +} + diff -r aabfa7a693dc -r d9c0a1ca005c src/app/app.component.html --- a/src/app/app.component.html Fri Oct 28 08:29:24 2016 +0100 +++ b/src/app/app.component.html Fri Oct 28 16:27:25 2016 +0100 @@ -1,5 +1,5 @@ - + @@ -17,11 +17,28 @@ - - -

{{count}}

+ + + + + + + + + +
diff -r aabfa7a693dc -r d9c0a1ca005c src/app/app.module.ts --- a/src/app/app.module.ts Fri Oct 28 08:29:24 2016 +0100 +++ b/src/app/app.module.ts Fri Oct 28 16:27:25 2016 +0100 @@ -8,12 +8,14 @@ import {MaterialModule} from "@angular/material"; import { WaveformComponent } from './waveform/waveform.component'; import { AudioFileOpenComponent } from './audio-file-open/audio-file-open.component'; +import { PlaybackControlComponent } from './playback-control/playback-control.component'; @NgModule({ declarations: [ AppComponent, WaveformComponent, - AudioFileOpenComponent + AudioFileOpenComponent, + PlaybackControlComponent ], imports: [ BrowserModule, diff -r aabfa7a693dc -r d9c0a1ca005c src/app/playback-control/playback-control.component.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/app/playback-control/playback-control.component.css Fri Oct 28 16:27:25 2016 +0100 @@ -0,0 +1,19 @@ +.play { + width: 60px; + height: 60px; + display: flex; + margin: auto; + align-items: center; + justify-content: center; +} + +.play md-icon { + font-size: 50px; + width: 50px; + height: 50px; +} + +.seek-controls { + display: block; + margin: auto; +} diff -r aabfa7a693dc -r d9c0a1ca005c src/app/playback-control/playback-control.component.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/app/playback-control/playback-control.component.html Fri Oct 28 16:27:25 2016 +0100 @@ -0,0 +1,8 @@ + + + + + + + + diff -r aabfa7a693dc -r d9c0a1ca005c src/app/playback-control/playback-control.component.spec.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/app/playback-control/playback-control.component.spec.ts Fri Oct 28 16:27:25 2016 +0100 @@ -0,0 +1,28 @@ +/* tslint:disable:no-unused-variable */ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { By } from '@angular/platform-browser'; +import { DebugElement } from '@angular/core'; + +import { PlaybackControlComponent } from './playback-control.component'; + +describe('PlaybackControlComponent', () => { + let component: PlaybackControlComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ PlaybackControlComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(PlaybackControlComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff -r aabfa7a693dc -r d9c0a1ca005c src/app/playback-control/playback-control.component.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/app/playback-control/playback-control.component.ts Fri Oct 28 16:27:25 2016 +0100 @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-playback-control', + templateUrl: './playback-control.component.html', + styleUrls: ['./playback-control.component.css'] +}) +export class PlaybackControlComponent implements OnInit { + + constructor() { } + + ngOnInit() { + } + +}