This is a solution to the REST Countries API with color theme switcher challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- See all countries from the API on the homepage
- Search for a country using an
input
field - Filter countries by region
- Click on a country to see more detailed information on a separate page
- Click through to the border countries on the detail page
- Click on the pagination to change pages on the homepage
- Toggle the color scheme between light and dark mode
- Solution URL: https://github.com/chianglynn/frontendmentor-rest-countries-api-with-color-theme-switcher
- Live Site URL: https://chianglynn.github.io/frontendmentor-rest-countries-api-with-color-theme-switcher/
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS GRID
- Mobile-first workflow
- JavaSrcipt with Model–view–controller(MVC) pattern
- Stack Overflow - Use async await with Array.map - This helped me for getting correct JSON data instead of an array of promises when I tried to rendering border countries from country code to country name in the detail page.
- Stack Overflow - for loop in a javascript class method not working - This helped me to use for loops in a class function.
- web.dev - Building a color scheme - This helped me to manage multiple color schemes in CSS.
- Website - Lynn Chiang's Portfolio
- Blog - Lynn's Self-taught Records
- Frontend Mentor - @chianglynn