Add index.html
Browse files- index.html +61 -19
index.html
CHANGED
@@ -1,19 +1,61 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html>
|
3 |
+
<head>
|
4 |
+
|
5 |
+
<style>
|
6 |
+
body {
|
7 |
+
font-family: "Arial", sans-serif;
|
8 |
+
background-color: white;
|
9 |
+
margin: 0;
|
10 |
+
padding: 24px;
|
11 |
+
}
|
12 |
+
|
13 |
+
* {
|
14 |
+
box-sizing: border-box;
|
15 |
+
}
|
16 |
+
|
17 |
+
.container {
|
18 |
+
max-width: 30rem;
|
19 |
+
margin: auto;
|
20 |
+
padding: 24px;
|
21 |
+
border-radius: 8px;
|
22 |
+
border: 1px solid lightgray;
|
23 |
+
text-align: center;
|
24 |
+
}
|
25 |
+
.container h1 {
|
26 |
+
margin: 0 0 24px;
|
27 |
+
}
|
28 |
+
|
29 |
+
#button {
|
30 |
+
background-color: black;
|
31 |
+
color: white;
|
32 |
+
border-radius: 100px;
|
33 |
+
padding: 8px 16px;
|
34 |
+
border: none;
|
35 |
+
cursor: pointer;
|
36 |
+
}
|
37 |
+
</style>
|
38 |
+
</head>
|
39 |
+
<body>
|
40 |
+
<div class="container">
|
41 |
+
<h1>
|
42 |
+
Space Developer
|
43 |
+
</h1>
|
44 |
+
<button id="button">
|
45 |
+
Button clicked: 0
|
46 |
+
</button>
|
47 |
+
</div>
|
48 |
+
|
49 |
+
|
50 |
+
<script>
|
51 |
+
let count = 0;
|
52 |
+
const button = document.getElementById("button");
|
53 |
+
|
54 |
+
button.addEventListener("click", (e) => {
|
55 |
+
count = count + 1;
|
56 |
+
button.innerHTML = `Button clicked: ${count}`
|
57 |
+
});
|
58 |
+
</script>
|
59 |
+
</body>
|
60 |
+
</html>
|
61 |
+
|