Build Instagram profile page UI clone w/Next.js TailwindCSS

Step by Step to build the Instagram header and tooltip same as real one

Web Development
Build Instagram profile page UI clone w/Next.js TailwindCSS
38 mins
Dec 2021
last update
regular price

What you will learn

Build a real world app

Nextjs and tailwindcss integration

Consume unsplash API

Setup environment variable

React hooks


Create Instagram UI clone with Next.js and tailwind CSS

In this project, we are going to create the profile page UI clone with Next.js and tailwind CSS.

The Instagram clone looks the same as the real one. It contains an avatar and its username, description, tags, and also URL. For the avatar, we will use the DaisyUI. We will also use the Fontawesome and Heroicon to add different icons at different places, such as tab buttons and settings.

The following effect is exactly the same as real Instagram

The stories on the profile page will scroll smoothly by adding a custom scroll button, which on top of all the stories, the scroll left button will appear when it starts to scroll. When scrolling to the end, the scroll right button will disappear.

The button list has the effect that when the user clicks on it, it will have a dark line appear in line with the horizontal line.

For the image posts, we fetch the images from the Unsplash API with Axios. When mousing over the post, it will have a semi-transparent black cover the image, it will also show the number of hearts and number of comments.

Why Nextjs?

All of the React components that make up a website's user-facing section are rendered on the server first. This means that after the HTML has been transmitted to the client (the user's browser), the user can read the material on the page without having to do anything further. The user perceives page loading speeds to be substantially faster as a result of this.

SSR also provides an out-of-the-box, indexable and crawlable website, which is critical for Search Engine Optimization (SEO) because no client-side javascript is required to view the page content. Essentially, increased technical SEO benefits our clients.

Why tailwind CSS?

Tailwind CSS is a popular low-level CSS framework with a lot of customization options. Bootstrap is widely used as a comparison. They are, nevertheless, essentially different. Rather of delivering pre-designed components like Bootstrap, Tailwind provides building pieces that allow developers to quickly create designs.

Why Daisy UI?

Daisy UI enhances Tailwind with attractive component classes that are totally customizable and themeable. Daisy UI creates a scalable and designer-friendly design system.

What we will cover

Using environment variables to store the data that need privacy. In this project, we store the Unsplash API to .env.local to prevent it from opening to the public. It will not upload to git during git push. We also demonstrate how to add the tailwind CSS plugin, add custom CSS at the tailwind config file.



Introduction and create profile component
Add user avatar
Add user detail
Profile stories
Horizontal line and tab buttons
Consume Unsplash API
Render images
Images hover effect

Sell online with Shopify

3 months for 3 €

Notre nouveau site qui scanne en temps reel les prix sur Amazon Warehouse (FR)

> 40% reduction sur le prix initial
udemy ID
course created date
course indexed date
course submited by