Spaces:
Running
Running
Update index.html
Browse files- index.html +33 -131
index.html
CHANGED
@@ -1,151 +1,53 @@
|
|
1 |
-
#### Конечный:
|
2 |
<!DOCTYPE html>
|
3 |
<html lang="en">
|
4 |
<head>
|
5 |
<meta charset="UTF-8">
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7 |
-
<title>
|
|
|
|
|
8 |
<style>
|
9 |
-
/* Общие стили для страницы */
|
10 |
body {
|
11 |
-
|
12 |
-
|
13 |
-
background-color: #1e1e1e;
|
14 |
-
color: #00ff00;
|
15 |
-
line-height: 1.6;
|
16 |
-
display: flex;
|
17 |
-
flex-direction: column;
|
18 |
-
height: 100vh;
|
19 |
-
overflow: hidden;
|
20 |
-
}
|
21 |
-
|
22 |
-
/* Шапка */
|
23 |
-
header {
|
24 |
-
padding: 1rem;
|
25 |
-
background-color: #111;
|
26 |
-
color: #00ff00;
|
27 |
-
font-size: 1.5rem;
|
28 |
-
text-align: center;
|
29 |
-
text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
|
30 |
-
}
|
31 |
-
|
32 |
-
/* Основная часть */
|
33 |
-
main {
|
34 |
-
display: flex;
|
35 |
-
flex-direction: column;
|
36 |
-
flex: 1;
|
37 |
-
justify-content: center;
|
38 |
-
align-items: center;
|
39 |
-
background: linear-gradient(45deg, #111, #333);
|
40 |
-
border-top: 1px solid #00ff00;
|
41 |
-
padding: 1rem;
|
42 |
-
}
|
43 |
-
|
44 |
-
/* Ифрейм для контента */
|
45 |
-
.space-iframe {
|
46 |
-
width: 100%;
|
47 |
-
height: 100%;
|
48 |
-
max-height: calc(100vh - 80px); /* Используем max-height для ограничения */
|
49 |
-
border: 2px solid #00ff00;
|
50 |
-
box-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
|
51 |
-
transition: transform 0.3s ease;
|
52 |
-
border-radius: 8px;
|
53 |
-
}
|
54 |
-
|
55 |
-
.space-iframe:hover {
|
56 |
-
transform: scale(1.02);
|
57 |
}
|
58 |
-
|
59 |
-
/* Спиннер, который показывается при загрузке */
|
60 |
-
.spinner-overlay {
|
61 |
-
position: fixed;
|
62 |
-
top: 0;
|
63 |
-
left: 0;
|
64 |
width: 100%;
|
65 |
-
height:
|
66 |
-
|
67 |
-
color: #00ff00;
|
68 |
-
display: flex;
|
69 |
-
justify-content: center;
|
70 |
-
align-items: center;
|
71 |
-
z-index: 1000;
|
72 |
-
opacity: 0;
|
73 |
-
pointer-events: none;
|
74 |
-
transition: opacity 0.5s ease-in-out;
|
75 |
-
font-size: 2rem;
|
76 |
-
}
|
77 |
-
|
78 |
-
.spinner-overlay.visible {
|
79 |
-
opacity: 1;
|
80 |
-
pointer-events: auto;
|
81 |
-
}
|
82 |
-
|
83 |
-
/* Крутой хакерский стиль для текста */
|
84 |
-
.hacker-text {
|
85 |
-
font-size: 2rem;
|
86 |
-
text-align: center;
|
87 |
-
color: #00ff00;
|
88 |
-
text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
|
89 |
-
animation: text-blink 1s infinite alternate;
|
90 |
-
margin-bottom: 1rem;
|
91 |
-
word-break: break-word; /* Добавляем перенос слов */
|
92 |
-
}
|
93 |
-
|
94 |
-
/* Анимация мигающего текста */
|
95 |
-
@keyframes text-blink {
|
96 |
-
0% { opacity: 0.7; }
|
97 |
-
100% { opacity: 1; }
|
98 |
}
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
header {
|
103 |
-
font-size: 1.2rem;
|
104 |
}
|
105 |
-
|
106 |
-
|
107 |
-
|
|
|
108 |
}
|
109 |
}
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
header {
|
114 |
-
font-size: 1rem;
|
115 |
-
padding: 0.5rem;
|
116 |
}
|
117 |
-
|
118 |
-
|
119 |
-
|
|
|
120 |
}
|
121 |
}
|
122 |
</style>
|
123 |
</head>
|
124 |
-
<body>
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
<script>
|
137 |
-
window.onload = function() {
|
138 |
-
const spinner = document.querySelector('.spinner-overlay');
|
139 |
-
const iframe = document.querySelector('.space-iframe');
|
140 |
-
|
141 |
-
iframe.onload = function() {
|
142 |
-
spinner.classList.remove('visible');
|
143 |
-
};
|
144 |
-
|
145 |
-
setTimeout(() => {
|
146 |
-
spinner.classList.add('visible');
|
147 |
-
}, 100); // Уменьшаем время задержки
|
148 |
-
};
|
149 |
-
</script>
|
150 |
</body>
|
151 |
</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>Gradio App Demo</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<script type="module" src="https://gradio.s3-us-west-2.amazonaws.com/5.5.0/gradio.js"></script>
|
9 |
<style>
|
|
|
10 |
body {
|
11 |
+
background-color: #1a1a1a;
|
12 |
+
color: #e2e8f0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
}
|
14 |
+
iframe {
|
|
|
|
|
|
|
|
|
|
|
15 |
width: 100%;
|
16 |
+
height: 100vh;
|
17 |
+
border: none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
}
|
19 |
+
@media (min-width: 640px) {
|
20 |
+
iframe {
|
21 |
+
height: 80vh;
|
|
|
|
|
22 |
}
|
23 |
+
}
|
24 |
+
@media (min-width: 768px) {
|
25 |
+
iframe {
|
26 |
+
height: 70vh;
|
27 |
}
|
28 |
}
|
29 |
+
@media (min-width: 1024px) {
|
30 |
+
iframe {
|
31 |
+
height: 60vh;
|
|
|
|
|
|
|
32 |
}
|
33 |
+
}
|
34 |
+
@media (min-width: 1280px) {
|
35 |
+
iframe {
|
36 |
+
height: 50vh;
|
37 |
}
|
38 |
}
|
39 |
</style>
|
40 |
</head>
|
41 |
+
<body class="flex items-center justify-center min-h-screen">
|
42 |
+
<!-- Gradio App Component -->
|
43 |
+
<!-- <gradio-app src="https://qwen-qwen2-5-coder-demo.hf.space" data-props='{"theme": "dark"}'></gradio-app> -->
|
44 |
+
|
45 |
+
<!-- Iframe Component -->
|
46 |
+
<iframe
|
47 |
+
src="https://qwen-qwen2-5-coder-demo.hf.space"
|
48 |
+
title="Qwen Qwen2-5 Coder Demo"
|
49 |
+
aria-label="Qwen Qwen2-5 Coder Demo"
|
50 |
+
frameborder="0"
|
51 |
+
></iframe>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
</body>
|
53 |
</html>
|