React · Frontend · SEO · Vite
Building an OS-Style Portfolio in React: How sanderyaz.com Was Made
Behind sanderyaz.com: React, Vite, draggable windows with react-rnd, an app registry, a CRT theme, i18next, and staying SEO and AI-agent friendly despite being an SPA.

Portfolio sites tend to look alike: hero, skills, projects, contact. I wanted something visitors could explore and play with. The result is a retro desktop running in the browser, with windows, a taskbar, a terminal and games. This article covers how I built it and how such an interactive site stays healthy for SEO and performance.
The stack
- React 18 + Vite: a fast dev server and small, split bundles.
- react-rnd: dragging and resizing windows.
- framer-motion: window open and close animations.
- i18next: Turkish and English UI. I cover the setup in the i18next article.
- Cloudflare Pages: static hosting plus a small worker at the edge. Details in the Cloudflare article.
The app registry
Everything on the desktop (About, Terminal, Portfolio, games, Blog) comes from one configuration array:
export const apps: AppConfig[] = [
{ id: 'about', title: 'About me', icon: User, component: AboutMe, category: 'portfolio' },
{ id: 'terminal', title: 'Terminal', icon: TerminalIcon, component: Terminal },
{ id: 'blog', title: 'Blog', icon: Newspaper, url: '/en/blog/', openInNewTab: true }
];
Adding an app means writing a component and adding a line to this array. Desktop icons, the start menu and terminal commands are generated from the same source, so the same information never lives in three places.
The window manager
The state of open windows (position, size, z-index, minimised or not) lives in one place. The focused window comes to the top and the taskbar is drawn from that list. Heavy apps (games, the emulator) load with React.lazy only when opened, so the first screen's JavaScript stays small.
The retro theme
CRT scan lines, phosphor colours and a subtle flicker are done in CSS, and all of it switches off under prefers-reduced-motion. Heavy visual effects moved into a screensaver that starts after a period of inactivity, so they don't occupy the main thread on first load.
The real challenge: an SPA that still does SEO
A desktop drawn entirely in JavaScript is an almost empty page to search engines and AI agents. The fix has two layers:
- A static summary in the home page HTML: who I am, what I do and links to pages are readable without JavaScript.
- Separate static pages:
/about/,/projects/,/cv/and this blog are generated as plain HTML at build time, each with a canonical, JSON-LD, hreflang and a Markdown twin.
The last build step validates all of these pages; the list is in the technical SEO checklist. For the AI side, llms.txt and Markdown versions are covered in making your website AI-agent ready.
Performance
Interactive doesn't have to mean slow. Critical CSS is inlined, fonts are subset and loaded the right way, and images are AVIF/WebP. Blog pages score 100 in all four categories on mobile Lighthouse.
What I learned
- A playful interface noticeably increased how long visitors stay.
- Starting as "just an SPA" was a mistake; the static layer should have been planned from day one.
- A single app registry was the best architectural decision for a growing interface.
Conclusion
A creative portfolio and good SEO and performance aren't rivals. The interactive layer is for people, the static layer for machines; generated from the same content, both win.


