A single-page, scroll-driven WebGL journey in black & gold. No templates, no page builders, no CSS fakes — every letter, particle and plaque is real-time 3D. Fully bilingual (English / فارسی with complete RTL), tuned to hold 60fps on real devices.
One fixed, 60-viewport experience. The stage stays still — camera depth, lighting, objects and copy flow continuously through seven scroll-directed chapters:
| # | Chapter | What happens |
|---|---|---|
| 01 | Prologue | XVVIIX assembles letter by letter into six bronze sockets — custom gold shader, GPU sparks on each lock, then the whole wordmark dissolves into a dense 16,000-particle cloud |
| 02 | Work | Five high-resolution project screens orbit on a true circular 3D cylinder with controlled edge-to-edge handoffs |
| 03 | Skills | A nine-sphere solar system on a tilted gold ring — then it never freezes: the spheres melt into 5,500 particles that fall, spread into a gold puddle and fade |
| 04 | Expertise | A 3D browser mockup that builds one fresh website live: foundation → color & design → live preview |
| 05 | Process | Four floating medallions with polished rings and process numbers |
| 06 | Numbers | Three glass-and-gold statistic plaques with crisp HTML typography |
| 07 | Contact | An ornate gold arch and double-door portal — brief form, Telegram and reserved messenger slots |
Chapters hand off through deterministic, reversible gold-particle dissolves; reverse scrolling replays every transition in perfect reverse.
Five selected projects, each linked to its live site — showcased on a 3D cylinder inside the portfolio itself:
| Project | The one-liner |
|---|---|
| DASTIN | A premium Persian food brand — nature, story and quiet cinematic motion |
| CHRONA | Biological-age intelligence as a precise, editorial clinical interface |
| FORMA OS | A sharp launch experience for ambitious software teams |
| LAJEVARD | An editorial home for a Tehran tea house in midnight blue & gold |
| AETHER | A premium AI platform for elite developers and product teams |
- Next.js 16 + React 19 — static-first, production-hardened
- Three.js through React Three Fiber — custom gold shaders, bloom, noise & vignette post-processing
- Lenis — smooth, controlled scrolling; all chapter motion is computed in
useFramefrom scroll progress - Bilingual EN/FA — Vazirmatn & Manrope shipped locally, mirrored RTL layouts, proper Persian digits
- Next Image with AVIF/WebP for portfolio imagery — zero runtime font or image CDNs
npm install
npm run devOpen http://localhost:3000. During development a console web-vitals
reporter logs TTFB / FCP / LCP / CLS and the long-task budget (it is stripped
from production builds).
- Deferred chapters — each 3D chapter is completely unmounted (no geometry,
no shaders, no textures) until the visitor scrolls near it, keeping the initial
load light. Mount order is inspectable at
window.__xvChapterMounts. - Solid → particle handoff — the hero's final TextGeometry is sampled with area-weighted barycentric sampling into a 16,000-point cloud that fills the real front, back and extruded sides of every letter; solid gold and bronze then crossfade into the stationary particle wordmark without positional drift.
- 60fps discipline — WebGL DPR is capped at 1.35 for stable scrolling; the hero background is a single locally optimized 1920w WebP (~79KB, PSNR ≈44dB vs the 2816px / 230KB original).
- Graceful degradation — a WebGL capability gate plus a per-chapter error
boundary;
prefers-reduced-motionis tracked live and choreography adapts. - Security-first production headers — strict CSP, HSTS,
nosniff,Referrer-Policyand a locked-downPermissions-Policyon every response. - Built to be found by AI too —
robots.txtexplicitly welcomes GPTBot, PerplexityBot, ClaudeBot and friends (GEO), alongsidesitemap.xmland anllms.txtpage.
app/
layout.js metadata, JSON-LD, root layout
page.js page entry
globals.css visual system + responsive design
robots.js · sitemap.js SEO / GEO routes
llms.txt/ markdown intro for generative engines
not-found.js
components/
Portfolio.jsx site content, EN/FA language system, Lenis wiring
Header.jsx · Loader.jsx navigation + cinematic loading sequence
Timeline.jsx scroll progress timeline (client-only)
WebGLBoundary.jsx capability gate + fallback
VitalsReporter.jsx dev-only web-vitals console
scene/ the WebGL journey — one module per chapter
index.js Canvas + WebGL gate
Scene.jsx composition, lighting, post-processing
ScrollStory.jsx hero: six gold letters, 16k-particle handoff
ProjectsChapter.jsx 3D project screens
SkillsChapter.jsx orbiting skill nodes + particle rain
ServicesChapter.jsx browser-mockup build sequence
ProcessChapter.jsx medallion plaques
ContactPortal.jsx gold arch + double-door portal
DeferredChapter.jsx mounts a chapter only when approached
SceneBoundary.jsx per-chapter error boundary
effects.jsx ambient dust + cursor trail lights
constants.js · utils.js chapter boundaries, palette, easing, RNG
useReducedMotion.js live motion-preference tracking
lib/
faDigits.js Persian digit conversion
public/ local fonts, project shots, icons, OG card
scripts/ build helpers (asset prefixing, visual audit)
- Every push to
mainis built and deployed to GitHub Pages automatically by GitHub Actions. - The site ships with a web app manifest and icons — it is installable on mobile as an app-like experience.
پورتفولیوی تکصفحهای و سینمایی با وبجیال واقعی: بدون هیچ قالب آماده، با تایپوگرافی فارسی صحیح (Vazirmatn) و پشتیبانی کامل RTL. هر فونت، هر ذره و هر حرکت از صفر کد شده — طوری که روی دستگاههای واقعی هم ۶۰ فریم بر ثانیه بماند.