This repository has been archived by the owner on Sep 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
0ed88e0
commit 9736255
Showing
3 changed files
with
37 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import {JSX} from "react"; | ||
import {BiError} from "react-icons/bi"; | ||
|
||
export default function DefaultErrorPage(title: string, body: string): JSX.Element { | ||
return ( | ||
<div id="error-page" className={"container is-max-desktop mt-6"}> | ||
<article className="message"> | ||
<div className="message-header has-background-danger-dark"> | ||
<span className="icon-text"> | ||
<span className="icon"> | ||
<i><BiError/></i> | ||
</span> | ||
<span>{title}</span> | ||
</span> | ||
</div> | ||
<div className="message-body"> | ||
{body} | ||
<br/> | ||
<a href={"/"}>Go back to the homepage</a> | ||
</div> | ||
</article> | ||
</div> | ||
); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import {JSX} from "react"; | ||
import DefaultErrorPage from "../DefaultErrorPage.tsx"; | ||
|
||
export default function Unauthorized(): JSX.Element { | ||
return ( | ||
DefaultErrorPage( | ||
"Access to this page is restricted", | ||
"Please check with an admin if you believe this is a mistake." | ||
) | ||
) | ||
} |
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