{{ text }}
-
+
+
+
\ No newline at end of file
diff --git a/src/app/quiz/mcq/mcq.component.scss b/src/app/quiz/mcq/mcq.component.scss
index 45853f4..c81a6f4 100644
--- a/src/app/quiz/mcq/mcq.component.scss
+++ b/src/app/quiz/mcq/mcq.component.scss
@@ -5,4 +5,35 @@ h3 {
font-weight: 500;
letter-spacing: 0.5px;
line-height: 1.5;
+}
+
+.options {
+ margin: 30px auto;
+
+ button {
+ border: 3px solid rgba($sea-blue, 0.3);
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ height: 50px;
+ color: white;
+ font-size: 1.1rem;
+ border-radius: 10px;
+ background-color: transparent;
+ margin: 15px 0;
+ width: 100%;
+ padding: 0 15px;
+ }
+
+ ion-checkbox {
+ --background: transparent;
+ --border-color: #2ea9f586;
+ --border-width: 2px;
+ --border-color-checked: var(--ion-color-primary);
+ --background-checked: var(--ion-color-primary);
+ --size: 25px;
+ --checkmark-width: 2px;
+ --checkmark-color: white;
+ pointer-events: none;
+ }
}
\ No newline at end of file
diff --git a/src/app/quiz/mcq/mcq.component.ts b/src/app/quiz/mcq/mcq.component.ts
index 6b770a0..ae50cf2 100644
--- a/src/app/quiz/mcq/mcq.component.ts
+++ b/src/app/quiz/mcq/mcq.component.ts
@@ -7,11 +7,13 @@ import { Component, OnInit, Input } from '@angular/core';
})
export class McqComponent implements OnInit {
@Input() text: string = '';
- @Input() choice: Array<{
+ @Input() choices: Array<{
value: string,
text: string,
}>;
- @Input() correctAnswer: number
+ @Input() correctAnswer: number;
+
+ selectedChoice: string = '';
constructor() { }
diff --git a/src/app/quiz/quiz.page.html b/src/app/quiz/quiz.page.html
index 810a06f..2d256e0 100644
--- a/src/app/quiz/quiz.page.html
+++ b/src/app/quiz/quiz.page.html
@@ -19,7 +19,7 @@