Skip to content

Commit 7535d09

Browse files
fix: update ContributorsSearch styles for light theme visibility
1 parent d75e6f0 commit 7535d09

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

app/contributors/ContributorsSearch.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,19 +88,19 @@ export default function ContributorsSearch({ contributors }: { contributors: Con
8888
<div className="relative group">
8989
{/* Animated gradient border */}
9090
<div className="absolute -inset-[1px] rounded-2xl bg-gradient-to-r from-cyan-500 via-blue-500 to-purple-500 opacity-30 blur-sm group-focus-within:opacity-70 transition-opacity duration-500" />
91-
<div className="relative flex items-center rounded-2xl bg-[#0a0a0a] border border-white/10">
91+
<div className="relative flex items-center rounded-2xl bg-white dark:bg-[#0a0a0a] border border-black/10 dark:border-white/10">
9292
<Search className="ml-5 h-5 w-5 text-zinc-500" />
9393
<input
9494
type="text"
9595
placeholder="Search the collective..."
9696
value={search}
9797
onChange={(e) => setSearch(e.target.value)}
98-
className="w-full bg-transparent px-4 py-5 text-lg text-white placeholder:text-zinc-600 outline-none font-light"
98+
className="w-full bg-transparent px-4 py-5 text-lg text-black dark:text-white placeholder:text-zinc-400 dark:placeholder:text-zinc-600 outline-none font-light"
9999
/>
100100
{search && (
101101
<button
102102
onClick={() => setSearch('')}
103-
className="mr-4 text-zinc-500 hover:text-white transition-colors text-sm"
103+
className="mr-4 text-zinc-500 hover:text-black dark:hover:text-white transition-colors text-sm"
104104
>
105105
Clear
106106
</button>
@@ -122,7 +122,7 @@ export default function ContributorsSearch({ contributors }: { contributors: Con
122122
className="flex flex-col items-center justify-center py-24 text-center"
123123
>
124124
<div className="text-6xl mb-6">🔍</div>
125-
<p className="text-2xl font-bold text-white">No architects found</p>
125+
<p className="text-2xl font-bold text-black dark:text-white">No architects found</p>
126126
<p className="mt-3 text-zinc-500 text-lg">Try a different search query</p>
127127
</motion.div>
128128
)}
@@ -151,7 +151,7 @@ export default function ContributorsSearch({ contributors }: { contributors: Con
151151
<Link
152152
href={contributor.html_url}
153153
target="_blank"
154-
className="block h-full relative overflow-hidden rounded-2xl border border-white/[0.08] bg-white/[0.02] p-6 backdrop-blur-sm transition-all duration-500 hover:border-white/20 hover:bg-white/[0.05]"
154+
className="block h-full relative overflow-hidden rounded-2xl border border-black/10 dark:border-white/[0.08] bg-black/[0.02] dark:bg-white/[0.02] p-6 backdrop-blur-sm transition-all duration-500 hover:border-black/20 dark:hover:border-white/20 hover:bg-black/[0.05] dark:hover:bg-white/[0.05]"
155155
>
156156
{/* Mouse-following radial glow */}
157157
<div
@@ -174,13 +174,13 @@ export default function ContributorsSearch({ contributors }: { contributors: Con
174174
alt={contributor.login}
175175
width={90}
176176
height={90}
177-
className="relative rounded-full border-2 border-white/10 transition-all duration-500 group-hover:border-cyan-400/50 group-hover:scale-105"
177+
className="relative rounded-full border-2 border-black/10 dark:border-white/10 transition-all duration-500 group-hover:border-cyan-500/50 dark:group-hover:border-cyan-400/50 group-hover:scale-105"
178178
/>
179179
{/* Online indicator */}
180180
<div className="absolute bottom-1 right-1 w-4 h-4 rounded-full bg-emerald-500 border-2 border-[#0a0a0a] opacity-0 group-hover:opacity-100 transition-opacity" />
181181
</div>
182182

183-
<h3 className="text-lg font-bold text-white group-hover:text-cyan-300 transition-colors duration-300 truncate w-full">
183+
<h3 className="text-lg font-bold text-black dark:text-white group-hover:text-cyan-600 dark:group-hover:text-cyan-300 transition-colors duration-300 truncate w-full">
184184
{contributor.login}
185185
</h3>
186186

@@ -193,7 +193,7 @@ export default function ContributorsSearch({ contributors }: { contributors: Con
193193

194194
<div className="flex-grow" />
195195

196-
<div className="mt-5 w-full inline-flex items-center justify-center gap-2 rounded-xl border border-white/[0.06] bg-white/[0.03] px-4 py-2.5 text-sm font-medium text-zinc-400 transition-all duration-300 group-hover:border-cyan-500/30 group-hover:bg-cyan-500/10 group-hover:text-cyan-300">
196+
<div className="mt-5 w-full inline-flex items-center justify-center gap-2 rounded-xl border border-black/10 dark:border-white/[0.06] bg-black/[0.04] dark:bg-white/[0.03] px-4 py-2.5 text-sm font-medium text-zinc-600 dark:text-zinc-400 transition-all duration-300 group-hover:border-cyan-500/30 group-hover:bg-cyan-500/10 group-hover:text-cyan-600 dark:group-hover:text-cyan-300">
197197
<GitFork className="h-4 w-4" />
198198
View Profile
199199
</div>

0 commit comments

Comments
 (0)