Static, no-build MVP for NFC tag -> product page -> Dropbox view/upload flows.
/product1/(duplicate for each product)index.htmlstyles.cssscript.jsconfig.js(product-specific settings only)
/assets//shared/shared reset/components/analytics hook/themes/theme-01 ... theme-10/theme CSS and assets
Edit product1/config.js:
dropboxViewUrl: your Dropbox shared view linkdropboxUploadUrl: your Dropbox file request/upload link
No API tokens or secrets are used/stored.
- Copy folder:
cp -R product1 product2
- Edit
product2/config.js:productDisplayNamethemeId- Dropbox URLs
- optional event fields (
coupleName,eventName,date)
- NFC tag should point to
/product2/.
Set themeId in that product's config.js, e.g.:
window.PICDROP_PRODUCT_CONFIG = {
themeId: "theme-05"
}Optional dev preview (does not change config):
https://<your-pages-domain>/product1/?theme=theme-03
- Push this repo to GitHub (repo name can be
PicDropNFC). - In GitHub: Settings -> Pages.
- Source: Deploy from a branch.
- Branch:
main(or your default), folder:/ (root). - Save and wait for the Pages URL.
Because this MVP is static, it cannot inspect files before Dropbox receives them.
Best practical path:
- Prefer Dropbox File Requests and check if Dropbox currently offers file-type restrictions in your plan/UI.
- Keep clear UI guidance: "Photos only, no videos" (included on page).
- If strict enforcement is required, add a serverless upload endpoint (Cloudflare Workers / Netlify Functions / AWS Lambda) that validates MIME/type then forwards accepted files.