jdegand / devchallenges-windbnb

Devchallenges - Legacy - Frontend-Developer - Windbnb

Home Page:https://jdegand.github.io/devchallenges-windbnb/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Devchallenges Windbnb

Solution for a challenge from Devchallenges.io.

Table of Contents

Overview

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.

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.

Useful Resources

About

Devchallenges - Legacy - Frontend-Developer - Windbnb

https://jdegand.github.io/devchallenges-windbnb/


Languages

Language:JavaScript 63.8%Language:CSS 26.7%Language:HTML 9.5%