@@ -37,63 +37,62 @@ export function Projects() {
3737 key = { project . title }
3838 initial = { { opacity : 0 } }
3939 whileInView = { { opacity : 1 } }
40+ whileHover = { { scale : 1.01 } }
4041 transition = { { duration : 0.5 , delay : 0.2 } }
4142 viewport = { { once : true } }
42- className = "cursor-pointer hover:scale-101 hover: bg-accent dark:hover:bg-input/20 transition-all duration-200 py-6 rounded-xl"
43+ className = "grid md:grid-cols-2 gap-6 p-6 cursor-pointer hover:bg-accent dark:hover:bg-input/20 rounded-xl"
4344 onClick = { ( ) => navigate ( `/projects/${ project . title } ` ) }
4445 >
45- < div className = "grid md:grid-cols-2 gap-6 px-6" >
46- { project . image && (
47- < div className = "relative rounded-lg overflow-hidden bg-muted" >
48- < img
49- src = { project . image }
50- alt = { project . title }
51- className = "object-cover w-full h-full"
52- />
53- </ div >
54- ) }
46+ { project . image && (
47+ < div className = "relative rounded-lg overflow-hidden bg-muted" >
48+ < img
49+ src = { project . image }
50+ alt = { project . title }
51+ className = "object-cover w-full h-full"
52+ />
53+ </ div >
54+ ) }
5555
56- < div className = "flex flex-col gap-4" >
57- < div >
58- < h1 className = "text-2xl mb-2" > { project . title } </ h1 >
59- < p className = "text-sm text-muted-foreground" >
60- { project . description }
61- </ p >
62- </ div >
56+ < div className = "flex flex-col gap-4" >
57+ < div >
58+ < h1 className = "text-2xl mb-2" > { project . title } </ h1 >
59+ < p className = "text-sm text-muted-foreground" >
60+ { project . description }
61+ </ p >
62+ </ div >
6363
64- < div className = "flex flex-wrap gap-2" >
65- { project . tags . map ( ( tag ) => (
66- < Badge key = { tag } variant = "outline" className = "rounded-full" >
67- { tag }
68- </ Badge >
69- ) ) }
70- </ div >
64+ < div className = "flex flex-wrap gap-2" >
65+ { project . tags . map ( ( tag ) => (
66+ < Badge key = { tag } variant = "outline" className = "rounded-full" >
67+ { tag }
68+ </ Badge >
69+ ) ) }
70+ </ div >
7171
72- < div className = "flex md:justify-end mt-auto" >
73- { project . github ? (
74- < Button
75- variant = "ghost"
76- size = "icon"
77- onClick = { ( e ) => {
78- e . stopPropagation ( ) ;
79- window . open ( project . github , "_blank" ) ;
80- } }
81- >
82- < Code />
83- </ Button >
84- ) : (
85- < Button
86- variant = "ghost"
87- size = "icon"
88- onClick = { ( e ) => {
89- e . stopPropagation ( ) ;
90- navigate ( `/projects/${ project . title } ` ) ;
91- } }
92- >
93- < MoveRight />
94- </ Button >
95- ) }
96- </ div >
72+ < div className = "flex md:justify-end mt-auto" >
73+ { project . github ? (
74+ < Button
75+ variant = "ghost"
76+ size = "icon"
77+ onClick = { ( e ) => {
78+ e . stopPropagation ( ) ;
79+ window . open ( project . github , "_blank" ) ;
80+ } }
81+ >
82+ < Code />
83+ </ Button >
84+ ) : (
85+ < Button
86+ variant = "ghost"
87+ size = "icon"
88+ onClick = { ( e ) => {
89+ e . stopPropagation ( ) ;
90+ navigate ( `/projects/${ project . title } ` ) ;
91+ } }
92+ >
93+ < MoveRight />
94+ </ Button >
95+ ) }
9796 </ div >
9897 </ div >
9998 </ motion . div >
@@ -121,9 +120,10 @@ export function Projects() {
121120 key = { project . title }
122121 initial = { { opacity : 0 } }
123122 whileInView = { { opacity : 1 } }
123+ whileHover = { { scale : 1.02 } }
124124 transition = { { duration : 0.5 , delay : 0.2 } }
125125 viewport = { { once : true } }
126- className = "flex flex-col cursor-pointer hover:scale-102 hover: bg-accent dark:hover:bg-input/20 transition-all duration-200 p-6 gap-6 rounded-xl"
126+ className = "flex flex-col cursor-pointer hover:bg-accent dark:hover:bg-input/20 p-6 gap-6 rounded-xl"
127127 onClick = { ( ) => navigate ( `/projects/${ project . title } ` ) }
128128 >
129129 < h1 className = "text-xl" > { project . title } </ h1 >
0 commit comments