Comlete basic task

This commit is contained in:
Thuan Bui
2025-02-23 11:19:14 +09:00
parent 3b9e36df78
commit bcf7a3d542
3 changed files with 10 additions and 4 deletions
+4
View File
@@ -4,8 +4,12 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Etch A Sketch</title> <title>Etch A Sketch</title>
<link rel="stylesheet" href="style.css">
</head> </head>
<body> <body>
<h1>Etch A Sketch</h1>
<button>Generate a new gird</button>
<div class="container"></div> <div class="container"></div>
<script src="script.js"></script>
</body> </body>
</html> </html>
+1 -1
View File
@@ -37,7 +37,7 @@ function getRandomColor() {
color += letters[Math.floor(Math.random() * 16)]; color += letters[Math.floor(Math.random() * 16)];
} }
return color; return color;
} }
+5 -3
View File
@@ -3,9 +3,7 @@
text-align: center; text-align: center;
flex-wrap: wrap; flex-wrap: wrap;
width: 800px; width: 800px;
-webkit-box-shadow:inset 0px 0px 0px 5px gray; margin-top: 30px;
-moz-box-shadow:inset 0px 0px 0px 5px gray;
box-shadow:inset 0px 0px 0px 5px gray;
} }
@@ -13,4 +11,8 @@
-webkit-box-shadow:inset 0px 0px 0px 1px gray; -webkit-box-shadow:inset 0px 0px 0px 1px gray;
-moz-box-shadow:inset 0px 0px 0px 1px gray; -moz-box-shadow:inset 0px 0px 0px 1px gray;
box-shadow:inset 0px 0px 0px 1px gray; box-shadow:inset 0px 0px 0px 1px gray;
}
.changecolor {
background-color: red;
} }