File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -111,11 +111,18 @@ export default function ProgramSocialPage() {
111
111
< CardTitle className = "text-xl" >
112
112
Firstname Lastname is certified by { program . name }
113
113
</ CardTitle >
114
- < CardDescription > { program . achievement ?? "" } </ CardDescription >
114
+ < CardDescription >
115
+ { program . achievement ??
116
+ "[Please add a description of the achievement in the program settings.]" }
117
+ </ CardDescription >
115
118
</ CardHeader >
116
119
< CardContent >
117
120
{ ! social ? (
118
- < div className = "w-full max-w-[600px] aspect-[1.91/1] flex border border-dashed border-slate-500 justify-center items-center bg-muted" > </ div >
121
+ < div className = "w-full max-w-[600px] aspect-[1.91/1] flex border border-dashed border-slate-500 justify-center items-center bg-muted p-8" >
122
+ Please upload the background layer for the social media preview.
123
+ Image formats PNG and JPEG are supported. Image size should be
124
+ 1200 x 630 pixels.
125
+ </ div >
119
126
) : (
120
127
< img
121
128
src = { `social/preview.png?t=${ social . updatedAt } ${ previewWithPhoto ? "&withPhoto=1" : "" } ` }
@@ -149,6 +156,7 @@ export default function ProgramSocialPage() {
149
156
< ImageUp />
150
157
{ social ? "Replace" : "Upload" } background image
151
158
</ Button >
159
+ < p className = "text-xs text-muted-foreground mt-1 text-center" > 1200x630 pixel, PNG or JPEG</ p >
152
160
</ fetcherImage . Form >
153
161
< div className = "flex flex-row justify-between items-center" >
154
162
< Label htmlFor = "previewWithPhoto" > Preview with Photo</ Label >
You can’t perform that action at this time.
0 commit comments