| 1 | import { |
| 2 | Briefcase, |
| 3 | ChevronDown, |
| 4 | Folder, |
| 5 | LayoutDashboard, |
| 6 | Settings, |
| 7 | Users, |
| 8 | } from 'lucide-react' |
| 9 | import Image from 'next/image |
| 10 | import ProjectCard from '@/app/(organization)/[org]/projects/_components/project-card |
| 11 | import { SaturnLogo } |
| 12 | import type { projects |
| 13 | |
| 14 | function MockNav() { |
| 15 | const tabs = |
| 16 | { name: 'Overview', |
| 17 | { name: 'Projects', |
| 18 | { name: 'Teams', |
| 19 | { name: 'Clients', |
| 20 | { name: 'Settings', |
| 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 | type MockProject |
| 61 | |
| 62 | const now = new |
| 63 | const daysFromNow = ( |
| 64 | new Date(now |
| 65 | |
| 66 | const mockProjects: MockProject |
| 67 | { |
| 68 | id: 'id-1', |
| 69 | name: 'Website Redesign', |
| 70 | description: 'Complete overhaul of the company website with new branding.', |
| 71 | slug: 'web-rdsn', |
| 72 | organizationId: 'org_mock', |
| 73 | status: 'in-progress', |
| 74 | dueDate: daysFromNow(5) |
| 75 | createdAt: now, |
| 76 | updatedAt: now, |
| 77 | }, |
| 78 | { |
| 79 | id: 'another-id-2', |
| 80 | name: 'Mobile App MVP', |
| 81 | description: 'Cross-platform mobile application for the client portal.', |
| 82 | slug: 'mob-mvp', |
| 83 | organizationId: 'org_mock', |
| 84 | status: 'in-progress', |
| 85 | dueDate: daysFromNow(21) |
| 86 | createdAt: now, |
| 87 | updatedAt: now, |
| 88 | }, |
| 89 | { |
| 90 | id: 'mock-id-3', |
| 91 | name: 'Brand Identity', |
| 92 | description: 'Logo system, typography, and guidelines for launch.', |
| 93 | slug: 'brand-id', |
| 94 | organizationId: 'org_mock', |
| 95 | status: 'planning', |
| 96 | dueDate: daysFromNow(40) |
| 97 | createdAt: now, |
| 98 | updatedAt: now, |
| 99 | }, |
| 100 | ] |
| 101 | |
| 102 | export function MockAppUI() |
| 103 | return ( |
| 104 | <div className='hidden overflow-hidden rounded-2xl border border-border bg-card shadow-2xl shadow-primary/10 md:block |
| 105 | <MockNav /> |
| 106 | <div className='p-6 |
| 107 | <div className='mb-5 flex items-center justify-between |
| 108 | <span className='font-semibold text-base text-foreground |
| 109 | Projects |
| 110 | </span> |
| 111 | <span className='rounded-md bg-primary/15 px-2.5 py-1 font-medium text-primary text-xs |
| 112 | + New Project |
| 113 | </span> |
| 114 | </div> |
| 115 | <div |
| 116 | aria-hidden |
| 117 | className='pointer-events-none grid grid-cols-2 gap-3 lg:grid-cols-3 [&_a]:cursor-default' |
| 118 | inert |
| 119 | > |
| 120 | {mockProjects.map(( |
| 121 | <ProjectCard key={ |
| 122 | ))} |
| 123 | </div> |
| 124 | </div> |
| 125 | </div> |
| 126 | ) |
| 127 | } |