@@ -25,16 +25,16 @@ export function Quiz({ quiz, onComplete }: QuizProps) { |
25 | 25 |
|
26 | 26 | return ( |
27 | 27 | <div className="space-y-6"> |
28 | | - <h3 className="text-xl font-semibold">Quiz</h3> |
| 28 | + <h3 className="text-xl font-semibold text-gray-900 dark:text-white">Quiz</h3> |
29 | 29 |
|
30 | 30 | {quiz.questions.map((question, questionIndex) => ( |
31 | 31 | <div key={question.id} className="space-y-4"> |
32 | | - <p className="font-medium">{question.text}</p> |
| 32 | + <p className="font-medium text-gray-900 dark:text-white">{question.text}</p> |
33 | 33 | <div className="space-y-2"> |
34 | 34 | {question.options.map((option, optionIndex) => ( |
35 | 35 | <label |
36 | 36 | key={optionIndex} |
37 | | - className="flex items-center space-x-3 p-3 rounded-lg border cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 dark:border-gray-700" |
| 37 | + className="flex items-center space-x-3 p-3 rounded-lg border border-gray-200 cursor-pointer transition-colors hover:bg-primary-50 dark:hover:bg-primary-900/10 dark:border-gray-700" |
38 | 38 | > |
39 | 39 | <input |
40 | 40 | type="radio" |
@@ -47,7 +47,7 @@ export function Quiz({ quiz, onComplete }: QuizProps) { |
47 | 47 | setAnswers(newAnswers) |
48 | 48 | }} |
49 | 49 | disabled={submitted} |
50 | | - className="h-4 w-4 text-primary-600 focus:ring-primary-500" |
| 50 | + className="h-4 w-4 text-primary-600 focus:ring-primary-500 border-gray-300 dark:border-gray-600" |
51 | 51 | /> |
52 | 52 | <span className="text-gray-900 dark:text-gray-100">{option}</span> |
53 | 53 | </label> |
@@ -60,13 +60,13 @@ export function Quiz({ quiz, onComplete }: QuizProps) { |
60 | 60 | <button |
61 | 61 | onClick={handleSubmit} |
62 | 62 | disabled={answers.includes(-1)} |
63 | | - className="w-full px-4 py-2 text-sm font-medium text-white bg-primary-600 dark:bg-primary-500 rounded-md hover:bg-primary-700 dark:hover:bg-primary-600 disabled:opacity-50 disabled:cursor-not-allowed" |
| 63 | + className="w-full px-4 py-2 text-sm font-medium text-white bg-primary-600 rounded-md transition-colors hover:bg-primary-700 dark:bg-primary-600 dark:hover:bg-primary-700 disabled:opacity-50 disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900" |
64 | 64 | > |
65 | 65 | Submit Quiz |
66 | 66 | </button> |
67 | 67 | ) : ( |
68 | | - <div className="p-4 rounded-lg bg-gray-50 dark:bg-gray-800"> |
69 | | - <p className="font-medium"> |
| 68 | + <div className="p-4 rounded-lg bg-primary-50 dark:bg-primary-900/10 border border-primary-100 dark:border-primary-900/20"> |
| 69 | + <p className="font-medium text-gray-900 dark:text-white"> |
70 | 70 | Score: {score} / {quiz.questions.length} |
71 | 71 | </p> |
72 | 72 | <p className="text-sm text-gray-600 dark:text-gray-400 mt-1"> |
@@ -78,4 +78,4 @@ export function Quiz({ quiz, onComplete }: QuizProps) { |
78 | 78 | )} |
79 | 79 | </div> |
80 | 80 | ) |
81 | | -} |
| 81 | +} |