ChandimaPrabath commited on
Commit
ebb1c1c
·
1 Parent(s): 7a826c8
Files changed (1) hide show
  1. index.html +103 -2
index.html CHANGED
@@ -4,6 +4,107 @@
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
  <title>File Upload with Progress</title>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  </head>
8
  <body>
9
  <h2>Upload Files to Hugging Face Repository</h2>
@@ -17,11 +118,11 @@
17
  <label for="files">Select Files:</label>
18
  <input type="file" id="files" name="files" multiple required>
19
 
20
- <button type="submit">Upload</button>
21
  </form>
22
 
23
  <div id="progress">
24
- <h3>Upload Progress:</h3>
25
  <pre id="clientProgressText">Client to Server: No upload in progress...</pre>
26
  <pre id="serverProgressText">Server to Storage: No upload in progress...</pre>
27
  </div>
 
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
  <title>File Upload with Progress</title>
7
+ <style>
8
+ /* General dark theme */
9
+ * {
10
+ box-sizing: border-box;
11
+ font-family: Arial, sans-serif;
12
+ margin: 0;
13
+ padding: 0;
14
+ }
15
+
16
+ body {
17
+ background-color: #121212;
18
+ color: #e0e0e0;
19
+ display: flex;
20
+ flex-direction: column;
21
+ align-items: center;
22
+ padding: 40px;
23
+ min-height: 100vh;
24
+ }
25
+
26
+ h2 {
27
+ font-size: 1.8rem;
28
+ color: #ffffff;
29
+ margin-bottom: 20px;
30
+ }
31
+
32
+ form {
33
+ background: #1e1e1e;
34
+ padding: 20px;
35
+ border-radius: 8px;
36
+ box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
37
+ width: 100%;
38
+ max-width: 400px;
39
+ }
40
+
41
+ label {
42
+ color: #bdbdbd;
43
+ font-weight: bold;
44
+ display: block;
45
+ margin-top: 15px;
46
+ }
47
+
48
+ input[type="password"],
49
+ input[type="text"],
50
+ input[type="file"] {
51
+ background: #333;
52
+ color: #e0e0e0;
53
+ border: none;
54
+ border-radius: 4px;
55
+ padding: 10px;
56
+ width: 100%;
57
+ margin-top: 5px;
58
+ outline: none;
59
+ transition: border 0.3s ease;
60
+ }
61
+
62
+ input[type="password"]:focus,
63
+ input[type="text"]:focus,
64
+ input[type="file"]:focus {
65
+ border: 1px solid #4f8cff;
66
+ }
67
+
68
+ button {
69
+ background-color: #4f8cff;
70
+ color: #fff;
71
+ padding: 10px 20px;
72
+ border: none;
73
+ border-radius: 4px;
74
+ cursor: pointer;
75
+ margin-top: 20px;
76
+ width: 100%;
77
+ transition: background 0.3s;
78
+ font-weight: bold;
79
+ }
80
+
81
+ button:hover {
82
+ background-color: #3571db;
83
+ }
84
+
85
+ /* Progress Section */
86
+ #progress {
87
+ margin-top: 20px;
88
+ width: 100%;
89
+ max-width: 400px;
90
+ text-align: left;
91
+ }
92
+
93
+ #progress h3 {
94
+ font-size: 1.4rem;
95
+ margin-bottom: 10px;
96
+ }
97
+
98
+ pre {
99
+ background: #212121;
100
+ color: #bdbdbd;
101
+ padding: 12px;
102
+ border-radius: 6px;
103
+ font-size: 0.9rem;
104
+ overflow: auto;
105
+ margin-top: 5px;
106
+ }
107
+ </style>
108
  </head>
109
  <body>
110
  <h2>Upload Files to Hugging Face Repository</h2>
 
118
  <label for="files">Select Files:</label>
119
  <input type="file" id="files" name="files" multiple required>
120
 
121
+ <button type="submit">Upload Files</button>
122
  </form>
123
 
124
  <div id="progress">
125
+ <h3>Upload Progress</h3>
126
  <pre id="clientProgressText">Client to Server: No upload in progress...</pre>
127
  <pre id="serverProgressText">Server to Storage: No upload in progress...</pre>
128
  </div>