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
- Solution URL: https://github.com/GrahamKirwan/Where-in-the-world
- Live Site URL: https://where-in-the-world-xi.vercel.app/
- Semantic HTML5 markup
- SASS & CSS variables
- Flexbox
- Mobile-first workflow
- Vanilla JS
- RESTCOUNTRIES API
For toggable light/dark themes we can grab root css varibles and update the values
function myFunction_set_dark() {
r.style.setProperty('--light-bg', 'hsl(207, 26%, 17%)');
r.style.setProperty('--white', 'hsl(209, 23%, 22%)');
r.style.setProperty('--black', '#fff');
r.style.setProperty('--dark-grey', '#fff');
}
-Pagination -Make borders clickable -Break up JS code to follow MVC
- Website - Graham Kirwan