SerdintLex commited on
Commit
b070945
·
verified ·
1 Parent(s): c871473

make it better in any way you want. huge improvement im waiting - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +576 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Google
3
- emoji: 🐢
4
- colorFrom: purple
5
- colorTo: purple
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: google
3
+ emoji: 🐳
4
+ colorFrom: red
5
+ colorTo: blue
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,576 @@
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>Google</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <style>
9
+ .glass-btn {
10
+ backdrop-filter: blur(24px) saturate(200%);
11
+ background: rgba(255, 255, 255, 0.3);
12
+ border: 1px solid rgba(255, 255, 255, 0.25);
13
+ box-shadow:
14
+ 0 4px 30px rgba(0, 0, 0, 0.1),
15
+ inset 0 0 0 1px rgba(255, 255, 255, 0.2);
16
+ transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
17
+ transform-style: preserve-3d;
18
+ will-change: transform, box-shadow, background;
19
+ }
20
+
21
+ .glass-btn:hover {
22
+ background: rgba(255, 255, 255, 0.45);
23
+ transform: translateY(-4px) scale(1.02);
24
+ box-shadow:
25
+ 0 8px 40px rgba(0, 0, 0, 0.15),
26
+ inset 0 0 0 1px rgba(255, 255, 255, 0.3);
27
+ }
28
+
29
+ .glass-btn:active {
30
+ transform: translateY(0) scale(0.98);
31
+ }
32
+
33
+ .floating-dots {
34
+ position: absolute;
35
+ width: 100%;
36
+ height: 100%;
37
+ overflow: hidden;
38
+ z-index: -1;
39
+ }
40
+
41
+ .dot {
42
+ position: absolute;
43
+ background: rgba(255, 255, 255, 0.95);
44
+ border-radius: 50%;
45
+ filter: blur(4px);
46
+ animation: float-up 15s ease-in-out infinite;
47
+ box-shadow:
48
+ 0 0 30px rgba(255,255,255,0.8),
49
+ inset 0 0 10px rgba(255,255,255,0.5);
50
+ opacity: 0.9;
51
+ will-change: transform;
52
+ mix-blend-mode: overlay;
53
+ }
54
+
55
+ @keyframes float-up {
56
+ 0% {
57
+ transform: translateY(100vh) scale(0);
58
+ opacity: 0;
59
+ }
60
+ 10% {
61
+ opacity: 0.7;
62
+ }
63
+ 90% {
64
+ opacity: 0.7;
65
+ }
66
+ 100% {
67
+ transform: translateY(-20vh) scale(1.5);
68
+ opacity: 0;
69
+ }
70
+ }
71
+
72
+ :root {
73
+ --primary-color: #4285F4;
74
+ --primary-light: #EBF2FF;
75
+ --glass-blur: 5px;
76
+ }
77
+
78
+ body {
79
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
80
+ min-height: 100vh;
81
+ }
82
+
83
+ body.bg-gradient {
84
+ background: linear-gradient(-45deg, #f0f4ff, #e6f0ff, #f5f9ff);
85
+ background-size: 400% 400%;
86
+ animation: gradient 15s ease infinite;
87
+ }
88
+
89
+ @keyframes gradient {
90
+ 0% { background-position: 0% 50%; }
91
+ 50% { background-position: 100% 50%; }
92
+ 100% { background-position: 0% 50%; }
93
+ }
94
+ @keyframes gradient {
95
+ 0% { background-position: 0% 50%; }
96
+ 50% { background-position: 100% 50%; }
97
+ 100% { background-position: 0% 50%; }
98
+ }
99
+ .search-box {
100
+ backdrop-filter: blur(24px) saturate(200%);
101
+ background: rgba(255, 255, 255, 0.5);
102
+ border: 1px solid rgba(255, 255, 255, 0.3);
103
+ box-shadow:
104
+ 0 4px 30px rgba(0, 0, 0, 0.1),
105
+ inset 0 0 0 1px rgba(255, 255, 255, 0.2);
106
+ transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
107
+ transform-style: preserve-3d;
108
+ }
109
+ .search-box:hover {
110
+ transform: translateY(-4px) scale(1.02);
111
+ background: rgba(255, 255, 255, 0.7);
112
+ box-shadow:
113
+ 0 8px 40px rgba(0, 0, 0, 0.15),
114
+ inset 0 0 0 1px rgba(255, 255, 255, 0.3);
115
+ }
116
+ .btn {
117
+ transition: all 0.3s ease;
118
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
119
+ font-weight: 500;
120
+ }
121
+ .btn:hover {
122
+ transform: translateY(-2px);
123
+ box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
124
+ }
125
+ @keyframes float {
126
+ 0%, 100% {
127
+ transform: translateY(0px) rotate(0deg) scale(1);
128
+ filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
129
+ }
130
+ 50% {
131
+ transform: translateY(-20px) rotate(3deg) scale(1.03);
132
+ filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
133
+ }
134
+ }
135
+ .animate-float {
136
+ animation: float 6s ease-in-out infinite;
137
+ }
138
+
139
+ @keyframes bounce {
140
+ 0%, 100% { transform: translateY(0); }
141
+ 50% { transform: translateY(-20px); }
142
+ }
143
+ .animate-bounce {
144
+ animation: bounce 2s ease infinite;
145
+ }
146
+
147
+ @keyframes pulse {
148
+ 0%, 100% { transform: scale(1); }
149
+ 50% { transform: scale(1.05); }
150
+ }
151
+ .animate-pulse {
152
+ animation: pulse 3s ease infinite;
153
+ }
154
+
155
+ .glass-btn, .search-box {
156
+ backdrop-filter: blur(var(--glass-blur));
157
+ }
158
+
159
+ #customization-panel {
160
+ transform-origin: left center;
161
+ opacity: 0;
162
+ transform: translateX(-100%) scale(0.95);
163
+ transition: all 0.6s cubic-bezier(0.68,-0.6,0.32,1.6);
164
+ left: 0;
165
+ right: auto;
166
+ backdrop-filter: blur(25px) saturate(200%);
167
+ background: rgba(255, 255, 255, 0.85);
168
+ border-right: 1px solid rgba(255, 255, 255, 0.3);
169
+ box-shadow: 20px 0 50px rgba(0,0,0,0.1);
170
+ }
171
+
172
+ #customization-panel.show {
173
+ opacity: 1;
174
+ transform: translateX(0) scale(1);
175
+ box-shadow: 30px 0 60px rgba(0,0,0,0.15);
176
+ }
177
+
178
+ #customization-panel.show {
179
+ opacity: 1;
180
+ transform: translateX(0) scale(1);
181
+ box-shadow: 20px 0 50px rgba(0,0,0,0.1);
182
+ }
183
+ </style>
184
+ </head>
185
+ <body class="flex flex-col min-h-screen text-gray-800 relative overflow-hidden bg-gradient">
186
+ <div class="floating-dots" id="dots-container"></div>
187
+ <div class="absolute inset-0 overflow-hidden pointer-events-none">
188
+ <div class="absolute inset-0 bg-gradient-to-b from-transparent via-transparent to-white/10 opacity-30"></div>
189
+ </div>
190
+ <!-- Header -->
191
+ <header class="flex justify-between items-center p-6">
192
+ <div></div>
193
+ <div class="flex space-x-6 items-center text-sm">
194
+ <button id="settings-btn" class="glass-btn p-3 rounded-full hover:bg-white/30 transition-all duration-300">
195
+ <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
196
+ <path fill-rule="evenodd" d="M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 01-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 01.947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 012.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 012.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 01.947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 01-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 01-2.287-.947zM10 13a3 3 0 100-6 3 3 0 000 6z" clip-rule="evenodd" />
197
+ </svg>
198
+ </button>
199
+ </div>
200
+ </header>
201
+
202
+ <!-- Customization Panel -->
203
+ <div id="customization-panel" class="fixed top-0 right-0 h-full w-80 bg-white/90 backdrop-blur-lg shadow-xl z-50 p-6 overflow-y-auto">
204
+ <div class="flex justify-between items-center mb-6">
205
+ <h2 class="text-xl font-semibold">Customize Appearance</h2>
206
+ <button id="close-panel" class="p-2 rounded-full hover:bg-gray-100">
207
+ <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
208
+ <path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd" />
209
+ </svg>
210
+ </button>
211
+ </div>
212
+
213
+ <div class="space-y-6">
214
+ <div>
215
+ <h3 class="font-medium mb-3">Background</h3>
216
+ <div class="grid grid-cols-3 gap-3">
217
+ <button data-bg="gradient" class="bg-gradient-to-r from-blue-100 to-purple-100 h-12 rounded-lg border"></button>
218
+ <button data-bg="solid-blue" class="bg-blue-50 h-12 rounded-lg border"></button>
219
+ <button data-bg="solid-gray" class="bg-gray-50 h-12 rounded-lg border"></button>
220
+ </div>
221
+ </div>
222
+
223
+ <div>
224
+ <h3 class="font-medium mb-3">Animation Style</h3>
225
+ <select id="animation-style" class="w-full p-2 border rounded-lg">
226
+ <option value="float">Floating</option>
227
+ <option value="bounce">Bounce</option>
228
+ <option value="pulse">Pulse</option>
229
+ <option value="none">None</option>
230
+ </select>
231
+ </div>
232
+
233
+ <div>
234
+ <h3 class="font-medium mb-3">Glass Effect</h3>
235
+ <input type="range" id="glass-effect" min="0" max="10" value="5" class="w-full">
236
+ </div>
237
+
238
+ <div>
239
+ <h3 class="font-medium mb-3">Color Scheme</h3>
240
+ <div class="grid grid-cols-7 gap-2">
241
+ <button data-color="blue" class="bg-blue-500 h-8 rounded-full transition-transform hover:scale-110"></button>
242
+ <button data-color="purple" class="bg-purple-500 h-8 rounded-full transition-transform hover:scale-110"></button>
243
+ <button data-color="green" class="bg-green-500 h-8 rounded-full transition-transform hover:scale-110"></button>
244
+ <button data-color="red" class="bg-red-500 h-8 rounded-full transition-transform hover:scale-110"></button>
245
+ <button data-color="indigo" class="bg-indigo-500 h-8 rounded-full transition-transform hover:scale-110"></button>
246
+ <button data-color="pink" class="bg-pink-500 h-8 rounded-full transition-transform hover:scale-110"></button>
247
+ <button data-color="teal" class="bg-teal-500 h-8 rounded-full transition-transform hover:scale-110"></button>
248
+ <button data-color="yellow" class="bg-yellow-400 h-8 rounded-full transition-transform hover:scale-110"></button>
249
+ <button data-color="orange" class="bg-orange-500 h-8 rounded-full transition-transform hover:scale-110"></button>
250
+ <button data-color="cyan" class="bg-cyan-500 h-8 rounded-full transition-transform hover:scale-110"></button>
251
+ <button data-color="fuchsia" class="bg-fuchsia-500 h-8 rounded-full transition-transform hover:scale-110"></button>
252
+ <button data-color="rose" class="bg-rose-500 h-8 rounded-full transition-transform hover:scale-110"></button>
253
+ <button data-color="violet" class="bg-violet-500 h-8 rounded-full transition-transform hover:scale-110"></button>
254
+ <button data-color="emerald" class="bg-emerald-500 h-8 rounded-full transition-transform hover:scale-110"></button>
255
+ </div>
256
+
257
+ <div>
258
+ <h3 class="font-medium mb-3">Color Intensity</h3>
259
+ <input type="range" id="color-intensity" min="100" max="900" step="100" value="500" class="w-full">
260
+ </div>
261
+
262
+ <div>
263
+ <h3 class="font-medium mb-3">Background Image</h3>
264
+ <div class="grid grid-cols-3 gap-3">
265
+ <button data-bg-img="mountains" class="bg-gray-200 h-12 rounded-lg border overflow-hidden">
266
+ <div class="h-full bg-gradient-to-br from-blue-400 to-purple-600"></div>
267
+ </button>
268
+ <button data-bg-img="beach" class="bg-gray-200 h-12 rounded-lg border overflow-hidden">
269
+ <div class="h-full bg-gradient-to-br from-blue-300 to-amber-200"></div>
270
+ </button>
271
+ <button data-bg-img="forest" class="bg-gray-200 h-12 rounded-lg border overflow-hidden">
272
+ <div class="h-full bg-gradient-to-br from-green-500 to-emerald-800"></div>
273
+ </button>
274
+ <button data-bg-img="sunset" class="bg-gray-200 h-12 rounded-lg border overflow-hidden">
275
+ <div class="h-full bg-gradient-to-br from-orange-400 to-pink-600"></div>
276
+ </button>
277
+ <button data-bg-img="space" class="bg-gray-200 h-12 rounded-lg border overflow-hidden">
278
+ <div class="h-full bg-gradient-to-br from-indigo-900 to-purple-900"></div>
279
+ </button>
280
+ <button data-bg-img="none" class="bg-gray-200 h-12 rounded-lg border flex items-center justify-center">
281
+ <span class="text-xs">None</span>
282
+ </button>
283
+ </div>
284
+ </div>
285
+ </div>
286
+
287
+ <div>
288
+ <h3 class="font-medium mb-3">Bubble Effects</h3>
289
+ <div class="space-y-3">
290
+ <div>
291
+ <label class="block text-sm mb-1">Bubble Count</label>
292
+ <input type="range" id="bubble-count" min="5" max="50" value="20" class="w-full">
293
+ </div>
294
+ <div>
295
+ <label class="block text-sm mb-1">Bubble Speed</label>
296
+ <input type="range" id="bubble-speed" min="5" max="30" value="15" class="w-full">
297
+ </div>
298
+ <div>
299
+ <label class="block text-sm mb-1">Bubble Size</label>
300
+ <input type="range" id="bubble-size" min="2" max="20" value="10" class="w-full">
301
+ </div>
302
+ </div>
303
+ </div>
304
+ </div>
305
+ </div>
306
+
307
+ <!-- Main Content -->
308
+ <main class="flex-grow flex flex-col items-center justify-center px-4 -mt-20 relative z-10">
309
+ <div class="mb-8 transform transition duration-500 hover:scale-105 animate-float">
310
+ <img src="https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png" alt="Google" class="w-64 md:w-72">
311
+ </div>
312
+
313
+ <!-- Search Box -->
314
+ <div class="w-full max-w-2xl mb-12">
315
+ <div class="relative flex items-center search-box bg-white rounded-2xl px-6 py-4 mb-6 w-full max-w-xl mx-auto">
316
+ <svg class="w-5 h-5 text-gray-400 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
317
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path>
318
+ </svg>
319
+ <input type="text" class="flex-grow outline-none bg-transparent text-lg placeholder-gray-400" placeholder="Search">
320
+ </div>
321
+ <div class="flex justify-center space-x-4">
322
+ <button class="glass-btn px-6 py-3 rounded-full text-sm font-medium hover:shadow-lg transition-all duration-300">
323
+ Google Search
324
+ </button>
325
+ <button class="glass-btn px-6 py-3 rounded-full text-sm font-medium hover:shadow-lg transition-all duration-300 ml-4">
326
+ I'm Feeling Lucky
327
+ </button>
328
+ </div>
329
+ </div>
330
+
331
+
332
+ <!-- Language Section -->
333
+ <div class="text-sm text-gray-600 mb-8">
334
+ <span>Google offered in: </span>
335
+ <a href="#" class="text-blue-600 hover:underline">Español</a>
336
+ <a href="#" class="text-blue-600 hover:underline ml-2">Français</a>
337
+ <a href="#" class="text-blue-600 hover:underline ml-2">中文</a>
338
+ </div>
339
+ </main>
340
+
341
+ <!-- Footer -->
342
+ <footer class="bg-white/50 text-xs text-gray-600 border-t border-gray-100 backdrop-blur-sm overflow-hidden transition-all duration-500" style="height: 3.5rem; padding: 0.5rem 2rem;">
343
+ <div class="h-full flex flex-col justify-center">
344
+ <div class="flex justify-between items-center">
345
+ <span class="opacity-0 md:opacity-100">Google Footer</span>
346
+ <button id="toggle-footer" class="text-gray-500 hover:text-gray-700 transition-transform duration-300">
347
+ <svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" viewBox="0 0 20 20" fill="currentColor">
348
+ <path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" />
349
+ </svg>
350
+ </button>
351
+ </div>
352
+ <div class="flex flex-col md:flex-row md:justify-between">
353
+ <div class="flex flex-wrap gap-x-6 mb-2 md:mb-0">
354
+ <a href="#" class="hover:underline">About</a>
355
+ <a href="#" class="hover:underline">Advertising</a>
356
+ <a href="#" class="hover:underline">Business</a>
357
+ </div>
358
+ <div class="flex flex-wrap gap-x-6">
359
+ <a href="#" class="hover:underline">Privacy</a>
360
+ <a href="#" class="hover:underline">Terms</a>
361
+ <a href="#" class="hover:underline">Settings</a>
362
+ </div>
363
+ </div>
364
+ </div>
365
+ </footer>
366
+
367
+ <script>
368
+ // Customization functions
369
+ function setupCustomization() {
370
+ const panel = document.getElementById('customization-panel');
371
+ const settingsBtn = document.getElementById('settings-btn');
372
+ const closeBtn = document.getElementById('close-panel');
373
+
374
+ // Toggle panel
375
+ settingsBtn.addEventListener('click', () => {
376
+ panel.classList.toggle('show');
377
+ });
378
+
379
+ closeBtn.addEventListener('click', () => {
380
+ panel.classList.remove('show');
381
+ });
382
+
383
+ // Background selection
384
+ document.querySelectorAll('[data-bg]').forEach(btn => {
385
+ btn.addEventListener('click', () => {
386
+ const bgType = btn.dataset.bg;
387
+ document.body.className = ''; // Reset classes
388
+
389
+ if (bgType === 'gradient') {
390
+ document.body.classList.add('bg-gradient');
391
+ } else if (bgType === 'solid-blue') {
392
+ document.body.classList.add('bg-blue-50');
393
+ } else {
394
+ document.body.classList.add('bg-gray-50');
395
+ }
396
+ });
397
+ });
398
+
399
+ // Animation style
400
+ document.getElementById('animation-style').addEventListener('change', (e) => {
401
+ const logo = document.querySelector('img');
402
+ logo.className = 'w-64 md:w-72 transform transition duration-500 hover:scale-105';
403
+
404
+ if (e.target.value !== 'none') {
405
+ logo.classList.add(`animate-${e.target.value}`);
406
+ }
407
+ });
408
+
409
+ // Glass effect
410
+ document.getElementById('glass-effect').addEventListener('input', (e) => {
411
+ const value = e.target.value;
412
+ document.documentElement.style.setProperty('--glass-blur', `${value}px`);
413
+ document.querySelectorAll('.glass-btn, .search-box').forEach(el => {
414
+ el.style.backdropFilter = `blur(${value}px)`;
415
+ });
416
+ });
417
+
418
+ // Color scheme with intensity
419
+ document.querySelectorAll('[data-color]').forEach(btn => {
420
+ btn.addEventListener('click', () => {
421
+ const color = btn.dataset.color;
422
+ const intensity = document.getElementById('color-intensity').value;
423
+ document.documentElement.style.setProperty('--primary-color', `var(--${color}-${intensity})`);
424
+ document.documentElement.style.setProperty('--primary-light', `var(--${color}-100)`);
425
+ document.body.className = ''; // Reset classes
426
+ document.body.classList.add(`bg-${color}-50`);
427
+ });
428
+ });
429
+
430
+ // Color intensity
431
+ document.getElementById('color-intensity').addEventListener('input', (e) => {
432
+ const colorBtns = document.querySelectorAll('[data-color]');
433
+ const activeColor = document.querySelector('[data-color].ring-2');
434
+ if (activeColor) {
435
+ const color = activeColor.dataset.color;
436
+ document.documentElement.style.setProperty('--primary-color', `var(--${color}-${e.target.value})`);
437
+ }
438
+ });
439
+
440
+ // Background images
441
+ document.querySelectorAll('[data-bg-img]').forEach(btn => {
442
+ btn.addEventListener('click', () => {
443
+ const bgType = btn.dataset.bgImg;
444
+ document.body.style.backgroundImage = 'none';
445
+ document.body.className = '';
446
+
447
+ if (bgType === 'mountains') {
448
+ document.body.style.backgroundImage = 'url(https://images.unsplash.com/photo-1519681393784-d120267933ba)';
449
+ } else if (bgType === 'beach') {
450
+ document.body.style.backgroundImage = 'url(https://images.unsplash.com/photo-1507525428034-b723cf961d3e)';
451
+ } else if (bgType === 'forest') {
452
+ document.body.style.backgroundImage = 'url(https://images.unsplash.com/photo-1448375240586-882707db888b)';
453
+ } else if (bgType === 'sunset') {
454
+ document.body.style.backgroundImage = 'url(https://images.unsplash.com/photo-1519125323398-675f0ddb6308)';
455
+ } else if (bgType === 'space') {
456
+ document.body.style.backgroundImage = 'url(https://images.unsplash.com/photo-1462331940025-496dfbfc7564)';
457
+ } else {
458
+ document.body.classList.add('bg-gradient');
459
+ }
460
+
461
+ document.body.style.backgroundSize = 'cover';
462
+ document.body.style.backgroundPosition = 'center';
463
+ document.body.style.backgroundAttachment = 'fixed';
464
+ });
465
+ });
466
+
467
+ // Add visual feedback for selected color
468
+ document.querySelectorAll('[data-color]').forEach(btn => {
469
+ btn.addEventListener('click', function() {
470
+ document.querySelectorAll('[data-color]').forEach(b => b.classList.remove('ring-2', 'ring-offset-2'));
471
+ this.classList.add('ring-2', 'ring-offset-2');
472
+ });
473
+ });
474
+
475
+ // Set float animation as default
476
+ document.getElementById('animation-style').value = 'float';
477
+ }
478
+
479
+ // Create floating glass dots
480
+ function createDots(count = 20) {
481
+ const container = document.getElementById('dots-container');
482
+ const dotCount = count;
483
+
484
+ for (let i = 0; i < dotCount; i++) {
485
+ const dot = document.createElement('div');
486
+ dot.classList.add('dot');
487
+
488
+ // Random properties
489
+ const size = Math.random() * 15 + 5;
490
+ const posX = Math.random() * 100;
491
+ const delay = Math.random() * 15;
492
+ const duration = 10 + Math.random() * 20;
493
+
494
+ dot.style.width = `${size}px`;
495
+ dot.style.height = `${size}px`;
496
+ dot.style.left = `${posX}%`;
497
+ dot.style.animationDelay = `${delay}s`;
498
+ dot.style.animationDuration = `${duration}s`;
499
+
500
+ container.appendChild(dot);
501
+ }
502
+ }
503
+
504
+ // Add hover effect to search box
505
+ function setupSearchBox() {
506
+ const searchBox = document.querySelector('.search-box');
507
+ const input = searchBox.querySelector('input');
508
+
509
+ input.addEventListener('focus', () => {
510
+ searchBox.style.transform = 'translateY(-5px)';
511
+ searchBox.style.boxShadow = '0 25px 50px -12px rgba(0, 0, 0, 0.25)';
512
+ searchBox.style.background = 'rgba(255, 255, 255, 0.95)';
513
+ });
514
+
515
+ input.addEventListener('blur', () => {
516
+ searchBox.style.transform = '';
517
+ searchBox.style.boxShadow = '0 10px 25px -10px rgba(0, 0, 0, 0.1)';
518
+ searchBox.style.background = 'rgba(255, 255, 255, 0.7)';
519
+ });
520
+ }
521
+
522
+ // Bubble customization
523
+ function setupBubbleControls() {
524
+ const countControl = document.getElementById('bubble-count');
525
+ const speedControl = document.getElementById('bubble-speed');
526
+ const sizeControl = document.getElementById('bubble-size');
527
+
528
+ countControl.addEventListener('input', () => {
529
+ document.getElementById('dots-container').innerHTML = '';
530
+ createDots(parseInt(countControl.value));
531
+ });
532
+
533
+ speedControl.addEventListener('input', () => {
534
+ document.querySelectorAll('.dot').forEach(dot => {
535
+ dot.style.animationDuration = `${parseInt(speedControl.value)}s`;
536
+ });
537
+ });
538
+
539
+ sizeControl.addEventListener('input', () => {
540
+ document.querySelectorAll('.dot').forEach(dot => {
541
+ const newSize = parseInt(sizeControl.value);
542
+ dot.style.width = `${newSize}px`;
543
+ dot.style.height = `${newSize}px`;
544
+ });
545
+ });
546
+ }
547
+
548
+ // Footer toggle
549
+ function setupFooterToggle() {
550
+ const footer = document.querySelector('footer');
551
+ const toggleBtn = document.getElementById('toggle-footer');
552
+ let isExpanded = false;
553
+
554
+ toggleBtn.addEventListener('click', () => {
555
+ isExpanded = !isExpanded;
556
+ if (isExpanded) {
557
+ footer.style.height = 'auto';
558
+ footer.style.padding = '1rem 2rem';
559
+ } else {
560
+ footer.style.height = '3.5rem';
561
+ footer.style.padding = '0.5rem 2rem';
562
+ }
563
+ });
564
+ }
565
+
566
+ // Initialize effects
567
+ window.addEventListener('DOMContentLoaded', () => {
568
+ createDots();
569
+ setupSearchBox();
570
+ setupCustomization();
571
+ setupBubbleControls();
572
+ setupFooterToggle();
573
+ });
574
+ </script>
575
+ <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=SerdintLex/google" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
576
+ </html>