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
aef34567
Commit
aef34567
authored
Aug 10, 2020
by
baesangjune
Browse files
css
parent
792fea49
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Home.js
View file @
aef34567
...
@@ -17,7 +17,7 @@ function Home() {
...
@@ -17,7 +17,7 @@ function Home() {
SetPassword
(
event
.
target
.
value
)
SetPassword
(
event
.
target
.
value
)
}
}
function
checking
()
{
function
handleClick
()
{
if
(
!
name
)
{
if
(
!
name
)
{
alert
(
'
이름을 입력하세요
'
)
alert
(
'
이름을 입력하세요
'
)
}
}
...
@@ -51,54 +51,33 @@ function Home() {
...
@@ -51,54 +51,33 @@ function Home() {
{
admin
?
<
Redirect
to
=
'
/admin
'
/>
:
''
}
{
admin
?
<
Redirect
to
=
'
/admin
'
/>
:
''
}
{
done
?
<
Redirect
to
=
'
/quiz
'
/>
:
''
}
{
done
?
<
Redirect
to
=
'
/quiz
'
/>
:
''
}
{
/* <div style={{ backgroundImage: 'url(' + bg + ')', backgroundColor: "grey", backgroundSize: "100%", width: "100%", height: "880px", backgroundRepeat: 'no-repeat' }}> */
}
<
h1
className
=
"
h-3 mb-5 mx-3 text-center bg-danger py-2
"
>
<
div
className
=
"
Main
"
><
/div
>
<
div
style
=
{{
fontSize
:
'
70px
'
,
marginBottom
:
'
100px
'
,
textAlign
:
'
center
'
,
backgroundColor
:
'
#AE0E36
'
}}
>
{
/* <img alt='korea' src={korea} width='10%'/> */
}
KOREA
UNIVERSITY
KOREA
UNIVERSITY
<
/div
>
<
/h1
>
<
form
className
=
"
d-flex justify-content-center
"
>
<
div
className
=
"
d-flex justify-content-center
"
>
<
div
className
=
"
table table-bordered
"
style
=
{{
width
:
"
400px
"
}}
>
<
table
className
=
"
table table-bordered dark-table
"
style
=
{{
width
:
"
400px
"
}}
>
<
thead
className
=
"
text-center
"
>
<
label
for
=
"
inputId
"
className
=
"
d-flex justify-content-center
"
>
<
tr
style
=
{{
height
:
"
0 px
"
}}
>
정보
입력
<
/tr
>
정보
입력
<
/thead
>
<
/label
>
<
tbody
className
=
"
text-center
"
>
<
div
className
=
"
form-group text-center
"
>
<
tr
>
<
label
for
=
"
inputName
"
>
<
td
>
이름
입력
<
input
className
=
"
ml-2 inputBox
"
onChange
=
{
handleChangename
}
/></
td
>
이름입력
<
input
className
=
"
ml-3 inputBox
"
onChange
=
{
handleChangename
}
placeholder
=
"
Name
"
/>
<
/tr
>
<
/label
>
<
tr
>
<
td
>
비밀번호
<
input
type
=
'
password
'
className
=
"
ml-2 inputBox
"
onChange
=
{
handleChangepassword
}
/></
td
>
<
label
for
=
"
inputPassword
"
>
<
/tr
>
비밀번호
<
input
type
=
'
password
'
className
=
"
ml-3 inputBox
"
onChange
=
{
handleChangepassword
}
placeholder
=
"
Password
"
/>
<
tr
>
<
/label
>
<
td
>
<
div
className
=
"
form-group for login
"
>
<
button
className
=
"
mt-4 btn btn-dark
"
onClick
=
{
checking
}
>
Login
<
/button></
td
>
<
label
for
=
"
inputLogin
"
className
=
"
d-flex justify-content-center
"
>
<
/tr
>
<
button
className
=
"
mt-4 btn btn-dark
"
onClick
=
{
handleClick
}
>
Login
<
/button
>
<
/label
>
<
/tbody
>
<
/div
>
<
/table
>
<
/div
>
<
/div
>
{
/* <div className="Box" style={{ border: 'solid', position: 'absolute', top: "300px", left: "68%"}} > */
}
{
/* <div className="Name" style={{boxShadow: '5px 5px 5px 5px gray', border: 'solid', fontSize: '30px', position: "absolute", top: "300px", left: "68%" }}>
이름(Name)
<input style={{ padding: '5px', border: 'solid', borderRight: 'none', borderBottom: 'none', borderTop: 'none', marginLeft: '105px', inlineSize: '160px', blockSize: '40px', fontSize: '40px' }} onChange={handleChangename} />
<
/div
>
<
/div
>
<div className="Name" style={{ boxShadow: '5px 5px 5px 5px gray',border: 'solid', fontSize: '30px', position: "absolute", top: "360px", left: "68%" }}>
<
/form
>
비밀번호(Password)
<input type='password' style={{ padding: '5px', border: 'solid', borderRight: 'none', borderBottom: 'none', borderTop: 'none', marginLeft: '0px', inlineSize: '160px', blockSize: '40px', fontSize: '40px' }} onChange={handleChangepassword} />
</div>
<div className='Box2'>
<button style={{boxShadow: '5px 5px 5px 5px gray', marginLeft: '82%', marginTop: '10%', blockSize: '50px', inlineSize: '175px', fontSize: '35px' }} className="QuizStart" onClick={checking}>Start !</button>
</div> */
}
{
/* localStorage를 사용해야는지 localstorage를 사용해야하는지 */
}
{
/* </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