@@ -9,7 +9,7 @@ const rightSponsorSvgSmall = "/svgs/judgingCriteria/rightSponsorSvgSmall.svg";
9
9
10
10
export default async function ThankSponsors ( ) {
11
11
const IMAGE_CLASS =
12
- "relative size-12 min-w-12 overflow-hidden rounded-full duration-300 group-hover:-translate-y-1 group-hover:shadow-2xl group-hover:transition-transform sm:size-28 sm:min-w-28 " ;
12
+ "relative duration-300 group-hover:-translate-y-1 group-hover:shadow-2xl group-hover:transition-transform " ;
13
13
14
14
const sponsors = await fetchContent ( "hackathonSponsor" ) ;
15
15
const sortedSponsors = sponsors . sort (
@@ -19,7 +19,7 @@ export default async function ThankSponsors() {
19
19
return (
20
20
< div className = "relative flex flex-col items-center justify-center overflow-hidden pb-12 pt-10" >
21
21
< div className = "flex h-48 w-full justify-center" >
22
- < div className = "absolute -left-12 top-24 z-20 size-44 sm:hidden" >
22
+ < div className = "absolute -left-12 top-24 z-20 size-44 sm:hidden" >
23
23
< Image
24
24
src = { leftSponsorSvgSmall }
25
25
alt = "squiggly lines"
@@ -64,27 +64,50 @@ export default async function ThankSponsors() {
64
64
65
65
< div className = "flex w-full flex-row justify-around px-8 pt-10" >
66
66
{ sortedSponsors . map ( ( sponsor , index ) => (
67
- < div className = "flex flex-row gap-2 sm:gap-3" key = { index } >
67
+ < div className = "flex flex-row gap-2 sm:gap-3" key = { index } >
68
68
< div className = "group flex flex-col items-center gap-3" >
69
- < div className = { IMAGE_CLASS } >
69
+ < div
70
+ className = { IMAGE_CLASS }
71
+ style = { {
72
+ maxWidth : "300px" ,
73
+ width : "95%" ,
74
+ height : "100%" ,
75
+ padding : "5px" ,
76
+ borderRadius : "20px" ,
77
+ overflow : "hidden" ,
78
+ display : "flex" ,
79
+ justifyContent : "center" ,
80
+ alignItems : "center" ,
81
+ } }
82
+ >
70
83
< a
71
84
href = { sponsor . fields . sponsorPage }
72
85
target = "_blank"
73
86
rel = "noopener noreferrer"
74
87
>
75
- < Image
76
- src = {
77
- sponsor . fields . sponsorImg . fields . file ?. url
78
- ?. toString ( )
79
- . replace ( "//" , "https://" ) ?? ""
80
- }
81
- alt = "Sponsor Image"
82
- style = { { objectFit : "contain" } }
83
- fill
84
- />
88
+ < div
89
+ style = { {
90
+ width : "100%" ,
91
+ height : "100%" ,
92
+ borderRadius : "inherit" ,
93
+ } }
94
+ >
95
+ < Image
96
+ src = {
97
+ sponsor . fields . sponsorImg . fields . file ?. url
98
+ ?. toString ( )
99
+ . replace ( "//" , "https://" ) ?? ""
100
+ }
101
+ alt = "Sponsor Image"
102
+ layout = "intrinsic"
103
+ objectFit = "contain"
104
+ width = { 150 }
105
+ height = { 150 }
106
+ />
107
+ </ div >
85
108
</ a >
86
109
</ div >
87
- < p className = "inset-0 text-center opacity-0 transition-all duration-300 group-hover:opacity-100" >
110
+ < p className = "text-center opacity-0 transition-all duration-300 group-hover:opacity-100" >
88
111
{ sponsor . fields . sponsorName }
89
112
</ p >
90
113
</ div >
0 commit comments