add gamebar module
This commit is contained in:
parent
e098990d0a
commit
146e1eaaea
10
src/app/game-bar/game-bar-routing.module.ts
Normal file
10
src/app/game-bar/game-bar-routing.module.ts
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { RouterModule, Routes } from '@angular/router';
|
||||||
|
|
||||||
|
const routes: Routes = [];
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [RouterModule.forChild(routes)],
|
||||||
|
exports: [RouterModule]
|
||||||
|
})
|
||||||
|
export class GameBarRoutingModule { }
|
17
src/app/game-bar/game-bar.module.ts
Normal file
17
src/app/game-bar/game-bar.module.ts
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
|
||||||
|
import { GameBarRoutingModule } from './game-bar-routing.module';
|
||||||
|
import { GameButtonComponent } from './game-button/game-button.component';
|
||||||
|
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
GameButtonComponent
|
||||||
|
],
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
GameBarRoutingModule
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class GameBarModule { }
|
1
src/app/game-bar/game-button/game-button.component.html
Normal file
1
src/app/game-bar/game-button/game-button.component.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<p>game-button works!</p>
|
23
src/app/game-bar/game-button/game-button.component.spec.ts
Normal file
23
src/app/game-bar/game-button/game-button.component.spec.ts
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { GameButtonComponent } from './game-button.component';
|
||||||
|
|
||||||
|
describe('GameButtonComponent', () => {
|
||||||
|
let component: GameButtonComponent;
|
||||||
|
let fixture: ComponentFixture<GameButtonComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
declarations: [ GameButtonComponent ]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(GameButtonComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
15
src/app/game-bar/game-button/game-button.component.ts
Normal file
15
src/app/game-bar/game-button/game-button.component.ts
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-game-button',
|
||||||
|
templateUrl: './game-button.component.html',
|
||||||
|
styleUrls: ['./game-button.component.scss']
|
||||||
|
})
|
||||||
|
export class GameButtonComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit(): void {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -21,8 +21,8 @@
|
|||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<div id="GamesBar">
|
<div #page id="GamesBar">
|
||||||
|
<GameSideButtonComponent></GameSideButtonComponent>
|
||||||
<div class="SessionCount">
|
<div class="SessionCount">
|
||||||
<span class="semi-bold">2 </span>
|
<span class="semi-bold">2 </span>
|
||||||
<span class="light">sessions active</span>
|
<span class="light">sessions active</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user