🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Enhance 404 Not Found Page for improved user experience
Bill Yang405788f75b57
diff --git a/client/src/app/not-found.tsx b/client/src/app/not-found.tsxnew file mode 100644index 000000000..7cd5453c2--- /dev/null+++ b/client/src/app/not-found.tsx@@ -0,0 +1,82 @@+"use client";++import Link from "next/link";+import { Home, ArrowLeft, BarChart3 } from "lucide-react";+import { StandardPage } from "../components/StandardPage";+import { useSetPageTitle } from "../hooks/useSetPageTitle";+import { Footer } from "./components/Footer";+import { Button } from "../components/ui/button";++export default function NotFound() {+ useSetPageTitle("Rybbit · Page Not Found");++ return (+ <StandardPage>+ <div className="flex flex-col items-center justify-center min-h-[60vh] text-center space-y-8">+ {/* 404 Icon and Number */}+ <div className="space-y-4">+ <div className="flex items-center justify-center">+ <BarChart3 className="h-24 w-24 text-neutral-400" />+ </div>+ <h1 className="text-6xl font-bold text-neutral-900 dark:text-neutral-100">+ 404+ </h1>+ </div>++ {/* Error Message */}+ <div className="space-y-2 max-w-md">+ <h2 className="text-2xl font-semibold text-neutral-800 dark:text-neutral-200">+ Page Not Found+ </h2>+ <p className="text-neutral-600 dark:text-neutral-400 leading-relaxed">+ The page you're looking for doesn't exist or has been moved. Let's+ get you back to analyzing your data.+ </p>+ </div>++ {/* Action Buttons */}+ <div className="flex flex-col sm:flex-row gap-4 pt-4">+ <Button asChild variant="default" size="lg">+ <Link href="/" className="flex items-center gap-2">+ <Home className="h-4 w-4" />+ Go to Dashboard+ </Link>+ </Button>++ <Button asChild variant="outline" size="lg">+ <Link+ href="javascript:history.back()"+ className="flex items-center gap-2"+ >+ <ArrowLeft className="h-4 w-4" />+ Go Back+ </Link>+ </Button>+ </div>++ {/* Help Links */}+ <div className="pt-8 space-y-2">+ <p className="text-sm text-neutral-500 dark:text-neutral-400">+ Need help? Check out our resources:+ </p>+ <div className="flex flex-wrap justify-center gap-4 text-sm">+ <Link+ href="https://rybbit.io/docs"+ className="text-neutral-600 hover:text-neutral-900 dark:text-neutral-400 dark:hover:text-neutral-100 underline-offset-4 hover:underline"+ >+ Documentation+ </Link>+ <Link+ href="https://github.com/rybbit-io/rybbit"+ className="text-neutral-600 hover:text-neutral-900 dark:text-neutral-400 dark:hover:text-neutral-100 underline-offset-4 hover:underline"+ >+ GitHub+ </Link>+ </div>+ </div>+ </div>++ <Footer />+ </StandardPage>+ );+}diff --git a/memory-bank/progress.md b/memory-bank/progress.mdindex cd6b6df9e..81c1e70eb 100644--- a/memory-bank/progress.md+++ b/memory-bank/progress.md@@ -175,3 +175,24 @@ This file tracks the project's progress using a task list format.- Improved visual hierarchy and spacing- Better responsive design with scrolling support- **Impact**: Enhanced user experience for site management with richer information display and streamlined site creation workflow++[2025-06-10 23:34:29] - **COMPLETED: Enhanced 404 Not Found Page**++- **Task**: Create a basic 404 page for [`client/src/app/not-found.tsx`](client/src/app/not-found.tsx:1)+- **Status**: ✅ COMPLETED+- **Work Done**:+ - Replaced basic "404" text with comprehensive, user-friendly 404 page+ - Added analytics-themed icon using [`BarChart3`](https://lucide.dev/icons/bar-chart3) from Lucide React+ - Implemented responsive design with proper spacing and typography+ - Added actionable navigation buttons using [`Button`](client/src/components/ui/button.tsx:1) component+ - Included "Go to Dashboard" and "Go Back" options for user convenience+ - Added help links to documentation and GitHub repository+ - Maintained consistency with project's design system (Tailwind CSS, Shadcn UI)+ - Updated page title to "Rybbit · Page Not Found" for better SEO+- **Design Features**:+ - Centered layout with proper vertical spacing+ - Dark mode support using Tailwind's dark: variants+ - Responsive button layout (stacked on mobile, side-by-side on desktop)+ - Professional error messaging with helpful context+ - Brand-consistent styling matching the analytics platform theme+- **Impact**: Users encountering 404 errors now have a professional, helpful experience with clear navigation options and access to support resources