Skip to content

Commit

Permalink
fix: fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
fivestar committed Jan 3, 2025
1 parent 97c04e6 commit 86e8880
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
--progress-green: #00bc45;
--progress-warning: #f563f4;
--progress-alert: #ff0088;
--progress-proceeded: #808080;
--progress-exceeded: #808080;

--gray-50: color-mix(in srgb, var(--gray) 4%, var(--white));
--gray-100: color-mix(in srgb, var(--gray) 8%, var(--white));
Expand Down
2 changes: 1 addition & 1 deletion src/app/timer/TimerDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function TimerDisplay({
}: TimerDisplayProps) {
const renderVariant = () => {
if (secondsRemaining <= 0) {
return 'timeup';
return 'exceeded';
} else if (secondsRemaining <= 30) {
return 'alert';
} else if (secondsRemaining <= 60) {
Expand Down
8 changes: 4 additions & 4 deletions src/app/timer/timer.css
Original file line number Diff line number Diff line change
Expand Up @@ -147,21 +147,21 @@
}
}

&[data-variant='timeup'] {
&[data-variant='exceeded'] {
background-color: var(--safety-red);
color: var(--white);

.timer-progress {
&::-webkit-progress-value {
background-color: var(--progress-proceeded);
background-color: var(--progress-exceeded);
}

&::-moz-progress-bar {
background-color: var(--progress-proceeded);
background-color: var(--progress-exceeded);
}

&::-ms-fill {
background-color: var(--progress-proceeded);
background-color: var(--progress-exceeded);
}
}
}
Expand Down

0 comments on commit 86e8880

Please sign in to comment.