Skip to content

Commit ebbf36b

Browse files
Merge pull request #20 from itk-dev/feature/locked-poi-style
SALG-1278: change style on locked poi
2 parents ca0967f + 7358fdb commit ebbf36b

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/components/points-of-interest/PointOfInterest.jsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,21 +86,17 @@ function PointOfInterest({
8686

8787
return (
8888
<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` }`}
9490
>
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` }`} >
9692
{index}
9793
</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` }` } />
9995
<div className="flex flex-col">
10096
<h2 className="text-zinc-900 text-sm font-bold dark:text-zinc-200 my-3">
10197
{name}
10298
</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">
104100
{!unlocked && (
105101
<label htmlFor="distance">
106102
<RulerHorizontal className="w-4 inline mr-3" />

0 commit comments

Comments
 (0)