@@ -3,7 +3,7 @@ import { useTranslation } from "next-i18next"
3
3
4
4
import { Card , CardContent , CardFooter , CardHeader } from "@/components/ui/card"
5
5
6
- import { Button } from "./ui/buttons/Button"
6
+ import { ButtonLink } from "./ui/buttons/Button"
7
7
import InlineLink from "./ui/Link"
8
8
import { TwImage } from "./Image"
9
9
@@ -37,7 +37,7 @@ const Layer2ProductCard = ({
37
37
const { t } = useTranslation ( "page-layer-2" )
38
38
39
39
return (
40
- < Card className = "flex flex-col justify-between rounded-md border-0 p-2 shadow-lg transition-transform duration-100 hover:scale-[1.02] dark:bg-background-medium " >
40
+ < Card className = "flex flex-col justify-between rounded-md border-0 bg-background-highlight p-2 shadow-lg transition-transform duration-100 hover:scale-[1.02]" >
41
41
< div
42
42
className = "mb-4 flex min-h-[200px] items-center justify-center border-b"
43
43
style = { { backgroundColor : background } }
@@ -46,8 +46,7 @@ const Layer2ProductCard = ({
46
46
src = { image }
47
47
alt = { alt }
48
48
width = { 100 }
49
- height = { 100 }
50
- className = "max-h-[257px] object-contain"
49
+ className = "max-h-[257px] object-cover"
51
50
/>
52
51
</ div >
53
52
@@ -101,17 +100,9 @@ const Layer2ProductCard = ({
101
100
102
101
< CardFooter className = "mt-2 p-2" >
103
102
{ url && (
104
- < Button
105
- asChild
106
- className = "w-full rounded-sm hover:text-white hover:shadow-[4px_4px_4px_rgba(147,51,234,0.25)] dark:bg-primary-action dark:hover:bg-primary/90 dark:hover:shadow-[4px_4px_4px_rgba(0,0,0,0.9)]"
107
- >
108
- < InlineLink
109
- href = { url }
110
- className = "flex items-center gap-0 text-lg text-white no-underline"
111
- >
112
- { t ( "layer-2-explore" ) } { name }
113
- </ InlineLink >
114
- </ Button >
103
+ < ButtonLink className = "w-full" href = { url } >
104
+ { t ( "layer-2-explore" ) } { name }
105
+ </ ButtonLink >
115
106
) }
116
107
</ CardFooter >
117
108
</ Card >
0 commit comments