From 85019b2a54c6a4757fce12fee63131544177795c Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Sat, 27 Aug 2022 02:13:43 +0300 Subject: [PATCH] add home screen components --- .../game-button/game-button.component.html | 16 +++++++++++++ .../game-button/game-button.component.scss | 0 .../game-button/game-button.component.spec.ts | 0 .../game-button/game-button.component.ts | 0 .../user-info/user-info.component.html | 18 +++++++++++++++ .../user-info/user-info.component.scss | 0 .../user-info/user-info.component.spec.ts | 23 +++++++++++++++++++ .../game-bar/user-info/user-info.component.ts | 15 ++++++++++++ .../generic-game/generic-game.component.html | 20 +--------------- 9 files changed, 73 insertions(+), 19 deletions(-) create mode 100644 src/app/home/game-bar/game-button/game-button.component.html rename src/app/{ => home}/game-bar/game-button/game-button.component.scss (100%) rename src/app/{ => home}/game-bar/game-button/game-button.component.spec.ts (100%) rename src/app/{ => home}/game-bar/game-button/game-button.component.ts (100%) create mode 100644 src/app/home/game-bar/user-info/user-info.component.html create mode 100644 src/app/home/game-bar/user-info/user-info.component.scss create mode 100644 src/app/home/game-bar/user-info/user-info.component.spec.ts create mode 100644 src/app/home/game-bar/user-info/user-info.component.ts diff --git a/src/app/home/game-bar/game-button/game-button.component.html b/src/app/home/game-bar/game-button/game-button.component.html new file mode 100644 index 0000000..db337c1 --- /dev/null +++ b/src/app/home/game-bar/game-button/game-button.component.html @@ -0,0 +1,16 @@ +
+
+
+ Minecraft +
+
+ Survival +
+
+ 1.12.2 +
+
+
+ Survival world with mods such as Industrial Craft, RailCraft, etc. +
+
\ No newline at end of file diff --git a/src/app/game-bar/game-button/game-button.component.scss b/src/app/home/game-bar/game-button/game-button.component.scss similarity index 100% rename from src/app/game-bar/game-button/game-button.component.scss rename to src/app/home/game-bar/game-button/game-button.component.scss diff --git a/src/app/game-bar/game-button/game-button.component.spec.ts b/src/app/home/game-bar/game-button/game-button.component.spec.ts similarity index 100% rename from src/app/game-bar/game-button/game-button.component.spec.ts rename to src/app/home/game-bar/game-button/game-button.component.spec.ts diff --git a/src/app/game-bar/game-button/game-button.component.ts b/src/app/home/game-bar/game-button/game-button.component.ts similarity index 100% rename from src/app/game-bar/game-button/game-button.component.ts rename to src/app/home/game-bar/game-button/game-button.component.ts diff --git a/src/app/home/game-bar/user-info/user-info.component.html b/src/app/home/game-bar/user-info/user-info.component.html new file mode 100644 index 0000000..a85baea --- /dev/null +++ b/src/app/home/game-bar/user-info/user-info.component.html @@ -0,0 +1,18 @@ +
+
+ +
+
+
+
+ MrSandyMoon +
+
+ Booster +
+
+
+ Administrator +
+
+
\ No newline at end of file diff --git a/src/app/home/game-bar/user-info/user-info.component.scss b/src/app/home/game-bar/user-info/user-info.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/home/game-bar/user-info/user-info.component.spec.ts b/src/app/home/game-bar/user-info/user-info.component.spec.ts new file mode 100644 index 0000000..8d21ecb --- /dev/null +++ b/src/app/home/game-bar/user-info/user-info.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { UserInfoComponent } from './user-info.component'; + +describe('UserInfoComponent', () => { + let component: UserInfoComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ UserInfoComponent ] + }) + .compileComponents(); + + fixture = TestBed.createComponent(UserInfoComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/home/game-bar/user-info/user-info.component.ts b/src/app/home/game-bar/user-info/user-info.component.ts new file mode 100644 index 0000000..45f2faa --- /dev/null +++ b/src/app/home/game-bar/user-info/user-info.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-user-info', + templateUrl: './user-info.component.html', + styleUrls: ['./user-info.component.scss'] +}) +export class UserInfoComponent implements OnInit { + + constructor() { } + + ngOnInit(): void { + } + +} diff --git a/src/app/home/generic-game/generic-game.component.html b/src/app/home/generic-game/generic-game.component.html index 5b2b7f6..fc0b9f0 100644 --- a/src/app/home/generic-game/generic-game.component.html +++ b/src/app/home/generic-game/generic-game.component.html @@ -1,19 +1 @@ -
- -
-
-
- Minecraft -
-
- Survival -
-
- 1.12.2 -
-
-
- Survival world with mods such as Industrial Craft, RailCraft, etc. -
-
-
\ No newline at end of file +ОГО, ну и хуита эта ваша игра \ No newline at end of file