Skip to content
Snippets Groups Projects
Verified Commit 0edf7100 authored by Lukas Maximilian Kimpel's avatar Lukas Maximilian Kimpel
Browse files

Create creator home screen

Add creator home screen component
Add creator home screen route
parent 31e658d5
Branches
Tags
No related merge requests found
......@@ -3,10 +3,12 @@ import { RouterModule, Routes } from '@angular/router';
import { PageNotFoundComponent } from './page-not-found/page-not-found.component';
import { LoginScreenComponent } from './login-screen/login-screen.component';
import { RoomComponent } from './room/room.component';
import { CreatorHomeScreenComponent } from './creator-home-screen/creator-home-screen.component';
const routes: Routes = [
{ path: 'home', component: LoginScreenComponent },
{ path: '', redirectTo: '/home', pathMatch: 'full' },
{ path: 'home', component: LoginScreenComponent },
{ path: 'creator', component: CreatorHomeScreenComponent },
{ path: 'room/:roomId', component: RoomComponent },
{ path: '**', component: PageNotFoundComponent }
];
......
......@@ -56,6 +56,7 @@ import { AuthenticationService } from './authentication.service';
import { AuthenticationGuard } from './authentication.guard';
import { RoomService } from './room.service';
import { RoomListComponent } from './room-list/room-list.component';
import { CreatorHomeScreenComponent } from './creator-home-screen/creator-home-screen.component';
@NgModule({
declarations: [
......@@ -68,7 +69,8 @@ import { RoomListComponent } from './room-list/room-list.component';
RoomComponent,
RegisterComponent,
RoomCreationComponent,
RoomListComponent
RoomListComponent,
CreatorHomeScreenComponent
],
entryComponents: [
RegisterComponent,
......
<div fxLayout="column" fxLayoutAlign="start" fxLayoutGap="20px" fxFill>
<div fxLayout="row" fxLayoutAlign="center">
<button mat-raised-button color="primary">Create new room</button>
</div>
<div fxLayout="row" fxLayoutAlign="center">
<!--<app-room-list></app-room-list>-->
</div>
</div>
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { CreatorHomeScreenComponent } from './creator-home-screen.component';
describe('CreatorHomeScreenComponent', () => {
let component: CreatorHomeScreenComponent;
let fixture: ComponentFixture<CreatorHomeScreenComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ CreatorHomeScreenComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(CreatorHomeScreenComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-creator-home-screen',
templateUrl: './creator-home-screen.component.html',
styleUrls: ['./creator-home-screen.component.scss']
})
export class CreatorHomeScreenComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment