- Inputs for email and password:
- email is stored in
localStorage
;
- email is stored in
- After logging in, redirects to
/meals
- Profile button;
- Search bar:
- 3 options:
- ingredient;
- name;
- first letter (if typing more than 1 character, a warning is displayed);
- Alert the user if no recipe is found
- 3 options:
- Buttons to go to
/meals
or/drinks
-
A menu with filter options:
All
recipes +- first five categories returned by the API;
-
Shows 12 first recipes returned by the API, respecting the selected filter (
All
is default ):/meals
path only renders food recipes;/drinks
path only renders drink recipes;
-
Each recipe card is a link to redirect to its details page
- Display the recipe's
- image;
- title;
- category;
- alcoholic or not (drinks only);
- ingredient list with measurement;
- instructions;
- youtube's recipe video (food only);
- recommendation carousel:
- displays 2 images at a time, 6 total;
- if it's a food recipe, it will show drinks recommendations, and vice-versa;
- A button that redirects to a
in-progress
page:- if the recipe hasn't been started yet, it reads
Start Recipe
; - if the recipe is already in progress, it reads
Continue Recipe
;
- if the recipe hasn't been started yet, it reads
Share
button:- displays a modal with the message
Link copied!
; - copy url to clipboard;
- displays a modal with the message
Favorite
button:- saves/removes recipe in the
localStorage
- saves/removes recipe in the
- Displays the recipe's
- image;
- title;
- category;
- ingredient list with measurement:
- checkboxes to mark each item;
- checked items are saved in
localStorage
; - checked items are crossed out;
- instructions;
Share
button;Favorite
button;Finish Recipe
button:- only enables when all the ingredients are checked;
- redirects to
/done-recipes
- Menu with filters (
All
is default ):All
,Food
andDrink
;
- Displays a list of cards with each recipe's:
- image;
- name;
- category;
- nationality (food only);
- alcoholic or not (drink only);
- times the recipe was done;
- date of the last time the recipe was made;
- tags;
share
button;
- Each card is a link that redirects to the recipe's details page
- Menu with filters (
All
is default ):All
,Food
andDrink
;
- Displays a list of cards with each recipe's:
- image;
- name;
- category;
- nationality (food only);
- alcoholic or not (drink only);
share
button;unfavorite
button:- the recipe disappears from the page;
- removes recipe from localStorage;
- Each card is a link that redirects to the recipe's details page
- Displays user's email;
Done Recipes
button- redirects to
/done-recipes
;
- redirects to
Favorite Recipes
button- redirects to
/favorite-recipes
;
- redirects to
Logout
button- redirects to
/
and clears localStorage
- redirects to
- With
Jest
andRTL
-
The MealDB API -
https://www.themealdb.com/api.php
-
The CocktailDB API -
https://www.thecocktaildb.com/api.php
Figma prototype and images provided by Trybe
Project developed with React, Jest and RTL
with Carlos Eduardo da Silva, Everton Pereira, João Antônio Sá and Wayne Nacle
using Trello as a Kanban tool