I Got a Perfect Lighthouse Score on My First Portfolio Website!
March 23, 2021
I recently finished building and hosting my personal website. My goal was to keep the website static, clean, and fast. In order to make sure that I was following the best practices, I was also trying to achieve that perfect Lighthouse score.
Here are a few details about the technologies I used:
- I knew that selecting the right tools to build a website can be a key to optimizing SEO performance. Since I was building a personal website, I knew I had to use a static site generator. I also wanted to add a blog section that used the DEV.to as a CMS to retrieve my blog-posts. So I knew there was a dynamic aspect to my website as well.
- Using Next.js was a no-brainer since it was the perfect solution for my problem and an added bonus was that I was already comfortable with it.
- As much as I hated using Tailwind on my first project and thought that I'd never continue using this utility framework for any of my further projects, I'm pleasantly surprised to say that this is my third project with Tailwind, and I cannot imagine doing any design work without it.
- I have already made a post about my favorite component libraries using Tailwind and used some of the components from Kutty for this project as well.
cannot read property of undefinederrors and just for that, I am willing to learn and improve my TS skills.
Things I like:
- Having a good Lighthouse Score was of prime importance to me, given that this website is an online representation of me as a developer and will potentially be seen by recruiters and fellow developers alike. I am planning to make a separate post about how I achieved the score, but it's fair to say that I am pretty happy with the result.
- I also like the minimalist and clean design. I was planning to add some animations using Framer-Motion but then decided against it, since I wanted to deploy rather than spend another week learning a new technology that I didn't plan on implementing in the first place.
- Google Analytics helps me monitor the web traffic
- Dark Mode only!😎
Things I wish to improve upon:
- Add a custom domain name
- I need to add my resume
- Fix some minor bugs in my projects
- Add a copy e-mail functionality to my 'Say Hello' button instead of opening a new blank window
- Add Canonical URLs to my blog page
- Add a comment section at the bottom of every blog page that redirects the user to the specific article on DEV.to.
- Syntax highlight the markdown blogs
Feel free to visit the website. I'd love to hear your thoughts on how I can improve it and I'm very much open to constructive criticism!