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
6fcc3bac
Commit
6fcc3bac
authored
Oct 05, 2021
by
Kim, Subin
Browse files
bootstrap 적용 및 기타
parent
ec8a3d0b
Changes
3
Show whitespace changes
Inline
Side-by-side
client/src/App.js
View file @
6fcc3bac
...
@@ -10,11 +10,13 @@ function App() {
...
@@ -10,11 +10,13 @@ function App() {
return
(
return
(
<
Router
basename
=
{
process
.
env
.
PUBLIC_URL
}
>
<
Router
basename
=
{
process
.
env
.
PUBLIC_URL
}
>
<
Switch
>
<
Switch
>
<
div
style
=
{{
width
:
"
400px
"
}}
>
<
Route
path
=
"
/
"
component
=
{
Err
}
/
>
<
Route
path
=
"
/
"
component
=
{
Err
}
/
>
<
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" /> */
}
<
/div
>
<
/Switch
>
<
/Switch
>
<
/Router
>
<
/Router
>
);
);
...
...
client/src/index.js
View file @
6fcc3bac
...
@@ -2,6 +2,7 @@ import React from 'react';
...
@@ -2,6 +2,7 @@ import React from 'react';
import
ReactDOM
from
'
react-dom
'
;
import
ReactDOM
from
'
react-dom
'
;
import
'
./index.css
'
;
import
'
./index.css
'
;
import
'
bootstrap
'
;
import
'
bootstrap
'
;
import
'
bootstrap/dist/css/bootstrap.css
'
;
import
App
from
'
./App
'
;
import
App
from
'
./App
'
;
import
reportWebVitals
from
'
./reportWebVitals
'
;
import
reportWebVitals
from
'
./reportWebVitals
'
;
...
...
client/src/pages/ErrorPage.js
View file @
6fcc3bac
const
ErrorPage
=
()
=>
{
const
ErrorPage
=
()
=>
{
return
(
return
(
<
div
className
=
"
bg-white
"
id
=
"
notfound
"
>
<
div
className
=
"
d-flex
bg-white
"
id
=
"
notfound
"
>
<
div
className
=
"
notfound
"
style
=
{{
backgroundImage
:
`url(/ku-tiger.png)`
,
backgroundSize
:
"
cover
"
}}
>
<
div
className
=
"
notfound
"
>
<
div
className
=
"
notfound-404
"
><
/div
>
<
img
src
=
"
./ku-tiger.png
"
/
>
<
h1
>
404
<
/h1
>
<
h1
>
404
<
/h1
>
<
h2
>
Oops
!
Page
Not
Be
Found
<
/h2
>
<
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
href
=
"
/
"
>
Back
to
homepage
<
/a
>
<
a
className
=
"
text-center
"
href
=
"
/
login
"
>
Back
to
login
<
/a
>
<
/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