Until recently, my portfolio was a single page with a lot of JavaScript and visual effects. It was fine, but technically it was falling short and was difficult to maintain. I have rebuilt everything from scratch with Astro so that the web loads fast, ranks better on Google, and so I can upload content without complications.
Here are the three main reasons for the change.
The problem with single-page sites
The biggest problem with having everything on a single URL is that for Google, you barely exist. If someone searches for one of my specific projects, it is very difficult for them to find it. Now each project has its own page and, finally, I have been able to add this blog. If you want to be found on the internet, you need a web with real pages, not just a URL with sections.
Fewer animations and more speed
In my previous web, I had backgrounds with Three.js particles and animations that consumed resources unnecessarily. I have decided to simplify the visual part so that the web loads fast. Now JavaScript is only where it is truly needed, like in the mobile menu. Less code means a lighter web with fewer errors.
Now adding content is easy
Before, to upload a new project I had to copy and paste HTML blocks. It was a slow process and I always ended up breaking some tag along the way. Now I use MDX, which allows me to write in plain text and let Astro do the work. This allows me to better organize projects and blog posts, and it takes much less time to update the site.
This change isn’t just about using a new technology; it’s because I wanted a solid web that was easy to keep up to date. In Astro vs WordPress: which should you choose?, I explain when this approach makes sense and when a CMS would be the more practical decision.