Skip to content

Commit

Permalink
switch to using dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
uxdxdev committed Dec 1, 2023
1 parent e1cd81d commit cf1a45a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/IntervalIndicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function IntervalIndicator({
key={index}
className={`w-7 flex justify-center rounded-full ${
isIntervalActive(interval, value) ? indicatorColor : "background-none"
} border-solid border-2 ${highlight.includes(interval) && borderHighlightColor}`}
} border-2 ${highlight.includes(interval) && borderHighlightColor}`}
>
{interval}
</div>
Expand Down
14 changes: 7 additions & 7 deletions src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function Home({ day }: { day: number }) {
title={"Day of practice box, border to indicate problems exist"}
value={day}
intervals={intervals}
indicatorColor="bg-sky-300"
indicatorColor="bg-fuchsia-700"
borderHighlightColor="border-fuchsia-500"
highlight={boxesWithProblems}
/>
Expand All @@ -105,7 +105,7 @@ function Home({ day }: { day: number }) {
if (isLoading) return;

return (
<div className="h-full flex flex-col items-center justify-center mb-auto">
<div className="dark:bg-slate-800 dark:text-white h-full flex flex-col items-center justify-center mb-auto">
<div className="text-2xl mb-4">Day {day} of practice</div>
{IntervalIndicatorMemo}

Expand All @@ -123,7 +123,7 @@ function Home({ day }: { day: number }) {
)}
</div>

<div className="space-x-3">
<div className="flex gap-x-4">
<button
disabled={done}
title="Move to next box"
Expand All @@ -140,7 +140,7 @@ function Home({ day }: { day: number }) {
setCurrentProblemSet((state) => state && state.filter((problem) => problem.name != currentProblem.name));
}
}}
className="h-10 px-3 py-1 font-semibold rounded-md bg-green-400 text-white"
className="h-10 px-3 py-1 font-semibold rounded-md border-2 border-green-600 bg-green-400 text-white"
>
Move to next box
</button>
Expand All @@ -155,13 +155,13 @@ function Home({ day }: { day: number }) {
setCurrentProblemSet((state) => state && state.filter((problem) => problem.name != currentProblem.name));
}
}}
className="h-10 px-3 py-1 font-semibold rounded-md bg-red-400 text-white"
className="h-10 px-3 py-1 font-semibold rounded-md border-2 border-red-600 bg-red-400 text-white"
>
Try again tomorrow
</button>
</div>
<div className="my-2">
Problems remaining {currentProblemSet?.length || 0}/{totalNumberOfProblems}
<div className="my-4">
{currentProblemSet?.length || 0}/{totalNumberOfProblems}
</div>

<div className="text-xs">
Expand Down

0 comments on commit cf1a45a

Please sign in to comment.