Skip to content

Commit

Permalink
error page
Browse files Browse the repository at this point in the history
  • Loading branch information
mluena committed Feb 26, 2024
1 parent 056fe2c commit 3fff54e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
10 changes: 10 additions & 0 deletions client/src/app/error.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
'use client';

export default function Error({ error }: { error: Error }) {
return (
<div>
<h2>Something went wrong!</h2>
<pre>{error.message}</pre>
</div>
);
}
15 changes: 12 additions & 3 deletions client/src/app/not-found.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
import Link from 'next/link';

import { Button } from '@/components/ui/button';

export default function NotFound() {
return (
<div className="flex h-screen w-screen flex-col items-center justify-center">
<h2>Not Found</h2>
<p>Could not find requested resource</p>
<Link href="/projects">Return Home</Link>
<h2 className="mb-24 text-[200px] font-extrabold leading-10 text-green-400">404</h2>
<h3 className="mb-4 text-[52px]">Page not found</h3>
<p className="mb-6 text-base font-light">
It looks like the links is broken or the page has been removed.
</p>
<Link href="/projects">
<Button variant="primary" size="base">
Go to home page
</Button>
</Link>
</div>
);
}
2 changes: 2 additions & 0 deletions client/src/containers/datasets/layers/projects/layer.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import { Layer, Source } from 'react-map-gl';

import { GeoJSONSourceRaw, GeoJSONSourceOptions, CircleLayer } from 'mapbox-gl';
Expand Down

0 comments on commit 3fff54e

Please sign in to comment.