madmax3366 commited on
Commit
8697998
·
verified ·
1 Parent(s): 397ee12

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +27 -17
index.html CHANGED
@@ -1,19 +1,29 @@
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
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width,initial-scale=1" />
6
+ <title>Demo</title>
7
+ <style>
8
+ html, body { height: 100%; margin: 0; background: #0b0b0b; }
9
+ .wrap { height: 100%; display: grid; place-items: center; }
10
+ video { max-width: 100%; max-height: 100vh; outline: none; }
11
+ h1 { position: absolute; top: 12px; left: 16px; margin: 0; font: 600 16px/1.2 system-ui, sans-serif; color: #cfcfcf; opacity: .7; }
12
+ </style>
13
+ </head>
14
+ <body>
15
+ <h1>Demo</h1>
16
+ <div class="wrap">
17
+ <video
18
+ src="demo.mp4"
19
+ autoplay
20
+ muted
21
+ loop
22
+ playsinline
23
+ controls
24
+ preload="metadata">
25
+ Your browser does not support the video tag.
26
+ </video>
27
+ </div>
28
+ </body>
29
+ </html>