| 1 | import { Clock } from 'lucide-react' |
| 2 | import Image from 'next/image |
| 3 | |
| 4 | const entries = [ |
| 5 | { |
| 6 | task: 'Hero section implementation', |
| 7 | req: 'Landing Page', |
| 8 | hours: '3.5h', |
| 9 | member: 'SK', |
| 10 | }, |
| 11 | { |
| 12 | task: 'API endpoint for auth', |
| 13 | req: 'Authentication', |
| 14 | hours: '2.0h', |
| 15 | member: 'JD', |
| 16 | }, |
| 17 | { |
| 18 | task: 'Invoice PDF template', |
| 19 | req: 'Billing', |
| 20 | hours: '4.0h', |
| 21 | member: 'SK', |
| 22 | }, |
| 23 | { |
| 24 | task: 'Database schema design', |
| 25 | req: 'Data Layer', |
| 26 | hours: '1.5h', |
| 27 | member: 'AR', |
| 28 | }, |
| 29 | ] |
| 30 | |
| 31 | export function MockTimesheetUI() |
| 32 | return ( |
| 33 | <div className='overflow-hidden rounded-2xl border border-border bg-card shadow-2xl shadow-primary/10 |
| 34 | <div className='flex items-center justify-between border-border/60 border-b bg-muted/30 px-5 py-3 |
| 35 | <div className='flex items-center gap-2 |
| 36 | <Clock className=' |
| 37 | <span className='font-semibold text-foreground text-sm |
| 38 | Timesheets |
| 39 | </span> |
| 40 | </div> |
| 41 | <span className='text-muted-foreground text-xs |
| 42 | </div> |
| 43 | <div className='divide-y divide-border/50 |
| 44 | {entries.map(( |
| 45 | <div className='flex items-center gap-3 px-5 py-3 |
| 46 | <Image |
| 47 | alt='' |
| 48 | className='size-6 rounded-full' |
| 49 | height={24} |
| 50 | src={ |
| 51 | e.member === |
| 52 | ? 'https://github.com/phantomknight287.png' |
| 53 | : 'https://github.com/loremus299.png' |
| 54 | } |
| 55 | width={24} |
| 56 | /> |
| 57 | <div className='flex-1 |
| 58 | <div className='text-foreground/80 text-sm |
| 59 | <div className='text-[11px] text-muted-foreground/70 |
| 60 | {e.req} |
| 61 | </div> |
| 62 | </div> |
| 63 | <span className='font-mono text-muted-foreground text-sm |
| 64 | {e.hours} |
| 65 | </span> |
| 66 | </div> |
| 67 | ))} |
| 68 | </div> |
| 69 | <div className='flex items-center justify-between border-border/60 border-t bg-muted/20 px-5 py-3 |
| 70 | <span className='text-muted-foreground text-xs |
| 71 | <span className='font-mono font-semibold text-primary text-sm |
| 72 | 11.0h |
| 73 | </span> |
| 74 | </div> |
| 75 | </div> |
| 76 | ) |
| 77 | } |