Overview
In this step-by-step tutorial, you'll learn how to create a stunning, responsive static blog with Next.js, Tailwind CSS, and Contentlayer. The project focuses on delivering exceptional performance with a high Lighthouse score, clean SEO strategies, and an elegant design featuring both dark and light modes.
Not only does this project ensure a smooth user experience, but it also makes managing Markdown-based blogs effortless. Follow along and create a powerful blog website that stands out.
Demo Link: Static Blog Demo
Support: Buy Me Coffee
What You’ll Learn
By the end of this tutorial, you’ll be able to:
Set up a static blog using Next.js.
Leverage the new Next.js App Router for efficient navigation.
Design an aesthetically pleasing homepage and dynamic blog pages.
Create an engaging About Page and a functional Contact Page.
Implement dark and light themes for seamless user experience.
Master key SEO techniques like structured JSON-LD schema and sitemap creation.
Showcase and manage Markdown blogs effectively.
Highlight code blocks with themes, animations, and more.
Key Features of This Portfolio Website
High Lighthouse Score: Optimized for performance, accessibility, and SEO.
SEO-Ready: Includes Google structured data, sitemap, and meta-tags.
Dark/Light Themes: Toggle between elegant themes for day and night use.
Responsive Design: Works flawlessly across all devices.
Markdown Support: Easily showcase and manage blog posts.
Analytics: Tracks blog views using Supabase.
Modern Animations: Lottie animations bring the site to life.
Code Syntax Highlighting: Visually appealing and readable code blocks.
Libraries Used
This project uses a variety of tools and libraries to deliver a polished blog experience:
Next.js: Framework for React-based websites.
Tailwind CSS: For styling and responsive design.
Contentlayer: To render Markdown blogs (with an alternative option using Velite.js).
Supabase: To count and display blog page views.
Lottie Animation: For modern, dynamic visuals.
React Hook Form: Simplifying form handling.
Next Sitemap: Automates sitemap creation.
Google's JSON-LD Schema: Boost SEO with structured data.
Code Links
Here’s where you can access the source code for this project:
Resources
Here’s a list of resources used in this project:
Time Stamps
Find the key milestones in the video tutorial below:
Tailwind CSS Setup, Dark Mode and project files
@00:12:58Adding Google’s Structured JSON-LD for SEO
@07:01:35