Skip to content

Commit

Permalink
create error pages
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmolony committed Nov 30, 2023
1 parent 1840f6b commit fc6dba8
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ const content = {
homepage: {
items: [
{text: '1.Shop', link: '/collections/frontpage'},
{text: '2.camera setup', link: '/collections'},
{text: '3.display setup', link: '/collections'},
{text: '4.other functions', link: '/collections'},
{text: '2.camera setup', link: '/error'},
{text: '3.display setup', link: '/error'},
{text: '4.other functions', link: '/error'},
],
},
shop: {
items: [
{text: '1.All items', link: '/collections'},
{text: '2.Tees', link: '/collections/tops'},
{text: '3.Keyrings', link: '/collections/keyrings'},
{text: '4.Posters', link: '/collections/posters'},
{text: '2.Tees', link: '/collections/error'},
{text: '3.Keyrings', link: '/collections/error'},
{text: '4.Posters', link: '/collections/error'},
],
},
};
Expand Down
30 changes: 30 additions & 0 deletions app/routes/error.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import type {LoaderFunctionArgs} from '@shopify/remix-oxygen';

export async function loader({request}: LoaderFunctionArgs) {
// throw new Response(`${new URL(request.url).pathname} not found`, {
// status: 507,
// });
return null;
}

export default function ErrorPage() {
return (
<div
className="flex flex-col justify-center w-full h-full"
style={{fontSize: '1rem'}}
>
<>/Error 777/</>
<br />
<>Physical storage could not be read.</>
<br />
<span className="mt-2 text-sm">
Unmounting /dev/storage/vhs0: FAILURE
</span>
<span className="mb-2 text-sm">
{'>'} trace: {'{'}read_err, vhs_track, recalibrate{'}'}
</span>
<>[!] Please eject the cassette and power cycle the device</>
{/* <p>[!] CONTACT: Support at 1-777-PUAS for further assistance.</p> */}
</div>
);
}

0 comments on commit fc6dba8

Please sign in to comment.