Open jordbort opened 1 year ago
@jordbort @coreyloftus Complete agree, these were definitely two different sort of lift - one is immediately engaging (the bubbles) while the other (dynamic searching/routing) provides a quality of life + core feature that is hard to fake.
In terms of clarity / modularization it would be helpful to experiment with refactoring your search component so that it could different form components which have their own linked dispatch handler. Your current result component has a lot of state to keep track of and your very extensive chain of dependencies might indicate it is doing too much.
When a component get's this large it becomes more difficult to debug / reason about state changes / render lifecycles.
Search results sorting methods form
The sorting feature for the search results uses a function to update the form state, and uses params to navigate and update the information on the page. The options mirror what sorting and navigation methods were provided by the API, and uses text like "123→ABC" and "ZYX→321" to clearly indicate the sort direction.
Bubble animation
Created bubbles to provide an engaging character and visual appeal to the website. The animation is simple and clean, applied to six bubbles on different CSS animation timers, used to create asynchronous loops for a more realistic appearance.