GithubHelp home page GithubHelp logo

clonglam / airbnb-clone Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 376 KB

This is a fully responible clone of Airbnb website, I try to do the basic layout by Nextjs with tailwinds, I used mapbox and mapgl to do the map feature. you can try it yourself.

Home Page: https://airbnb-clone-clonglam.vercel.app/

TypeScript 98.03% JavaScript 1.34% CSS 0.63%

airbnb-clone's Introduction

Airbnb Clone full responsive with map-gl

This is a fully responible clone of Airbnb website, I try to do the basic layout by Nextjs with tailwinds, I used mapbox and mapgl to do the map feature. you can try it your self.

CLick me to the Demo

it may popout the web is not safe but it is normal, dont worry.

Fully-responsive Mobile First

image

image

Mobile first, People have spent more and more time on the internet from mobile ends. The website will show different layout depend on the width of the browser.

map-gl

image

The Map feature help user to visualize the distribution of the rooms. The map need to pass a initial longitude and latitude, I first use a function to calculate a center point of those rooms, so that we can display a overview.

Dynamic route

image

I use getStaticProps, but not the getserverside props since there are no realtime data that need to pass back to the server, I used getstaticprops to do the dynamic page. The server will render pages of different rooms first, When the user selected the rooms that they want, It will route the user to the selected page in very low latency.

What Can I do Next?

I think there are some improment, like adding

  1. a state management lib somehing like redux is a good idea
  2. Third party payment system like strip
  3. User login like Auth0

airbnb-clone's People

Contributors

clonglam avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.