Spaces:
Running
Running
undefined - Initial Deployment
Browse files- README.md +7 -5
- index.html +283 -19
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: static
|
7 |
pinned: false
|
|
|
|
|
8 |
---
|
9 |
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: deepsite-demo
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: pink
|
5 |
+
colorTo: green
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
+
tags:
|
9 |
+
- deepsite
|
10 |
---
|
11 |
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
@@ -1,19 +1,283 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>Cosmic Hello World</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
+
<style>
|
10 |
+
.gradient-text {
|
11 |
+
background: linear-gradient(90deg, #ff4d4d, #f9cb28, #8a2be2, #4b6cb7);
|
12 |
+
background-size: 300% 300%;
|
13 |
+
-webkit-background-clip: text;
|
14 |
+
background-clip: text;
|
15 |
+
color: transparent;
|
16 |
+
animation: gradient 8s ease infinite;
|
17 |
+
}
|
18 |
+
|
19 |
+
@keyframes gradient {
|
20 |
+
0% { background-position: 0% 50%; }
|
21 |
+
50% { background-position: 100% 50%; }
|
22 |
+
100% { background-position: 0% 50%; }
|
23 |
+
}
|
24 |
+
|
25 |
+
.particle {
|
26 |
+
position: absolute;
|
27 |
+
border-radius: 50%;
|
28 |
+
pointer-events: none;
|
29 |
+
}
|
30 |
+
|
31 |
+
.floating {
|
32 |
+
animation: float 6s ease-in-out infinite;
|
33 |
+
}
|
34 |
+
|
35 |
+
@keyframes float {
|
36 |
+
0% { transform: translateY(0px); }
|
37 |
+
50% { transform: translateY(-20px); }
|
38 |
+
100% { transform: translateY(0px); }
|
39 |
+
}
|
40 |
+
|
41 |
+
.pulse {
|
42 |
+
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
43 |
+
}
|
44 |
+
|
45 |
+
@keyframes pulse {
|
46 |
+
0%, 100% { opacity: 1; }
|
47 |
+
50% { opacity: 0.5; }
|
48 |
+
}
|
49 |
+
</style>
|
50 |
+
</head>
|
51 |
+
<body class="bg-gray-900 min-h-screen flex flex-col items-center justify-center overflow-hidden relative">
|
52 |
+
<!-- Background particles -->
|
53 |
+
<div id="particles-container" class="absolute inset-0 overflow-hidden"></div>
|
54 |
+
|
55 |
+
<div class="z-10 text-center px-4 py-12 max-w-4xl mx-auto">
|
56 |
+
<!-- Animated title -->
|
57 |
+
<h1 class="gradient-text text-5xl md:text-7xl font-extrabold mb-8 floating">
|
58 |
+
Hello <span class="inline-block">World</span>!
|
59 |
+
</h1>
|
60 |
+
|
61 |
+
<!-- Interactive greeting card -->
|
62 |
+
<div class="bg-gradient-to-br from-gray-800 to-gray-900 rounded-2xl p-8 md:p-12 shadow-2xl border border-gray-700 transform transition-all duration-500 hover:scale-105">
|
63 |
+
<div class="flex justify-center mb-6">
|
64 |
+
<div class="w-24 h-24 rounded-full bg-gradient-to-r from-purple-500 to-pink-500 flex items-center justify-center shadow-lg pulse">
|
65 |
+
<i class="fas fa-globe-americas text-white text-4xl"></i>
|
66 |
+
</div>
|
67 |
+
</div>
|
68 |
+
|
69 |
+
<p class="text-gray-300 text-lg md:text-xl mb-8">
|
70 |
+
Welcome to this interactive cosmic greeting from the digital universe!
|
71 |
+
</p>
|
72 |
+
|
73 |
+
<div class="flex flex-wrap justify-center gap-4">
|
74 |
+
<button onclick="animateHello()" class="px-6 py-3 bg-gradient-to-r from-blue-500 to-purple-600 rounded-full text-white font-semibold hover:shadow-lg hover:shadow-purple-500/30 transition-all">
|
75 |
+
<i class="fas fa-magic mr-2"></i> Animate Greeting
|
76 |
+
</button>
|
77 |
+
|
78 |
+
<button onclick="toggleTheme()" class="px-6 py-3 bg-gradient-to-r from-yellow-500 to-orange-500 rounded-full text-white font-semibold hover:shadow-lg hover:shadow-orange-500/30 transition-all">
|
79 |
+
<i class="fas fa-moon mr-2"></i> Toggle Theme
|
80 |
+
</button>
|
81 |
+
|
82 |
+
<button onclick="createConfetti()" class="px-6 py-3 bg-gradient-to-r from-green-500 to-teal-500 rounded-full text-white font-semibold hover:shadow-lg hover:shadow-teal-500/30 transition-all">
|
83 |
+
<i class="fas fa-party-horn mr-2"></i> Celebrate!
|
84 |
+
</button>
|
85 |
+
</div>
|
86 |
+
</div>
|
87 |
+
|
88 |
+
<!-- Social links -->
|
89 |
+
<div class="mt-12 flex justify-center space-x-6">
|
90 |
+
<a href="#" class="text-gray-400 hover:text-white transition-colors">
|
91 |
+
<i class="fab fa-github text-2xl"></i>
|
92 |
+
</a>
|
93 |
+
<a href="#" class="text-gray-400 hover:text-white transition-colors">
|
94 |
+
<i class="fab fa-twitter text-2xl"></i>
|
95 |
+
</a>
|
96 |
+
<a href="#" class="text-gray-400 hover:text-white transition-colors">
|
97 |
+
<i class="fab fa-codepen text-2xl"></i>
|
98 |
+
</a>
|
99 |
+
<a href="#" class="text-gray-400 hover:text-white transition-colors">
|
100 |
+
<i class="fab fa-dev text-2xl"></i>
|
101 |
+
</a>
|
102 |
+
</div>
|
103 |
+
</div>
|
104 |
+
|
105 |
+
<script>
|
106 |
+
// Create background particles
|
107 |
+
function createParticles() {
|
108 |
+
const container = document.getElementById('particles-container');
|
109 |
+
const particleCount = window.innerWidth < 768 ? 30 : 50;
|
110 |
+
|
111 |
+
for (let i = 0; i < particleCount; i++) {
|
112 |
+
const particle = document.createElement('div');
|
113 |
+
particle.classList.add('particle');
|
114 |
+
|
115 |
+
// Random properties
|
116 |
+
const size = Math.random() * 5 + 1;
|
117 |
+
const posX = Math.random() * window.innerWidth;
|
118 |
+
const posY = Math.random() * window.innerHeight;
|
119 |
+
const opacity = Math.random() * 0.5 + 0.1;
|
120 |
+
const delay = Math.random() * 5;
|
121 |
+
const duration = Math.random() * 10 + 5;
|
122 |
+
|
123 |
+
// Apply styles
|
124 |
+
particle.style.width = `${size}px`;
|
125 |
+
particle.style.height = `${size}px`;
|
126 |
+
particle.style.left = `${posX}px`;
|
127 |
+
particle.style.top = `${posY}px`;
|
128 |
+
particle.style.opacity = opacity;
|
129 |
+
particle.style.background = `rgba(255, 255, 255, ${opacity})`;
|
130 |
+
particle.style.animation = `float ${duration}s ease-in-out ${delay}s infinite`;
|
131 |
+
|
132 |
+
container.appendChild(particle);
|
133 |
+
}
|
134 |
+
}
|
135 |
+
|
136 |
+
// Animate the hello world text
|
137 |
+
function animateHello() {
|
138 |
+
const hello = document.querySelector('h1');
|
139 |
+
hello.classList.add('animate__animated', 'animate__rubberBand');
|
140 |
+
|
141 |
+
setTimeout(() => {
|
142 |
+
hello.classList.remove('animate__animated', 'animate__rubberBand');
|
143 |
+
}, 1000);
|
144 |
+
|
145 |
+
// Add temporary floating hearts
|
146 |
+
for (let i = 0; i < 10; i++) {
|
147 |
+
createFloatingHeart();
|
148 |
+
}
|
149 |
+
}
|
150 |
+
|
151 |
+
// Create floating hearts
|
152 |
+
function createFloatingHeart() {
|
153 |
+
const heart = document.createElement('div');
|
154 |
+
heart.innerHTML = '<i class="fas fa-heart text-pink-500"></i>';
|
155 |
+
heart.classList.add('particle', 'text-2xl');
|
156 |
+
|
157 |
+
const startX = Math.random() * window.innerWidth;
|
158 |
+
heart.style.left = `${startX}px`;
|
159 |
+
heart.style.bottom = '0';
|
160 |
+
heart.style.opacity = '0';
|
161 |
+
|
162 |
+
document.body.appendChild(heart);
|
163 |
+
|
164 |
+
// Animate heart
|
165 |
+
setTimeout(() => {
|
166 |
+
heart.style.transition = 'all 2s ease-out';
|
167 |
+
heart.style.opacity = '1';
|
168 |
+
heart.style.bottom = `${window.innerHeight}px`;
|
169 |
+
heart.style.transform = `translateX(${Math.random() * 100 - 50}px)`;
|
170 |
+
}, 10);
|
171 |
+
|
172 |
+
// Remove after animation
|
173 |
+
setTimeout(() => {
|
174 |
+
heart.remove();
|
175 |
+
}, 2000);
|
176 |
+
}
|
177 |
+
|
178 |
+
// Create confetti effect
|
179 |
+
function createConfetti() {
|
180 |
+
const colors = ['#f44336', '#e91e63', '#9c27b0', '#673ab7', '#3f51b5', '#2196f3', '#03a9f4', '#00bcd4', '#009688', '#4CAF50', '#8BC34A', '#CDDC39', '#FFEB3B', '#FFC107', '#FF9800'];
|
181 |
+
|
182 |
+
for (let i = 0; i < 100; i++) {
|
183 |
+
const confetti = document.createElement('div');
|
184 |
+
confetti.classList.add('particle');
|
185 |
+
|
186 |
+
const size = Math.random() * 10 + 5;
|
187 |
+
const posX = Math.random() * window.innerWidth;
|
188 |
+
const color = colors[Math.floor(Math.random() * colors.length)];
|
189 |
+
const shape = Math.random() > 0.5 ? '50%' : '0';
|
190 |
+
|
191 |
+
confetti.style.width = `${size}px`;
|
192 |
+
confetti.style.height = `${size}px`;
|
193 |
+
confetti.style.left = `${posX}px`;
|
194 |
+
confetti.style.top = `-10px`;
|
195 |
+
confetti.style.backgroundColor = color;
|
196 |
+
confetti.style.borderRadius = shape;
|
197 |
+
confetti.style.transform = `rotate(${Math.random() * 360}deg)`;
|
198 |
+
|
199 |
+
document.body.appendChild(confetti);
|
200 |
+
|
201 |
+
// Animate confetti falling
|
202 |
+
setTimeout(() => {
|
203 |
+
confetti.style.transition = `all ${Math.random() * 3 + 2}s cubic-bezier(0.1, 0.8, 0.3, 1)`;
|
204 |
+
confetti.style.top = `${window.innerHeight + 10}px`;
|
205 |
+
confetti.style.transform = `rotate(${Math.random() * 720}deg) translateX(${Math.random() * 200 - 100}px)`;
|
206 |
+
}, 10);
|
207 |
+
|
208 |
+
// Remove after animation
|
209 |
+
setTimeout(() => {
|
210 |
+
confetti.remove();
|
211 |
+
}, 5000);
|
212 |
+
}
|
213 |
+
}
|
214 |
+
|
215 |
+
// Toggle between dark and light theme
|
216 |
+
function toggleTheme() {
|
217 |
+
document.body.classList.toggle('bg-gray-100');
|
218 |
+
document.body.classList.toggle('text-gray-900');
|
219 |
+
|
220 |
+
const card = document.querySelector('.bg-gradient-to-br');
|
221 |
+
if (document.body.classList.contains('bg-gray-100')) {
|
222 |
+
card.classList.remove('from-gray-800', 'to-gray-900', 'border-gray-700');
|
223 |
+
card.classList.add('from-gray-100', 'to-gray-200', 'border-gray-300');
|
224 |
+
|
225 |
+
// Update text colors
|
226 |
+
const texts = document.querySelectorAll('.text-gray-300');
|
227 |
+
texts.forEach(text => {
|
228 |
+
text.classList.remove('text-gray-300');
|
229 |
+
text.classList.add('text-gray-700');
|
230 |
+
});
|
231 |
+
|
232 |
+
// Update particles
|
233 |
+
const particles = document.querySelectorAll('.particle');
|
234 |
+
particles.forEach(particle => {
|
235 |
+
particle.style.background = `rgba(0, 0, 0, ${Math.random() * 0.3 + 0.1})`;
|
236 |
+
});
|
237 |
+
} else {
|
238 |
+
card.classList.add('from-gray-800', 'to-gray-900', 'border-gray-700');
|
239 |
+
card.classList.remove('from-gray-100', 'to-gray-200', 'border-gray-300');
|
240 |
+
|
241 |
+
// Update text colors
|
242 |
+
const texts = document.querySelectorAll('.text-gray-700');
|
243 |
+
texts.forEach(text => {
|
244 |
+
text.classList.remove('text-gray-700');
|
245 |
+
text.classList.add('text-gray-300');
|
246 |
+
});
|
247 |
+
|
248 |
+
// Update particles
|
249 |
+
const particles = document.querySelectorAll('.particle');
|
250 |
+
particles.forEach(particle => {
|
251 |
+
particle.style.background = `rgba(255, 255, 255, ${Math.random() * 0.5 + 0.1})`;
|
252 |
+
});
|
253 |
+
}
|
254 |
+
}
|
255 |
+
|
256 |
+
// Initialize on load
|
257 |
+
window.addEventListener('load', () => {
|
258 |
+
createParticles();
|
259 |
+
|
260 |
+
// Make the globe icon spin continuously
|
261 |
+
const globe = document.querySelector('.fa-globe-americas');
|
262 |
+
globe.style.animation = 'spin 10s linear infinite';
|
263 |
+
|
264 |
+
// Add keyframes for spinning
|
265 |
+
const style = document.createElement('style');
|
266 |
+
style.innerHTML = `
|
267 |
+
@keyframes spin {
|
268 |
+
from { transform: rotate(0deg); }
|
269 |
+
to { transform: rotate(360deg); }
|
270 |
+
}
|
271 |
+
`;
|
272 |
+
document.head.appendChild(style);
|
273 |
+
});
|
274 |
+
|
275 |
+
// Recreate particles on resize
|
276 |
+
window.addEventListener('resize', () => {
|
277 |
+
const container = document.getElementById('particles-container');
|
278 |
+
container.innerHTML = '';
|
279 |
+
createParticles();
|
280 |
+
});
|
281 |
+
</script>
|
282 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=byhwdy/deepsite-demo" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
283 |
+
</html>
|