GithubHelp home page GithubHelp logo

wdi-sg / css-airbnb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wdi-sea/css-airbnb

0.0 3.0 153.0 1.04 MB

Creating Airbnb's card layout in CSS [css]

License: Other

CSS 7.64% HTML 92.36%

css-airbnb's Introduction

Airbnb Mockup

Lots of websites, including Facebook and Airbnb, use a grid layout to display common elements, such as information cards, photos, and other information. The best way to learn how to create these different layouts is to try them ourselves. So let's try recreating a portion of Airbnb's website.

Getting Started

  • Fork and clone this repository to your computer
  • A HTML file (index.html) and CSS file (css/style.css) have been created for you. Content is also provided in a folder called img

Requirements

  • Look at the deliverable screenshot and see how well you can match it.
  • Keep the following in mind when recreating the screenshot
    • Using the right font
    • Obtaining and using relevant images
    • Aligning the text in the center of each image
    • Aligning the images in the center of each page
    • Thinking of the layout in terms of rows and columns

Deliverable

Here's a screenshot of the portion that should be replicated. Deliver the mockup as close as possible. In addition, code should be well-indented and follow best practices, including no linter errors.

Solution

Bonus - Adding Interactivity

Refer back to the gitbook section on DOM and Events. DOM Manipulation Events

  • Attach a click event listener to the See All Guidebooks button. Alert the user that this feature isn't done yet.
  • Attach a click event listener to the See All Destinations button. Alert the user that this feature isn't done yet.
  • Attach a click event listener to each destination square. Inside the callback function, use window.open to trigger a new window with a google map page of that destination.
  • Example url (just copy the entire url from the address bar): https://www.google.com.sg/maps/place/Sonoma,+CA+95476,+USA/@38.291092,-122.4666091,14z/data=!3m1!4b1!4m5!3m4!1s0x8085ac43817b9d77:0x380ed210ee6e045!8m2!3d38.291859!4d-122.4580356?hl=en

Licensing

  1. All content is licensed under a CC-BY-NC-SA 4.0 license.
  2. All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact [email protected].

css-airbnb's People

Contributors

bhague1281 avatar ckkok avatar geluso avatar nickangtc avatar

Watchers

 avatar  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.