@@ -32,71 +32,66 @@ export function Card({
32
32
const device = useDeviceDetect ( ) ;
33
33
34
34
return (
35
- < div >
36
- < div
37
- key = { id }
38
- onMouseEnter = { ( ) => {
39
- setHoverState ( id ) ;
40
- } }
41
- onMouseLeave = { ( ) => {
42
- setHoverState ( undefined ) ;
43
- } }
35
+ < article
36
+ key = { id }
37
+ onMouseEnter = { ( ) => {
38
+ setHoverState ( id ) ;
39
+ } }
40
+ onMouseLeave = { ( ) => {
41
+ setHoverState ( undefined ) ;
42
+ } }
43
+ className = { classNames (
44
+ "relative dapp-card overflow-hidden" ,
45
+ "p-[0.5px] rounded-[15px] h-[215px] w-full xs:w-[327px] lg:w-[487px] xl:h-[215]" ,
46
+ "md:block md:mb-[24px]" ,
47
+ "card-outline-2 hover:accent-gradient-1" ,
48
+ "cursor-pointer"
49
+ ) }
50
+ >
51
+ < Link
52
+ href = { href }
44
53
className = { classNames (
45
- "relative dapp-card overflow-hidden" ,
46
- "p-[0.5px] rounded-[15px] h-[215px] w-full xs:w-[327px] lg:w-[487px] xl:h-[215]" ,
47
- "md:block md:mb-[24px]" ,
48
- "card-outline-2 hover:accent-gradient-1" ,
49
- "cursor-pointer"
54
+ "w-full h-full p-6 rounded-[15px] border-[0.5px] flex flex-col" ,
55
+ "border-dark-200 bg-dark-00" ,
56
+ "duration-1000 hover:transition hover:ease-in delay-250"
50
57
) }
51
58
>
52
- < Link
53
- href = { href }
54
- className = { classNames (
55
- "w-full h-full p-6 rounded-[15px] border-[0.5px] flex flex-col" ,
56
- "border-dark-200 bg-dark-00" ,
57
- "duration-1000 hover:transition hover:ease-in delay-250"
58
- ) }
59
- >
60
- < div className = { classNames ( customTextStyle ) } >
61
- < span
62
- className = { classNames (
63
- "md:w-full text-2xl tracking-[-2%]" ,
64
- "whitespace-pre-line" ,
65
- {
66
- "accent-dfc-gradient-text" :
67
- hoverState !== undefined && hoverState === id ,
68
- }
69
- ) }
70
- >
71
- { title }
72
- </ span >
73
- < div
74
- className = { classNames (
75
- "text-base text-dark-500 pt-[22px] flex flex-row items-center font-semibold"
76
- ) }
77
- >
78
- { subTitle }
79
- < FiArrowUpRight size = { 20 } className = "ml-[13px]" />
80
- </ div >
81
- < div
82
- className = { classNames (
83
- "absolute mix-blend-screen" ,
84
- customIconStyle
85
- ) }
86
- >
87
- { hoverState !== undefined &&
88
- hoverState === id &&
89
- Icon &&
90
- device === ViewPort . DESKTOP ? (
91
- < IconOnHover id = { `${ id } _hover` } />
92
- ) : (
93
- < Icon id = { `${ id } ` } />
94
- ) }
95
- </ div >
59
+ < div className = { classNames ( customTextStyle ) } >
60
+ < span
61
+ className = { classNames (
62
+ "md:w-full text-2xl tracking-[-2%]" ,
63
+ "whitespace-pre-line" ,
64
+ {
65
+ "accent-dfc-gradient-text" :
66
+ hoverState !== undefined && hoverState === id ,
67
+ }
68
+ ) }
69
+ >
70
+ { title }
71
+ </ span >
72
+ < div
73
+ className = { classNames (
74
+ "text-base text-dark-500 pt-[22px] flex flex-row items-center font-semibold"
75
+ ) }
76
+ >
77
+ { subTitle }
78
+ < FiArrowUpRight size = { 20 } className = "ml-[13px]" />
96
79
</ div >
97
- </ Link >
98
- </ div >
99
- </ div >
80
+ < div
81
+ className = { classNames ( "absolute mix-blend-screen" , customIconStyle ) }
82
+ >
83
+ { hoverState !== undefined &&
84
+ hoverState === id &&
85
+ Icon &&
86
+ device === ViewPort . DESKTOP ? (
87
+ < IconOnHover id = { `${ id } _hover` } />
88
+ ) : (
89
+ < Icon id = { `${ id } ` } />
90
+ ) }
91
+ </ div >
92
+ </ div >
93
+ </ Link >
94
+ </ article >
100
95
) ;
101
96
}
102
97
0 commit comments