add modules for home screen

This commit is contained in:
cyber-dream 2022-08-27 02:03:02 +03:00
parent 146e1eaaea
commit ea6aa09e1c
10 changed files with 107 additions and 67 deletions

View File

@ -0,0 +1,4 @@
<div id="LeftBar">
<app-user-info></app-user-info>
<app-game-button></app-game-button>
</div>

View File

@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { GameBarComponent } from './game-bar.component';
describe('GameBarComponent', () => {
let component: GameBarComponent;
let fixture: ComponentFixture<GameBarComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ GameBarComponent ]
})
.compileComponents();
fixture = TestBed.createComponent(GameBarComponent);
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-bar',
templateUrl: './game-bar.component.html',
styleUrls: ['./game-bar.component.scss']
})
export class GameBarComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

View File

@ -0,0 +1,19 @@
<div id="RightBar">
<div class="two-lines-centered">
<div class="first-line">
<div class="text header">
<span>Minecraft</span>
</div>
<div class="label">
Survival
</div>
<div class="label">
1.12.2
</div>
</div>
<div class="text light darken">
<span>Survival world with mods such as Industrial Craft, RailCraft, etc.</span>
</div>
</div>
</div>

View File

@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { GenericGameComponent } from './generic-game.component';
describe('GenericGameComponent', () => {
let component: GenericGameComponent;
let fixture: ComponentFixture<GenericGameComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ GenericGameComponent ]
})
.compileComponents();
fixture = TestBed.createComponent(GenericGameComponent);
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-generic-game',
templateUrl: './generic-game.component.html',
styleUrls: ['./generic-game.component.scss']
})
export class GenericGameComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

View File

@ -1,67 +1,4 @@
<div class="container"> <div class="container">
<div id="LeftBar"> <app-game-bar></app-game-bar>
<div class="ProfileBar"> <app-generic-game></app-generic-game>
<div class="img rounded" id="ProfilePicture"> </div>
<img src="./assets/avatar.jpeg" height="45px" width="45px">
</div>
<div class="two-lines-centered">
<div class="first-line">
<div class="text header big">
<span>MrSandyMoon</span>
</div>
<div class="label">
Booster
</div>
</div>
<div class="text light darken">
<span>Administrator</span>
</div>
</div>
</div>
<hr>
<div #page id="GamesBar">
<GameSideButtonComponent></GameSideButtonComponent>
<div class="SessionCount">
<span class="semi-bold">2 </span>
<span class="light">sessions active</span>
</div>
<div class="SessionCount">
<span class="semi-bold">1 </span>
<span class="light">session announced</span>
</div>
<div class="SessionCount">
<span class="semi-bold">2 </span>
<span class="light">sessions to be voted</span>
</div>
</div>
</div>
<div id="RightBar">
<div class="two-lines-centered">
<div class="first-line">
<div class="text header">
<span>Minecraft</span>
</div>
<div class="label">
Survival
</div>
<div class="label">
1.12.2
</div>
</div>
<div class="text light darken">
<span>Survival world with mods such as Industrial Craft, RailCraft, etc.</span>
</div>
</div>
</div>
</div>

View File

@ -5,9 +5,13 @@ import { HomeRoutingModule } from './home-routing.module';
import { HomeComponent } from './home.component'; import { HomeComponent } from './home.component';
import { SharedModule } from '../shared/shared.module'; import { SharedModule } from '../shared/shared.module';
import { GameBarComponent } from './game-bar/game-bar.component';
import { GenericGameComponent } from './generic-game/generic-game.component';
import { GameButtonComponent } from './game-bar/game-button/game-button.component';
import { UserInfoComponent } from './game-bar/user-info/user-info.component';
@NgModule({ @NgModule({
declarations: [HomeComponent], declarations: [HomeComponent, GameBarComponent, GenericGameComponent, GameButtonComponent, UserInfoComponent],
imports: [CommonModule, SharedModule, HomeRoutingModule] imports: [CommonModule, SharedModule, HomeRoutingModule]
}) })
export class HomeModule {} export class HomeModule {}