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
ced5ccc3
Commit
ced5ccc3
authored
Aug 12, 2020
by
Jiwon Yoon
Browse files
a
parent
0e77fbf7
Changes
1
Show whitespace changes
Inline
Side-by-side
src/Home.js
View file @
ced5ccc3
// 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
()
{
...
@@ -54,30 +54,25 @@ function Home() {
...
@@ -54,30 +54,25 @@ function Home() {
<
h1
className
=
"
h-3 mb-5 mx-3 text-center bg-danger py-2
"
>
<
h1
className
=
"
h-3 mb-5 mx-3 text-center bg-danger py-2
"
>
KOREA
UNIVERSITY
KOREA
UNIVERSITY
<
/h1
>
<
/h1
>
<
div
className
=
"
d-flex justify-content-center
"
>
<
form
className
=
"
d-flex justify-content-center
"
>
<
form
>
<
div
style
=
{{
width
:
"
400px
"
}}
>
<
div
className
=
"
table table-bordered
"
style
=
{{
width
:
"
400px
"
}}
>
<
div
className
=
"
form-group
"
>
<
label
for
=
"
inputName
"
>
이름입력
<
/label
>
<
label
for
=
"
inputId
"
className
=
"
d-flex justify-content-center
"
>
<
input
className
=
"
form-control
"
onChange
=
{
handleChangename
}
placeholder
=
"
Name
"
/>
정보
입력
<
/div
>
<
/label
>
<
div
className
=
"
form-group
"
>
<
label
for
=
"
inputPassword
"
>
비밀번호
<
/label
>
<
input
type
=
'
password
'
className
=
"
form-control
"
onChange
=
{
handleChangepassword
}
placeholder
=
"
Password
"
/>
<
/div
>
<
div
className
=
"
form-group text-center
"
>
<
div
className
=
"
form-group text-center
"
>
<
label
for
=
"
inputName
"
>
<
label
for
=
"
inputLogin
"
className
=
"
d-flex justify-content-center
"
>
<
/label
>
이름입력
<
input
className
=
"
ml-3 inputBox
"
onChange
=
{
handleChangename
}
placeholder
=
"
Name
"
/>
<
/label
>
<
label
for
=
"
inputPassword
"
>
비밀번호
<
input
type
=
'
password
'
className
=
"
ml-3 inputBox
"
onChange
=
{
handleChangepassword
}
placeholder
=
"
Password
"
/>
<
/label
>
<
div
className
=
"
form-group for login
"
>
<
label
for
=
"
inputLogin
"
className
=
"
d-flex justify-content-center
"
>
<
button
className
=
"
mt-4 btn btn-dark
"
onClick
=
{
handleClick
}
>
Login
<
/button
>
<
button
className
=
"
mt-4 btn btn-dark
"
onClick
=
{
handleClick
}
>
Login
<
/button
>
<
/label
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/form
>
<
/form
>
<
/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