From f35becf47b3858955c70377b221873a5cd9936a9 Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Tue, 23 Aug 2022 22:41:20 +0300 Subject: [PATCH] add components --- src/app/app.module.ts | 3 ++- .../game-side-button.component.html | 1 + .../game-side-button.component.scss | 0 .../game-side-button.component.spec.ts | 23 +++++++++++++++++++ .../game-side-button.component.ts | 15 ++++++++++++ src/app/home/home.component.html | 4 +++- src/app/home/home.component.scss | 8 +++++++ 7 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 src/app/game-side-button/game-side-button.component.html create mode 100644 src/app/game-side-button/game-side-button.component.scss create mode 100644 src/app/game-side-button/game-side-button.component.spec.ts create mode 100644 src/app/game-side-button/game-side-button.component.ts diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 78fbeb2..6f03ba2 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -15,12 +15,13 @@ import { HomeModule } from './home/home.module'; import { DetailModule } from './detail/detail.module'; import { AppComponent } from './app.component'; +import { GameSideButtonComponent } from './game-side-button/game-side-button.component'; // AoT requires an exported function for factories const httpLoaderFactory = (http: HttpClient): TranslateHttpLoader => new TranslateHttpLoader(http, './assets/i18n/', '.json'); @NgModule({ - declarations: [AppComponent], + declarations: [AppComponent, GameSideButtonComponent], imports: [ BrowserModule, FormsModule, diff --git a/src/app/game-side-button/game-side-button.component.html b/src/app/game-side-button/game-side-button.component.html new file mode 100644 index 0000000..ac1d30b --- /dev/null +++ b/src/app/game-side-button/game-side-button.component.html @@ -0,0 +1 @@ +AAAAAAAA \ No newline at end of file diff --git a/src/app/game-side-button/game-side-button.component.scss b/src/app/game-side-button/game-side-button.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/game-side-button/game-side-button.component.spec.ts b/src/app/game-side-button/game-side-button.component.spec.ts new file mode 100644 index 0000000..e790879 --- /dev/null +++ b/src/app/game-side-button/game-side-button.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { GameSideButtonComponent } from './game-side-button.component'; + +describe('GameSideButtonComponent', () => { + let component: GameSideButtonComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ GameSideButtonComponent ] + }) + .compileComponents(); + + fixture = TestBed.createComponent(GameSideButtonComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/game-side-button/game-side-button.component.ts b/src/app/game-side-button/game-side-button.component.ts new file mode 100644 index 0000000..43d13cf --- /dev/null +++ b/src/app/game-side-button/game-side-button.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-game-side-button', + templateUrl: './game-side-button.component.html', + styleUrls: ['./game-side-button.component.scss'] +}) +export class GameSideButtonComponent implements OnInit { + + constructor() { } + + ngOnInit(): void { + } + +} diff --git a/src/app/home/home.component.html b/src/app/home/home.component.html index 4023a06..e57a09d 100644 --- a/src/app/home/home.component.html +++ b/src/app/home/home.component.html @@ -2,6 +2,8 @@

{{ 'PAGES.HOME.TITLE' | translate }}

- +
asdasdasdasdasdasd
{{ 'PAGES.HOME.GO_TO_DETAIL' | translate }} + + diff --git a/src/app/home/home.component.scss b/src/app/home/home.component.scss index 89a6d1f..a630e88 100644 --- a/src/app/home/home.component.scss +++ b/src/app/home/home.component.scss @@ -1,3 +1,11 @@ :host { +} + +.games-icons-panel{ + position: fixed; + background-color: #454545; + height: 100%; + margin-left: auto; + float: left } \ No newline at end of file