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
online-quiz-react
Commits
521156da
Commit
521156da
authored
Aug 17, 2020
by
baesangjune
Browse files
지원이꺼 적용
parent
befc7fe2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Home.js
View file @
521156da
// import bg from './img_study.jpg'
// import bg from './img_study.jpg'
// import korea from './img_korea.jpg'
// import korea from './img_korea.jpg'
import
React
,
{
useState
}
from
'
react
'
import
React
,
{
useState
}
from
'
react
'
import
{
Redirect
}
from
'
react-router-dom
'
;
import
{
Redirect
}
from
'
react-router-dom
'
;
function
Home
()
{
function
Home
()
{
...
@@ -47,38 +47,37 @@ function Home() {
...
@@ -47,38 +47,37 @@ function Home() {
return
(
return
(
<>
<
div
className
=
"
container-fluid bg-light p-5 h-100
"
>
{
admin
?
<
Redirect
to
=
'
/admin
'
/>
:
''
}
{
admin
?
<
Redirect
to
=
'
/admin
'
/>
:
''
}
{
done
?
<
Redirect
to
=
'
/quiz
'
/>
:
''
}
{
done
?
<
Redirect
to
=
'
/quiz
'
/>
:
''
}
<
h1
className
=
"
h-3 mb-5 mx-3 text-center bg-danger py-2
"
>
KOREA
UNIVERSITY
<
/h1
>
<
form
className
=
"
d-flex justify-content-center
"
>
<
div
>
<
h3
className
=
"
text-center pb-5 font-weight-bold text-danger
"
style
=
{{
'
font-family
'
:
'
sans-serif
'
}}
>
Korea
University
<
/h3
>
<
div
className
=
"
table table-bordered
"
style
=
{{
width
:
"
400px
"
}}
>
<
/div
>
<
label
for
=
"
inputId
"
className
=
"
d-flex justify-content-center
"
>
<
div
className
=
"
row justify-content-center
"
>
정보
입력
<
form
className
=
"
col-4 p-5 border bg-white
"
>
<
/label
>
<
div
>
<
div
className
=
"
form-group text-center
"
>
<
div
>
<
label
for
=
"
inputName
"
>
<
p
className
=
"
font-weight-bold h5 pb-3
"
>
로그인
<
/p
>
이름입력
<
input
className
=
"
ml-3 inputBox
"
onChange
=
{
handleChangename
}
placeholder
=
"
Name
"
/>
<
/div
>
<
/label
>
<
div
className
=
"
form-group
"
>
<
label
for
=
"
inputName
"
>
이름입력
<
/label
>
<
label
for
=
"
inputPassword
"
>
<
input
className
=
"
form-control
"
onChange
=
{
handleChangename
}
placeholder
=
"
Name
"
/>
비밀번호
<
input
type
=
'
password
'
className
=
"
ml-3 inputBox
"
onChange
=
{
handleChangepassword
}
placeholder
=
"
Password
"
/>
<
/div
>
<
/label
>
<
div
className
=
"
form-group
"
>
<
div
className
=
"
form-group for login
"
>
<
label
for
=
"
inputPassword
"
>
비밀번호
<
/label
>
<
label
for
=
"
inputLogin
"
className
=
"
d-flex justify-content-center
"
>
<
input
type
=
'
password
'
className
=
"
form-control
"
onChange
=
{
handleChangepassword
}
placeholder
=
"
Password
"
/>
<
button
className
=
"
mt-4 btn btn-dark
"
onClick
=
{
handleClick
}
>
Login
<
/button
>
<
/div
>
<
/label
>
<
div
className
=
"
form-group text-center
"
>
<
label
for
=
"
inputLogin
"
className
=
"
d-flex justify-content-center
"
>
<
/label
>
<
button
className
=
"
mt-4 btn btn-dark
"
onClick
=
{
handleClick
}
>
Login
<
/button
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/form
>
<
/form
>
<
/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