Skip to content

safayavatsal/airbnb-clone

Repository files navigation

Next.js + Tailwind CSS Example

This example shows how to use Tailwind CSS (v2.2) with Next.js. It follows the steps outlined in the official Tailwind docs.

It uses the new Just-in-Time Mode for Tailwind CSS.

Preview

Preview the example live on StackBlitz:

Open in StackBlitz

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

How to use

Execute create-next-app with npm or Yarn to bootstrap the example:

npx create-next-app --example with-tailwindcss with-tailwindcss-app
# or
yarn create next-app --example with-tailwindcss with-tailwindcss-app

Deploy it to the cloud with Vercel (Documentation).

AirBnB Clone

Creating AirBnB clone with tailwind & NextJs:

  • npx create-next-app -e with-tailwindcss airbnb-clone

Command to run the project on local host:

  • npm run dev

Installing Icons:

  • npm install @heroicons/react

Hiding scrollbars:

  • npm i tailwind-scrollbar-hide

Installing date dependancies:

  • npm install --save react-date-range
  • npm install --save react date-fns

Installing ProgressBar:

  • npm i @badrap/bar-of-progress

Installing map dependancies from mapbox:

  • npm install --save react-map-gl
  • npm install geolib

Releases

No releases published

Packages

No packages published