1- import clsx from ' clsx' ;
1+ import clsx from " clsx" ;
22
33export type BentoGridProps = {
44 title : string ;
@@ -10,7 +10,7 @@ export type BentoGridProps = {
1010 subtitle : string ;
1111 image : string ;
1212 } [ ] ;
13- }
13+ } ;
1414
1515export function HomeBentogrid ( props : BentoGridProps ) {
1616 const firstLine = props . items . slice ( 0 , 2 ) ;
@@ -34,25 +34,28 @@ export function HomeBentogrid(props: BentoGridProps) {
3434 < div className = "absolute inset-px rounded-lg bg-background max-lg:rounded-t-[2rem]" />
3535 < div
3636 className = { clsx (
37- ' absolute inset-px rounded-lg bg-background max-lg:rounded-t-[2rem]' ,
38- index === 0 && ' lg:rounded-tl-[2rem]' ,
39- index === firstLine . length - 1 && ' lg:rounded-tr-[2rem]' ,
37+ " absolute inset-px rounded-lg bg-background max-lg:rounded-t-[2rem]" ,
38+ index === 0 && " lg:rounded-tl-[2rem]" ,
39+ index === firstLine . length - 1 && " lg:rounded-tr-[2rem]" ,
4040 ) }
4141 />
4242 < div
4343 className = { clsx (
44- 'relative flex h-full flex-col overflow-hidden rounded-[calc(theme(borderRadius.lg)+1px)] max-lg:rounded-t-[calc(2rem+1px)]' ,
45- index === 0 && 'lg:rounded-tl-[calc(2rem+1px)]' ,
46- index === firstLine . length - 1 && 'lg:rounded-tr-[calc(2rem+1px)]' ,
44+ "relative flex h-full flex-col overflow-hidden rounded-[calc(theme(borderRadius.lg)+1px)] max-lg:rounded-t-[calc(2rem+1px)]" ,
45+ index === 0 && "lg:rounded-tl-[calc(2rem+1px)]" ,
46+ index === firstLine . length - 1 &&
47+ "lg:rounded-tr-[calc(2rem+1px)]" ,
4748 ) }
4849 >
4950 < img
5051 alt = { item . subtitle }
5152 src = { item . image }
5253 className = "h-80 object-cover object-left"
5354 />
54- < div className = "p-10 pt-4" >
55- < h3 className = "text-sm/4 font-semibold text-primary" > { item . title } </ h3 >
55+ < div className = "px-8 pt-6" >
56+ < h3 className = "text-sm/4 font-semibold text-primary" >
57+ { item . title }
58+ </ h3 >
5659 < p className = "mt-2 text-lg font-medium tracking-tight text-gray-950 dark:text-accent-foreground" >
5760 { item . subtitle }
5861 </ p >
@@ -63,9 +66,9 @@ export function HomeBentogrid(props: BentoGridProps) {
6366 </ div >
6467 < div
6568 className = { clsx (
66- ' pointer-events-none absolute inset-px rounded-lg shadow ring-1 ring-black/5' ,
67- index === 0 && ' lg:rounded-tl-[2rem]' ,
68- index === firstLine . length - 1 && ' lg:rounded-tr-[2rem]' ,
69+ " pointer-events-none absolute inset-px dark:border rounded-lg shadow ring-1 ring-black/5" ,
70+ index === 0 && " lg:rounded-tl-[2rem]" ,
71+ index === firstLine . length - 1 && " lg:rounded-tr-[2rem]" ,
6972 ) }
7073 />
7174 </ div >
@@ -80,8 +83,10 @@ export function HomeBentogrid(props: BentoGridProps) {
8083 src = { item . image }
8184 className = "h-80 object-cover object-left"
8285 />
83- < div className = "p-10 pt-4" >
84- < h3 className = "text-sm/4 font-semibold text-primary" > { item . title } </ h3 >
86+ < div className = "px-8 py-4" >
87+ < h3 className = "text-sm/4 font-semibold text-primary" >
88+ { item . title }
89+ </ h3 >
8590 < p className = "mt-2 text-lg font-medium tracking-tight text-gray-950 dark:text-accent-foreground" >
8691 { item . subtitle }
8792 </ p >
@@ -92,15 +97,15 @@ export function HomeBentogrid(props: BentoGridProps) {
9297 </ div >
9398 < div
9499 className = { clsx (
95- ' pointer-events-none absolute inset-px rounded-lg shadow ring-1 ring-black/5' ,
96- index === 0 && ' lg:rounded-bl-[2rem]' ,
97- index === secondLine . length - 1 && ' lg:rounded-br-[2rem]' ,
100+ " pointer-events-none absolute inset-px dark:border rounded-lg shadow ring-1 ring-black/5" ,
101+ index === 0 && " lg:rounded-bl-[2rem]" ,
102+ index === secondLine . length - 1 && " lg:rounded-br-[2rem]" ,
98103 ) }
99104 />
100105 </ div >
101106 ) ) }
102107 </ div >
103108 </ div >
104109 </ div >
105- )
106- }
110+ ) ;
111+ }
0 commit comments