Build a Next.js 14 Portfolio website with Tailwind CSS and Typescript
In this tutorial, we will learn how to build a portfolio website using Next.js 14, Tailwind CSS, and Typescript. Next.js is a popular React framework that allows for server-side rendering and better performance. Tailwind CSS is a utility-first CSS framework that makes it easy to build responsive and beautiful designs without writing any custom CSS. Typescript is a typed superset of JavaScript that adds static typing and other powerful features to your code.
Getting Started
First, make sure you have Node.js and npm installed on your machine. You can then create a new Next.js project by running the following commands in your terminal:
npx create-next-app@14 my-portfolio
cd my-portfolio
npm install tailwindcss
npm install @types/react @types/node
After running these commands, you can start your Next.js development server by running npm run dev
. This will start a local development server at http://localhost:3000
.
Adding Tailwind CSS
To use Tailwind CSS in your Next.js project, you will need to create a configuration file for it. You can do this by running the following command:
npx tailwindcss init
This will create a tailwind.config.js
file in your project’s root directory. You can then customize this file to include the Tailwind CSS utilities you want to use in your project.
Using Typescript
To add Typescript support to your Next.js project, you will need to create a tsconfig.json
file in your project’s root directory. You can do this by running the following command:
npx typescript --init
After creating the tsconfig.json
file, you can start writing Typescript code in your Next.js project. Typescript will help you catch errors early and write more maintainable code.
Building the Portfolio Website
Now that you have set up Next.js with Tailwind CSS and Typescript, you can start building your portfolio website. You can create new pages, components, and stylesheets to showcase your work and skills. You can also use the Next.js routing system to create clean and SEO-friendly URLs for your website.
If you have footi kismat like me, you might get error at 3:05 `bg-cover bg-center`, hard code it using style if you can't see the image properly
im trying to delete the code but i cant theres a file called trace
thats stoping me , why?
Where can i find these types of assets?
Hi! Nice tutorial, any idea on how to deal with the little flash when navigating ? I saw the following page a fraction of second then animation plays.
Please create more NextJs videos, you're doing fantastic!
Can i use this project in WordPress , so how i upload this project
Hello, you got discord? I have some questions
pls share figma files also…if you have
How is that horse moving? Is it gif?
I will be making this tommorrow
You are awesome man🔥