react 조건문
This commit is contained in:
@@ -2,6 +2,24 @@
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>숫자야구</title>
|
||||
<style>
|
||||
#screen {
|
||||
width: 300px;
|
||||
height: 200px;
|
||||
text-align: center;
|
||||
user-select: none;
|
||||
}
|
||||
#screen.waiting {
|
||||
background-color: aqua;
|
||||
}
|
||||
#screen.ready {
|
||||
background-color: red;
|
||||
color: white;
|
||||
}
|
||||
#screen.now {
|
||||
background-color: greenyellow;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
Reference in New Issue
Block a user