2025-11-26 14:22:01 +07:00
|
|
|
import { FC, ReactElement, useState } from 'react';
|
2025-11-25 01:47:56 +07:00
|
|
|
import { Outlet } from 'react-router';
|
2025-11-26 14:22:01 +07:00
|
|
|
import { Sidebar } from '../../../components/sidebar';
|
2025-11-25 01:47:56 +07:00
|
|
|
|
2025-11-26 14:22:01 +07:00
|
|
|
const TeamDetailLayout: FC = (): ReactElement => {
|
|
|
|
|
const [sidebarOpen, setSidebarOpen] = useState(false);
|
2025-11-25 01:47:56 +07:00
|
|
|
|
|
|
|
|
return (
|
2025-11-27 15:12:45 +07:00
|
|
|
<div className="flex min-h-screen bg-gray-50 dark:bg-gray-950">
|
2025-11-26 14:22:01 +07:00
|
|
|
<Sidebar isOpen={sidebarOpen} onClose={() => setSidebarOpen(false)} />
|
|
|
|
|
|
2025-11-27 15:12:45 +07:00
|
|
|
<div className="flex-1 flex flex-col">
|
2025-11-26 14:22:01 +07:00
|
|
|
{/* Mobile Header with Hamburger */}
|
2025-11-27 15:12:45 +07:00
|
|
|
<div className="lg:hidden sticky top-0 z-30 bg-white dark:bg-gray-900 border-b dark:border-gray-700 px-4 py-3 flex items-center">
|
2025-11-26 14:22:01 +07:00
|
|
|
<button
|
|
|
|
|
onClick={() => setSidebarOpen(true)}
|
2025-11-27 15:12:45 +07:00
|
|
|
className="p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors"
|
2025-11-26 14:22:01 +07:00
|
|
|
>
|
2025-11-27 15:12:45 +07:00
|
|
|
<svg
|
|
|
|
|
className="w-6 h-6 text-gray-600 dark:text-gray-400"
|
|
|
|
|
fill="none"
|
|
|
|
|
stroke="currentColor"
|
|
|
|
|
viewBox="0 0 24 24"
|
|
|
|
|
>
|
|
|
|
|
<path
|
|
|
|
|
strokeLinecap="round"
|
|
|
|
|
strokeLinejoin="round"
|
|
|
|
|
strokeWidth={2}
|
|
|
|
|
d="M4 6h16M4 12h16M4 18h16"
|
|
|
|
|
/>
|
2025-11-26 14:22:01 +07:00
|
|
|
</svg>
|
|
|
|
|
</button>
|
2025-11-27 15:12:45 +07:00
|
|
|
<h1 className="ml-3 text-lg font-bold text-gray-900 dark:text-white">
|
|
|
|
|
Hackathon
|
|
|
|
|
</h1>
|
2025-11-26 14:22:01 +07:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<main className="flex-1 overflow-auto">
|
|
|
|
|
<Outlet />
|
|
|
|
|
</main>
|
|
|
|
|
</div>
|
2025-11-25 01:47:56 +07:00
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
2025-11-26 14:22:01 +07:00
|
|
|
export default TeamDetailLayout;
|