Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #7 from nitrotap/juxsarmo-patch-2
Browse files Browse the repository at this point in the history
Add files via upload - quiz page
  • Loading branch information
nitrotap authored May 30, 2023
2 parents 6cfbaca + 6f26af0 commit 71ba705
Show file tree
Hide file tree
Showing 6 changed files with 149 additions and 0 deletions.
17 changes: 17 additions & 0 deletions client/src/app/quiz/quiz-routing.module.ts
Original file line number Diff line number Diff line change
@@ -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 {}
20 changes: 20 additions & 0 deletions client/src/app/quiz/quiz.module.ts
Original file line number Diff line number Diff line change
@@ -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 {}
34 changes: 34 additions & 0 deletions client/src/app/quiz/quiz.page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<ion-header [translucent]="true">
<ion-toolbar>
<ion-title>Quiz</ion-title>
</ion-toolbar>
</ion-header>

<ion-content [fullscreen]="true">


<ion-card>
<ion-card-header>
<ion-card-title>*QUESTION TYPE / QUESTION TIME*</ion-card-title>
</ion-card-header>

<ion-card-content>
*GENERATED QUESTION TYPE*
</ion-card-content>
</ion-card>

<ion-range

aria-label="Custom range"
[min]="0"
[max]="10"
[value]="5"
[pin]="true"
[ticks]="true"
[snaps]="true"

></ion-range>



</ion-content>
46 changes: 46 additions & 0 deletions client/src/app/quiz/quiz.page.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
ion-range {
// Styles for the range component here

ion-range::part(tick) {
background: #a2d2ff;

}

ion-range::part(tick-active) {
background: #bde0fe;
}

ion-range::part(pin) {
display: inline-flex;
align-items: center;
justify-content: center;

background: #ffafcc;
color: #fff;

border-radius: 50%;
transform: scale(1.01);

top: -20px;

min-width: 28px;
height: 28px;
transition: transform 120ms ease, background 120ms ease;
}

ion-range::part(pin)::before {
content: none;
}

ion-range::part(knob) {
background: #ffc8dd;
}

ion-range::part(bar) {
background: #a2d2ff;
}

ion-range::part(bar-active) {
background: #bde0fe;
}
}
17 changes: 17 additions & 0 deletions client/src/app/quiz/quiz.page.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { ComponentFixture, TestBed, async } from '@angular/core/testing';
import { QuizPage } from './quiz.page';

describe('QuizPage', () => {
let component: QuizPage;
let fixture: ComponentFixture<QuizPage>;

beforeEach(async(() => {
fixture = TestBed.createComponent(QuizPage);
component = fixture.componentInstance;
fixture.detectChanges();
}));

it('should create', () => {
expect(component).toBeTruthy();
});
});
15 changes: 15 additions & 0 deletions client/src/app/quiz/quiz.page.ts
Original file line number Diff line number Diff line change
@@ -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() {
}

}

0 comments on commit 71ba705

Please sign in to comment.