victor HF Staff commited on
Commit
f6221a9
·
verified ·
1 Parent(s): 59dd10b

Add index.html

Browse files
Files changed (1) hide show
  1. index.html +61 -19
index.html CHANGED
@@ -1,19 +1,61 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+