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
- Toggle the color scheme between light and dark mode (optional)
- Solution URL: frontendmentor
- Live Site URL: ei-countries.netlify.app
- Semantic HTML5 markup
- Flexbox
- CSS Grid
- Desktop-first workflow
- TailwindCSS - For styles
- RxJs - For state management and data fetching
- Angular - Frontend framework
I learnt a lot of things about RxJs and Angular.
- Filling a box with an image - This allowed me to make the country flag fill the parent
div
. It enables consistent sizing of images despite the variations in the actual sizes of the different images. I really liked this pattern and will use it going forward.
- Website - Ediongsenyene
- Frontend Mentor - @IEdiong
- Twitter - @IEdiong
Credits to Deborah Kurata for her wonderful course RxJS in Angular: Reactive Development.