@@ -90,14 +90,30 @@ export default function SponsorPage({
9090 < >
9191 < NextSeo
9292 title = { `${ sponsor ?. title || '' } | CodingCatDev` }
93- canonical = { `https://codingcat.dev/sponsors/` }
93+ canonical = { `https://codingcat.dev/sponsors/${ sponsor ?. slug } ` }
94+ description = { `${ sponsor ?. description } ` }
95+ openGraph = { {
96+ type : 'website' ,
97+ locale : 'en_US' ,
98+ url : `https://codingcat.dev/sponsors/${ sponsor ?. slug } ` ,
99+ title : `${ sponsor ?. title || '' } | CodingCatDev` ,
100+ description : `${ sponsor ?. description } ` ,
101+ site_name : 'Purrfect.dev' ,
102+ images : sponsor ?. coverPhoto ?. public_id
103+ ? [
104+ {
105+ url : `https://media.codingcat.dev/image/upload/f_jpg${ sponsor . coverPhoto . public_id } ` ,
106+ } ,
107+ ]
108+ : [ ] ,
109+ } }
94110 > </ NextSeo >
95111 < Layout site = { site } >
96112 < section className = "grid grid-cols-1 gap-20 p-4 sm:p-10 place-items-center" >
97113 < a href = { sponsor ?. url } rel = "noreferrer noopener" target = "_blank" >
98114 < article className = "grid items-start grid-cols-1 gap-4 shadow-lg rounded-xl justify-items-center justify-self-center hover:shadow-sm" >
99115 < div className = "w-full rounded-lg shadow-lg bg-primary-100 dark:bg-primary-500" >
100- < div className = "p-2" >
116+ < div className = "flex flex-col gap-2 p-2" >
101117 < div
102118 style = { {
103119 overflow : 'hidden' ,
@@ -111,16 +127,16 @@ export default function SponsorPage({
111127 { sponsor ?. coverPhoto ?. public_id && (
112128 < Image
113129 src = { sponsor ?. coverPhoto . public_id }
114- alt = { `Sponsorship Image for ${ sponsor . company } ` }
130+ alt = { `Sponsorship Image for ${ sponsor ?. title } ` }
115131 layout = "fill"
116132 />
117133 ) }
118134 </ div >
119135 </ div >
120136 < h2 className = "flex flex-wrap content-center pl-1 text-2xl font-semibold" >
121- { sponsor . company }
137+ { sponsor ?. title }
122138 </ h2 >
123- < p className = "m-2 text-lg" > { sponsor . description } </ p >
139+ < p className = "m-2 text-lg" > { sponsor ? .description } </ p >
124140 </ div >
125141 < div className = "flex w-full mt-2 rounded-b-lg bg-primary-900" >
126142 < p className = "px-4 py-2 text-sm text-white uppercase border-none cursor-pointer" >
0 commit comments