@@ -57,6 +57,10 @@ const routes: Routes = [ | |||||
{ | { | ||||
path: 'quiz', | path: 'quiz', | ||||
loadChildren: () => import('./quiz/quiz.module').then( m => m.QuizPageModule) | loadChildren: () => import('./quiz/quiz.module').then( m => m.QuizPageModule) | ||||
}, | |||||
{ | |||||
path: 'shop', | |||||
loadChildren: () => import('./shop/shop.module').then( m => m.ShopPageModule) | |||||
} | } | ||||
]; | ]; | ||||
@NgModule({ | @NgModule({ | ||||
@@ -1,9 +1,14 @@ | |||||
<ion-header> | |||||
<ion-toolbar> | |||||
<ion-title>more</ion-title> | |||||
</ion-toolbar> | |||||
</ion-header> | |||||
<ion-content> | <ion-content> | ||||
<button [routerLink]="['/booking']"> | |||||
<ion-icon name="ticket"></ion-icon> | |||||
</button> | |||||
<button [routerLink]="['/collections']"> | |||||
<ion-icon name="trophy"></ion-icon> | |||||
</button> | |||||
<button [routerLink]="['/ar']"> | |||||
<ion-icon name="camera"></ion-icon> | |||||
</button> | |||||
<button [routerLink]="['/quiz']"> | |||||
<ion-icon name="game-controller"></ion-icon> | |||||
</button> | |||||
</ion-content> | </ion-content> |
@@ -1,15 +1,15 @@ | |||||
import { Component, OnInit } from '@angular/core'; | import { Component, OnInit } from '@angular/core'; | ||||
@Component({ | @Component({ | ||||
selector: 'app-more', | |||||
templateUrl: './more.page.html', | |||||
styleUrls: ['./more.page.scss'], | |||||
selector: 'app-more', | |||||
templateUrl: './more.page.html', | |||||
styleUrls: ['./more.page.scss'], | |||||
}) | }) | ||||
export class MorePage implements OnInit { | export class MorePage implements OnInit { | ||||
constructor() { } | |||||
constructor() { } | |||||
ngOnInit() { | |||||
} | |||||
ngOnInit() { | |||||
} | |||||
} | } |
@@ -0,0 +1,17 @@ | |||||
import { NgModule } from '@angular/core'; | |||||
import { Routes, RouterModule } from '@angular/router'; | |||||
import { ShopPage } from './shop.page'; | |||||
const routes: Routes = [ | |||||
{ | |||||
path: '', | |||||
component: ShopPage | |||||
} | |||||
]; | |||||
@NgModule({ | |||||
imports: [RouterModule.forChild(routes)], | |||||
exports: [RouterModule], | |||||
}) | |||||
export class ShopPageRoutingModule {} |
@@ -0,0 +1,20 @@ | |||||
import { NgModule } from '@angular/core'; | |||||
import { CommonModule } from '@angular/common'; | |||||
import { FormsModule } from '@angular/forms'; | |||||
import { IonicModule } from '@ionic/angular'; | |||||
import { ShopPageRoutingModule } from './shop-routing.module'; | |||||
import { ShopPage } from './shop.page'; | |||||
@NgModule({ | |||||
imports: [ | |||||
CommonModule, | |||||
FormsModule, | |||||
IonicModule, | |||||
ShopPageRoutingModule | |||||
], | |||||
declarations: [ShopPage] | |||||
}) | |||||
export class ShopPageModule {} |
@@ -0,0 +1,3 @@ | |||||
<ion-content> | |||||
</ion-content> |
@@ -0,0 +1,24 @@ | |||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | |||||
import { IonicModule } from '@ionic/angular'; | |||||
import { ShopPage } from './shop.page'; | |||||
describe('ShopPage', () => { | |||||
let component: ShopPage; | |||||
let fixture: ComponentFixture<ShopPage>; | |||||
beforeEach(async(() => { | |||||
TestBed.configureTestingModule({ | |||||
declarations: [ ShopPage ], | |||||
imports: [IonicModule.forRoot()] | |||||
}).compileComponents(); | |||||
fixture = TestBed.createComponent(ShopPage); | |||||
component = fixture.componentInstance; | |||||
fixture.detectChanges(); | |||||
})); | |||||
it('should create', () => { | |||||
expect(component).toBeTruthy(); | |||||
}); | |||||
}); |
@@ -0,0 +1,15 @@ | |||||
import { Component, OnInit } from '@angular/core'; | |||||
@Component({ | |||||
selector: 'app-shop', | |||||
templateUrl: './shop.page.html', | |||||
styleUrls: ['./shop.page.scss'], | |||||
}) | |||||
export class ShopPage implements OnInit { | |||||
constructor() { } | |||||
ngOnInit() { | |||||
} | |||||
} |
@@ -34,6 +34,10 @@ const routes: Routes = [ | |||||
{ | { | ||||
path: 'quiz', | path: 'quiz', | ||||
loadChildren: () => import('../quiz/quiz.module').then( m => m.QuizPageModule) | loadChildren: () => import('../quiz/quiz.module').then( m => m.QuizPageModule) | ||||
}, | |||||
{ | |||||
path: 'shop', | |||||
loadChildren: () => import('../shop/shop.module').then( m => m.ShopPageModule) | |||||
} | } | ||||
] | ] | ||||
}, | }, | ||||
@@ -31,5 +31,11 @@ | |||||
<ion-icon name="game-controller"></ion-icon> | <ion-icon name="game-controller"></ion-icon> | ||||
</ion-tab-button> | </ion-tab-button> | ||||
<ion-tab-button tab="shop"> | |||||
<ion-icon name="bag-handle-outline"></ion-icon> | |||||
<ion-icon name="bag-handle"></ion-icon> | |||||
</ion-tab-button> | |||||
</ion-tab-bar> | </ion-tab-bar> | ||||
</ion-tabs> | </ion-tabs> |
@@ -123,21 +123,6 @@ figure { | |||||
margin: 0; | margin: 0; | ||||
} | } | ||||
.content-container { | |||||
animation: fadeIn 0.4s forwards; | |||||
opacity: 0; | |||||
@keyframes fadeIn { | |||||
0% { | |||||
opacity: 0; | |||||
transform: translateY(3vh); | |||||
} | |||||
100% { | |||||
opacity: 1; | |||||
transform: translateY(0vh); | |||||
} | |||||
} | |||||
} | |||||
.chat-button { | .chat-button { | ||||
--background: transparent; | --background: transparent; | ||||