add components

This commit is contained in:
cyber-dream 2022-08-23 22:41:20 +03:00
parent 768bbcdd70
commit f35becf47b
7 changed files with 52 additions and 2 deletions

View File

@ -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,

View File

@ -0,0 +1 @@
AAAAAAAA

View 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();
});
});

View 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 {
}
}

View File

@ -2,6 +2,8 @@
<h1 class="title">
{{ 'PAGES.HOME.TITLE' | translate }}
</h1>
<div class="games-icons-panel">asdasdasdasdasdasd</div>
<a routerLink="/detail">{{ 'PAGES.HOME.GO_TO_DETAIL' | translate }}</a>
</div>

View File

@ -1,3 +1,11 @@
:host {
}
.games-icons-panel{
position: fixed;
background-color: #454545;
height: 100%;
margin-left: auto;
float: left
}