Skip to content

Commit 5c18ba9

Browse files
committed
ARRANGED SEARCH BOX
1 parent ff6ae91 commit 5c18ba9

1 file changed

Lines changed: 52 additions & 44 deletions

File tree

src/app/page.tsx

Lines changed: 52 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -104,82 +104,90 @@ export default function ScriptGenerator() {
104104
data-theme={theme}
105105
>
106106
<div className="max-w-screen mx-auto px-4 py-10">
107-
{/* Header with Search, Add + and theme toggle */}
108-
<div className="flex items-center justify-between mb-10">
109-
{/* Left side - Search Box */}
110-
<div className="relative w-64 hidden sm:block">
107+
{/* Header with Title, Search, and Action buttons */}
108+
<div className="flex flex-col lg:flex-row lg:items-center lg:justify-between gap-6 mb-12">
109+
{/* Left side - Title */}
110+
<h1 className="text-3xl sm:text-4xl lg:text-5xl font-black tracking-tight text-left">
111+
<span className="text-transparent bg-clip-text bg-gradient-to-r from-indigo-500 via-purple-600 to-pink-500 drop-shadow-lg">
112+
DEVSETUP
113+
</span>
114+
</h1>
115+
116+
{/* Center/Bottom - Search Box */}
117+
<div className="relative w-full max-w-2xl lg:max-w-3xl hidden sm:block">
111118
<input
112119
type="text"
113-
placeholder="Search tools..."
120+
placeholder="Search for development tools..."
114121
value={searchQuery}
115122
onChange={(e) => setSearchQuery(e.target.value)}
116-
className="w-full px-4 py-2 pl-10 bg-[var(--card-bg)] text-[var(--foreground)] border border-gray-600 rounded-full focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent transition-all duration-200 text-sm"
123+
className="w-full px-8 py-4 pl-16 bg-gradient-to-r from-[var(--card-bg)] to-gray-800/50 text-[var(--foreground)] border-2 border-gray-600/50 rounded-2xl focus:outline-none focus:ring-4 focus:ring-indigo-500/30 focus:border-indigo-400 transition-all duration-500 text-lg placeholder-gray-400 shadow-2xl hover:shadow-indigo-500/20 backdrop-blur-sm"
117124
/>
118-
<svg
119-
className="absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400"
120-
fill="none"
121-
stroke="currentColor"
122-
viewBox="0 0 24 24"
123-
>
124-
<path
125-
strokeLinecap="round"
126-
strokeLinejoin="round"
127-
strokeWidth={2}
128-
d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
129-
/>
130-
</svg>
125+
<div className="absolute left-5 top-1/2 transform -translate-y-1/2">
126+
<svg
127+
className="w-6 h-6 text-indigo-400"
128+
fill="none"
129+
stroke="currentColor"
130+
viewBox="0 0 24 24"
131+
>
132+
<path
133+
strokeLinecap="round"
134+
strokeLinejoin="round"
135+
strokeWidth={2.5}
136+
d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
137+
/>
138+
</svg>
139+
</div>
140+
<div className="absolute inset-0 rounded-2xl bg-gradient-to-r from-indigo-500/10 to-purple-500/10 pointer-events-none"></div>
131141
</div>
132142

133-
{/* Center - Title */}
134-
<h1 className="text-4xl sm:text-6xl font-extrabold tracking-tight">
135-
DevSetup
136-
</h1>
137-
138143
{/* Right side - Action buttons */}
139-
<div className="flex gap-3">
144+
<div className="flex gap-4 lg:flex-shrink-0">
140145
{/* Add New + button */}
141146
<a
142147
href="https://forms.gle/cWfDnzvYo5dBuy7C7"
143148
target="_blank"
144149
rel="noopener noreferrer"
145-
className="px-6 py-3 text-lg bg-gradient-to-r from-indigo-500 to-purple-600 hover:from-indigo-600 hover:to-purple-700 text-white font-semibold rounded-full shadow-lg transition duration-300"
150+
className="px-8 py-4 text-lg bg-gradient-to-r from-indigo-500 via-purple-600 to-pink-500 hover:from-indigo-600 hover:via-purple-700 hover:to-pink-600 text-white font-bold rounded-2xl shadow-2xl hover:shadow-indigo-500/30 transition-all duration-300 transform hover:scale-105 hover:-translate-y-1"
146151
>
147-
Add New +
152+
Add New +
148153
</a>
149154

150155
{/* Theme Toggle button */}
151156
<button
152157
onClick={() => setTheme(theme === "light" ? "dark" : "light")}
153-
className="px-6 py-3 text-lg bg-gradient-to-r from-gray-500 to-gray-700 hover:from-gray-600 hover:to-gray-800 text-white font-semibold rounded-full shadow-lg transition duration-300"
158+
className="px-8 py-4 text-lg bg-gradient-to-r from-gray-600 to-gray-800 hover:from-gray-700 hover:to-gray-900 text-white font-bold rounded-2xl shadow-2xl hover:shadow-gray-500/30 transition-all duration-300 transform hover:scale-105 hover:-translate-y-1"
154159
>
155160
{theme === "light" ? "🌞 Light" : "🌙 Dark"}
156161
</button>
157162
</div>
158163
</div>
159164

160165
{/* Mobile Search Box */}
161-
<div className="mb-6 sm:hidden">
166+
<div className="mb-10 sm:hidden">
162167
<div className="relative">
163168
<input
164169
type="text"
165-
placeholder="Search tools..."
170+
placeholder="🔍 Search for development tools..."
166171
value={searchQuery}
167172
onChange={(e) => setSearchQuery(e.target.value)}
168-
className="w-full px-4 py-3 pl-10 bg-[var(--card-bg)] text-[var(--foreground)] border border-gray-600 rounded-full focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent transition-all duration-200"
173+
className="w-full px-8 py-5 pl-16 bg-gradient-to-r from-[var(--card-bg)] to-gray-800/50 text-[var(--foreground)] border-2 border-gray-600/50 rounded-2xl focus:outline-none focus:ring-4 focus:ring-indigo-500/30 focus:border-indigo-400 transition-all duration-500 text-lg placeholder-gray-400 shadow-2xl hover:shadow-indigo-500/20 backdrop-blur-sm"
169174
/>
170-
<svg
171-
className="absolute left-3 top-1/2 transform -translate-y-1/2 w-5 h-5 text-gray-400"
172-
fill="none"
173-
stroke="currentColor"
174-
viewBox="0 0 24 24"
175-
>
176-
<path
177-
strokeLinecap="round"
178-
strokeLinejoin="round"
179-
strokeWidth={2}
180-
d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
181-
/>
182-
</svg>
175+
<div className="absolute left-5 top-1/2 transform -translate-y-1/2">
176+
<svg
177+
className="w-6 h-6 text-indigo-400"
178+
fill="none"
179+
stroke="currentColor"
180+
viewBox="0 0 24 24"
181+
>
182+
<path
183+
strokeLinecap="round"
184+
strokeLinejoin="round"
185+
strokeWidth={2.5}
186+
d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
187+
/>
188+
</svg>
189+
</div>
190+
<div className="absolute inset-0 rounded-2xl bg-gradient-to-r from-indigo-500/10 to-purple-500/10 pointer-events-none"></div>
183191
</div>
184192
</div>
185193

0 commit comments

Comments
 (0)