Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
proxy-manager-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
aolda
proxy-manager-frontend
Commits
4f88ce51
Commit
4f88ce51
authored
4 months ago
by
한동현
Browse files
Options
Downloads
Patches
Plain Diff
feat: 404 페이지 추가
parent
72029cae
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/pages/NotFound.tsx
+30
-0
30 additions, 0 deletions
src/pages/NotFound.tsx
src/routes.tsx
+2
-0
2 additions, 0 deletions
src/routes.tsx
with
32 additions
and
0 deletions
src/pages/NotFound.tsx
0 → 100644
+
30
−
0
View file @
4f88ce51
import
{
Link
}
from
'
react-router
'
;
import
{
House
}
from
'
lucide-react
'
;
import
{
Card
,
CardHeader
,
CardTitle
,
CardDescription
,
CardContent
}
from
'
@/components/ui/card
'
;
import
{
Button
}
from
'
@/components/ui/button
'
;
export
default
function
NotFound
()
{
return
(
<
div
className
=
"flex w-full justify-center p-6 md:p-10"
>
<
Card
className
=
"w-full max-w-md text-center"
>
<
CardHeader
className
=
"flex-row"
>
<
div
className
=
"flex flex-col space-y-1.5 w-full"
>
<
CardTitle
className
=
"text-xl"
>
페이지를 찾을 수 없습니다
</
CardTitle
>
<
CardDescription
>
404 Not Found
</
CardDescription
>
</
div
>
</
CardHeader
>
<
CardContent
>
<
p
className
=
"text-sm text-muted-foreground"
>
페이지의 주소가 잘못 입력되었거나, 주소의 변경 혹은 삭제로 인해 사용하실 수 없습니다. 입력하신 주소가
정확한지 다시 한번 확인해주세요.
</
p
>
<
Link
to
=
"/"
>
<
Button
className
=
"mt-6"
>
<
House
className
=
"mr-2 h-4 w-4"
/>
홈으로
</
Button
>
</
Link
>
</
CardContent
>
</
Card
>
</
div
>
);
}
This diff is collapsed.
Click to expand it.
src/routes.tsx
+
2
−
0
View file @
4f88ce51
import
{
Routes
,
Route
}
from
'
react-router
'
;
import
{
Routes
,
Route
}
from
'
react-router
'
;
import
Root
from
'
@/pages/Root
'
;
import
Root
from
'
@/pages/Root
'
;
import
NotFound
from
'
@/pages/NotFound
'
;
import
Home
from
'
@/pages/Home
'
;
import
Home
from
'
@/pages/Home
'
;
import
Login
from
'
@/pages/Login
'
;
import
Login
from
'
@/pages/Login
'
;
import
RoutingList
from
'
@/pages/routing/List
'
;
import
RoutingList
from
'
@/pages/routing/List
'
;
...
@@ -13,6 +14,7 @@ export default function AppRoutes() {
...
@@ -13,6 +14,7 @@ export default function AppRoutes() {
<
Route
path
=
"routing"
>
<
Route
path
=
"routing"
>
<
Route
index
element
=
{
<
RoutingList
/>
}
/>
<
Route
index
element
=
{
<
RoutingList
/>
}
/>
</
Route
>
</
Route
>
<
Route
path
=
"*"
element
=
{
<
NotFound
/>
}
/>
</
Route
>
</
Route
>
</
Routes
>
</
Routes
>
);
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment