DevPlatform
Home
Components
Search
Submit
Earn
Login
Sign Up Free
AI Chat - Preview | DevPlatform
DevPlatform
Categories
Accordion
Animation
Box Shadow
Button
Card
Footer
Form
Gallery
Hero Section
Inputs
Loader
Marquee
Modal
Modules
Navbar
Progress Bar
Radio Buttons
Search-Bar
Sections
Slider
Tab
Timeline
Toggle
AI Chat
admin1234
Jan 30, 2026
6
0
Share
Live Preview
Refresh
Live Editor
HTML
CSS
JS
HTML
CSS
JavaScript
1
<div class="letters-container" id="lettersContainer"></div> <div class="glow-container"> <!-- Glowing border animation --> <div class="border-glow"></div> <div class="left-glow"></div> <div class="right-glow"></div> <!-- Main search bar --> <div class="search-bar"> <!-- Plus button --> <div class="plus-btn">+</div> <!-- Input field --> <input type="text" class="search-input" placeholder="Ask anything..."> <!-- Buttons container --> <div class="buttons"> <!-- Normal dropdown --> <div class="dropdown-btn"> <svg class="icon-pen" viewBox="0 0 24 24"> <path d="M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-1.84 1.83 3.75 3.75M3 17.25V21h3.75L17.81 9.93l-3.75-3.75L3 17.25z"/> </svg> Normal <svg class="dropdown-arrow" viewBox="0 0 24 24"> <path d="M7 10l5 5 5-5z" fill="currentColor"/> </svg> </div> <!-- DeepThink dropdown --> <div class="dropdown-btn"> <svg class="icon-bulb" viewBox="0 0 24 24"> <path d="M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7z"/> </svg> DeepThink <svg class="dropdown-arrow" viewBox="0 0 24 24"> <path d="M7 10l5 5 5-5z" fill="currentColor"/> </svg> </div> <!-- Voice button --> <div class="voice-btn"> <svg class="icon-mic" viewBox="0 0 24 24"> <path d="M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3z" fill="currentColor"/> <path d="M17 11c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92h-2z" fill="currentColor"/> </svg> Voice </div> <!-- Send button --> <button class="send-btn"> <svg viewBox="0 0 24 24"> <path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/> </svg> </button> </div> </div> </div>
1
* { margin: 0; padding: 0; box-sizing: border-box; } body { background: #0a0e1a; height: 100vh; display: flex; align-items: center; justify-content: center; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; overflow: hidden; position: relative; } /* Floating letters background */ .letters-container { position: absolute; width: 100%; height: 100%; overflow: hidden; pointer-events: none; } .letter { position: absolute; color: rgba(255, 255, 255, 0.05); font-size: 14px; font-weight: 300; letter-spacing: 2px; animation: float 20s infinite ease-in-out; } @keyframes float { 0%, 100% { transform: translateY(0) translateX(0); opacity: 0; } 10% { opacity: 0.05; } 90% { opacity: 0.05; } 100% { transform: translateY(-100vh) translateX(50px); opacity: 0; } } /* Glow effect container */ .glow-container { position: relative; width: 350px; height: 60px; display: flex; align-items: center; justify-content: center; } /* Animated border glow */ .border-glow { position: absolute; width: 100%; height: 100%; border-radius: 35px; background: linear-gradient(90deg, #ff3366 0%, #ff6b35 25%, #4a90e2 50%, #667eea 75%, #ff3366 100% ); background-size: 300% 300%; animation: glowMove 4s linear infinite; opacity: 0.8; filter: blur(10px); } @keyframes glowMove { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } } /* Left glow effect */ .left-glow { position: absolute; left: -100px; top: 50%; transform: translateY(-50%); width: 200px; height: 200px; background: radial-gradient(circle, rgba(255, 51, 102, 0.4) 0%, transparent 70%); filter: blur(40px); animation: pulseGlow 3s ease-in-out infinite; } /* Right glow effect */ .right-glow { position: absolute; right: -100px; top: 50%; transform: translateY(-50%); width: 200px; height: 200px; background: radial-gradient(circle, rgba(74, 144, 226, 0.4) 0%, transparent 70%); filter: blur(40px); animation: pulseGlow 3s ease-in-out infinite 1.5s; } @keyframes pulseGlow { 0%, 100% { opacity: 0.5; transform: translateY(-50%) scale(1); } 50% { opacity: 0.8; transform: translateY(-50%) scale(1.2); } } /* Main search bar */ .search-bar { position: relative; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(20, 25, 40, 0.95), rgba(10, 15, 30, 0.98)); border-radius: 35px; border: 1px solid rgba(255, 255, 255, 0.1); display: flex; align-items: center; padding: 0 10px; gap: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); } /* Input field */ .search-input { flex: 1; background: transparent; border: none; outline: none; color: #ffffff; font-size: 14px; padding: 15px 5px; min-width: 0; } .search-input::placeholder { color: rgba(255, 255, 255, 0.5); } /* Buttons container */ .buttons { display: flex; gap: 5px; align-items: center; } /* Plus button */ .plus-btn { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; color: #ffffff; font-size: 18px; flex-shrink: 0; } .plus-btn:hover { background: rgba(255, 255, 255, 0.15); transform: rotate(90deg); } /* Dropdown buttons */ .dropdown-btn { padding: 8px 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.9); cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 4px; font-size: 12px; white-space: nowrap; flex-shrink: 0; } .dropdown-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.25); } .dropdown-btn svg { width: 16px; height: 16px; fill: currentColor; } /* Voice button */ .voice-btn { display: none; } /* Send button */ .send-btn { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4); flex-shrink: 0; } .send-btn:hover { transform: scale(1.05); box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6); } .send-btn:active { transform: scale(0.95); } .send-btn svg { width: 16px; height: 16px; fill: white; } /* Icon styles */ .icon-pen { width: 12px; height: 12px; } .icon-bulb { width: 12px; height: 12px; } .icon-mic { width: 12px; height: 12px; } .dropdown-arrow { width: 10px; height: 10px; margin-left: 2px; opacity: 0.6; }
1
Comments
0
Want to comment?
Please
login
or
sign up
to post comments.
No comments yet
Be the first to comment on this component!
Comments 0
Want to comment?
Please login or sign up to post comments.
No comments yet
Be the first to comment on this component!