Spaces:
Running
Running
Update index.html
Browse files- index.html +1 -32
index.html
CHANGED
|
@@ -4,38 +4,7 @@
|
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>Random UI Component on Canvas</title>
|
| 7 |
-
<style>
|
| 8 |
-
canvas {
|
| 9 |
-
border: 1px solid black;
|
| 10 |
-
display: block;
|
| 11 |
-
margin: 0 auto;
|
| 12 |
-
}
|
| 13 |
-
.ui-component {
|
| 14 |
-
position: absolute;
|
| 15 |
-
transform: translate(-50%, -50%);
|
| 16 |
-
padding: 10px;
|
| 17 |
-
font-family: Arial, sans-serif;
|
| 18 |
-
border: 1px solid #ccc;
|
| 19 |
-
border-radius: 5px;
|
| 20 |
-
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
| 21 |
-
}
|
| 22 |
-
button {
|
| 23 |
-
background-color: #4CAF50;
|
| 24 |
-
color: white;
|
| 25 |
-
border: none;
|
| 26 |
-
padding: 10px 20px;
|
| 27 |
-
text-align: center;
|
| 28 |
-
text-decoration: none;
|
| 29 |
-
display: inline-block;
|
| 30 |
-
font-size: 16px;
|
| 31 |
-
margin: 4px 2px;
|
| 32 |
-
cursor: pointer;
|
| 33 |
-
border-radius: 5px;
|
| 34 |
-
}
|
| 35 |
-
input[type="range"] {
|
| 36 |
-
width: 200px;
|
| 37 |
-
}
|
| 38 |
-
</style>
|
| 39 |
</head>
|
| 40 |
<body>
|
| 41 |
<canvas id="myCanvas" width="800" height="600"></canvas>
|
|
|
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>Random UI Component on Canvas</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
</head>
|
| 9 |
<body>
|
| 10 |
<canvas id="myCanvas" width="800" height="600"></canvas>
|