
In this part, we are going to create a simple header that is fixed at the top, which is white color.
In this part, we are going to add the instagram logo to the header. This time we use the nextjs image and we will talk about how to setup the nextjs config file
In this part, we are going to build the searchbar with tailwindCSS
In the instagram searchbar, we can see the search icon and the cross icon is conditionally rendered base on whether is clicking inside the input box or not. In this video, we are going to use the useEffect, useRef and useState to create this effect
In this part, we will use react fontawesome and heroicon which from tailwindCSS to build the icons group and create the avatar with the help of daisyUI.
In this part, we start building the tooltip which show the number of new followers
In this part, we are going to add the triangle to the tooltip
We already finish the tooltip at the previous part. We are going to add the animation on this tooltip.
In this part, we start building the tooltip of the search, which include the avatar, the title description and the cross icon. We use the heroicon and tailwindcss at this part.
In this part, we are going to add the triangle shape to the tooltip
You can also refer to this for knowing how to create a triangle shape
https://youtu.be/X1rybfFNcBk
In this part, we are going to add the condition to render the tooltip, so when the user click on the searchbar, the tooltip will appear and vice versa.
Create Instagram UI clone with Next.js and tailwind CSS
In this project, we are going to create the Instagram header UI clone with Next.js and tailwind CSS.
The instagram clone looks the same as the real one. It contain the search bar which has the search icon and the cross icon, we will use the react fontawesome and heroicon for creating the icons.
We will create the icons group and avatar with the help of Daisy UI, which enhance the tailwind CSS. We will also add the tooltip which like dropping from the heart icon and it will disppear after a few seconds. This tooltip display how many users just following you.
Also, the tooltip of the search will render only when user click on the input box. The search icon will disappear when
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 tailwindCSS?
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 customisable and themeable. Daisy UI creates a scalable and designer-friendly design system.
What we will cover
Using the react hook to check the user click on the inputbox or not, use the fontawesome, heroicon and daisy ui to help us create this beautiful ig header. Take our css skill to next level by using the CSS animation, transition, transform to build our tooltips.