Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
89c24415
Commit
89c24415
authored
Sep 23, 2023
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update not found page
parent
0d803bf4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
27 deletions
+11
-27
not-found.less
web/src/less/not-found.less
+0
-18
NotFound.tsx
web/src/pages/NotFound.tsx
+11
-9
No files found.
web/src/less/not-found.less
deleted
100644 → 0
View file @
0d803bf4
.page-wrapper.not-found {
@apply w-full h-full overflow-y-auto overflow-x-hidden bg-zinc-100 dark:bg-zinc-800;
> .page-container {
@apply relative w-full min-h-full mx-auto flex flex-col justify-center items-center;
> .title-text {
@apply text-xl sm:text-4xl text-gray-700 dark:text-gray-200;
}
> .action-button-container {
> .link-btn {
@apply block text-gray-600 dark:text-gray-200 dark:border-gray-600 font-mono text-base py-1 border px-3 leading-8 rounded-xl hover:opacity-80 my-3;
}
}
}
}
\ No newline at end of file
web/src/pages/NotFound.tsx
View file @
89c24415
import
{
Button
}
from
"@mui/joy"
;
import
{
Link
}
from
"react-router-dom"
;
import
{
Link
}
from
"react-router-dom"
;
import
Icon
from
"@/components/Icon"
;
import
{
useTranslate
}
from
"@/utils/i18n"
;
import
{
useTranslate
}
from
"@/utils/i18n"
;
import
"@/less/not-found.less"
;
const
NotFound
=
()
=>
{
const
NotFound
=
()
=>
{
const
t
=
useTranslate
();
const
t
=
useTranslate
();
return
(
return
(
<
div
className=
"page-wrapper not-found"
>
<
div
className=
"w-full h-full overflow-y-auto overflow-x-hidden bg-zinc-100 dark:bg-zinc-800"
>
<
div
className=
"page-container"
>
<
div
className=
"w-full h-full flex flex-col justify-center items-center"
>
<
p
className=
"title-text"
>
{
t
(
"message.page-not-found"
)
}
</
p
>
<
Icon
.
Meh
strokeWidth=
{
1
}
className=
"w-20 h-auto opacity-80 dark:text-gray-300"
/>
<
div
className=
"action-button-container"
>
<
p
className=
"mt-4 text-5xl font-mono dark:text-gray-300"
>
404
</
p
>
<
Link
to=
"/"
className=
"link-btn"
>
<
Link
className=
"mt-4"
to=
"/"
>
<
span
>
🏠
</
span
>
{
t
(
"router.back-to-home"
)
}
<
Button
variant=
"outlined"
startDecorator=
{
<
Icon
.
Home
className=
"w-4 h-auto"
/>
}
>
</
Link
>
{
t
(
"router.back-to-home"
)
}
</
div
>
</
Button
>
</
Link
>
</
div
>
</
div
>
</
div
>
</
div
>
);
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment