Spaces:
Running
Running
make it better in any way you want. huge improvement im waiting - Initial Deployment
b070945 verified Download index.html from SerdintLex/google: direct link, hf CLI and curl.
- Browser
- Download file 27.8 kB
-
https://huggingface.co/spaces/SerdintLex/google/resolve/main/index.html
- Command line
-
hf download hf://spaces/SerdintLex/google/index.html
-
curl -L -o index.html https://huggingface.co/spaces/SerdintLex/google/resolve/main/index.html
27.8 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Google</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <style> | |
| .glass-btn { | |
| backdrop-filter: blur(24px) saturate(200%); | |
| background: rgba(255, 255, 255, 0.3); | |
| border: 1px solid rgba(255, 255, 255, 0.25); | |
| box-shadow: | |
| 0 4px 30px rgba(0, 0, 0, 0.1), | |
| inset 0 0 0 1px rgba(255, 255, 255, 0.2); | |
| transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); | |
| transform-style: preserve-3d; | |
| will-change: transform, box-shadow, background; | |
| } | |
| .glass-btn:hover { | |
| background: rgba(255, 255, 255, 0.45); | |
| transform: translateY(-4px) scale(1.02); | |
| box-shadow: | |
| 0 8px 40px rgba(0, 0, 0, 0.15), | |
| inset 0 0 0 1px rgba(255, 255, 255, 0.3); | |
| } | |
| .glass-btn:active { | |
| transform: translateY(0) scale(0.98); | |
| } | |
| .floating-dots { | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; | |
| overflow: hidden; | |
| z-index: -1; | |
| } | |
| .dot { | |
| position: absolute; | |
| background: rgba(255, 255, 255, 0.95); | |
| border-radius: 50%; | |
| filter: blur(4px); | |
| animation: float-up 15s ease-in-out infinite; | |
| box-shadow: | |
| 0 0 30px rgba(255,255,255,0.8), | |
| inset 0 0 10px rgba(255,255,255,0.5); | |
| opacity: 0.9; | |
| will-change: transform; | |
| mix-blend-mode: overlay; | |
| } | |
| @keyframes float-up { | |
| 0% { | |
| transform: translateY(100vh) scale(0); | |
| opacity: 0; | |
| } | |
| 10% { | |
| opacity: 0.7; | |
| } | |
| 90% { | |
| opacity: 0.7; | |
| } | |
| 100% { | |
| transform: translateY(-20vh) scale(1.5); | |
| opacity: 0; | |
| } | |
| } | |
| :root { | |
| --primary-color: #4285F4; | |
| --primary-light: #EBF2FF; | |
| --glass-blur: 5px; | |
| } | |
| body { | |
| font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; | |
| min-height: 100vh; | |
| } | |
| body.bg-gradient { | |
| background: linear-gradient(-45deg, #f0f4ff, #e6f0ff, #f5f9ff); | |
| background-size: 400% 400%; | |
| animation: gradient 15s ease infinite; | |
| } | |
| @keyframes gradient { | |
| 0% { background-position: 0% 50%; } | |
| 50% { background-position: 100% 50%; } | |
| 100% { background-position: 0% 50%; } | |
| } | |
| @keyframes gradient { | |
| 0% { background-position: 0% 50%; } | |
| 50% { background-position: 100% 50%; } | |
| 100% { background-position: 0% 50%; } | |
| } | |
| .search-box { | |
| backdrop-filter: blur(24px) saturate(200%); | |
| background: rgba(255, 255, 255, 0.5); | |
| border: 1px solid rgba(255, 255, 255, 0.3); | |
| box-shadow: | |
| 0 4px 30px rgba(0, 0, 0, 0.1), | |
| inset 0 0 0 1px rgba(255, 255, 255, 0.2); | |
| transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); | |
| transform-style: preserve-3d; | |
| } | |
| .search-box:hover { | |
| transform: translateY(-4px) scale(1.02); | |
| background: rgba(255, 255, 255, 0.7); | |
| box-shadow: | |
| 0 8px 40px rgba(0, 0, 0, 0.15), | |
| inset 0 0 0 1px rgba(255, 255, 255, 0.3); | |
| } | |
| .btn { | |
| transition: all 0.3s ease; | |
| box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); | |
| font-weight: 500; | |
| } | |
| .btn:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); | |
| } | |
| @keyframes float { | |
| 0%, 100% { | |
| transform: translateY(0px) rotate(0deg) scale(1); | |
| filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1)); | |
| } | |
| 50% { | |
| transform: translateY(-20px) rotate(3deg) scale(1.03); | |
| filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2)); | |
| } | |
| } | |
| .animate-float { | |
| animation: float 6s ease-in-out infinite; | |
| } | |
| @keyframes bounce { | |
| 0%, 100% { transform: translateY(0); } | |
| 50% { transform: translateY(-20px); } | |
| } | |
| .animate-bounce { | |
| animation: bounce 2s ease infinite; | |
| } | |
| @keyframes pulse { | |
| 0%, 100% { transform: scale(1); } | |
| 50% { transform: scale(1.05); } | |
| } | |
| .animate-pulse { | |
| animation: pulse 3s ease infinite; | |
| } | |
| .glass-btn, .search-box { | |
| backdrop-filter: blur(var(--glass-blur)); | |
| } | |
| #customization-panel { | |
| transform-origin: left center; | |
| opacity: 0; | |
| transform: translateX(-100%) scale(0.95); | |
| transition: all 0.6s cubic-bezier(0.68,-0.6,0.32,1.6); | |
| left: 0; | |
| right: auto; | |
| backdrop-filter: blur(25px) saturate(200%); | |
| background: rgba(255, 255, 255, 0.85); | |
| border-right: 1px solid rgba(255, 255, 255, 0.3); | |
| box-shadow: 20px 0 50px rgba(0,0,0,0.1); | |
| } | |
| #customization-panel.show { | |
| opacity: 1; | |
| transform: translateX(0) scale(1); | |
| box-shadow: 30px 0 60px rgba(0,0,0,0.15); | |
| } | |
| #customization-panel.show { | |
| opacity: 1; | |
| transform: translateX(0) scale(1); | |
| box-shadow: 20px 0 50px rgba(0,0,0,0.1); | |
| } | |
| </style> | |
| </head> | |
| <body class="flex flex-col min-h-screen text-gray-800 relative overflow-hidden bg-gradient"> | |
| <div class="floating-dots" id="dots-container"></div> | |
| <div class="absolute inset-0 overflow-hidden pointer-events-none"> | |
| <div class="absolute inset-0 bg-gradient-to-b from-transparent via-transparent to-white/10 opacity-30"></div> | |
| </div> | |
| <!-- Header --> | |
| <header class="flex justify-between items-center p-6"> | |
| <div></div> | |
| <div class="flex space-x-6 items-center text-sm"> | |
| <button id="settings-btn" class="glass-btn p-3 rounded-full hover:bg-white/30 transition-all duration-300"> | |
| <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor"> | |
| <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" /> | |
| </svg> | |
| </button> | |
| </div> | |
| </header> | |
| <!-- Customization Panel --> | |
| <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"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-xl font-semibold">Customize Appearance</h2> | |
| <button id="close-panel" class="p-2 rounded-full hover:bg-gray-100"> | |
| <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor"> | |
| <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" /> | |
| </svg> | |
| </button> | |
| </div> | |
| <div class="space-y-6"> | |
| <div> | |
| <h3 class="font-medium mb-3">Background</h3> | |
| <div class="grid grid-cols-3 gap-3"> | |
| <button data-bg="gradient" class="bg-gradient-to-r from-blue-100 to-purple-100 h-12 rounded-lg border"></button> | |
| <button data-bg="solid-blue" class="bg-blue-50 h-12 rounded-lg border"></button> | |
| <button data-bg="solid-gray" class="bg-gray-50 h-12 rounded-lg border"></button> | |
| </div> | |
| </div> | |
| <div> | |
| <h3 class="font-medium mb-3">Animation Style</h3> | |
| <select id="animation-style" class="w-full p-2 border rounded-lg"> | |
| <option value="float">Floating</option> | |
| <option value="bounce">Bounce</option> | |
| <option value="pulse">Pulse</option> | |
| <option value="none">None</option> | |
| </select> | |
| </div> | |
| <div> | |
| <h3 class="font-medium mb-3">Glass Effect</h3> | |
| <input type="range" id="glass-effect" min="0" max="10" value="5" class="w-full"> | |
| </div> | |
| <div> | |
| <h3 class="font-medium mb-3">Color Scheme</h3> | |
| <div class="grid grid-cols-7 gap-2"> | |
| <button data-color="blue" class="bg-blue-500 h-8 rounded-full transition-transform hover:scale-110"></button> | |
| <button data-color="purple" class="bg-purple-500 h-8 rounded-full transition-transform hover:scale-110"></button> | |
| <button data-color="green" class="bg-green-500 h-8 rounded-full transition-transform hover:scale-110"></button> | |
| <button data-color="red" class="bg-red-500 h-8 rounded-full transition-transform hover:scale-110"></button> | |
| <button data-color="indigo" class="bg-indigo-500 h-8 rounded-full transition-transform hover:scale-110"></button> | |
| <button data-color="pink" class="bg-pink-500 h-8 rounded-full transition-transform hover:scale-110"></button> | |
| <button data-color="teal" class="bg-teal-500 h-8 rounded-full transition-transform hover:scale-110"></button> | |
| <button data-color="yellow" class="bg-yellow-400 h-8 rounded-full transition-transform hover:scale-110"></button> | |
| <button data-color="orange" class="bg-orange-500 h-8 rounded-full transition-transform hover:scale-110"></button> | |
| <button data-color="cyan" class="bg-cyan-500 h-8 rounded-full transition-transform hover:scale-110"></button> | |
| <button data-color="fuchsia" class="bg-fuchsia-500 h-8 rounded-full transition-transform hover:scale-110"></button> | |
| <button data-color="rose" class="bg-rose-500 h-8 rounded-full transition-transform hover:scale-110"></button> | |
| <button data-color="violet" class="bg-violet-500 h-8 rounded-full transition-transform hover:scale-110"></button> | |
| <button data-color="emerald" class="bg-emerald-500 h-8 rounded-full transition-transform hover:scale-110"></button> | |
| </div> | |
| <div> | |
| <h3 class="font-medium mb-3">Color Intensity</h3> | |
| <input type="range" id="color-intensity" min="100" max="900" step="100" value="500" class="w-full"> | |
| </div> | |
| <div> | |
| <h3 class="font-medium mb-3">Background Image</h3> | |
| <div class="grid grid-cols-3 gap-3"> | |
| <button data-bg-img="mountains" class="bg-gray-200 h-12 rounded-lg border overflow-hidden"> | |
| <div class="h-full bg-gradient-to-br from-blue-400 to-purple-600"></div> | |
| </button> | |
| <button data-bg-img="beach" class="bg-gray-200 h-12 rounded-lg border overflow-hidden"> | |
| <div class="h-full bg-gradient-to-br from-blue-300 to-amber-200"></div> | |
| </button> | |
| <button data-bg-img="forest" class="bg-gray-200 h-12 rounded-lg border overflow-hidden"> | |
| <div class="h-full bg-gradient-to-br from-green-500 to-emerald-800"></div> | |
| </button> | |
| <button data-bg-img="sunset" class="bg-gray-200 h-12 rounded-lg border overflow-hidden"> | |
| <div class="h-full bg-gradient-to-br from-orange-400 to-pink-600"></div> | |
| </button> | |
| <button data-bg-img="space" class="bg-gray-200 h-12 rounded-lg border overflow-hidden"> | |
| <div class="h-full bg-gradient-to-br from-indigo-900 to-purple-900"></div> | |
| </button> | |
| <button data-bg-img="none" class="bg-gray-200 h-12 rounded-lg border flex items-center justify-center"> | |
| <span class="text-xs">None</span> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <div> | |
| <h3 class="font-medium mb-3">Bubble Effects</h3> | |
| <div class="space-y-3"> | |
| <div> | |
| <label class="block text-sm mb-1">Bubble Count</label> | |
| <input type="range" id="bubble-count" min="5" max="50" value="20" class="w-full"> | |
| </div> | |
| <div> | |
| <label class="block text-sm mb-1">Bubble Speed</label> | |
| <input type="range" id="bubble-speed" min="5" max="30" value="15" class="w-full"> | |
| </div> | |
| <div> | |
| <label class="block text-sm mb-1">Bubble Size</label> | |
| <input type="range" id="bubble-size" min="2" max="20" value="10" class="w-full"> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <main class="flex-grow flex flex-col items-center justify-center px-4 -mt-20 relative z-10"> | |
| <div class="mb-8 transform transition duration-500 hover:scale-105 animate-float"> | |
| <img src="https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png" alt="Google" class="w-64 md:w-72"> | |
| </div> | |
| <!-- Search Box --> | |
| <div class="w-full max-w-2xl mb-12"> | |
| <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"> | |
| <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"> | |
| <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> | |
| </svg> | |
| <input type="text" class="flex-grow outline-none bg-transparent text-lg placeholder-gray-400" placeholder="Search"> | |
| </div> | |
| <div class="flex justify-center space-x-4"> | |
| <button class="glass-btn px-6 py-3 rounded-full text-sm font-medium hover:shadow-lg transition-all duration-300"> | |
| Google Search | |
| </button> | |
| <button class="glass-btn px-6 py-3 rounded-full text-sm font-medium hover:shadow-lg transition-all duration-300 ml-4"> | |
| I'm Feeling Lucky | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Language Section --> | |
| <div class="text-sm text-gray-600 mb-8"> | |
| <span>Google offered in: </span> | |
| <a href="#" class="text-blue-600 hover:underline">Español</a> | |
| <a href="#" class="text-blue-600 hover:underline ml-2">Français</a> | |
| <a href="#" class="text-blue-600 hover:underline ml-2">中文</a> | |
| </div> | |
| </main> | |
| <!-- Footer --> | |
| <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;"> | |
| <div class="h-full flex flex-col justify-center"> | |
| <div class="flex justify-between items-center"> | |
| <span class="opacity-0 md:opacity-100">Google Footer</span> | |
| <button id="toggle-footer" class="text-gray-500 hover:text-gray-700 transition-transform duration-300"> | |
| <svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" viewBox="0 0 20 20" fill="currentColor"> | |
| <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" /> | |
| </svg> | |
| </button> | |
| </div> | |
| <div class="flex flex-col md:flex-row md:justify-between"> | |
| <div class="flex flex-wrap gap-x-6 mb-2 md:mb-0"> | |
| <a href="#" class="hover:underline">About</a> | |
| <a href="#" class="hover:underline">Advertising</a> | |
| <a href="#" class="hover:underline">Business</a> | |
| </div> | |
| <div class="flex flex-wrap gap-x-6"> | |
| <a href="#" class="hover:underline">Privacy</a> | |
| <a href="#" class="hover:underline">Terms</a> | |
| <a href="#" class="hover:underline">Settings</a> | |
| </div> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| // Customization functions | |
| function setupCustomization() { | |
| const panel = document.getElementById('customization-panel'); | |
| const settingsBtn = document.getElementById('settings-btn'); | |
| const closeBtn = document.getElementById('close-panel'); | |
| // Toggle panel | |
| settingsBtn.addEventListener('click', () => { | |
| panel.classList.toggle('show'); | |
| }); | |
| closeBtn.addEventListener('click', () => { | |
| panel.classList.remove('show'); | |
| }); | |
| // Background selection | |
| document.querySelectorAll('[data-bg]').forEach(btn => { | |
| btn.addEventListener('click', () => { | |
| const bgType = btn.dataset.bg; | |
| document.body.className = ''; // Reset classes | |
| if (bgType === 'gradient') { | |
| document.body.classList.add('bg-gradient'); | |
| } else if (bgType === 'solid-blue') { | |
| document.body.classList.add('bg-blue-50'); | |
| } else { | |
| document.body.classList.add('bg-gray-50'); | |
| } | |
| }); | |
| }); | |
| // Animation style | |
| document.getElementById('animation-style').addEventListener('change', (e) => { | |
| const logo = document.querySelector('img'); | |
| logo.className = 'w-64 md:w-72 transform transition duration-500 hover:scale-105'; | |
| if (e.target.value !== 'none') { | |
| logo.classList.add(`animate-${e.target.value}`); | |
| } | |
| }); | |
| // Glass effect | |
| document.getElementById('glass-effect').addEventListener('input', (e) => { | |
| const value = e.target.value; | |
| document.documentElement.style.setProperty('--glass-blur', `${value}px`); | |
| document.querySelectorAll('.glass-btn, .search-box').forEach(el => { | |
| el.style.backdropFilter = `blur(${value}px)`; | |
| }); | |
| }); | |
| // Color scheme with intensity | |
| document.querySelectorAll('[data-color]').forEach(btn => { | |
| btn.addEventListener('click', () => { | |
| const color = btn.dataset.color; | |
| const intensity = document.getElementById('color-intensity').value; | |
| document.documentElement.style.setProperty('--primary-color', `var(--${color}-${intensity})`); | |
| document.documentElement.style.setProperty('--primary-light', `var(--${color}-100)`); | |
| document.body.className = ''; // Reset classes | |
| document.body.classList.add(`bg-${color}-50`); | |
| }); | |
| }); | |
| // Color intensity | |
| document.getElementById('color-intensity').addEventListener('input', (e) => { | |
| const colorBtns = document.querySelectorAll('[data-color]'); | |
| const activeColor = document.querySelector('[data-color].ring-2'); | |
| if (activeColor) { | |
| const color = activeColor.dataset.color; | |
| document.documentElement.style.setProperty('--primary-color', `var(--${color}-${e.target.value})`); | |
| } | |
| }); | |
| // Background images | |
| document.querySelectorAll('[data-bg-img]').forEach(btn => { | |
| btn.addEventListener('click', () => { | |
| const bgType = btn.dataset.bgImg; | |
| document.body.style.backgroundImage = 'none'; | |
| document.body.className = ''; | |
| if (bgType === 'mountains') { | |
| document.body.style.backgroundImage = 'url(https://images.unsplash.com/photo-1519681393784-d120267933ba)'; | |
| } else if (bgType === 'beach') { | |
| document.body.style.backgroundImage = 'url(https://images.unsplash.com/photo-1507525428034-b723cf961d3e)'; | |
| } else if (bgType === 'forest') { | |
| document.body.style.backgroundImage = 'url(https://images.unsplash.com/photo-1448375240586-882707db888b)'; | |
| } else if (bgType === 'sunset') { | |
| document.body.style.backgroundImage = 'url(https://images.unsplash.com/photo-1519125323398-675f0ddb6308)'; | |
| } else if (bgType === 'space') { | |
| document.body.style.backgroundImage = 'url(https://images.unsplash.com/photo-1462331940025-496dfbfc7564)'; | |
| } else { | |
| document.body.classList.add('bg-gradient'); | |
| } | |
| document.body.style.backgroundSize = 'cover'; | |
| document.body.style.backgroundPosition = 'center'; | |
| document.body.style.backgroundAttachment = 'fixed'; | |
| }); | |
| }); | |
| // Add visual feedback for selected color | |
| document.querySelectorAll('[data-color]').forEach(btn => { | |
| btn.addEventListener('click', function() { | |
| document.querySelectorAll('[data-color]').forEach(b => b.classList.remove('ring-2', 'ring-offset-2')); | |
| this.classList.add('ring-2', 'ring-offset-2'); | |
| }); | |
| }); | |
| // Set float animation as default | |
| document.getElementById('animation-style').value = 'float'; | |
| } | |
| // Create floating glass dots | |
| function createDots(count = 20) { | |
| const container = document.getElementById('dots-container'); | |
| const dotCount = count; | |
| for (let i = 0; i < dotCount; i++) { | |
| const dot = document.createElement('div'); | |
| dot.classList.add('dot'); | |
| // Random properties | |
| const size = Math.random() * 15 + 5; | |
| const posX = Math.random() * 100; | |
| const delay = Math.random() * 15; | |
| const duration = 10 + Math.random() * 20; | |
| dot.style.width = `${size}px`; | |
| dot.style.height = `${size}px`; | |
| dot.style.left = `${posX}%`; | |
| dot.style.animationDelay = `${delay}s`; | |
| dot.style.animationDuration = `${duration}s`; | |
| container.appendChild(dot); | |
| } | |
| } | |
| // Add hover effect to search box | |
| function setupSearchBox() { | |
| const searchBox = document.querySelector('.search-box'); | |
| const input = searchBox.querySelector('input'); | |
| input.addEventListener('focus', () => { | |
| searchBox.style.transform = 'translateY(-5px)'; | |
| searchBox.style.boxShadow = '0 25px 50px -12px rgba(0, 0, 0, 0.25)'; | |
| searchBox.style.background = 'rgba(255, 255, 255, 0.95)'; | |
| }); | |
| input.addEventListener('blur', () => { | |
| searchBox.style.transform = ''; | |
| searchBox.style.boxShadow = '0 10px 25px -10px rgba(0, 0, 0, 0.1)'; | |
| searchBox.style.background = 'rgba(255, 255, 255, 0.7)'; | |
| }); | |
| } | |
| // Bubble customization | |
| function setupBubbleControls() { | |
| const countControl = document.getElementById('bubble-count'); | |
| const speedControl = document.getElementById('bubble-speed'); | |
| const sizeControl = document.getElementById('bubble-size'); | |
| countControl.addEventListener('input', () => { | |
| document.getElementById('dots-container').innerHTML = ''; | |
| createDots(parseInt(countControl.value)); | |
| }); | |
| speedControl.addEventListener('input', () => { | |
| document.querySelectorAll('.dot').forEach(dot => { | |
| dot.style.animationDuration = `${parseInt(speedControl.value)}s`; | |
| }); | |
| }); | |
| sizeControl.addEventListener('input', () => { | |
| document.querySelectorAll('.dot').forEach(dot => { | |
| const newSize = parseInt(sizeControl.value); | |
| dot.style.width = `${newSize}px`; | |
| dot.style.height = `${newSize}px`; | |
| }); | |
| }); | |
| } | |
| // Footer toggle | |
| function setupFooterToggle() { | |
| const footer = document.querySelector('footer'); | |
| const toggleBtn = document.getElementById('toggle-footer'); | |
| let isExpanded = false; | |
| toggleBtn.addEventListener('click', () => { | |
| isExpanded = !isExpanded; | |
| if (isExpanded) { | |
| footer.style.height = 'auto'; | |
| footer.style.padding = '1rem 2rem'; | |
| } else { | |
| footer.style.height = '3.5rem'; | |
| footer.style.padding = '0.5rem 2rem'; | |
| } | |
| }); | |
| } | |
| // Initialize effects | |
| window.addEventListener('DOMContentLoaded', () => { | |
| createDots(); | |
| setupSearchBox(); | |
| setupCustomization(); | |
| setupBubbleControls(); | |
| setupFooterToggle(); | |
| }); | |
| </script> | |
| <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> | |
| </html> |