forked from coredumped7893/excali-front-wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(exd-23): implemented no access page (#16)
- Loading branch information
Showing
4 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,29 @@ | ||
import { Link } from 'react-router-dom'; | ||
import { Button } from '@/components/ui/button'; | ||
import ExcaliErrorImage from '@/assets/images/excali_error.png'; | ||
import { useTranslation } from 'react-i18next'; | ||
|
||
export const NoAccessPage = () => { | ||
const { t } = useTranslation(); | ||
return ( | ||
<div className="flex h-screen items-center justify-center"> | ||
<div className="flex flex-col items-center gap-4"> | ||
<img | ||
className="w-[40%]" | ||
src={ExcaliErrorImage} | ||
alt="excali-error-image" | ||
/> | ||
<h1 className="text-2xl font-bold tracking-tight text-gray-900 dark:text-white sm:text-4xl"> | ||
{t('components.noAccessPage.title')} | ||
</h1> | ||
<div className="text-gray-500 dark:text-gray-200"> | ||
{t('components.noAccessPage.description')} | ||
</div> | ||
|
||
<Link to={'/'}> | ||
<Button>{t('components.noAccessPage.backButton')}</Button> | ||
</Link> | ||
</div> | ||
</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