REST Countries API with theme switch
Design comparison
Solution retrospective
CSS styling became a little chaotic. File structure I went with was not the best... Have a few conflicts that I had to overcome with using "!important". A different approach is needed in future projects.
Theme switch when site has more than one page was problematic.
Code could use refactoring and tightening up...
Community feedback
- @SinisaVukmirovicPosted almost 2 years ago
Hey, yeah OK, you could do it like that, but that seems like extra, unnecessary work for the developer, to handle the logic and functionality of filtering, searching, sorting... since the API provides different endpoints for each of the search option.
REST Countries API Documentation
I am making a few fetch API calls but they are all to different endpoints for search ALL, search by NAME, by REGION...
Laggy/slow could be a lot of things... my code, network, servers, API is huge and offers a ton of information, plus its FREE... You can't expect it to run flawlessly...
0 - @enzo-mirPosted almost 2 years ago
Hey ,
I see you challenge and this is working great but little laggy and i think that is due of you request beacause for each send as the : input or select filter you make an api's request. I did it with one and list it as a table then you filter the table as region ... I guess this is the only way to improve the Js code ;)
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord