Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create 404 Page #22

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
import { chain, configureChains, createClient, WagmiConfig } from 'wagmi';
import { publicProvider } from 'wagmi/providers/public';
import { WIP } from './WIP';
import { PageNotFound } from './PageNotFound';

const { chains, provider } = configureChains(
[chain.mainnet],
Expand Down Expand Up @@ -65,6 +66,8 @@ export const App = () => {
) : (
<Route path="/" element={<WIP />} />
)}

<Route path="*" element={<PageNotFound />} />
</Routes>
</BrowserRouter>
</RainbowKitProvider>
Expand Down
32 changes: 32 additions & 0 deletions frontend/src/PageNotFound.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { Link } from 'react-router-dom';
import { DeleteButton } from './components/DeleteButton';
import { PoweredBy } from './components/PoweredBy';
import { TwitterButton } from './components/TwitterButton';

export const PageNotFound = () => {
return (
<div className="w-full flex flex-col items-center h-screen text-center">
<div className="col-span-12 text-4xl sm:text-6xl mt-auto text-primary">
<span className="text-8xl">404</span>
<br />
Page Not Found
</div>

<div className="text-white text-lg col-span-12 mt-2">
The page you are looking for does not exist.
</div>

<Link to='/' className="text-primary brightness-75 text-lg mt-2 hover:font-bold">Go Home</Link>

<div className="col-span-12 lg:col-span-4 p-4 mt-auto flex flex-col items-center grow-0">
<h1 className="text-4xl font-bold text-primary">
GRANTR
<span className="text-lg brightness-75">.app</span>
</h1>
<div className="text-lg text-primary brightness-75">
Its a Grant thing
</div>
</div>
</div>
);
};