Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
Today KU
Commits
fb6eed94
Commit
fb6eed94
authored
Oct 07, 2021
by
Kim, Subin
Browse files
ErrorPage 완성
parent
43e0a201
Changes
2
Hide whitespace changes
Inline
Side-by-side
client/src/App.js
View file @
fb6eed94
...
...
@@ -6,19 +6,22 @@ import SchedulePage from "./pages/SchedulePage";
import
ScheduleEditPage
from
"
./pages/ScheduleEditPage
"
;
import
AdminPage
from
"
./pages/AdminPage
"
;
import
PrivateRoute
from
"
./components/PrivateRoute
"
;
import
Err
from
"
./pages/ErrorPage
"
;
import
Err
orPage
from
"
./pages/ErrorPage
"
;
function
App
()
{
return
(
<
Router
basename
=
{
process
.
env
.
PUBLIC
_URL
}
>
<
div
id
=
"
box
"
className
=
"
mx-sm-auto
"
>
<
Router
basename
=
{
process
.
env
.
REACT_APP_ROUTE
_URL
}
>
<
div
id
=
"
box
"
className
=
"
container
mx-sm-auto
"
>
<
Switch
>
<
Route
exact
path
=
"
/
"
component
=
{
Err
}
/
>
<
Route
exact
path
=
"
/
"
component
=
{
LoginPage
}
/
>
<
Route
path
=
"
/login
"
component
=
{
LoginPage
}
/
>
<
Route
path
=
"
/signup
"
component
=
{
SignupPage
}
/
>
<
Route
path
=
"
/home
"
component
=
{
HomePage
}
/
>
<
Route
path
=
"
/schedule/edit
"
component
=
{
ScheduleEditPage
}
/
>
<
Route
path
=
"
/schedule
"
component
=
{
SchedulePage
}
/
>
<
PrivateRoute
path
=
"
/admin
"
component
=
{
AdminPage
}
role
=
"
admin
"
/>
<
Route
component
=
{
ErrorPage
}
/
>
<
/Switch
>
<
/div
>
<
/Router
>
...
...
client/src/pages/ErrorPage.js
View file @
fb6eed94
const
ErrorPage
=
()
=>
{
return
(
<
div
className
=
"
d-flex bg-white
"
id
=
"
notfound
"
>
<
div
className
=
"
notfound
"
>
<
img
src
=
"
./ku-tiger.png
"
/>
<
h1
>
404
<
/h1
>
<
h2
className
=
"
text-center
"
>
Oops
!
Page
Not
Be
Found
<
/h2
>
<
p
>
Sorry
but
the
page
you
are
looking
for
does
not
exist
,
have
been
removed
.
name
changed
or
is
temporarily
unavailable
<
/p
>
<
a
className
=
"
text-center
"
href
=
"
/login
"
>
Back
to
login
<
/a
>
<
/div
>
<
div
className
=
"
d-flex flex-column justify-content-center align-items-center vh-100
"
>
<
img
className
=
"
mb-5
"
src
=
{
process
.
env
.
PUBLIC_URL
+
'
/ku-tiger.png
'
}
alt
=
"
어흥이
"
/>
<
h2
>
Oops
!
Page
Not
Be
Found
<
/h2
>
<
p
>
Sorry
but
the
page
you
are
looking
for
does
not
exist
,
have
been
removed
.
name
changed
or
is
temporarily
unavailable
<
/p
>
<
a
href
=
"
/login
"
>
Back
to
login
<
/a
>
<
/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