🪪 @joinery/portfolio
Xifré Font's personal site: the five rules, the method behind them, the project maps and the work they produced. It shows what the developer portal builds, without building any of it.
Development
| Command | What it does |
|---|---|
pnpm dev portfolio | Start the site, from the workspace root |
pnpm exec nx build-static @joinery/portfolio | nuxt build --prerender, the build that deploys |
pnpm exec nx test:e2e @joinery/portfolio | Playwright over the build: axe in light and dark, keyboard, motion, SEO tags, sitemap |
builddelegates tobuild-static, so CI builds what deploys.- With
NUXT_PUBLIC_DATA_URLunset, as it is locally and in CI, every page renders without figures or maps.
The portal's payload
Every count, map and benchmark comes from the portal's /embed/data.json, fetched at build from
NUXT_PUBLIC_DATA_URL through useSiteData.ts. The
portal README lists the keys, and
SiteData types them.
- A figure is as fresh as the portal's last deploy.
- Set but unreachable, the URL fails the prerender rather than shipping a page without figures.
- Each composable is its own cut under its own key, so a page's payload carries only what it shows.
- A link into the portal goes through
portalUrl, since a path alone would 404 here. Alive.hrefpath incontent/work/is read the same way.
Structure
| Path | What lives there |
|---|---|
app/pages/ | Front page, Method, About, Project maps (/agentic-workflows), Work and its case studies |
app/components/ | The sections those pages share, and the workflow map and glyph |
content/work/ | One markdown file per Work entry: the frontmatter holds the facts, the body the case study's story, and caseStudy: false marks a tool that links straight to its live URL |
app/assets/work/ | Case-study screenshots at 1440 × 900, served as WebP at 480, 960 and 1440 px |
i18n/locales/en.json | The copy; rules holds the five rules both the front page and Method number |
Deploy
deploy-portfolio.yml runs after each successful portal
deploy, or by hand. It downloads that run's developer-portal-site artifact, serves it on
localhost so the prerender can fetch /embed/data.json, copies it into .output/public/portal/,
and publishes both to the xifre-dev Cloudflare Pages project with wrangler pages deploy.
Cloudflare only hosts.
- A run by hand takes the artifact from the portal's last successful
masterdeploy. - The site is served from the root of
SITE_URLinnuxt.config.ts, which canonical, sitemap and share-image URLs are built on. NUXT_PUBLIC_REPO_URLis baked in at build time, derived by the workflow.
Search and speed
| Concern | Where |
|---|---|
| Title, description, canonical, OG | useSeoMeta on each page; nuxt-seo-utils signs the title with the site name |
| Share image | public/og-image.png (1200×630) by default; a case study uses its own screenshot, cropped to that size |
| Structured data | A Person identity in schemaOrg |
| First paint | Styles inlined; no script preload or chunk prefetch; links prefetch on interaction |
| Hydration | Deferred to load or the first input by deferHydration.ts, copied from huella-legal; a click made before then is replayed |
| Page changes | Pages rise in; a title or screenshot named with carried() flies to its namesake on the next page |
| Visitor ↔ Dev | The view switch reveals the other app in a circle from the click, a cross-document view transition run by siteReveal.js; it needs the portal on this origin at /portal/, and hovering the switch prerenders it |
Boundaries
type:app, scope:portfolio. Depends only on @joinery/configs; nothing depends on it.