recreate the "ai mode" button exactly, including all its styles, interactivity, and hover effects from https://www.google.com/?pli=1
Browse filesFiles changed (2)
- README.md+8-5
- index.html+67-18
12345678910---title: Google Ai Mode Button Cloneemoji: 🚀colorFrom: pinkcolorTo: bluesdk: staticpinned: false---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference12345678910111213---title: Google AI Mode Button Clone 👾colorFrom: purplecolorTo: grayemoji: 🐳sdk: staticpinned: falsetags:- deepsite-v3---# Welcome to your new DeepSite project!This project was created with [DeepSite](https://deepsite.hf.co).
12345678910111213141516171819<!doctype html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width" /><title>My static Space</title><link rel="stylesheet" href="style.css" /></head><body><div class="card"><h1>Welcome to your static Space!</h1><p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p><p>Also don't forget to check the<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.</p></div></body></html>1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Google AI Mode Button Clone</title><script src="https://cdn.tailwindcss.com"></script><style>@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500&display=swap');.google-btn {font-family: 'Google Sans', Arial, sans-serif;transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);}.google-btn:hover {box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);}.google-btn:active {background-color: #f1f3f4;}.magic-sparkle {background: linear-gradient(90deg, #4285F4, #34A853, #FBBC05, #EA4335);background-size: 300% 300%;animation: gradient 4s ease infinite;}@keyframes gradient {0% { background-position: 0% 50%; }50% { background-position: 100% 50%; }100% { background-position: 0% 50%; }}</style></head><body class="bg-white min-h-screen flex items-center justify-center"><div class="relative"><button id="aiModeButton" class="google-btn flex items-center justify-center bg-white text-[#1a73e8] border border-[#dadce0] rounded-full py-2 px-4 text-sm font-medium focus:outline-none focus:ring-2 focus:ring-[#1a73e8]/50"><div class="flex items-center space-x-2"><div class="w-5 h-5 rounded-full magic-sparkle flex items-center justify-center"><div class="w-3 h-3 bg-white rounded-full"></div></div><span>AI mode</span></div></button></div><script>document.getElementById('aiModeButton').addEventListener('click', function() {// Create ripple effectconst ripple = document.createElement('span');ripple.classList.add('absolute', 'rounded-full', 'bg-[#1a73e8]/10', 'animate-ripple');ripple.style.width = '100%';ripple.style.height = '100%';ripple.style.top = '0';ripple.style.left = '0';this.appendChild(ripple);// Remove ripple after animationsetTimeout(() => {ripple.remove();}, 600);// Simulate original behavior (you would replace this with actual functionality)console.log('AI Mode activated!');// Toggle active statethis.classList.toggle('bg-[#f1f3f4]');});</script></body></html>
README.md+8-5
index.html+67-18