File tree Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ import { ButtonLink } from "@/components/ui/buttons/Button"
7
7
8
8
import { cn } from "@/lib/utils/cn"
9
9
10
+ import { Card , CardTitle } from "../ui/card"
11
+ import { Center } from "../ui/flex"
12
+
10
13
export type BentoCardProps = HTMLAttributes < HTMLDivElement > & {
11
14
action : string
12
15
href : string
@@ -26,23 +29,25 @@ const BentoCard = ({
26
29
imgHeight,
27
30
title,
28
31
} : BentoCardProps ) => (
29
- < div
32
+ < Card
30
33
className = { cn (
31
- "bg-gradient-to-right flex items-center justify-evenly gap-4 rounded-2xl border p-8 lg:gap-16" ,
34
+ "bg-gradient-to-right flex items-center justify-evenly gap-4 border p-8 lg:gap-16" ,
32
35
className
33
36
) }
34
37
>
35
- < div className = "mb-6 grid place-items-center" >
38
+ < Center >
36
39
< TwImage src = { imgSrc } alt = "" width = { imgWidth } height = { imgHeight } />
37
- </ div >
40
+ </ Center >
38
41
< div >
39
- < h3 className = "mb-2 text-3xl font-black" > { title } </ h3 >
42
+ < CardTitle variant = "black" className = "mb-2" >
43
+ { title }
44
+ </ CardTitle >
40
45
< p className = "mb-8 text-md" > { children } </ p >
41
46
< ButtonLink href = { href } variant = "outline" >
42
47
{ action } < MdChevronRight />
43
48
</ ButtonLink >
44
49
</ div >
45
- </ div >
50
+ </ Card >
46
51
)
47
52
48
53
export default BentoCard
Original file line number Diff line number Diff line change @@ -8,12 +8,12 @@ import { BaseLink } from "./Link"
8
8
const titleVariants = cva ( "group-hover:underline" , {
9
9
variants : {
10
10
variant : {
11
- normal : "font-normal text-lg " ,
12
- strong : "text-2xl font-bold " ,
11
+ bold : "text-2xl font-bold " ,
12
+ black : "text-3xl font-black " ,
13
13
} ,
14
14
} ,
15
15
defaultVariants : {
16
- variant : "strong " ,
16
+ variant : "bold " ,
17
17
} ,
18
18
} )
19
19
You can’t perform that action at this time.
0 commit comments