File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,14 @@ export default function TopicsList() {
13
13
< div key = { id } className = "relative group" >
14
14
< Link
15
15
href = { `/topics/${ id } ` }
16
- className = "w-full bg-purple text-white p-6 sm:p-8 rounded-2xl shadow-lg hover:shadow-xl transition-all duration-200 text-left flex flex-col justify-between min-h-[150px] border-2 border-transparent hover:border-white/20 group"
16
+ className = "w-full bg-purple text-white p-6 sm:p-8 rounded-2xl shadow-lg hover:shadow-xl transition-all duration-200 text-left flex flex-col justify-between min-h-[150px] border-2 border-transparent hover:border-white/20 group hover:scale-[1.02] hover:-translate-y-1 "
17
17
>
18
- < div >
18
+ < div className = "relative" >
19
19
< h2 className = "text-2xl font-staatliches text-white mb-2 pr-10" >
20
20
{ topic . title }
21
21
</ h2 >
22
22
< div
23
- className = "absolute top-6 sm:top-8 right-6 sm:right-8 w-8 h-8 rounded-full bg-white/20 hover:bg-white/30 flex items-center justify-center transition-colors border border-white/40"
23
+ className = "absolute top-0 right-0 w-8 h-8 rounded-full bg-white/20 hover:bg-white/30 flex items-center justify-center transition-all duration-200 border border-white/40"
24
24
onMouseEnter = { ( ) => setHoveredTopic ( id ) }
25
25
onMouseLeave = { ( ) => setHoveredTopic ( null ) }
26
26
>
@@ -30,11 +30,12 @@ export default function TopicsList() {
30
30
</ Link >
31
31
32
32
< div
33
- className = { `absolute z-10 w-80 p-5 bg-white rounded-xl shadow-xl top-full mt-2 right-0 text-left border-2 border-purple transition-all duration-200 origin-top-right ${
33
+ className = { `absolute z-10 w-80 p-5 bg-white rounded-xl shadow-xl right-6 sm: right-8 text-left border-2 border-purple transition-all duration-200 origin-top-right ${
34
34
hoveredTopic === id
35
35
? 'opacity-100 scale-100 translate-y-0'
36
36
: 'opacity-0 scale-95 translate-y-2 pointer-events-none'
37
37
} `}
38
+ style = { { top : '4rem' } }
38
39
>
39
40
< div className = "space-y-3" >
40
41
{ topic . description . map ( ( paragraph ) => (
You can’t perform that action at this time.
0 commit comments