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
Show whitespace changes
Inline
Side-by-side
client/src/App.js
View file @
fb6eed94
...
@@ -6,19 +6,22 @@ import SchedulePage from "./pages/SchedulePage";
...
@@ -6,19 +6,22 @@ import SchedulePage from "./pages/SchedulePage";
import
ScheduleEditPage
from
"
./pages/ScheduleEditPage
"
;
import
ScheduleEditPage
from
"
./pages/ScheduleEditPage
"
;
import
AdminPage
from
"
./pages/AdminPage
"
;
import
AdminPage
from
"
./pages/AdminPage
"
;
import
PrivateRoute
from
"
./components/PrivateRoute
"
;
import
PrivateRoute
from
"
./components/PrivateRoute
"
;
import
Err
from
"
./pages/ErrorPage
"
;
import
Err
orPage
from
"
./pages/ErrorPage
"
;
function
App
()
{
function
App
()
{
return
(
return
(
<
Router
basename
=
{
process
.
env
.
PUBLIC
_URL
}
>
<
Router
basename
=
{
process
.
env
.
REACT_APP_ROUTE
_URL
}
>
<
div
id
=
"
box
"
className
=
"
mx-sm-auto
"
>
<
div
id
=
"
box
"
className
=
"
container
mx-sm-auto
"
>
<
Switch
>
<
Switch
>
<
Route
exact
path
=
"
/
"
component
=
{
Err
}
/
>
<
Route
exact
path
=
"
/
"
component
=
{
LoginPage
}
/
>
<
Route
path
=
"
/login
"
component
=
{
LoginPage
}
/
>
<
Route
path
=
"
/signup
"
component
=
{
SignupPage
}
/
>
<
Route
path
=
"
/signup
"
component
=
{
SignupPage
}
/
>
<
Route
path
=
"
/home
"
component
=
{
HomePage
}
/
>
<
Route
path
=
"
/home
"
component
=
{
HomePage
}
/
>
<
Route
path
=
"
/schedule/edit
"
component
=
{
ScheduleEditPage
}
/
>
<
Route
path
=
"
/schedule/edit
"
component
=
{
ScheduleEditPage
}
/
>
<
Route
path
=
"
/schedule
"
component
=
{
SchedulePage
}
/
>
<
Route
path
=
"
/schedule
"
component
=
{
SchedulePage
}
/
>
<
PrivateRoute
path
=
"
/admin
"
component
=
{
AdminPage
}
role
=
"
admin
"
/>
<
PrivateRoute
path
=
"
/admin
"
component
=
{
AdminPage
}
role
=
"
admin
"
/>
<
Route
component
=
{
ErrorPage
}
/
>
<
/Switch
>
<
/Switch
>
<
/div
>
<
/div
>
<
/Router
>
<
/Router
>
...
...
client/src/pages/ErrorPage.js
View file @
fb6eed94
const
ErrorPage
=
()
=>
{
const
ErrorPage
=
()
=>
{
return
(
return
(
<
div
className
=
"
d-flex bg-white
"
id
=
"
notfound
"
>
<
div
className
=
"
d-flex flex-column justify-content-center align-items-center vh-100
"
>
<
div
className
=
"
notfound
"
>
<
img
className
=
"
mb-5
"
src
=
{
process
.
env
.
PUBLIC_URL
+
'
/ku-tiger.png
'
}
alt
=
"
어흥이
"
/>
<
img
src
=
"
./ku-tiger.png
"
/>
<
h2
>
Oops
!
Page
Not
Be
Found
<
/h2
>
<
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
>
<
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
>
<
a
href
=
"
/login
"
>
Back
to
login
<
/a
>
<
/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