Skip to content

Commit

Permalink
add error and not found
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanniser committed Oct 18, 2024
1 parent ccd0bc1 commit 340e25f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/app/error.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"use client";

export default function Page() {
return <div>Error</div>;
}
3 changes: 3 additions & 0 deletions src/app/not-found.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function Page() {
return <div>404 - Not Found</div>;
}
4 changes: 2 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { artSupplies } from "./data";

export default function Home() {
return (
<main className="flex-1 p-4">
<div className="flex-1 p-4">
{artSupplies.map((collection) => (
<div key={collection.collectionName} className="mb-8">
<h2 className="mb-4 text-xl font-semibold">
Expand All @@ -29,6 +29,6 @@ export default function Home() {
</div>
</div>
))}
</main>
</div>
);
}

0 comments on commit 340e25f

Please sign in to comment.