Skip to content

Commit d89eb21

Browse files
fix: more legible library card hover interactions and badge visibility (#495)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
1 parent 757b5d6 commit d89eb21

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/routes/_libraries/index.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,9 @@ function Index() {
170170
to={library.to ?? '#'}
171171
params
172172
className={twMerge(
173-
`border-2 border-transparent rounded-xl shadow-md p-8 transition-all duration-300
174-
bg-white/90 dark:bg-black/40 backdrop-blur-sm
175-
dark:border-gray-800/50`,
176-
'hover:shadow-lg',
173+
`border-2 border-gray-200 dark:border-gray-800/50 rounded-xl shadow-md p-8 transition-all duration-300
174+
bg-white/90 dark:bg-black/40 backdrop-blur-sm`,
175+
'hover:shadow-2xl hover:shadow-current/20 hover:border-current/50 hover:-translate-y-1',
177176
'relative group',
178177
'min-h-[250px] xl:min-h-[220px]',
179178
library.cardStyles
@@ -227,7 +226,7 @@ function Index() {
227226

228227
{/* Foreground content that appears on hover */}
229228
<div
230-
className="absolute inset-0 z-30 bg-white/95 dark:bg-black/95 p-6
229+
className="absolute inset-0 z-30 bg-white/95 dark:bg-black/95 p-6 rounded-xl
231230
backdrop-blur-sm flex flex-col justify-center opacity-0 group-hover:opacity-100
232231
transition-opacity duration-300"
233232
>
@@ -263,7 +262,7 @@ function Index() {
263262
<>
264263
<div
265264
className={twMerge(
266-
`absolute -top-2 -right-2 z-20 px-2 py-1 rounded-md`,
265+
`absolute -top-2 -right-2 z-40 px-2 py-1 rounded-md`,
267266
[
268267
'bg-gradient-to-r',
269268
library.colorFrom,

0 commit comments

Comments
 (0)