add components
This commit is contained in:
parent
768bbcdd70
commit
f35becf47b
@ -15,12 +15,13 @@ import { HomeModule } from './home/home.module';
|
|||||||
import { DetailModule } from './detail/detail.module';
|
import { DetailModule } from './detail/detail.module';
|
||||||
|
|
||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
|
import { GameSideButtonComponent } from './game-side-button/game-side-button.component';
|
||||||
|
|
||||||
// AoT requires an exported function for factories
|
// AoT requires an exported function for factories
|
||||||
const httpLoaderFactory = (http: HttpClient): TranslateHttpLoader => new TranslateHttpLoader(http, './assets/i18n/', '.json');
|
const httpLoaderFactory = (http: HttpClient): TranslateHttpLoader => new TranslateHttpLoader(http, './assets/i18n/', '.json');
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [AppComponent],
|
declarations: [AppComponent, GameSideButtonComponent],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
|
1
src/app/game-side-button/game-side-button.component.html
Normal file
1
src/app/game-side-button/game-side-button.component.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
AAAAAAAA
|
23
src/app/game-side-button/game-side-button.component.spec.ts
Normal file
23
src/app/game-side-button/game-side-button.component.spec.ts
Normal file
@ -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<GameSideButtonComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
declarations: [ GameSideButtonComponent ]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(GameSideButtonComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
15
src/app/game-side-button/game-side-button.component.ts
Normal file
15
src/app/game-side-button/game-side-button.component.ts
Normal file
@ -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 {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -2,6 +2,8 @@
|
|||||||
<h1 class="title">
|
<h1 class="title">
|
||||||
{{ 'PAGES.HOME.TITLE' | translate }}
|
{{ 'PAGES.HOME.TITLE' | translate }}
|
||||||
</h1>
|
</h1>
|
||||||
|
<div class="games-icons-panel">asdasdasdasdasdasd</div>
|
||||||
<a routerLink="/detail">{{ 'PAGES.HOME.GO_TO_DETAIL' | translate }}</a>
|
<a routerLink="/detail">{{ 'PAGES.HOME.GO_TO_DETAIL' | translate }}</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
:host {
|
:host {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.games-icons-panel{
|
||||||
|
position: fixed;
|
||||||
|
background-color: #454545;
|
||||||
|
height: 100%;
|
||||||
|
margin-left: auto;
|
||||||
|
float: left
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user