-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ add 404 page, and add network-only for statistics profile (#126)
* ✨ add 404 page, and add network-only for statistics profile * ⚡ add page not found url * 🔨 add some conditions to view loading or page not found page
- Loading branch information
1 parent
ecd36bb
commit 1b92841
Showing
6 changed files
with
125 additions
and
65 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
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
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,27 @@ | ||
import { i18nContext } from "../utils/i18nContext"; | ||
import React, { useContext } from "react"; | ||
|
||
export default function Custom404() { | ||
const { t } = useContext(i18nContext); | ||
return ( | ||
<div className="container mx-auto px-4"> | ||
<section className="py-8 px-4 text-center"> | ||
<div className="max-w-auto mx-auto"> | ||
<div className="md:max-w-lg mx-auto"></div> | ||
<h2 className="mt-8 uppercase text-xl lg:text-5xl font-black"> | ||
{t("error.title404")} | ||
</h2> | ||
<p className="mt-6 uppercase text-sm lg:text-base text-gray-900"> | ||
{t("error.text404")} | ||
</p> | ||
<a | ||
href="/" | ||
className="mt-6 bg-blue-500 hover:bg-blue-700 text-white font-light py-4 px-6 rounded-full inline-block uppercase shadow-md" | ||
> | ||
{t("error.button404")} | ||
</a> | ||
</div> | ||
</section> | ||
</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
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
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