Commit a0293cf 1 parent 28fc629 commit a0293cf Copy full SHA for a0293cf
File tree 3 files changed +21
-6
lines changed
src/app/(main)/(home)/sections/Organizers
3 files changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,15 @@ const nextConfig = {
61
61
// },
62
62
] ;
63
63
} ,
64
+ images : {
65
+ remotePatterns : [
66
+ {
67
+ protocol : "https" ,
68
+ hostname : "cdn.sanity.io" ,
69
+ pathname : "/images/**" ,
70
+ } ,
71
+ ] ,
72
+ } ,
64
73
} ;
65
74
66
75
module . exports = nextConfig ;
Original file line number Diff line number Diff line change @@ -100,8 +100,9 @@ export const InfiniteMovingCards = ({
100
100
src = { boxBG }
101
101
alt = "Box Background"
102
102
fill
103
+ sizes = "200px"
104
+ loading = "lazy"
103
105
className = "object-contain"
104
- priority
105
106
/>
106
107
</ div >
107
108
@@ -110,8 +111,9 @@ export const InfiniteMovingCards = ({
110
111
src = { box }
111
112
alt = "Box"
112
113
fill
114
+ sizes = "200px"
115
+ loading = "lazy"
113
116
className = "object-contain"
114
- priority
115
117
/>
116
118
< div className = "absolute w-full h-full flex flex-col items-center justify-center gap-0" >
117
119
< p className = "text-sm font-medium text-gray-200 leading-tight" >
@@ -128,15 +130,19 @@ export const InfiniteMovingCards = ({
128
130
< div className = "relative w-16 h-20 bg-black border-2 border-white overflow-hidden transition-transform group-hover:scale-105 group-hover:bg-[#006FB2]" >
129
131
< div
130
132
className = "absolute inset-0 bg-black group-hover:bg-[#006FB2]"
131
- style = { { transform : "skew(30deg ) scale(1.2)" } }
133
+ style = { { transform : "skew(20deg ) scale(1.2)" } }
132
134
>
133
- < Link href = { item . link } target = "_blank" >
135
+ < Link
136
+ href = { item . link }
137
+ target = "_blank"
138
+ className = "relative block w-full h-full"
139
+ >
134
140
< Image
135
141
src = { item . image }
136
142
alt = { item . name }
137
143
fill
144
+ sizes = "(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
138
145
className = "object-cover opacity-75 group-hover:opacity-100"
139
- style = { { transform : "skew(-20deg) scale(0.8)" } }
140
146
/>
141
147
</ Link >
142
148
</ div >
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export const Organizer = z.object({
9
9
name : z . string ( ) ,
10
10
department : z . string ( ) ,
11
11
role : z . string ( ) ,
12
- image : z . string ( ) . optional ( ) ,
12
+ image : SanityImageReference . optional ( ) ,
13
13
link : z . string ( ) . url ( ) . optional ( ) ,
14
14
} ) ;
15
15
You can’t perform that action at this time.
0 commit comments