Website Relaunch With Astro, Tailwind CSS, and Preact
After five months of hard work, I’m proud to present my new personal website, built with Astro. Back in February 2023, I began working on the project. I had been wanting to try out Astro for a while, but when content collections were released, I was finally convinced. I also wanted to experiment with Tailwind CSS, so I decided to use it for this project.
Information Architecture, Content, and Design
Previously, many pages were difficult to access, hidden on subpages. To make them easier to find, I added a footer containing all important links to all sections. I also slimmed down the main navigation to only three links: About, Journal, and Projects. I reduced the social links to the three most essential ones: Twitter, GitHub, and Instagram.
The journal pages received a bigger update. I removed the grouping by years, since most of my essays are timeless, and instead introduced a new card design for each essay. On the journal page and the essays, I added the ability to filter by tags.
I’ve utilized AI a lot for my new website. Not only for coding with GitHub Copilot, but also ChatGPT (with Raycast Pro) to debug complex issues during development, generate TypeScript types, or automatically generate code. I used it to write and rewrite text, replace template tags with components, fix typos, and much more. In addition, I used Stable Diffusion to create my profile and cover photos. And I used AI image upscaling to increase all old cover photos.
Previously, I had cover photos on my website, but I removed them because it was too time-consuming to find a new stock photo for each entry. However, with Stable Diffusion, I can now quickly generate a cover photo that fits the topic while experimenting with different art styles and techniques. I started with a few, such as the Bonsai on the homepage and the last 7 essays. I’ll fill in the others over time. Likewise, I’m also planning to write a comprehensive tutorial on how I used Stable Diffusion to generate the bonsai cover image.
Recreating my previous website with Astro was a lot of fun. It was impressive how quickly it was set up and how easy it was to find anything in the documentation. And the speed of Astro is impressive, nearly all of my pages have a perfect 100% rating in Unlighthouse.
It was my first time using Tailwind CSS. Initially, I was skeptical because I didn’t like the idea of writing CSS in HTML. But after using it, I really like it. Writing CSS is much faster and I don’t have to think about naming classes. Additionally, I reduced the CSS size by 30%.