skill_web/pages/
not_found.rs

1//! 404 Not Found page
2
3use yew::prelude::*;
4use yew_router::prelude::*;
5
6use crate::router::Route;
7
8/// Not Found page component
9#[function_component(NotFoundPage)]
10pub fn not_found_page() -> Html {
11    html! {
12        <div class="min-h-[60vh] flex flex-col items-center justify-center text-center animate-fade-in">
13            <div class="text-8xl mb-6 opacity-50">{ "🔍" }</div>
14            <h1 class="text-4xl font-bold text-gray-900 dark:text-white mb-4">
15                { "Page Not Found" }
16            </h1>
17            <p class="text-lg text-gray-500 dark:text-gray-400 mb-8 max-w-md">
18                { "The page you're looking for doesn't exist or has been moved." }
19            </p>
20            <Link<Route> to={Route::Dashboard} classes="btn btn-primary">
21                { "Go to Dashboard" }
22            </Link<Route>>
23        </div>
24    }
25}