This repository has been archived by the owner on Oct 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,30 @@ | ||
import { Button } from "@/components/ui/button"; | ||
import { Card, CardContent, CardTitle } from "@/components/ui/card"; | ||
import { ShieldX } from "lucide-react"; | ||
|
||
export default function PageNotFound() { | ||
return ( | ||
<div className="flex flex-col items-center"> | ||
<div className="w-96 text-3xl font-extrabold text-muted-foreground"> | ||
Service Worker Error. Click below to refresh the page. If this page | ||
reappears, your browser does not support Service Workers. | ||
</div> | ||
<Button | ||
type="button" | ||
onClick={() => window.location.reload()} | ||
className="text-muted-background" | ||
> | ||
Refresh | ||
</Button> | ||
</div> | ||
); | ||
return ( | ||
<div className="flex flex-col items-center justify-center h-screen"> | ||
<div className="flex-grow" /> | ||
<Card className="mx-auto flex flex-col items-center justify-center w-96 h-96"> | ||
<CardTitle className="mx-auto mb-2 flex flex-col items-center justify-center"> | ||
<ShieldX className="h-14 w-14" /> | ||
<h2 className="text-3xl font-semibold mt-2">Service Worker Error</h2> | ||
</CardTitle> | ||
<CardContent className="mt-8 text-base text-center"> | ||
Click below to refresh the page. If this page reappears, your browser does not support Service Workers. | ||
</CardContent> | ||
<CardContent className="mt-4"> | ||
<Button | ||
type="button" | ||
onClick={() => window.location.reload()} | ||
className="text-muted-background text-black" | ||
> | ||
Refresh | ||
</Button> | ||
</CardContent> | ||
</Card> | ||
<div className="flex-grow" /> | ||
</div> | ||
); | ||
} |