Brand design portfolio. Static site, no build step, deployed on Vercel.
Live: https://dipali-design.digital
The form posts to /api/contact, which sends through Resend.
In Vercel → Project → Settings → Environment Variables, add:
| Variable | Required | Notes |
|---|---|---|
RESEND_API_KEY |
yes | From https://resend.com/api-keys. Free tier: 100 emails/day. |
CONTACT_TO_EMAIL |
no | Defaults to dipali11patel@gmail.com. |
CONTACT_FROM_EMAIL |
no | Defaults to Resend's shared sender, which needs no DNS. Once a custom domain is verified in Resend, switch to e.g. Portfolio <hello@yourdomain.com> — shared senders land in spam more often. |
Redeploy after adding them; env vars are read at runtime but existing deployments don't pick up new values.
Without the key the form still validates and still gives the visitor a clear message pointing at the direct email address — it fails safe, not silently.
dipali-design.digital is already written into the metadata (see below), but
DNS still needs configuring: Vercel → Project → Settings → Domains, add the
domain, then set the records at your registrar. Until that resolves, the
canonical URL and share card point somewhere that doesn't answer.
Vercel → Project → Analytics and Speed Insights, both free on Hobby. The
script tags are already in index.html; until the features are enabled they
404 harmlessly. Custom event wired: contact_form_submit.
/about has an experience timeline driven by the EXPERIENCE array in
index.html. Only the Staedtler role is populated — the earlier history was
left out rather than guessed. See the comment above that array.
https://dipali-design.digital is hardcoded in four files. Social unfurlers
(Slack, LinkedIn, iMessage) don't run JavaScript, so this has to be static — it
can't be computed at runtime. If the domain ever changes, find and replace it in:
index.html— canonical,og:url,og:image,twitter:image, JSON-LDsitemap.xml— every<loc>robots.txt— theSitemap:lineREADME.md— the link at the top
Once DNS resolves, submit the sitemap in Google Search Console.
Static export from a visual site builder. No framework, no dependencies, no build.
| File | Role |
|---|---|
index.html |
Markup, styles, and the component logic (in the text/x-dc script block at the bottom) |
support.js |
Page runtime — template binding, sc-if / sc-for, event wiring |
image-slot.js |
<image-slot> custom element |
video-slot.js |
<video-slot> custom element |
api/contact.js |
Vercel serverless function for the contact form |
vercel.json |
SPA rewrite, redirects, cache and security headers |
Screens are state (view / cat / subcat), mapped to URLs by
pathFromState / stateFromPath in index.html. componentDidUpdate is the
single sync point, so every navigation handler gets history for free.
URLs: /, /about, /contact, /work/<category>, /work/<category>/<subcategory>.
This depends on the SPA rewrite in vercel.json. Without it, loading
/about directly returns 404 — there's no such file on disk.
images/ holds 115 WebP files (~8MB). 26 of them were previously PNGs with a
.webp extension, which is why the folder used to be 45MB; they're real WebP
now at the same pixel dimensions.
<image-slot> lazy-loads by default. Pass loading="eager" on anything above
the fold — currently the home tiles, the about portrait, and the Staedtler hero.
Alt text comes from an explicit alt attribute, falling back to placeholder.
Edit og-image.svg, then:
qlmanage -t -s 1200 -o /tmp og-image.svg
sips -c 630 1200 /tmp/og-image.svg.png --out /tmp/og-crop.png
sips -s format jpeg -s formatOptions 90 /tmp/og-crop.png --out og-image.jpgThe SVG is authored on a 1200×1200 canvas with the card inset at y=285
because macOS Quick Look renders into a square and would otherwise scale a
1200×630 document up and crop the sides off. The centre crop undoes that.
python3 -m http.server 8000Then open http://localhost:8000.
Two caveats: a plain static server has no SPA rewrite, so deep links like
/about 404 (navigating in-app works fine — only a direct load or refresh
fails), and /api/contact doesn't exist, so the form takes its error path. For
either, use vercel dev instead.