mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat: clean not-found
This commit is contained in:
@@ -1,27 +1,5 @@
|
|||||||
import Link from 'next/link'
|
import { SlimLayout } from '@/components/SlimLayout'
|
||||||
|
|
||||||
import { SlimLayout } from '../../components/SlimLayout'
|
|
||||||
// import { Button } from "../components/Button";
|
|
||||||
import { Logo } from '../../components/shared/Logo'
|
|
||||||
|
|
||||||
export default function NotFound() {
|
export default function NotFound() {
|
||||||
return (
|
return <SlimLayout />
|
||||||
<SlimLayout>
|
|
||||||
<div className="flex">
|
|
||||||
<Link href="/" aria-label="Home">
|
|
||||||
<Logo className="h-10 w-auto" />
|
|
||||||
</Link>
|
|
||||||
</div>
|
|
||||||
<p className="mt-20 text-sm font-medium text-gray-700">404</p>
|
|
||||||
<h1 className="mt-3 text-lg font-semibold text-gray-900">
|
|
||||||
Page not found
|
|
||||||
</h1>
|
|
||||||
<p className="mt-3 text-sm text-gray-700">
|
|
||||||
Sorry, we couldn’t find the page you’re looking for.
|
|
||||||
</p>
|
|
||||||
{/* <Button href="/" className="mt-10">
|
|
||||||
Go back home
|
|
||||||
</Button> */}
|
|
||||||
</SlimLayout>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,41 +1,6 @@
|
|||||||
'use client'
|
'use client'
|
||||||
|
|
||||||
import { Logo } from '@/components/shared/Logo'
|
|
||||||
import { SlimLayout } from '@/components/SlimLayout'
|
|
||||||
import Error from 'next/error'
|
import Error from 'next/error'
|
||||||
import Link from 'next/link'
|
|
||||||
|
|
||||||
// Render the default Next.js 404 page when a route
|
|
||||||
// is requested that doesn't match the middleware and
|
|
||||||
// therefore doesn't have a locale associated with it.
|
|
||||||
|
|
||||||
// export default function NotFound() {
|
|
||||||
// return (
|
|
||||||
// <html lang="en">
|
|
||||||
// <body>
|
|
||||||
// <SlimLayout>
|
|
||||||
// <div className="flex">
|
|
||||||
// <Link href="/" aria-label="Home">
|
|
||||||
// <Logo className="h-10 w-auto" />
|
|
||||||
// </Link>
|
|
||||||
// </div>
|
|
||||||
// <p className="mt-20 text-sm font-medium text-gray-700">
|
|
||||||
// 404
|
|
||||||
// </p>
|
|
||||||
// <h1 className="mt-3 text-lg font-semibold text-gray-900">
|
|
||||||
// Page not found
|
|
||||||
// </h1>
|
|
||||||
// <p className="mt-3 text-sm text-gray-700">
|
|
||||||
// Sorry, we couldn’t find the page you’re looking for.
|
|
||||||
// </p>
|
|
||||||
// {/* <Button href="/" className="mt-10">
|
|
||||||
// Go back home
|
|
||||||
// </Button> */}
|
|
||||||
// </SlimLayout>
|
|
||||||
// </body>
|
|
||||||
// </html>
|
|
||||||
// )
|
|
||||||
// }
|
|
||||||
|
|
||||||
export default function NotFound() {
|
export default function NotFound() {
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user