Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
feat: offline page
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiejaoude committed Nov 11, 2023
1 parent 4a8a706 commit 2ce7aa5
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions pages/_offline.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import Image from "next/image";

import Button from "@components/Button";
import PageHead from "@components/PageHead";
import Page from "@components/Page";
import { PROJECT_NAME } from "@constants/index";

export default function Offline() {
return (
<>
<PageHead
title={`${PROJECT_NAME} page offline`}
description={`${PROJECT_NAME} page is not available offline`}
/>
<Page>
<div className="grid min-h-full place-items-center px-6 py-24 sm:py-32 lg:px-8">
<div className="text-center">
<p className="text-base font-semibold text-primary-high dark:text-primary-low">
404
</p>
<h1 className="mt-4 text-3xl font-bold tracking-tight text-primary-high dark:text-primary-low sm:text-5xl">
Page not available offline
</h1>
<p className="m-6 text-base leading-7 text-primary-high dark:text-primary-low">
This page is not available offline. Please check your internet
connection and try again.
</p>
<Image
className="mx-auto"
src="https://user-images.githubusercontent.com/624760/114314273-eaae0100-9af1-11eb-955a-4039657fe85a.png"
alt="EddieHub mascot scared pose"
width={300}
height={300}
/>
<div className="mt-10 flex items-center justify-center gap-x-6">
<Button href="/" primary={true} aria-label="Back to home">
Home
</Button>
<Button href="/docs" aria-label="Read the docs">
Docs
</Button>
</div>
</div>
</div>
</Page>
</>
);
}

0 comments on commit 2ce7aa5

Please sign in to comment.