abeea commited on
Commit
1d34382
·
verified ·
1 Parent(s): 0892251

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +45 -19
index.html CHANGED
@@ -1,19 +1,45 @@
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 lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Responsive Iframe Example</title>
7
+ <style>
8
+ body {
9
+ display: flex;
10
+ justify-content: center;
11
+ align-items: center;
12
+ min-height: 100vh;
13
+ margin: 0;
14
+ background: #f5f5f5;
15
+ padding: 10px;
16
+ }
17
+ .iframe-container {
18
+ position: relative;
19
+ width: 100%;
20
+ max-width: 700px; /* limit width on large screens */
21
+ padding-top: 61.5%; /* keeps aspect ratio (430/700 ≈ 0.615) */
22
+ box-shadow: 0 4px 12px rgba(0,0,0,0.2);
23
+ border-radius: 10px;
24
+ overflow: hidden;
25
+ }
26
+ .iframe-container iframe {
27
+ position: absolute;
28
+ top: 0;
29
+ left: 0;
30
+ width: 100%;
31
+ height: 100%;
32
+ border: 0;
33
+ border-radius: 10px;
34
+ }
35
+ </style>
36
+ </head>
37
+ <body>
38
+ <div class="iframe-container">
39
+ <iframe
40
+ src="https://vikingf1le.us.to/f/CopUxgSPv4"
41
+ allowfullscreen>
42
+ </iframe>
43
+ </div>
44
+ </body>
45
+ </html>