https://github.com/dracula27/drinkdeck
A simple app to search for and display drink recipes.
https://github.com/dracula27/drinkdeck
100devs api carousel css css-flexbox css3 html html-css html-css-javascript html-css-js html5 html5-css3 javascript javascript-es6 javascript-vanilla js
Last synced: about 2 months ago
JSON representation
A simple app to search for and display drink recipes.
- Host: GitHub
- URL: https://github.com/dracula27/drinkdeck
- Owner: DrAcula27
- Created: 2024-05-08T00:01:26.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-05-28T21:34:35.000Z (11 months ago)
- Last Synced: 2025-01-18T05:28:33.596Z (3 months ago)
- Topics: 100devs, api, carousel, css, css-flexbox, css3, html, html-css, html-css-javascript, html-css-js, html5, html5-css3, javascript, javascript-es6, javascript-vanilla, js
- Language: JavaScript
- Homepage: https://dracula27.github.io/drinkDeck/
- Size: 452 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Table of Contents
## About The Project
Ever wanted to know that recipe for a certain drink?
With this app, you can search for a drink by name (or partial name) and view all the options via a carousel of options.
### Built With
- [](https://html.spec.whatwg.org/)
- [](https://www.w3.org/Style/CSS/#specs)
- [](https://tc39.es/ecma262/)## Usage
Type the name, or partial name, of a drink for which you need the recipe and either type the `Enter` key or click the `Show Drink Options` button to display the drink options.
- If only one drink is found, the carousel controls will not display.
- If multiple recipes are found for that drink, the carousel controls will be displayed, and you can pause, restart, or use the arrow keys to skip ahead or go back within the carousel.## Optimizations
This project can be improved by:
- [ ] Refactoring the code to account for errors fetching data,
- [ ] Displaying the carousel items that are before and after the current drink to more clearly show the user that multiple drinks were returned,
- [ ] Improving the playing of the carousel to better handle when users search for drinks more than once.## Lessons Learned
- **API Integration.** When getting the data from TheCocktailDB, I learned how to use `fetch` to get `JSON` data from an external source.
- **Data Manipulation.** Once I had the data from TheCocktailDB's API, I learned how to transform that data into a format I needed for the project.
- **Advanced Interactivity.** Building a carousel was much more intense than I originally thought it would be!## Contact
Danielle Andrews - [@DrAcula_codes](https://twitter.com/DrAcula_codes 'Twitter/X') - [daniellerandrews](https://www.linkedin.com/in/daniellerandrews 'LinkedIn') - [email protected]
Project Link: [https://github.com/DrAcula27/drinkDeck](https://github.com/DrAcula27/drinkDeck)
## Acknowledgments
A special thanks to these resources used in the project!
- [TheCocktailDB](https://www.thecocktaildb.com/)
- [GitHub Pages](https://pages.github.com)
- [Font Awesome](https://fontawesome.com)