This commit is contained in:
Omar Najjar 2025-03-11 20:35:23 +11:00
parent 3e9ca92304
commit 49d471c918

View file

@ -1694,13 +1694,7 @@ function getShareableImageUrl(proposal) {
`/l_text:Roboto_40_bold:${encodedText}` + `/l_text:Roboto_40_bold:${encodedText}` +
`,co_rgb:EAEAEA,w_900,c_fit,g_north,y_120,x_60` + `,co_rgb:EAEAEA,w_900,c_fit,g_north,y_120,x_60` +
`/l_text:Roboto_28_bold:${encodedAuthor}` + `/l_text:Roboto_28_bold:${encodedAuthor}` +
`,co_rgb:FF00FF,g_north_west,y_50,x_60` + `,co_rgb:FF00FF,g_north_west,y_50,x_60`;
`/l_text:Roboto_24:✔ ${encodedSignatures} verified signatures` +
`,co_rgb:00FF00,g_north_west,y_250,x_60` +
`/l_text:Roboto_24:${encodedVotes} votes` +
`,co_rgb:EAEAEA,g_north_west,y_300,x_60` +
`/l_text:Roboto_20:${encodedTimestamp}` +
`,co_rgb:AAAAAA,g_north_west,y_350,x_60`;
// URL of your template image in R2 // URL of your template image in R2
const templateUrl = encodeURIComponent("https://radical.omar-c29.workers.dev/memes/petition-template.png"); const templateUrl = encodeURIComponent("https://radical.omar-c29.workers.dev/memes/petition-template.png");