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
e7191d29
Commit
e7191d29
authored
Aug 05, 2020
by
김민수
Browse files
No commit message
No commit message
parent
6d71fe84
Changes
1
Show whitespace changes
Inline
Side-by-side
src/Home.js
View file @
e7191d29
import
bg
from
'
./img_study.jpg
'
import
bg
from
'
./img_study.jpg
'
import
React
,
{
useState
}
from
'
react
'
import
React
,
{
useState
}
from
'
react
'
import
{
Redirect
}
from
'
react-router-dom
'
;
import
{
Redirect
}
from
'
react-router-dom
'
;
import
'
./Home.css
'
function
Home
()
{
function
Home
()
{
...
@@ -25,15 +26,15 @@ function Home() {
...
@@ -25,15 +26,15 @@ function Home() {
return
(
return
(
<>
<>
{
done
?
<
Redirect
to
=
'
/quiz
'
/>
:
''
}
{
done
?
<
Redirect
to
=
'
/quiz
'
/>
:
''
}
<
div
style
=
{{
backgroundImage
:
'
url(
'
+
bg
+
'
)
'
,
backgroundColor
:
"
grey
"
,
backgroundSize
:
"
100%
"
,
width
:
"
100%
"
,
height
:
"
880px
"
,
backgroundRepeat
:
'
no-repeat
'
}}
>
<
div
className
=
"
Main
"
>
{
/* <div className="Main"></div> */
}
{
/* <div className="Main"></div> */
}
<
div
className
=
"
Box
"
>
<
div
className
=
"
Box
"
>
<
div
className
=
"
Name
"
style
=
{{
fontSize
:
'
30px
'
,
position
:
"
absolute
"
,
top
:
"
330px
"
,
left
:
"
38%
"
}}
>
<
div
className
=
"
Name
"
>
이름을
입력하세요
이름을
입력하세요
<
input
style
=
{{
marginLeft
:
'
30px
'
,
inlineSize
:
'
200px
'
,
blockSize
:
'
40px
'
,
fontSize
:
'
40px
'
}}
onChange
=
{
handleChange
}
/
>
<
input
className
=
"
input-style
"
onChange
=
{
handleChange
}
/
>
<
div
className
=
'
Box2
'
>
<
div
className
=
'
Box2
'
>
<
button
style
=
{{
marginTop
:
'
35%
'
,
blockSize
:
'
100px
'
,
inlineSize
:
'
200px
'
,
fontSize
:
'
35px
'
}}
className
=
"
QuizStart
"
onClick
=
{
checking
}
>
Quiz
Start
!<
/button
>
<
button
className
=
"
QuizStart
"
onClick
=
{
checking
}
>
Quiz
Start
!<
/button
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
{
/* localStorage를 사용해야는지 localstorage를 사용해야하는지 */
}
{
/* localStorage를 사용해야는지 localstorage를 사용해야하는지 */
}
...
...
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