From 146e1eaaea15605041f678d80d254b47bdcd1718 Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Fri, 26 Aug 2022 15:02:45 +0300 Subject: [PATCH] add gamebar module --- src/app/game-bar/game-bar-routing.module.ts | 10 ++++++++ src/app/game-bar/game-bar.module.ts | 17 ++++++++++++++ .../game-button/game-button.component.html | 1 + .../game-button/game-button.component.scss | 0 .../game-button/game-button.component.spec.ts | 23 +++++++++++++++++++ .../game-button/game-button.component.ts | 15 ++++++++++++ src/app/home/home.component.html | 4 ++-- 7 files changed, 68 insertions(+), 2 deletions(-) create mode 100644 src/app/game-bar/game-bar-routing.module.ts create mode 100644 src/app/game-bar/game-bar.module.ts create mode 100644 src/app/game-bar/game-button/game-button.component.html create mode 100644 src/app/game-bar/game-button/game-button.component.scss create mode 100644 src/app/game-bar/game-button/game-button.component.spec.ts create mode 100644 src/app/game-bar/game-button/game-button.component.ts diff --git a/src/app/game-bar/game-bar-routing.module.ts b/src/app/game-bar/game-bar-routing.module.ts new file mode 100644 index 0000000..431c0dd --- /dev/null +++ b/src/app/game-bar/game-bar-routing.module.ts @@ -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 { } diff --git a/src/app/game-bar/game-bar.module.ts b/src/app/game-bar/game-bar.module.ts new file mode 100644 index 0000000..c3eed74 --- /dev/null +++ b/src/app/game-bar/game-bar.module.ts @@ -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 { } diff --git a/src/app/game-bar/game-button/game-button.component.html b/src/app/game-bar/game-button/game-button.component.html new file mode 100644 index 0000000..4ad8a77 --- /dev/null +++ b/src/app/game-bar/game-button/game-button.component.html @@ -0,0 +1 @@ +

game-button works!

diff --git a/src/app/game-bar/game-button/game-button.component.scss b/src/app/game-bar/game-button/game-button.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/game-bar/game-button/game-button.component.spec.ts b/src/app/game-bar/game-button/game-button.component.spec.ts new file mode 100644 index 0000000..85bf386 --- /dev/null +++ b/src/app/game-bar/game-button/game-button.component.spec.ts @@ -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; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ GameButtonComponent ] + }) + .compileComponents(); + + fixture = TestBed.createComponent(GameButtonComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/game-bar/game-button/game-button.component.ts b/src/app/game-bar/game-button/game-button.component.ts new file mode 100644 index 0000000..2abb4e7 --- /dev/null +++ b/src/app/game-bar/game-button/game-button.component.ts @@ -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 { + } + +} diff --git a/src/app/home/home.component.html b/src/app/home/home.component.html index d45a9be..db3ba0a 100644 --- a/src/app/home/home.component.html +++ b/src/app/home/home.component.html @@ -21,8 +21,8 @@
-
- +
+
2 sessions active