A portfolio that does not just describe school projects but lets you run them. Most student portfolios stop at a paragraph and a link to the repository; the idea here is different - for the projects where it makes sense, readers can enter their own input and run the very same program that was written for school.
It started with a single index.html and a single style.css. That version still exists and serves as the design template, but a static page cannot take an input and run a computation on it. That is why this one was built - as an application that can talk to programs written in C++.
Three layers, each with a single responsibility. What matters is what they do not do: the website computes nothing and the server simulates nothing.
The reason for this split is simple: if the website computed the simulation itself, it would have to reimplement all of it in JavaScript - and from then on, the page would be running something other than what was handed in. This way readers really run the original program.
Both demos take the same route: the input travels to the server, which runs the C++ program and returns its result. Each of them had a different reason for it, though:
The price is that the HZA computation loads the server. The breadth-first search from the bachelor’s thesis remembers every configuration it has visited and took up to gigabytes of memory on more demanding words. The website therefore uses iterative deepening depth-first search, which gets by with tens of megabytes, and limits the computation by time - a minute at most. When it accepts a word, it finds the same computation as the original version.
| Layer | With what | Why that |
|---|---|---|
| Website | Next.js, React, TypeScript | Pages are created from the folder structure and pre-generated ahead of time, so they load as static files |
| Styles | plain CSS Modules | The look comes from the hand-written CSS of the original page; a utility framework would only wrap it in someone else’s notation |
| Languages | [lang] segment in the URL | Every page is pre-generated twice, /cs/… and /en/…; the language is visible in the URL and is not stored anywhere else |
| State | Zustand | Holds only two things that survive closing the page: the theme choice and your own HZA automata |
| API server | Node.js, Express | Its only job is to start a process and pass data along, and a few dozen lines are enough for that |
| Projects | C++17 and C++20 | The language they were handed in in; nothing was rewritten |
| Images | Python, standard library | Charts and diagrams are generated by a script, not drawn by hand in an editor |
The purple background, turquoise bars and white blocks with rounded corners come from the original static page - hand-written HTML and CSS created in the ITW course (Web Design). No template, no generator.
This website builds on that look rather than replacing it. The static version remained the binding template: that is why dark mode deliberately switches only two things - the block fill from white to black and the text from black to white. The rest of the palette stays as it was. Recolouring everything would create a second look that would drift apart from the first.