diff --git a/src/components/timer/timer.module.css b/src/components/timer/timer.module.css index f1e350c..f29ed66 100644 --- a/src/components/timer/timer.module.css +++ b/src/components/timer/timer.module.css @@ -9,4 +9,8 @@ background-color: var(--color-neutral-50); border: 1px solid var(--color-neutral-200); border-radius: 8px; + + &.tall { + padding: 60px 0; + } } diff --git a/src/components/timer/timer.tsx b/src/components/timer/timer.tsx index 6d65991..477d098 100644 --- a/src/components/timer/timer.tsx +++ b/src/components/timer/timer.tsx @@ -1,13 +1,15 @@ import { padNumber } from '@/helpers/number'; +import { cn } from '@/helpers/styles'; import styles from './timer.module.css'; interface TimerProps { displayHours?: boolean; + tall?: boolean; timer: number; } -export function Timer({ displayHours = false, timer }: TimerProps) { +export function Timer({ displayHours = false, tall, timer }: TimerProps) { let hours = Math.floor(timer / 3600); let minutes = Math.floor((timer % 3600) / 60); let seconds = timer % 60; @@ -21,7 +23,7 @@ export function Timer({ displayHours = false, timer }: TimerProps) { const formattedSeconds = padNumber(seconds); return ( -
- {completions[selectedTab] || 0} completed -
-+ {completions[selectedTab] || 0} completed +
+