add modules for home screen
This commit is contained in:
parent
146e1eaaea
commit
ea6aa09e1c
4
src/app/home/game-bar/game-bar.component.html
Normal file
4
src/app/home/game-bar/game-bar.component.html
Normal file
@ -0,0 +1,4 @@
|
||||
<div id="LeftBar">
|
||||
<app-user-info></app-user-info>
|
||||
<app-game-button></app-game-button>
|
||||
</div>
|
0
src/app/home/game-bar/game-bar.component.scss
Normal file
0
src/app/home/game-bar/game-bar.component.scss
Normal file
23
src/app/home/game-bar/game-bar.component.spec.ts
Normal file
23
src/app/home/game-bar/game-bar.component.spec.ts
Normal 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();
|
||||
});
|
||||
});
|
15
src/app/home/game-bar/game-bar.component.ts
Normal file
15
src/app/home/game-bar/game-bar.component.ts
Normal 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 {
|
||||
}
|
||||
|
||||
}
|
19
src/app/home/generic-game/generic-game.component.html
Normal file
19
src/app/home/generic-game/generic-game.component.html
Normal 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>
|
23
src/app/home/generic-game/generic-game.component.spec.ts
Normal file
23
src/app/home/generic-game/generic-game.component.spec.ts
Normal 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();
|
||||
});
|
||||
});
|
15
src/app/home/generic-game/generic-game.component.ts
Normal file
15
src/app/home/generic-game/generic-game.component.ts
Normal 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 {
|
||||
}
|
||||
|
||||
}
|
@ -1,67 +1,4 @@
|
||||
<div class="container">
|
||||
<div id="LeftBar">
|
||||
<div class="ProfileBar">
|
||||
<div class="img rounded" id="ProfilePicture">
|
||||
<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>
|
||||
|
||||
|
||||
<app-game-bar></app-game-bar>
|
||||
<app-generic-game></app-generic-game>
|
||||
</div>
|
@ -5,9 +5,13 @@ import { HomeRoutingModule } from './home-routing.module';
|
||||
|
||||
import { HomeComponent } from './home.component';
|
||||
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({
|
||||
declarations: [HomeComponent],
|
||||
declarations: [HomeComponent, GameBarComponent, GenericGameComponent, GameButtonComponent, UserInfoComponent],
|
||||
imports: [CommonModule, SharedModule, HomeRoutingModule]
|
||||
})
|
||||
export class HomeModule {}
|
||||
|
Loading…
Reference in New Issue
Block a user