diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index b9e0b1d..406ba64 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -53,6 +53,10 @@ const routes: Routes = [ { path: 'ar-fan-cam', loadChildren: () => import('./ar-fan-cam/ar-fan-cam.module').then( m => m.ArFanCamPageModule) + }, + { + path: 'quiz', + loadChildren: () => import('./quiz/quiz.module').then( m => m.QuizPageModule) } ]; @NgModule({ diff --git a/src/app/quiz/mcq/mcq.component.html b/src/app/quiz/mcq/mcq.component.html new file mode 100644 index 0000000..fa2982b --- /dev/null +++ b/src/app/quiz/mcq/mcq.component.html @@ -0,0 +1,3 @@ +

+ mcq works! +

diff --git a/src/app/quiz/mcq/mcq.component.scss b/src/app/quiz/mcq/mcq.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/quiz/mcq/mcq.component.spec.ts b/src/app/quiz/mcq/mcq.component.spec.ts new file mode 100644 index 0000000..888a767 --- /dev/null +++ b/src/app/quiz/mcq/mcq.component.spec.ts @@ -0,0 +1,24 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { IonicModule } from '@ionic/angular'; + +import { McqComponent } from './mcq.component'; + +describe('McqComponent', () => { + let component: McqComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ McqComponent ], + imports: [IonicModule.forRoot()] + }).compileComponents(); + + fixture = TestBed.createComponent(McqComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + })); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/quiz/mcq/mcq.component.ts b/src/app/quiz/mcq/mcq.component.ts new file mode 100644 index 0000000..de1f0b2 --- /dev/null +++ b/src/app/quiz/mcq/mcq.component.ts @@ -0,0 +1,14 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-mcq', + templateUrl: './mcq.component.html', + styleUrls: ['./mcq.component.scss'], +}) +export class McqComponent implements OnInit { + + constructor() { } + + ngOnInit() {} + +} diff --git a/src/app/quiz/quiz-routing.module.ts b/src/app/quiz/quiz-routing.module.ts new file mode 100644 index 0000000..dbf555a --- /dev/null +++ b/src/app/quiz/quiz-routing.module.ts @@ -0,0 +1,17 @@ +import { NgModule } from '@angular/core'; +import { Routes, RouterModule } from '@angular/router'; + +import { QuizPage } from './quiz.page'; + +const routes: Routes = [ + { + path: '', + component: QuizPage + } +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule], +}) +export class QuizPageRoutingModule {} diff --git a/src/app/quiz/quiz.module.ts b/src/app/quiz/quiz.module.ts new file mode 100644 index 0000000..a05e492 --- /dev/null +++ b/src/app/quiz/quiz.module.ts @@ -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 { QuizPageRoutingModule } from './quiz-routing.module'; + +import { QuizPage } from './quiz.page'; + +@NgModule({ + imports: [ + CommonModule, + FormsModule, + IonicModule, + QuizPageRoutingModule + ], + declarations: [QuizPage] +}) +export class QuizPageModule {} diff --git a/src/app/quiz/quiz.page.html b/src/app/quiz/quiz.page.html new file mode 100644 index 0000000..2c76488 --- /dev/null +++ b/src/app/quiz/quiz.page.html @@ -0,0 +1,3 @@ + + + diff --git a/src/app/quiz/quiz.page.scss b/src/app/quiz/quiz.page.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/quiz/quiz.page.spec.ts b/src/app/quiz/quiz.page.spec.ts new file mode 100644 index 0000000..304d9ad --- /dev/null +++ b/src/app/quiz/quiz.page.spec.ts @@ -0,0 +1,24 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { IonicModule } from '@ionic/angular'; + +import { QuizPage } from './quiz.page'; + +describe('QuizPage', () => { + let component: QuizPage; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ QuizPage ], + imports: [IonicModule.forRoot()] + }).compileComponents(); + + fixture = TestBed.createComponent(QuizPage); + component = fixture.componentInstance; + fixture.detectChanges(); + })); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/quiz/quiz.page.ts b/src/app/quiz/quiz.page.ts new file mode 100644 index 0000000..e9ef63d --- /dev/null +++ b/src/app/quiz/quiz.page.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-quiz', + templateUrl: './quiz.page.html', + styleUrls: ['./quiz.page.scss'], +}) +export class QuizPage implements OnInit { + + constructor() { } + + ngOnInit() { + } + +} diff --git a/src/app/quiz/swipe-cards/swipe-cards.component.html b/src/app/quiz/swipe-cards/swipe-cards.component.html new file mode 100644 index 0000000..92c8e43 --- /dev/null +++ b/src/app/quiz/swipe-cards/swipe-cards.component.html @@ -0,0 +1,3 @@ +

+ swipe-cards works! +

diff --git a/src/app/quiz/swipe-cards/swipe-cards.component.scss b/src/app/quiz/swipe-cards/swipe-cards.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/quiz/swipe-cards/swipe-cards.component.spec.ts b/src/app/quiz/swipe-cards/swipe-cards.component.spec.ts new file mode 100644 index 0000000..132ba48 --- /dev/null +++ b/src/app/quiz/swipe-cards/swipe-cards.component.spec.ts @@ -0,0 +1,24 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; +import { IonicModule } from '@ionic/angular'; + +import { SwipeCardsComponent } from './swipe-cards.component'; + +describe('SwipeCardsComponent', () => { + let component: SwipeCardsComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ SwipeCardsComponent ], + imports: [IonicModule.forRoot()] + }).compileComponents(); + + fixture = TestBed.createComponent(SwipeCardsComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + })); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/quiz/swipe-cards/swipe-cards.component.ts b/src/app/quiz/swipe-cards/swipe-cards.component.ts new file mode 100644 index 0000000..69685b6 --- /dev/null +++ b/src/app/quiz/swipe-cards/swipe-cards.component.ts @@ -0,0 +1,14 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-swipe-cards', + templateUrl: './swipe-cards.component.html', + styleUrls: ['./swipe-cards.component.scss'], +}) +export class SwipeCardsComponent implements OnInit { + + constructor() { } + + ngOnInit() {} + +} diff --git a/src/app/tabs/tabs-routing.module.ts b/src/app/tabs/tabs-routing.module.ts index 629bc62..3ecfddc 100644 --- a/src/app/tabs/tabs-routing.module.ts +++ b/src/app/tabs/tabs-routing.module.ts @@ -30,6 +30,10 @@ const routes: Routes = [ { path: 'ar', loadChildren: () => import('../ar-fan-cam/ar-fan-cam.module').then( m => m.ArFanCamPageModule) + }, + { + path: 'quiz', + loadChildren: () => import('../quiz/quiz.module').then( m => m.QuizPageModule) } ] }, diff --git a/src/app/tabs/tabs.page.html b/src/app/tabs/tabs.page.html index 2ed5bc1..d990fce 100644 --- a/src/app/tabs/tabs.page.html +++ b/src/app/tabs/tabs.page.html @@ -26,5 +26,10 @@ + + + + +