MySafeCode commited on
Commit
ea72427
·
verified ·
1 Parent(s): 65e4419

Create index.html

Browse files
Files changed (1) hide show
  1. index.html +107 -0
index.html ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>Repurposed Suno Cover Player</title>
7
+ <style>
8
+ body {
9
+ margin: 0;
10
+ padding: 20px;
11
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
12
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
13
+ min-height: 100vh;
14
+ }
15
+ .container {
16
+ max-width: 1200px;
17
+ margin: 0 auto;
18
+ background: white;
19
+ border-radius: 12px;
20
+ box-shadow: 0 20px 60px rgba(0,0,0,0.3);
21
+ overflow: hidden;
22
+ }
23
+ header {
24
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
25
+ color: white;
26
+ padding: 30px 40px;
27
+ text-align: center;
28
+ }
29
+ h1 {
30
+ margin: 0;
31
+ font-size: 2.5em;
32
+ }
33
+ .description {
34
+ color: rgba(255,255,255,0.9);
35
+ max-width: 600px;
36
+ margin: 10px auto 0;
37
+ line-height: 1.6;
38
+ }
39
+ .app-frame {
40
+ padding: 20px;
41
+ background: #f8f9fa;
42
+ }
43
+ iframe {
44
+ width: 100%;
45
+ height: 600px;
46
+ border: none;
47
+ border-radius: 8px;
48
+ box-shadow: 0 4px 12px rgba(0,0,0,0.1);
49
+ }
50
+ footer {
51
+ text-align: center;
52
+ padding: 20px;
53
+ color: #666;
54
+ font-size: 0.9em;
55
+ border-top: 1px solid #eee;
56
+ }
57
+ @media (max-width: 768px) {
58
+ iframe {
59
+ height: 500px;
60
+ }
61
+ h1 {
62
+ font-size: 2em;
63
+ }
64
+ }
65
+ </style>
66
+ </head>
67
+ <body>
68
+ <div class="container">
69
+ <header>
70
+ <h1>🎵 Repurposed Suno Cover Player</h1>
71
+ <p class="description">
72
+ A creative tool for generating and playing AI-powered music covers.
73
+ This interface wraps the original Gradio application in a cleaner HTML layout.
74
+ </p>
75
+ </header>
76
+
77
+ <div class="app-frame">
78
+ <iframe src=""></iframe>
79
+ </div>
80
+
81
+ <footer>
82
+ <p>Powered by Hugging Face Spaces | Original Gradio app hosted within this HTML wrapper</p>
83
+ </footer>
84
+ </div>
85
+
86
+ <script>
87
+ // Auto-calculate the iframe URL based on current location
88
+ const currentUrl = window.location.href;
89
+ const baseUrl = currentUrl.split('/').slice(0, -1).join('/');
90
+ const iframe = document.querySelector('iframe');
91
+
92
+ // Set iframe source to the Gradio app
93
+ // In Spaces, the Gradio app would be available at the same domain
94
+ iframe.src = window.location.href.replace('https://1hit.no/audio/suno/';
95
+
96
+ // Or if the Gradio app is running on a different port (for local testing):
97
+ // iframe.src = 'http://localhost:7860';
98
+
99
+ // Handle iframe loading messages
100
+ window.addEventListener('message', function(event) {
101
+ if (event.data && event.data.type === 'gradio_height') {
102
+ iframe.style.height = event.data.height + 'px';
103
+ }
104
+ });
105
+ </script>
106
+ </body>
107
+ </html>