add gamebar module

This commit is contained in:
cyber-dream 2022-08-26 15:02:45 +03:00
parent e098990d0a
commit 146e1eaaea
7 changed files with 68 additions and 2 deletions

View 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 { }

View 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 { }

View File

@ -0,0 +1 @@
<p>game-button works!</p>

View 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();
});
});

View 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 {
}
}

View File

@ -21,8 +21,8 @@
<hr>
<div id="GamesBar">
<div #page id="GamesBar">
<GameSideButtonComponent></GameSideButtonComponent>
<div class="SessionCount">
<span class="semi-bold">2 </span>
<span class="light">sessions active</span>