Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

All solutions

  • Submitted


    I wanted to jump ahead to an advanced challenge to push myself. I was able to get everything functional and it runs well. I'm probably not using some React best practices though. Below are a few notes on my code. Recommendations to improve are always very appreciated.

    • To style the components in Light and Dark mode, I'm passing the theme value to the components with props and then conditionally giving them different classes based on that
 props.theme value. This doesn't feel like the most elegant way to do it.

    • I tried to set up the logic for filtering and search simultaneously, or searching through only the filtered countries. I.e. if you select Africa for a filter and then search "Be" it will only show countries that match both the search and the filter. It seemed like the API did not allow you to call data from it with both of these criteria applied simultaneously. So for now this functionality is not present. Does anyone know if that is possible and I was not calling the API correctly for this? (I suppose I could store the filter data from the API in a state and then apply the search "locally" to that as opposed to doing both directly from the API.)

    Thanks so much.

  • Submitted

    HTML, CSS, JS

    • HTML
    • CSS
    • JS

    1


    Any feedback is very welcome and appreciated. : )

    Based on feedback I've been getting I added more than one breakpoint to make the design better accommodate smaller screens and tablets. Added a slide down animation to the mobile navigation menu.

    The slide forward and backward buttons were in different grid cells in mobile and desktop. So I put two button groups in the html and they’re toggled on and off when switching between mobile and desktop. This doesn’t feel like the most elegant solution. Would be curious what others think of this approach and if you would recommend a different approach? Thank you!

  • Submitted

    HTML and CSS

    • HTML
    • CSS

    3


    Feedback always welcome. Thanks. : )