@@ -5,9 +5,9 @@ import { topics } from '../../../../constants/topics';
5
5
import type { TopicId , Difficulty } from '../../../../constants/topics' ;
6
6
7
7
const difficultyClasses = {
8
- beginner : 'text-electric-violet bg -electric-violet' ,
9
- intermediate : 'text-purple bg -purple' ,
10
- advanced : 'text-turquoise bg -turquoise' ,
8
+ beginner : 'text-electric-violet border -electric-violet' ,
9
+ intermediate : 'text-purple border -purple' ,
10
+ advanced : 'text-turquoise border -turquoise' ,
11
11
} as const ;
12
12
13
13
const difficultyNumbers = {
@@ -19,7 +19,7 @@ const difficultyNumbers = {
19
19
export default function QuestionsPage ( props : { id : string , difficulty : Difficulty , questions : string [ ] } ) {
20
20
const { id, difficulty, questions } = props ;
21
21
const topic = topics [ id as TopicId ] ;
22
- const [ textColorClass , bgColorClass ] = difficultyClasses [ difficulty ] . split ( ' ' ) ;
22
+ const [ textColorClass ] = difficultyClasses [ difficulty ] . split ( ' ' ) ;
23
23
24
24
if ( ! topic ) {
25
25
return null ;
@@ -28,17 +28,17 @@ export default function QuestionsPage(props: { id: string, difficulty: Difficult
28
28
return (
29
29
< div className = "min-h-screen bg-gray-50" >
30
30
< div className = "mx-auto max-w-2xl px-4 py-12" >
31
- < div className = "bg-white text-black p-6 sm:p-12 rounded-lg shadow-lg relative" >
31
+ < div className = "bg-white text-black p-6 sm:p-12 rounded-lg shadow-lg relative border-2 border-opacity-50 " >
32
32
< span className = { `absolute top-4 sm:top-8 right-4 sm:right-8 text-3xl sm:text-4xl font-staatliches opacity-90 sm:opacity-100 ${ textColorClass } ` } >
33
33
{ difficultyNumbers [ difficulty ] }
34
34
</ span >
35
35
< h1 className = { `text-2xl sm:text-4xl font-staatliches mb-8 sm:mb-12 max-w-[80%] leading-tight whitespace-pre-line ${ textColorClass } ` } >
36
36
{ topic . title }
37
37
</ h1 >
38
38
< ul className = "space-y-6 sm:space-y-8 font-inter" >
39
- { questions . map ( ( question , i ) => (
40
- < li key = { `${ id } -${ difficulty } -q-${ i } ` } className = "flex items-start gap-3 sm:gap-4" >
41
- < span className = { `w-2.5 sm:w-3 h-2.5 sm:h-3 rounded-full flex-shrink-0 mt-2 ${ bgColorClass } ` } />
39
+ { questions . map ( ( question ) => (
40
+ < li key = { `${ id } -${ difficulty } -q-${ question . slice ( 0 , 20 ) } ` } className = "flex items-start gap-3 sm:gap-4" >
41
+ < span className = { `w-2.5 sm:w-3 h-2.5 sm:h-3 rounded-full flex-shrink-0 mt-2 ${ difficultyClasses [ difficulty ] . replace ( 'text-' , 'bg-' ) } ` } />
42
42
< span className = "text-lg sm:text-xl leading-relaxed" > { question } </ span >
43
43
</ li >
44
44
) ) }
0 commit comments