File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
src/components/points-of-interest Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -86,21 +86,17 @@ function PointOfInterest({
86
86
87
87
return (
88
88
< div
89
- className = {
90
- unlocked
91
- ? `relative flex items-start gap-4 p-2 bg-white dark:bg-zinc-700 rounded-lg`
92
- : `relative flex items-start gap-4 p-2 bg-white dark:bg-zinc-700 rounded-lg opacity-30`
93
- }
89
+ className = { `relative flex items-start gap-4 p-2 rounded-lg ${ unlocked ? `bg-zinc-200 dark:bg-zinc-600` : `bg-zinc-100 dark:bg-zinc-700` } ` }
94
90
>
95
- < div className = " absolute -left-3 px-2 font-bold rounded-full bg-emerald-700 text-zinc-100 text-sm" >
91
+ < div className = { ` absolute -left-3 px-2 font-bold rounded-full text-sm ${ unlocked ? ` bg-emerald-700 text-zinc-100` : `bg-emerald-900 text-zinc-400` } ` } >
96
92
{ index }
97
93
</ div >
98
- < Image src = { image } className = " w-24 h-24 rounded-full" />
94
+ < Image src = { image } className = { ` w-24 h-24 rounded-full ${ ! unlocked && `opacity-40` } ` } />
99
95
< div className = "flex flex-col" >
100
96
< h2 className = "text-zinc-900 text-sm font-bold dark:text-zinc-200 my-3" >
101
97
{ name }
102
98
</ h2 >
103
- < div className = "text-zinc-500 text-sm font-medium dark:text-zinc-400 " >
99
+ < div className = "text-zinc-500 text-sm font-medium dark:text-zinc-200 " >
104
100
{ ! unlocked && (
105
101
< label htmlFor = "distance" >
106
102
< RulerHorizontal className = "w-4 inline mr-3" />
You can’t perform that action at this time.
0 commit comments