Skip to content

Commit 134b0cf

Browse files
committed
Admin: Add some descriptions for the social preview image requirements
1 parent 5b67554 commit 134b0cf

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

app/routes/org.program.$programId.social.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,18 @@ export default function ProgramSocialPage() {
111111
<CardTitle className="text-xl">
112112
Firstname Lastname is certified by {program.name}
113113
</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>
115118
</CardHeader>
116119
<CardContent>
117120
{!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>
119126
) : (
120127
<img
121128
src={`social/preview.png?t=${social.updatedAt}${previewWithPhoto ? "&withPhoto=1" : ""}`}
@@ -149,6 +156,7 @@ export default function ProgramSocialPage() {
149156
<ImageUp />
150157
{social ? "Replace" : "Upload"} background image
151158
</Button>
159+
<p className="text-xs text-muted-foreground mt-1 text-center"> 1200x630 pixel, PNG or JPEG</p>
152160
</fetcherImage.Form>
153161
<div className="flex flex-row justify-between items-center">
154162
<Label htmlFor="previewWithPhoto">Preview with Photo</Label>

0 commit comments

Comments
 (0)