# Fundraising goal OG image template

A campaign card over a tinted photo: the amount raised, a progress bar towards the goal, supporters and days left.

- Slug: `fundraising-goal`
- Preview (real render): https://shareglint.com/img/templates/fundraising-goal.jpg
- Page: https://shareglint.com/en/templates/fundraising-goal

For charities, crowdfunding and community campaigns: post it at the start and render it again as the total grows. The photo is tinted in your accent colour so white text stays readable on any picture, and the bar is filled to the percentage you send in `progress`.

## Fields

Every field is optional. Long text shrinks to fit instead of overflowing; an image field takes a public URL that we fetch on our side.

| Field | Type | Description | Example |
|---|---|---|---|
| `title` | text | Name of the campaign. (default: Campaign name) | Plant 10,000 native trees along the Vistula |
| `organization` | text | Organisation running the campaign. | Green Banks Foundation |
| `raised` | text | Amount raised so far, e.g. $38,450. | $38,450 |
| `goal` | text | Line after the amount, e.g. raised of $50,000. | raised of $50,000 |
| `progress` | text | Percentage of the goal reached, a number from 0 to 100. (default: 0) | 77 |
| `supporters` | text | Number of supporters, e.g. 1,284 supporters. | 1,284 supporters |
| `days_left` | text | Time left, e.g. 12 days left. | 12 days left |
| `cta` | text | Call to action on the button. (default: Donate) | Donate now |
| `site` | text | Your domain or a short URL. | greenbanks.org |
| `photo` | image URL | Photo of the cause; it is tinted in the accent colour. | https://example.com/images/forest.jpg |
| `accent` | colour | Brand colour as hex, e.g. #6366f1. Drives buttons, highlights and the background glow. (default: #16a34a) | #16a34a |
| `theme` | dark | light | Colour scheme: dark or light. | — |

## Render it with one request

```bash
curl -X POST "https://shareglint.com/v1/images?wait=true" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "template": "fundraising-goal",
    "modifications": {
        "title": "Plant 10,000 native trees along the Vistula",
        "organization": "Green Banks Foundation",
        "raised": "$38,450",
        "goal": "raised of $50,000",
        "progress": 77,
        "supporters": "1,284 supporters",
        "days_left": "12 days left",
        "cta": "Donate now",
        "site": "greenbanks.org",
        "photo": "https://example.com/images/forest.jpg"
    }
}'
```

## Make it yours

accent and theme change per request. For anything more, copy the template into your account: you get an ordinary HTML template with the same fields that you can edit in the dashboard or through the API. If the slug is free on your account, the copy takes it — your integrations switch to your version without changing a line.

```bash
curl -X POST "https://shareglint.com/v1/templates/library/fundraising-goal/copy" -H "Authorization: Bearer sk_live_YOUR_KEY"
```
