| 1 | export function MockTimesheetCard() { |
| 2 | const days = |
| 3 | { day: 'Mon', |
| 4 | { day: 'Tue', |
| 5 | { day: 'Wed', |
| 6 | { day: 'Thu', |
| 7 | { day: 'Fri', |
| 8 | ] |
| 9 | const max = |
| 10 | return ( |
| 11 | <div className='flex h-full flex-col justify-center |
| 12 | <div className='font-mono text-[11px] text-muted-foreground uppercase tracking-wider |
| 13 | Apr 14 – 18 |
| 14 | </div> |
| 15 | <div className='mt-3 space-y-1.5 |
| 16 | {days.map(( |
| 17 | <div className='flex items-center gap-2 |
| 18 | <span className='w-8 font-mono text-[11px] text-muted-foreground/80 |
| 19 | {d.day} |
| 20 | </span> |
| 21 | <div className='relative h-1.5 flex-1 overflow-hidden rounded-full bg-muted/60 |
| 22 | <div |
| 23 | className='absolute inset-y-0 left-0 rounded-full bg-primary' |
| 24 | style={{ width: |
| 25 | /> |
| 26 | </div> |
| 27 | <span className='w-10 text-right font-mono text-[11px] text-foreground/80 tabular-nums |
| 28 | {d.hours.toFixed |
| 29 | </span> |
| 30 | </div> |
| 31 | ))} |
| 32 | </div> |
| 33 | <div className='mt-4 flex items-baseline justify-between border-border/60 border-t pt-3 |
| 34 | <span className='text-muted-foreground text-xs |
| 35 | <span className='font-medium font-mono text-foreground text-sm tabular-nums |
| 36 | 31.25h |
| 37 | </span> |
| 38 | </div> |
| 39 | </div> |
| 40 | ) |
| 41 | } |