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
20a8adf8
Commit
20a8adf8
authored
Aug 03, 2020
by
김민수
Browse files
No commit message
No commit message
parent
a1909827
Changes
3
Show whitespace changes
Inline
Side-by-side
src/Home.js
View file @
20a8adf8
...
@@ -6,15 +6,14 @@ import bg from './background_ex1.jpg'
...
@@ -6,15 +6,14 @@ import bg from './background_ex1.jpg'
function
Home
()
{
function
Home
()
{
return
(
return
(
<>
<>
<
div
style
=
{{
backgroundImage
:
'
url(
'
+
bg
+
'
)
'
,
backgroundColor
:
"
grey
"
,
backgroundSize
:
"
100%
"
}}
>
<
div
style
=
{{
backgroundImage
:
'
url(
'
+
bg
+
'
)
'
,
backgroundSize
:
"
100%
"
}}
>
<
div
className
=
"
Main
"
><
/div
>
<
div
className
=
"
Main
"
><
/div
>
<
div
className
=
"
Box
"
>
<
div
className
=
"
Box
"
style
=
{{}}
>
<
div
className
=
"
Name
"
style
=
{{
color
:
"
white
"
,
fontSize
:
'
30px
'
}}
>
<
div
className
=
"
Name
"
style
=
{{
color
:
"
black
"
,
fontSize
:
'
30px
'
}}
>
이름을
입력하세요
이름을
입력하세요
<
input
style
=
{{
blockSize
:
'
4
0px
'
,
marginLeft
:
'
30px
'
}}
onChange
=
{(
event
)
=>
sessionStorage
.
setItem
(
'
name
'
,
event
.
target
.
value
)}
/
>
<
input
style
=
{{
blockSize
:
'
3
0px
'
,
marginLeft
:
'
30px
'
}}
onChange
=
{(
event
)
=>
sessionStorage
.
setItem
(
'
name
'
,
event
.
target
.
value
)}
/
>
<
/div
>
<
/div
>
{
/* sessionStorage를 사용해야는지 localstorage를 사용해야하는지 */
}
{
/* sessionStorage를 사용해야는지 localstorage를 사용해야하는지 */
}
<
/div
>
<
/div
>
...
@@ -25,7 +24,6 @@ function Home() {
...
@@ -25,7 +24,6 @@ function Home() {
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/
>
<
/
>
)
)
}
}
function
checking
(
event
)
{
function
checking
(
event
)
{
...
...
src/Quiz.css
View file @
20a8adf8
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
height
:
180px
;
height
:
180px
;
text-align
:
center
;
text-align
:
center
;
margin-left
:
410px
;
margin-left
:
410px
;
margin-top
:
10px
;
margin-top
:
1
5
0px
;
font-size
:
120px
;
font-size
:
120px
;
font-family
:
cursive
;
font-family
:
cursive
;
color
:
greenyellow
;
color
:
greenyellow
;
...
@@ -24,13 +24,13 @@
...
@@ -24,13 +24,13 @@
.Box
{
.Box
{
text-align
:
center
;
text-align
:
center
;
margin
:
0
auto
;
margin
:
0
auto
;
margin-top
:
75
px
;
margin-top
:
30
px
;
}
}
.QuizStart
{
.QuizStart
{
margin
:
30px
;
margin
:
30px
;
margin-left
:
650px
;
margin-left
:
650px
;
margin-top
:
15
0px
;
margin-top
:
3
0px
;
margin-bottom
:
200px
;
margin-bottom
:
200px
;
width
:
220px
;
width
:
220px
;
height
:
50px
;
height
:
50px
;
...
...
src/background_ex1.jpg
View replaced file @
a1909827
View file @
20a8adf8
158 KB
|
W:
|
H:
214 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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