Create a Portfolio Website using Next.js 14, Tailwind CSS, and Typescript

Posted by

Build a Next.js 14 Portfolio website with Tailwind CSS and Typescript

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.

Thank you for reading this article on how to build a portfolio website using Next.js 14, Tailwind CSS, and Typescript. We hope you found it helpful and can’t wait to see the amazing websites you will create with these technologies!

0 0 votes
Article Rating
11 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
@nayanbramhane8077
11 months ago

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

@theonlyone-ci3lq
11 months ago

im trying to delete the code but i cant theres a file called trace
thats stoping me , why?

@elitepusher
11 months ago

Where can i find these types of assets?

@briancharles5162
11 months ago

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.

@nikolas1549
11 months ago

Please create more NextJs videos, you're doing fantastic!

@GamePixel1
11 months ago

Can i use this project in WordPress , so how i upload this project

@nub8312
11 months ago

Hello, you got discord? I have some questions

@shesparks64
11 months ago

pls share figma files also…if you have

@ahmetnishefci4006
11 months ago

How is that horse moving? Is it gif?

@krishnaagarwal7934
11 months ago

I will be making this tommorrow

@ashutosh_tiwari
11 months ago

You are awesome man🔥