Skip to content

Commit 4110808

Browse files
Merge pull request #125 from Rugved-pro/main
Fixed Minor issues regarding visibility
2 parents 3a78a8a + 2fe64ec commit 4110808

File tree

1 file changed

+25
-19
lines changed

1 file changed

+25
-19
lines changed

src/pages/Trivia.jsx

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
* TRIVIA QUIZ DASHBOARD TODOs
33
* ---------------------------
44
* Easy:
5-
* - [ ] Add difficulty selector (easy/medium/hard)
6-
* - [ ] Indicate correct answer after selection (current partially does w/ classes; improve UX)
7-
* - [ ] Add next question button instead of showing all
8-
* - [ ] Shuffle category list order
5+
* - [ ] Add difficulty selector (easy/medium/hard)
6+
* - [ ] Indicate correct answer after selection (current partially does w/ classes; improve UX)
7+
* - [ ] Add next question button instead of showing all
8+
* - [ ] Shuffle category list order
99
* Medium:
10-
* - [ ] Timer per question + bonus points for speed
11-
* - [ ] Show progress bar (questions answered / total)
12-
* - [x] Local high score persistence
13-
* - [ ] Review mode (see all answers after completion)
10+
* - [ ] Timer per question + bonus points for speed
11+
* - [ ] Show progress bar (questions answered / total)
12+
* - [x] Local high score persistence
13+
* - [ ] Review mode (see all answers after completion)
1414
* Advanced:
15-
* - [ ] Question set builder (choose amount, difficulty, category)
16-
* - [ ] Accessibility: better focus states & keyboard answer selection
17-
* - [ ] Multiplayer / shared score (stub for future)
18-
* - [ ] Extract quiz logic into hook (useQuiz) for reuse/testing
15+
* - [ ] Question set builder (choose amount, difficulty, category)
16+
* - [ ] Accessibility: better focus states & keyboard answer selection
17+
* - [ ] Multiplayer / shared score (stub for future)
18+
* - [ ] Extract quiz logic into hook (useQuiz) for reuse/testing
1919
*/
2020

2121
import { useEffect, useState, useRef } from 'react';
@@ -295,20 +295,22 @@ export default function Trivia() {
295295
background: #d1ecf1;
296296
}
297297
298-
.answer-button.result-correct {
298+
.result-correct {
299299
border-color: #28a745;
300300
background: #d4edda;
301301
color: #155724;
302302
}
303303
304-
.answer-button.result-wrong {
304+
.result-wrong {
305305
border-color: #dc3545;
306306
background: #f8d7da;
307307
color: #721c24;
308308
}
309309
310-
.answer-button.result-neutral {
311-
opacity: 0.6;
310+
.result-neutral {
311+
opacity: 1;
312+
color: #6c757d;
313+
background: #f8f9fa;
312314
}
313315
314316
.btn-primary {
@@ -432,8 +434,10 @@ export default function Trivia() {
432434
display: flex;
433435
flex-direction: column;
434436
gap: 5px;
435-
font-weight: 600;
436-
color: #1e4d6b;
437+
/* --- FIX: Made bolder and darker --- */
438+
font-weight: 700;
439+
color: light-white;
440+
font-size: 15px;
437441
}
438442
439443
.controls-section select {
@@ -443,6 +447,7 @@ export default function Trivia() {
443447
font-size: 14px;
444448
background: white;
445449
cursor: pointer;
450+
color: #333;
446451
}
447452
448453
.results-container {
@@ -482,6 +487,7 @@ export default function Trivia() {
482487
margin: 8px 0;
483488
border-radius: 8px;
484489
border: 2px solid #ddd;
490+
color: #333;
485491
}
486492
`}</style>
487493

@@ -566,7 +572,7 @@ export default function Trivia() {
566572
style={{ width: `${progressPercent}%` }}
567573
></div>
568574
</div>
569-
<p style={{ textAlign: 'center', color: '#6c757d', marginBottom: '20px' }}>
575+
<p style={{ textAlign: 'center', color: 'white', marginBottom: '20px' }}>
570576
Question {currentQuestionIndex + 1} of {questions.length}
571577
</p>
572578

0 commit comments

Comments
 (0)