| 1 | import { |
| 2 | Briefcase, |
| 3 | ChevronDown, |
| 4 | Clock, |
| 5 | FileSpreadsheet, |
| 6 | Folder, |
| 7 | LayoutDashboard, |
| 8 | Users, |
| 9 | } from 'lucide-react' |
| 10 | import Image from 'next/image |
| 11 | import ProjectBanner from '@/app/(organization)/[org]/projects/_components/project-banner |
| 12 | import { SaturnLogo } |
| 13 | |
| 14 | function MockNav() { |
| 15 | const tabs = |
| 16 | { name: 'Overview', |
| 17 | { name: 'Projects', |
| 18 | { name: 'Teams', |
| 19 | { name: 'Clients', |
| 20 | { name: 'Invoices', |
| 21 | ] |
| 22 | |
| 23 | return ( |
| 24 | <div className='flex flex-col |
| 25 | <div className='flex items-center gap-2 border-border/60 border-b bg-muted/30 px-4 py-2.5 |
| 26 | <SaturnLogo className=' |
| 27 | <span className='flex items-center gap-1.5 rounded-md px-2 py-1 text-foreground/80 text-sm hover:bg-muted/50 |
| 28 | Acme Agency |
| 29 | <ChevronDown className=' |
| 30 | </span> |
| 31 | <div className='ml-auto flex items-center gap-2 |
| 32 | <Image |
| 33 | alt='' |
| 34 | className='size-7 rounded-full' |
| 35 | height={28} |
| 36 | src='https://github.com/phantomknight287.png' |
| 37 | width={28} |
| 38 | /> |
| 39 | </div> |
| 40 | </div> |
| 41 | <nav className='flex items-center gap-1 border-border/60 border-b bg-muted/30 px-4 |
| 42 | {tabs.map(( |
| 43 | <span |
| 44 | className={`flex items-center gap-1.5 border-b-2 px-3 py-2 font-medium text-xs transition-colors ${ |
| 45 | tab.active |
| 46 | ? 'border-primary text-primary' |
| 47 | : 'border-transparent text-muted-foreground' |
| 48 | }`} |
| 49 | key={tab.name |
| 50 | > |
| 51 | <tab.icon className=' |
| 52 | {tab.name} |
| 53 | </span> |
| 54 | ))} |
| 55 | </nav> |
| 56 | </div> |
| 57 | ) |
| 58 | } |
| 59 | |
| 60 | function MockProjectCard({ |
| 61 | name, |
| 62 | slug, |
| 63 | desc, |
| 64 | due, |
| 65 | }: { |
| 66 | name: string |
| 67 | slug: string |
| 68 | desc: string |
| 69 | due?: string |
| 70 | }) { |
| 71 | return ( |
| 72 | <div className='overflow-hidden rounded-xl border border-border bg-muted/30 transition-colors |
| 73 | <ProjectBanner className=' |
| 74 | <div className='p-3.5 |
| 75 | <div className='flex items-center justify-between gap-2 |
| 76 | <span className='truncate font-semibold text-foreground text-sm |
| 77 | {name} |
| 78 | </span> |
| 79 | <span className='shrink-0 font-mono text-[10px] text-muted-foreground/60 |
| 80 | {slug} |
| 81 | </span> |
| 82 | </div> |
| 83 | <p className='mt-1 line-clamp-2 text-muted-foreground text-xs |
| 84 | {desc} |
| 85 | </p> |
| 86 | {due && ( |
| 87 | <div className='mt-2.5 inline-flex items-center gap-1 rounded-md bg-muted/60 px-1.5 py-0.5 text-[10px] text-muted-foreground |
| 88 | <Clock className=' |
| 89 | Due {due} |
| 90 | </div> |
| 91 | )} |
| 92 | </div> |
| 93 | </div> |
| 94 | ) |
| 95 | } |
| 96 | |
| 97 | export function MockAppUI() |
| 98 | return ( |
| 99 | <div className='hidden overflow-hidden rounded-2xl border border-border bg-card shadow-2xl shadow-primary/10 md:block |
| 100 | <MockNav /> |
| 101 | <div className='p-6 |
| 102 | <div className='mb-5 flex items-center justify-between |
| 103 | <span className='font-semibold text-base text-foreground |
| 104 | Projects |
| 105 | </span> |
| 106 | <span className='rounded-md bg-primary/15 px-2.5 py-1 font-medium text-primary text-xs |
| 107 | + New Project |
| 108 | </span> |
| 109 | </div> |
| 110 | <div className='grid grid-cols-2 gap-3 |
| 111 | <MockProjectCard |
| 112 | desc='Complete overhaul of the company website with new branding' |
| 113 | due='Apr 18' |
| 114 | name='Website Redesign' |
| 115 | slug='web-rdsn' |
| 116 | /> |
| 117 | <MockProjectCard |
| 118 | desc='Cross-platform mobile application for client portal' |
| 119 | due='May 2' |
| 120 | name='Mobile App MVP' |
| 121 | slug='mob-mvp' |
| 122 | /> |
| 123 | </div> |
| 124 | </div> |
| 125 | </div> |
| 126 | ) |
| 127 | } |