{"id":21307394,"url":"https://github.com/jdegand/windbnb","last_synced_at":"2025-03-15T19:49:10.966Z","repository":{"id":110668896,"uuid":"503057876","full_name":"jdegand/windbnb","owner":"jdegand","description":"Devchallenges - Legacy - Frontend Developer - Windbnb","archived":false,"fork":false,"pushed_at":"2024-10-06T02:14:59.000Z","size":958,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T09:12:41.931Z","etag":null,"topics":["devchallenges","devchallenges-legacy","react"],"latest_commit_sha":null,"homepage":"https://jdegand.github.io/windbnb/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jdegand.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-06-13T17:46:24.000Z","updated_at":"2024-10-06T02:15:02.000Z","dependencies_parsed_at":"2023-04-03T23:18:17.804Z","dependency_job_id":null,"html_url":"https://github.com/jdegand/windbnb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdegand%2Fwindbnb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdegand%2Fwindbnb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdegand%2Fwindbnb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdegand%2Fwindbnb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdegand","download_url":"https://codeload.github.com/jdegand/windbnb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243784103,"owners_count":20347409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devchallenges","devchallenges-legacy","react"],"created_at":"2024-11-21T16:31:43.852Z","updated_at":"2025-03-15T19:49:10.934Z","avatar_url":"https://github.com/jdegand.png","language":"JavaScript","readme":"\u003ch1 align=\"center\"\u003eWindbnb\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n   Solution for a challenge from  \u003ca href=\"http://devchallenges.io\" target=\"_blank\"\u003eDevchallenges.io\u003c/a\u003e.\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch3\u003e\n    \u003ca href=\"https://jdegand.github.io/windbnb\"\u003e\n      Live Link\n    \u003c/a\u003e\n    \u003cspan\u003e | \u003c/span\u003e\n    \u003ca href=\"https://web.archive.org/web/20240417023514/https://legacy.devchallenges.io/challenges/3JFYedSOZqAxYuOCNmYD\"\u003e\n      Challenge\n    \u003c/a\u003e\n  \u003c/h3\u003e\n\u003c/div\u003e\n\n## Table of Contents\n\n- [Overview](#overview)\n  - [Built With](#built-with)\n- [Features](#features)\n- [Useful Resources](#useful-resources)\n\n## Overview\n\n![Mobile view](screenshots/windbnb-mobile.png)\n\n![Mobile view with modal open](screenshots/windbnb-mobile-modal.png)\n\n![Desktop view](screenshots/windbnb-desktop.png)\n\n![Desktop view with modal open](screenshots/windbnb-desktop-modal.png)\n\n![Guest count of modal](screenshots/windbnb-desktop-search.png \"Altered code to show guest count\")\n\n### Built With\n\n- [React](https://react.dev/)\n\n## Features\n\nThis application/site was created as a submission to a [DevChallenges](https://devchallenges.io/challenges) challenge. The [challenge](https://web.archive.org/web/20240417023514/https://legacy.devchallenges.io/challenges/3JFYedSOZqAxYuOCNmYD) 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.\n\n## Useful Resources\n\n- [CodeSandbox](https://codesandbox.io/s/heuristic-shamir-uvkxc) - modal with form\n- [CodeSandbox](https://codesandbox.io/s/currying-breeze-8llqgv) - locked modal\n- [Dev.to](https://dev.to/link2twenty/react-using-portals-to-make-a-modal-2kdf) - react portals\n- [Stack Overflow](https://stackoverflow.com/questions/63074577/close-modal-popup-using-esc-key-on-keyboard) - esc key to close modal\n- [Stack Overflow](https://stackoverflow.com/questions/59017954/react-close-modal-on-click-outside#:~:text=But%20if%20you%20click%20on,body%20will%20close%20the%20modal.) - click outside modal to close\n- [YouTube](https://www.youtube.com/watch?v=eWO1b6EoCnQ) - click outside to close hook\n- [YouTube](https://www.youtube.com/watch?v=mwb6zgs9peU) - click outside to close\n- [Blog](https://javascript.plainenglish.io/using-forwardref-with-react-hooks-9d0d096ad810) - forwardRef\n- [YouTube](https://www.youtube.com/watch?v=f76ZAvCDWZI) - detect outside click of a modal\n- [Stack Overflow](https://stackoverflow.com/questions/54989513/react-prevent-scroll-when-modal-is-open) - prevent scroll\n- [Microsoft Forum](https://social.msdn.microsoft.com/Forums/en-US/d208e967-868c-4dde-8e3e-a549b3d2bdcd/problem-when-pressing-enter-key-in-a-textbox?forum=aspwebforms) - default button\n- [Stack Overflow](https://stackoverflow.com/questions/925334/how-is-the-default-submit-button-on-an-html-form-determined) - first button was triggered when pressing enter when input focused.  That caused my guests panel to display.  I had the guest section as a button.\n- [Stack Overflow](https://stackoverflow.com/questions/7060750/detect-the-enter-key-in-a-text-input-field) - detect enter key\n- [Stack Overflow](https://stackoverflow.com/questions/895171/prevent-users-from-submitting-a-form-by-hitting-enter) - prevent users from submitting a form by hitting enter\n- [Stack Overflow](https://stackoverflow.com/questions/12692089/preventing-double-borders-in-css) - double borders\n- [Codepen](https://codepen.io/dcode-software/pen/oNeyjeR) - button group\n- [Stack Overflow](https://stackoverflow.com/questions/12546499/tint-image-using-css-without-overlay) - overlay\n- [Idea Base Kent](https://ideabasekent.com/wiki/adding-image-overlay-tint-using-css) - image overlay\n- [CSS Tricks](https://css-tricks.com/prevent-page-scrolling-when-a-modal-is-open/) - prevent page scrolling\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdegand%2Fwindbnb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdegand%2Fwindbnb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdegand%2Fwindbnb/lists"}