added valuesadd page

This commit is contained in:
Ryan Bakkes 2022-02-04 14:26:32 +01:00
parent 4569d059ff
commit 84680362c3
7 changed files with 105 additions and 0 deletions

View File

@ -23,6 +23,10 @@ const routes: Routes = [
path: 'valuesRanking',
loadChildren: () => import('./valuesRanking/valuesRanking.module').then( m => m.ValuesRankingPageModule), canActivate: [AuthGuard]
},
{
path: 'valuesAdd',
loadChildren: () => import('./valuesAdd/valuesAdd.module').then( m => m.ValuesAddPageModule), canActivate: [AuthGuard]
},
{
path: '',
redirectTo: 'home',

View File

@ -0,0 +1,16 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { ValuesAddPage } from './valuesAdd.page';
const routes: Routes = [
{
path: '',
component: ValuesAddPage,
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class ValuesAddPageRoutingModule {}

View File

@ -0,0 +1,19 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { IonicModule } from '@ionic/angular';
import { FormsModule } from '@angular/forms';
import { ValuesAddPage } from './valuesAdd.page';
import { ValuesAddPageRoutingModule } from './valuesAdd-routing.module';
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
ValuesAddPageRoutingModule
],
declarations: [ValuesAddPage]
})
export class ValuesAddPageModule {}

View File

@ -0,0 +1,17 @@
<!-- <ion-header [translucent]="true">
<ion-toolbar>
<ion-title>
Blank
</ion-title>
</ion-toolbar>
</ion-header> -->
<ion-content [fullscreen]="true">
<div class="logo">
<img class="logo_dark" src="assets/logo-authentes.png" />
<img class="logo_light" src="assets/logo-authentes-white.png" />
</div>
</ion-content>

View File

@ -0,0 +1,10 @@
#container {
text-align: center;
position: absolute;
left: 0;
right: 0;
top: 50%;
transform: translateY(-50%);
}

View File

@ -0,0 +1,24 @@
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { IonicModule } from '@ionic/angular';
import { ValuesAddPage } from './valuesAdd.page';
describe('HomePage', () => {
let component: ValuesAddPage;
let fixture: ComponentFixture<ValuesAddPage>;
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [ ValuesAddPage ],
imports: [IonicModule.forRoot()]
}).compileComponents();
fixture = TestBed.createComponent(ValuesAddPage);
component = fixture.componentInstance;
fixture.detectChanges();
}));
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,15 @@
import { Component, Renderer2 } from '@angular/core';
import { Router } from '@angular/router';
import { AlertService } from '../services/alert.service';
import { GameService } from '../services/game.service';
@Component({
selector: 'app-home',
templateUrl: 'valuesAdd.page.html',
styleUrls: ['valuesAdd.page.scss'],
})
export class ValuesAddPage {
constructor(private router: Router, private game: GameService, public alert: AlertService) {}
}