Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions profile/partner_one_pager_portal/COLLEAGUE_SHARE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Colleague share links (local preview)

## Public static preview (works immediately)

- `https://raw.githack.com/Shopify/.github/cursor/partner-profiles-pdf-8a29/profile/partner_one_pager_portal/public_preview.html`

If you run the portal locally, you can share these URLs with colleagues on your network/VPN:

- Main form: `http://<host>:5050/`
- Preview page: `http://<host>:5050/preview`

Direct sample PDFs:

- Graphite sample: `http://<host>:5050/sample-pdfs/sample_graphite`
- Slate sample: `http://<host>:5050/sample-pdfs/sample_slate`
- Aurora sample: `http://<host>:5050/sample-pdfs/sample_aurora`
- Blank template (Graphite): `http://<host>:5050/sample-pdfs/template_graphite`

Replace `<host>` with the machine hostname or IP where the app is running.

## Public hosted app (Render)

- Blueprint import: `https://render.com/deploy?repo=https://github.com/Shopify/.github`
- Branch: `cursor/partner-profiles-pdf-8a29`
- Then share:
- `https://<your-render-service>/preview`
- `https://<your-render-service>/`
59 changes: 59 additions & 0 deletions profile/partner_one_pager_portal/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Partner One-Pager Self-Serve Portal

This is a lightweight web app that lets partners submit their information and generate a branded A4 PDF one-pager automatically.

## What it does

- collects partner profile input via a web form
- accepts partner logo upload (`svg`, `png`, `jpg`, `jpeg`, `webp`)
- calls the existing one-pager renderer in `../partner_one_pager_template`
- generates and downloads a single-page A4 PDF

## Run locally

From this directory:

```bash
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python3 app.py
```

Open:

- `http://localhost:5050/`
- `http://localhost:5050/preview` (share-friendly colleague preview page)

Optional presets:

- `http://localhost:5050/?preset=template`
- `http://localhost:5050/?preset=sample`

## Notes

- default design theme is `graphite`
- additional themes are available in the form: `slate`, `aurora`
- max upload size is 8 MB
- sample PDFs can be accessed directly via `/sample-pdfs/<name>`

## Public preview page (no backend required)

A static public preview page can be shared directly from this branch:

`https://raw.githack.com/Shopify/.github/cursor/partner-profiles-pdf-8a29/profile/partner_one_pager_portal/public_preview.html`

## Deploy a public app URL on Render

This repo includes `render.yaml` at workspace root for one-click setup.

1. Open Render Blueprint import:
- `https://render.com/deploy?repo=https://github.com/Shopify/.github`
2. Select branch: `cursor/partner-profiles-pdf-8a29`
3. Create the service `shopify-partner-one-pager-portal`
4. Use generated public URL (for example `https://shopify-partner-one-pager-portal.onrender.com`)

After deployment, share:

- `/preview` for stakeholders
- `/` for partners to submit content
Loading