mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 17:46:06 +00:00
feat: Implement robust error/not-found pages & UI components
- Introduce dedicated error pages for dashboard and video routes - Add specific not-found pages for dashboard, projects, videos, and settings - Implement global `not-found.tsx` for general unhandled routes - Integrate root and dashboard layouts with ErrorBoundary and Suspense - Add new UI components: Accordion, Hover Card, Menubar, Navigation Menu, Select, Tabs - Update Navbar to utilize the new Navigation Menu component - Enhance `button` component with a `link` variant for better styling - Refine existing UI components (dialog, dropdown, input, etc.) - Update Tailwind config with new colors and animation extensions
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import Link from "next/link";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { FolderX } from "lucide-react";
|
||||
|
||||
export default function ProjectNotFound() {
|
||||
return (
|
||||
<div className="flex min-h-[calc(100vh-4rem)] flex-col items-center justify-center gap-4 p-4">
|
||||
<div className="flex flex-col items-center gap-2 text-center">
|
||||
<FolderX className="h-12 w-12 text-muted-foreground" />
|
||||
<h1 className="text-2xl font-bold">Project Not Found</h1>
|
||||
<p className="text-muted-foreground max-w-md">
|
||||
The project you're looking for doesn't exist or you don't have access to it.
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex gap-2">
|
||||
<Button asChild variant="default">
|
||||
<Link href="/dashboard">View all projects</Link>
|
||||
</Button>
|
||||
<Button asChild variant="outline">
|
||||
<Link href="/projects/new">Create new project</Link>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user