diff --git a/src/lib/components/Chapter.svelte b/src/lib/components/Chapter.svelte index d6f1afe..2f3e839 100644 --- a/src/lib/components/Chapter.svelte +++ b/src/lib/components/Chapter.svelte @@ -11,8 +11,8 @@ class={cn( 'font-code group relative flex h-full w-full rounded-md bg-primary-700 transition-colors duration-150 ', { - 'cursor-not-allowed': !chapter.show, 'hover:bg-primary-600': chapter.show, + 'opacity-50': !chapter.show, } )} > diff --git a/src/lib/components/Puzzle.svelte b/src/lib/components/Puzzle.svelte index 926c7a5..3acf636 100644 --- a/src/lib/components/Puzzle.svelte +++ b/src/lib/components/Puzzle.svelte @@ -13,43 +13,70 @@
  • tag.name.toLowerCase() === 'easy'), 'border-yellow-600/30': puzzle.tags?.find((tag) => tag.name.toLowerCase() === 'medium'), 'border-red-600/30': puzzle.tags?.find((tag) => tag.name.toLowerCase() === 'hard'), - 'border-highlight-primary': !puzzle.tags?.length - // 'cursor-not-allowed': !isStarted(chapter) + 'border-highlight-primary': !puzzle.tags?.length, + 'hover:bg-primary-600': puzzle.show, + 'opacity-50': !puzzle.show } )} > - -
    -

    - {puzzle.name} - - ({puzzle.score ? `${puzzle.score}` : '?'}/{puzzle.scoreMax} points) - -

    -
    - - - + {/if}