---
title: "Building an OS-Style Portfolio in React: How sanderyaz.com Was Made"
description: "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."
url: https://sanderyaz.com/en/blog/building-an-os-style-portfolio-in-react/
author: Sander Yazıcıoğlu
date: 2026-12-02
updated: 2026-12-02
lang: en
tags: ["React","Frontend","SEO","Vite"]
---

# Building an OS-Style Portfolio in React: How sanderyaz.com Was Made

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](/en/blog/react-i18next-multilingual-app/).
- **Cloudflare Pages:** static hosting plus a small worker at the edge. Details in the [Cloudflare article](/en/blog/cloudflare-pages-workers-edge/).

## The app registry

Everything on the desktop (About, Terminal, Portfolio, games, Blog) comes from one configuration array:

```tsx
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:

1. **A static summary in the home page HTML:** who I am, what I do and links to pages are readable without JavaScript.
2. **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](/en/blog/technical-seo-checklist/). For the AI side, `llms.txt` and Markdown versions are covered in [making your website AI-agent ready](/en/blog/make-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](/en/blog/web-font-performance/), 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.

---

About the author: [Sander Yazıcıoğlu](https://sanderyaz.com/en/about/). Sander Yazıcıoğlu is a Senior Full-Stack Developer in Istanbul. At LiveTesting he builds the backend, frontend, realtime systems and Appium automation of a real-device testing platform; before that he built enterprise Angular apps at Testinium and Loadium.
