Skip to content

jdegand/devchallenges-windbnb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevChallenges Windbnb

Solution for a challenge from DevChallenges.io.

Table of Contents

Overview

Mobile


Mobile Locations


Mobile Guests


Desktop


Built With

Features

This application/site was created as a submission to a DevChallenges challenge. The challenge was to build an application to complete the given user stories. Note: The previous design document may be incomplete, as you need to find an archived version of the challenge as all legacy challenges have had their documentation removed from DevChallenges.

Thoughts

This was a weird one. The search bar is really a modal in disguise. In the original design, it seems like you are supposed to be able to click anywhere on the input and the modal animates from the top of the screen. The modal contains all the real functionality.

The actual airbnb website search bar is an input, 3 buttons, 3 underlays styled to look like one input. The bar animates and grows larger and the search text is displayed next to the magnify on focus.

I tried to implement more of the real airbnb design search bar.

Since I used focus to render the location suggestions panel, you can't tab focus them even though the links are buttons. The minuses and pluses can be tab focused on the guest panel but you can't click them with your keyboard.

Using svgs representing + & - inside the buttons prevents clicks from registering.

When hiding content with event listeners, onClick is too slow and you are better off using onMouseDown instead. See Stack Overflow.

The images linked in the JSON are not small and can cause hitching when scrolling. I lowered the image dimensions since the images are only 400px.

Useful Resources

About

Devchallenges - Legacy - Frontend-Developer - Windbnb

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published