404 page
All checks were successful
Deploy / deploy (ubuntu-latest, 2.44.0) (push) Successful in 1m0s

This commit is contained in:
Braydon 2024-09-19 03:47:00 -04:00
parent 495cc49c84
commit 45abb31cfe
4 changed files with 45 additions and 1 deletions

BIN
public/media/mike.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

44
src/app/not-found.tsx Normal file

@ -0,0 +1,44 @@
import { ReactElement } from "react";
import Image from "next/image";
import { Button } from "@/components/ui/button";
import Link from "next/link";
import { ArrowLeftIcon } from "@heroicons/react/24/outline";
/**
* The not found page.
*
* @return the page jsx
*/
const NotFoundPage = (): ReactElement => (
<main className="min-h-screen flex justify-center items-center">
<div className="flex gap-10">
{/* Image */}
<Image
src="/media/mike.png"
alt="Mike Wazowski"
width={128}
height={128}
/>
{/* Message */}
<div className="flex flex-col justify-center">
<div className="flex flex-col gap-0.5">
<h1 className="text-3xl font-bold">Wrong Door!</h1>
<p className="max-w-72 text-lg opacity-75">
The page you were looking for could not be found.
</p>
</div>
<Link className="mt-3" href="/dashboard">
<Button
className="p-0 gap-2 hover:bg-transparent hover:opacity-75 transition-all transform-gpu"
variant="ghost"
>
<ArrowLeftIcon className="w-4 h-4" />
Return to App
</Button>
</Link>
</div>
</div>
</main>
);
export default NotFoundPage;

@ -34,7 +34,7 @@ const Sidebar = (): ReactElement => {
Pulse App
</h1>
</Link>
<Separator className="w-32 my-3.5" />
<Separator className="w-48 my-3.5" />
{/* Content */}
<OrganizationSelector />