Hire me

Project - How I Built (and Rebuilt) My Personal Website

jandurkaj.dev is a multilingual personal website. I built it in 2023 with Next.js 13 and its brand-new App Router, and rebuilt it in 2026 on Next.js 16 together with an AI pair programmer.

Client
Jan Durkaj
Year
–
Service
Next.js development, i18n, SEO, AI-assisted modernization
Project hero image

Motivation

I created this project to learn and practice new concepts in Next.js, such as App Router and Server Components. My goal is to enhance my skills in Next.js/React.js, expand my front-end skills, and update my older personal site, which was built on WordPress CMS. Additionally, I aim to showcase my latest projects.
Maybe you would ask, "Why Next.js?" for such a small site. Gatsby.js is much better, it offers numerous base themes and plugins to speed up the creation process.
My main reason for building a new portfolio site, apart from showcasing the latest projects I have worked on, was to learn. Since I already had some previous experience with Next.js and I wanted to explore server-side rendering, React server components, and to deepen my knowledge of a more versatile framework for large scalable projects, which I would love to use again in the future, there was no other choice, really.

Project Specification

I aimed to create a personal website that truly reflects who I am. Instead of overwhelming visitors with a blatant description of my technical skills, my goal is to provide them with the best understanding of my true self.

From the very beginning, I knew that the key factors to achieve this were:

  • Making the site multilingual.
  • Having a minimalistic and elegant UI/UX.
  • Including personalized UI features.
  • Showcasing my latest projects.
  • Adding hidden jokes as a needle in a haystack.
  • Optimizing the site for SEO and performance.

To avoid the hassle of configuration, initial setup, and creating the UX/UI from scratch, and to save myself hours of work, I decided to start with a starter template. There are many examples available on the Next.js GitHub site that can be used to bootstrap your application and easily installed using the CLI tool called create-next-app. You can find more information about how it works in the Next.js documentation.

Despite many happy years of using CSS with BEM (Block Element Modifier) naming convention and Sass as CSS language extension, I knew I wanted to use Tailwind CSS utility-first CSS framework for the user interface on this project, as I have used it previously and absolutely loved it. And as Next.js comes with native support for Tailwind CSS, it was an obvious and easy decision on this one.

Another native support Next.js framework offers is MDX, and knowing that my personal site is going to have very little of the content, and mostly it will be kind of "static", I knew that it would be a great substitution for setting up and running a full-fledged backend with a database. Despite the original idea to use KeystoneJS as the headless CMS.

As it was clear that my new personal website would be built with React.js, Next.js, MDX, and Tailwind CSS, I began searching for a good starter template. Fortunately, I didn't have to look far, as the creators of Tailwind CSS have another project called Tailwind UI. In late 2022, they have extended it with templates that utilize React.js, Next.js, Tailwind CSS, and MDX. The only downside was the limited options to choose from (I didn't really like any of them), and by August 2023, they were slightly outdated (using the old Next.js Pages Router). However, on August 7th, they released a beautiful minimalistic template for digital studios. The template used the new App Router but did not incorporate Typescript, which is now the default for new Next.js installations.

Good. I just needed to set up Typescript for an existing project, rewrite all existing components, and modify the tone of the UI from studio to a personal website. And guess what? That is exactly what I did, and my portfolio starter template was born.

Tech stack I use

Challenges

TL;DR: The decision to use "the latest and the greatest" on the market was a great source of frustration throughout the project. Below are some examples:

Internationalization

That should not be a big deal; it's just another content per language, I thought to myself originally. So, I followed Next.js documentation for i18n, created my custom middleware, and hit the bottleneck when I tried using translations in Server and Client-side components at the same time.
Framer motion was used heavily on the client side throughout the application for better UX, so I needed a versatile solution that would work fine for both Server and Client-side components.
I was determined to use a 3rd-party package, and at that time the only one that worked the best with Server/Client components was next-intl. I tried various options, and in the end, I decided to go with it as it was the most suitable for my scenario.

Server components and App router

Even though Next.js 13 comes with well-documented support for the Server Components, and the App Router is considered the default, at the time I have started the project, these features were not polished and battle-tested at all.

One of many examples: generateStaticParams was not working with Next.js' experimental feature Server Actions, and there was no real solution for it at the time, until this fix.

MDX and i18n

Due to the nature of the Next.js' App Router and the structure of my starter templated, I had to develop a solution to load the appropriate MDX content based on to the current locale. This allows for the translation of locally stored content in .mdx files.

P.S.: Despite the versatility of next-intl, you cannot use it directly in .mdx files. It is designed for usage within React Components and other Next.js specific areas. You can find more information about the environments where it can be used in the official next-intl documentation.

Rebuilt in 2026

By autumn 2026 the site was still running, but the codebase had aged like milk. Next.js 14 with React 18, an internationalization setup held together by workarounds, Tailwind CSS 3, Jest that no longer liked anything modern, and a Google Analytics cookie banner nobody wanted to see. The question was not whether to update it, but how to do it without spending every evening for a month on it.

So I tried something new: I did the whole modernization together with Claude Code, an AI coding assistant working directly in my repository and terminal.

How we worked

I set one rule from the very first message: no jumping straight into fixes. Every step had to go through the same loop:

  • Analysis of the current state, with findings backed by evidence.
  • Proposal of one step, with the trade-offs spelled out.
  • My green light, and only then the code, in a single commit.
  • Review of the running site on a Vercel preview before moving on.

The upgrade itself went in eight steps: cleanup, next-intl 4, a new case study architecture, Next.js 16 with React 19, Tailwind CSS 4, the contact form, Vitest, and finally a site audit, followed by a few rounds of content and polish. Each step was verified by building the site and comparing every link, translation and sitemap entry before and after.

The result is easy to see on a phone: the home page now scores 96 in Lighthouse instead of 77, and its main content appears in 2.8 seconds instead of 6.3.

Lighthouse mobile scores of the home page: performance 77 and largest contentful paint 6.3 s on Next.js 14, performance 96 and 2.8 s on Next.js 16

What it found that I had missed

The most valuable part was not the upgrades, it was the bugs hiding in plain sight:

  • The case studies were rendered only in the browser. Search engines and link previews saw the header and nothing else. Now every case study is pre-rendered on the server from a single route.
  • Unknown pages answered with a "200 OK" instead of "404 Not Found", because of a loading screen nobody needed on a fully static site.
  • Four case studies shared the meta description "Annie Sloan description". Oops.
  • The case study hero image always downloaded its 1920px version, even on a phone.
  • The contact form trusted whatever the browser sent. It now validates everything on the server, keeps your message when something goes wrong, and filters out bots without a captcha.
  • The footer whiteboard repainted every line on top of itself with each new point, which made the lines jagged, and on a phone a new stroke started where the previous one ended.

What I had to catch

It was a collaboration, not autopilot. The AI deleted the build folder while my dev server was running and broke it, and during a browser test it sent me a real email from my own contact form. That second "mistake" was actually a gift: it revealed that the anti-spam timer failed whenever the serverless function was waking up from a cold start. We fixed it the same day, and the fix was tested on a freshly deployed, cold server.

Its own fixes needed a review too. During the audit it switched date formatting to UTC, which quietly moved every job on my About page one month earlier, and nobody noticed until we refreshed the About page later.

The lesson for me: AI is an incredibly fast and thorough pair programmer, but the decisions, the review and the taste stay with the human. Asking for a proposal first, instead of a finished solution, made all the difference.

How long it took

The whole modernization took me about 4 hours. My estimate for the same volume of work without AI is around 5 working days: roughly half a day each for next-intl, the case study architecture, Tailwind CSS and the contact form, a day for Next.js 16 with React 19, a day for the audit and its fixes, and the rest for cleanup, tests, documentation and this write-up.

With AI
4 h
Estimate without AI
5 days
Dependencies
59 → 39
Accidental email
1

Then I got to play

With the upgrade done, I turned the creativity playground in the footer into a small drawing tool. The bicycle now stays as a gray guide you can trace, with optional snapping to it, plus an eraser, colors and a PNG download. Scroll down and give it a try.

Music of the future

This site is far from perfect. I could spend countless hours adding new features and polishing it, but for now, here is a short list of ideas I could implement in the near future:

  • Adding a blog page with the option to filter by category and sort by various parameters.
  • Adding a strict Content Security Policy.
  • Implementing toast notifications for form feedback on the contact form.
Smoothies drunk
123🥤
Experience
666+
Faster
7×
Cheaper
∞×

More case studies

In Pursuit of the Modern UX/UI

AppScenic is a dropshipping platform that connects retailers with leading suppliers worldwide.

Delve deeper

WordPress unleashed with roots.io

Vixio, marketing site for GamblingCompliance and PaymentsCompliance platforms.

Delve deeper

Tell me about your next project

My offices

  • Arrieta
    Biscay
    Spain
  • Burgos
    Castile and Leon
    Spain
  • Anywhere
    In the world
    Planet Earth