feat: bootstrap TitipIn application with fullstack architecture, Prisma ORM, and shadcn/ui components

This commit is contained in:
Firman Ramdhani
2026-08-28 11:18:13 +07:00
parent 84f0c1fa99
commit 5faea68379
37 changed files with 11881 additions and 250 deletions
+24
View File
@@ -0,0 +1,24 @@
'use client'
import { useState } from 'react'
import { Sidebar } from './Sidebar'
import { Header } from './Header'
export function AppLayout({ children }: { children: React.ReactNode }) {
const [sidebarOpen, setSidebarOpen] = useState(false)
return (
<div className="flex min-h-screen bg-[#F4F6FB] dark:bg-[#0B0F19] text-slate-900 dark:text-slate-100 font-sans">
{/* Sidebar */}
<Sidebar isOpen={sidebarOpen} onClose={() => setSidebarOpen(false)} />
{/* Main Content Area */}
<div className="flex-1 flex flex-col min-w-0">
<Header onMenuClick={() => setSidebarOpen(true)} />
<main className="flex-1 p-4 sm:p-6 lg:p-8 max-w-7xl w-full mx-auto">
{children}
</main>
</div>
</div>
)
}