Files
databasus/app/not-found.tsx
2025-12-25 23:13:04 +03:00

131 lines
5.5 KiB
TypeScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import type { Metadata } from "next";
import Link from "next/link";
import Image from "next/image";
export const metadata: Metadata = {
title: "404 - Page Not Found | Databasus",
description: "The page you're looking for doesn't exist.",
robots: "noindex, nofollow",
};
export default function NotFound() {
return (
<div className="flex min-h-screen flex-col bg-[#0F1115]">
{/* Navbar */}
<nav className="flex h-[60px] w-full justify-center border-b border-[#ffffff20] bg-[#0F1115] sm:h-[70px] md:h-[80px]">
<div className="flex min-w-0 grow items-center px-4 sm:px-6 md:px-10">
<Link href="/" className="flex items-center">
<Image
src="/logo.svg"
alt="Databasus logo"
width={30}
height={30}
className="shrink-0 sm:h-[40px] sm:w-[40px] md:h-[50px] md:w-[50px]"
priority
/>
<div className="ml-2 select-none text-lg font-bold text-white sm:ml-3 sm:text-xl md:ml-4 md:text-2xl">
Databasus
</div>
</Link>
<div className="ml-auto mr-4 hidden gap-3 sm:mr-6 md:mr-10 lg:flex lg:gap-5">
<a
className="text-gray-300 hover:text-white transition-colors"
href="/installation"
>
Docs
</a>
<a
className="text-gray-300 hover:text-white transition-colors"
href="https://t.me/databasus_community"
target="_blank"
rel="noopener noreferrer"
>
Community
</a>
</div>
<a
className="ml-auto lg:ml-0"
href="https://github.com/databasus/databasus"
target="_blank"
rel="noopener noreferrer"
>
<div className="flex items-center rounded-lg border border-[#ffffff20] bg-[#0C0E13] px-2 py-1 hover:opacity-70 transition-opacity md:px-4 md:py-2">
<svg
aria-hidden={true}
width="20"
height="20"
viewBox="0 0 20 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
className="mr-1 h-4 w-4 sm:mr-2 md:mr-3"
>
<g clipPath="url(#clip0_404)">
<path
fillRule="evenodd"
clipRule="evenodd"
d="M9.9702 0C4.45694 0 0 4.4898 0 10.0443C0 14.4843 2.85571 18.2427 6.81735 19.5729C7.31265 19.6729 7.49408 19.3567 7.49408 19.0908C7.49408 18.858 7.47775 18.0598 7.47775 17.2282C4.70429 17.8269 4.12673 16.0308 4.12673 16.0308C3.68102 14.8667 3.02061 14.5676 3.02061 14.5676C2.11286 13.9522 3.08673 13.9522 3.08673 13.9522C4.09367 14.0188 4.62204 14.9833 4.62204 14.9833C5.51327 16.5131 6.94939 16.0808 7.52714 15.8147C7.60959 15.1661 7.87388 14.7171 8.15449 14.4678C5.94245 14.2349 3.6151 13.3702 3.6151 9.51204C3.6151 8.41449 4.01102 7.51653 4.63837 6.81816C4.53939 6.56878 4.19265 5.53755 4.73755 4.15735C4.73755 4.15735 5.57939 3.89122 7.47755 5.18837C8.29022 4.9685 9.12832 4.85666 9.9702 4.85571C10.812 4.85571 11.6702 4.97225 12.4627 5.18837C14.361 3.89122 15.2029 4.15735 15.2029 4.15735C15.7478 5.53755 15.4008 6.56878 15.3018 6.81816C15.9457 7.51653 16.3253 8.41449 16.3253 9.51204C16.3253 13.3702 13.998 14.2182 11.7694 14.4678C12.1327 14.7837 12.4461 15.3822 12.4461 16.3302C12.4461 17.6771 12.4298 18.7582 12.4298 19.0906C12.4298 19.3567 12.6114 19.6729 13.1065 19.5731C17.0682 18.2424 19.9239 14.4843 19.9239 10.0443C19.9402 4.4898 15.4669 0 9.9702 0Z"
fill="white"
/>
</g>
<defs>
<clipPath id="clip0_404">
<rect width="20" height="20" fill="white" />
</clipPath>
</defs>
</svg>
<span className="text-sm text-white sm:text-base">
Star on GitHub
<span className="hidden sm:inline">
, it&apos;s really important
</span>
</span>
</div>
</a>
</div>
</nav>
{/* 404 Content */}
<div className="flex grow flex-col items-center justify-center px-6 py-12 text-center">
<div className="mb-4">
<h1 className="text-7xl font-bold text-blue-500 md:text-8xl">404</h1>
</div>
<h2 className="mb-3 text-2xl font-bold text-white md:text-3xl">
Page Not Found
</h2>
<p className="mb-6 max-w-md text-base text-gray-400">
The page you&apos;re looking for doesn&apos;t exist or has been moved.
</p>
<div className="flex flex-col gap-3 sm:flex-row">
<Link
href="/"
className="rounded-lg bg-white px-5 py-2.5 text-sm font-semibold text-black transition-opacity hover:opacity-70 md:px-6 md:py-3 md:text-base"
>
Go to Homepage
</Link>
<Link
href="/installation"
className="rounded-lg border border-[#ffffff20] bg-[#0C0E13] px-5 py-2.5 text-sm font-semibold text-white transition-opacity hover:opacity-70 md:px-6 md:py-3 md:text-base"
>
View Documentation
</Link>
</div>
</div>
{/* Footer */}
<footer className="border-t border-[#ffffff20] py-8 text-center text-sm text-gray-400">
<p>
© {new Date().getFullYear()} Databasus. Open source PostgreSQL backup
tool.
</p>
</footer>
</div>
);
}