The technical choices behind this portfolio: Next.js, project content in MDX as the single source of truth, a protected contact form.
Project facts
- Period
- since March 2026
- Context
- Personal project
- Team
- solo
- Access
- Public code and live demo
- Role
- Concept, design and development.
- Stack
- Next.jsTypeScriptTailwind CSSFramer MotionMDX
Contents
Summary
- For
- Visitors curious about the tech behind this site.
- Problem
- Present projects with consistent information from one page to the next, without copying the same description in several places.
- Outcome
- Personal project: the site you are reading.
Solution
- Project pages generated from MDX files: the frontmatter holds the data (description, technologies, figures and their sources, screenshots), the body holds the text.
- Contact form sent through Resend, with per-IP rate limiting and HTML escaping.
- Dark theme, Framer Motion animations.
- Performance: hero entrance animations in CSS (the text shows up without waiting for JavaScript), images served as AVIF or WebP at the right size, a lightweight build of Framer Motion, non-interactive sections rendered on the server.
Technical details
Key decision
The frontmatter of each MDX file is the single source of project data.
The project cards, the detail page and the home page show the same description and the same figures, with no double entry.
Limitations
- 01Lighthouse measurements are taken locally (localhost, simulated mobile), not yet on the live site.
- 02The “before” measurement was taken on the development server (next dev) and the “after” one on the production build: part of the gap comes from that. On a production build, the score before optimization was 86.
- 03A single measurement per version: the Lighthouse score varies by a few points from one run to the next.
- 04Time to Interactive is still 3.6 s on simulated mobile: React and Framer Motion still have to be downloaded and executed.
Performance before and after optimization
Lighthouse 13.6 reports from November 15, 2026, home page, simulated mobile.
| Metric | Before | After |
|---|---|---|
| Performance score | 73 | 100 |
| Largest Contentful Paint | 8.6 s | 0.9 s |
| Total Blocking Time | 190 ms | 40 ms |
| Time to Interactive | 8.8 s | 3.6 s |
| Speed Index | 1.4 s | 1.1 s |
| JavaScript execution time | 1.7 s | 0.4 s |
| Total page weight | 2,798 KiB | 415 KiB |
| of which images | 1,762 KiB | 76 KiB |
| of which JavaScript | 928 KiB | 215 KiB |
Accessibility, best practices and SEO score 100 in both reports.
Contact
Need something similar? Let’s talk.
Describe your project through the form, WhatsApp or email.