Full Toolkit for Next-Level Domain Analysis
Add search form to 404 pages 🕵️♂️
Felix Wotschofskyba53f8ed4135
diff --git a/app/lookup/not-found.tsx b/app/lookup/not-found.tsxindex 1199ceb..f8631de 100644--- a/app/lookup/not-found.tsx+++ b/app/lookup/not-found.tsx@@ -1,11 +1,14 @@-import { type FC } from 'react';+import type { FC } from 'react';++import { SearchForm } from '../_components/search-form';const LookupNotFound: FC = () => (- <div className="mt-12 flex flex-col items-center gap-2">- <h2>404 - Not Found</h2>- <p className="mt-2 text-center text-sm text-muted-foreground">- Not a valid domain- </p>+ <div className="container mt-12 flex flex-col items-center gap-2">+ <h2 className="text-xl font-bold">Not a valid domain</h2>++ <div className="mt-16 w-full max-w-2xl">+ <SearchForm autofocus />+ </div></div>);diff --git a/app/not-found.tsx b/app/not-found.tsxindex 5a9966b..ca757f7 100644--- a/app/not-found.tsx+++ b/app/not-found.tsx@@ -1,11 +1,14 @@-import { type FC } from 'react';+import type { FC } from 'react';++import { SearchForm } from './_components/search-form';const GlobalNotFound: FC = () => (- <div className="mt-12 flex flex-col items-center gap-2">- <h2>404 - Not Found</h2>- <p className="mt-2 text-center text-sm text-muted-foreground">- This page doesn't exist- </p>+ <div className="container mt-12 flex flex-col items-center gap-2">+ <h2 className="text-xl font-bold">Page not found</h2>++ <div className="mt-16 w-full max-w-2xl">+ <SearchForm autofocus />+ </div></div>);