Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

Commit ba51ab9

Browse files
Rewrite 404 UI
1 parent bf3be99 commit ba51ab9

File tree

1 file changed

+15
-26
lines changed
  • packages/section-blog-theme/components/Layouts

1 file changed

+15
-26
lines changed

packages/section-blog-theme/components/Layouts/404.tsx

Lines changed: 15 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,24 @@ import Link from "next/link";
44
export function Error404() {
55
return (
66
<>
7-
<NextSeo
8-
title="404 Error"
9-
description="Something went wrong, sorry, we couldn't find this page."
10-
noindex={true}
11-
/>
12-
<section className="nx-flex nx-items-center nx-h-full nx-p-16">
13-
<div className="nx-container nx-flex nx-flex-col nx-items-center nx-justify-center nx-px-5 nx-mx-auto nx-my-8">
14-
<div className="nx-max-w-md nx-text-center">
15-
<h2 className="nx-mb-8 nx-font-extrabold nx-text-9xl ">
16-
<span className="nx-sr-only">Error</span>404
17-
</h2>
7+
<NextSeo title="404 Error" description="Something went wrong, sorry, we couldn't find this page." noindex={true} />
8+
<section className="nx-flex nx-items-center nx-h-full nx-p-16 nx-container nx-text-center nx-flex-col nx-justify-center nx-px-5 nx-mx-auto nx-my-8">
9+
<h2 className="nx-mb-8 nx-font-extrabold nx-text-9xl ">
10+
<span className="nx-sr-only">Error</span>404
11+
</h2>
1812

19-
<p className="nx-text-2xl nx-font-semibold md:nx-text-3xl">
20-
Sorry, we couldn't find this page.
21-
</p>
13+
<p className="nx-text-1xl nx-font-semibold md:nx-text-3xl">
14+
Sorry, we couldn't find this page.
15+
</p>
2216

23-
<p className="nx-mt-4 nx-mb-8 ">
24-
But dont worry, you can find plenty of other things on our
25-
homepage.
26-
</p>
17+
<p className="nx-text-md md:nx-text-xl nx-mt-4 nx-mb-8 ">
18+
But dont worry, you can find plenty of other things on our
19+
homepage.
20+
</p>
2721

28-
<Link
29-
href="/"
30-
className="nx-px-8 nx-py-3 nx-font-semibold nx-rounded dark:nx-bg-violet-400 dark:nx-text-gray-900"
31-
>
32-
Back to homepage
33-
</Link>
34-
</div>
35-
</div>
22+
<Link href="/" className="nx-px-8 nx-py-3 nx-font-semibold nx-rounded nx-bg-secondary nx-text-secondary-foreground">
23+
Back to homepage
24+
</Link>
3625
</section>
3726
</>
3827
);

0 commit comments

Comments
 (0)