MisterProton commited on
Commit
5c9a15e
1 Parent(s): d671ed9

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +43 -18
index.html CHANGED
@@ -1,19 +1,44 @@
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, viewport-fit=cover">
6
+ <title>text to image models playground</title>
7
+ <style>
8
+ body, html {
9
+ margin: 0;
10
+ padding: 0;
11
+ height: 100%;
12
+
13
+ }
14
+ iframe {
15
+ position: absolute;
16
+ top: 0;
17
+ left: 0;
18
+ width: 100%;
19
+ height: 730px;
20
+ border: none;
21
+ }
22
+ </style>
23
+ </head>
24
+ <body>
25
+ <dialog id="myDialog" style="border: none; border-radius: 5px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); padding: 20px; max-width: 300px;">
26
+ <form method="dialog" style="position: relative;">
27
+ <button id="closeDialogButton" class="close-button" style="position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 18px; cursor: pointer;">✖</button>
28
+ <p style="margin: 20px 0 0;">Visit <a href="https://xyplon.web.app" target="_blank" style="color: #007BFF; text-decoration: none;">official website</a> for more tools and faster inference.</p>
29
+ </form>
30
+ </dialog>
31
+
32
+ <script>
33
+ const dialog = document.getElementById('myDialog');
34
+ const closeDialogButton = document.getElementById('closeDialogButton');
35
+ window.addEventListener('load', () => {
36
+ dialog.showModal();
37
+ });
38
+ closeDialogButton.addEventListener('click', () => {
39
+ dialog.close();
40
+ });
41
+ </script>
42
+ <iframe src="https://xyplon.web.app/generate"></iframe>
43
+ </body>
44
  </html>