1
1
import React from "react"
2
2
import { StaticImageData } from "next/image"
3
- import { LinkBox , LinkOverlay } from "@chakra-ui/react"
4
3
5
4
import { TwImage } from "@/components/Image"
6
5
import { Flex } from "@/components/ui/flex"
7
6
8
- import useColorModeValue from "@/hooks/useColorModeValue"
7
+ import InlineLink from "./ui/Link"
8
+ import { LinkBox , LinkOverlay } from "./ui/link-box"
9
9
10
10
export interface DataRow {
11
11
logo : StaticImageData
@@ -34,26 +34,8 @@ const DataProductCard = ({
34
34
description,
35
35
data,
36
36
} : DataProductCardProps ) => {
37
- const boxShadow = useColorModeValue ( "tableBox.light" , "tableBox.dark" )
38
-
39
37
return (
40
- < LinkBox
41
- color = "text"
42
- background = "searchBackground"
43
- border = "1px solid"
44
- borderColor = "lightBorder"
45
- borderRadius = "base"
46
- overflow = "hidden"
47
- boxShadow = { boxShadow }
48
- display = "flex"
49
- flexDirection = "column"
50
- _hover = { {
51
- background : "tableBackgroundHover" ,
52
- boxShadow : boxShadow ,
53
- transition : "transform 0.1s ease 0s" ,
54
- transform : "scale(1.02)" ,
55
- } }
56
- >
38
+ < LinkBox className = "flex flex-col overflow-hidden rounded border border-border shadow-table-box transition-transform duration-100 ease-linear hover:scale-[1.02] hover:bg-background-highlight focus:scale-[1.02] focus:bg-background-highlight" >
57
39
< Flex
58
40
className = {
59
41
"min-h-[200px] items-center justify-center shadow-[rgb(0_0_0/_10%)_0px_-1px_0px_inset]"
@@ -70,8 +52,10 @@ const DataProductCard = ({
70
52
< Flex className = "flex-col justify-between text-left" >
71
53
< div >
72
54
< h3 className = "mx-4 my-8 mb-4 text-2xl font-semibold" >
73
- < LinkOverlay href = { url } isExternal >
74
- { name }
55
+ < LinkOverlay asChild >
56
+ < InlineLink href = { url } hideArrow >
57
+ { name }
58
+ </ InlineLink >
75
59
</ LinkOverlay >
76
60
</ h3 >
77
61
< p className = "mx-4 mb-4 text-sm leading-[140%]" > { description } </ p >
@@ -81,8 +65,7 @@ const DataProductCard = ({
81
65
{ data . map ( ( { logo, coin, apy } , idx ) => (
82
66
< Flex
83
67
key = { idx }
84
- className = "flex justify-between border border-x-0 border-border p-4 text-sm uppercase"
85
- // color="text300"
68
+ className = "justify-between border border-x-0 border-border p-4 text-sm uppercase"
86
69
>
87
70
< Flex className = "items-center" >
88
71
{ logo && (
0 commit comments