Giter Club home page Giter Club logo

reliaquestpokemon's Introduction

Devin Moure - Reliaquest Pokemon Assessment

App Demo

App-wide requirements:

  • Should use jss for all styling - no css files.
  • Must use TypeScript for all files

Only Typescript files were used, along with JSS. The only CSS file used was the given, index.css

List Page:

  • Create list items that display the name, number, and types of each Pokémon
  • Each list item should also include a picture of the Pokémon (available through the api)
  • Each list item should have some hover effect

Pokemon List Page with Hover Effect List of Pokemon with their respective images, name, number, and a hover effect.

Searching on List Page

  • Implement a search box that filters the list of Pokémon
  • Should be case insensitive
  • List should only show Pokémon that match the search
  • Searching will be client side only and NOT server side

Search Box

Search is case insensitive and filters Pokemon in list on client side.

Dialog for Pokémon Details

  • Click on a list item and see a dialog/modal with that information.

  • The dialog/modal will be route dependent meaning that whether or not it's shown and what Pokémon's details it's showing is based on the route. This should use react-router.

Responsive App


Issues & Solutions

  • Issue 1
    When creating the router modal, pretty much every tutorial I found only showed how to do it on React Router V5. The code matched all the tutorials, even on the offical React Router website. I asked in the Reactiflux Discord, someone told me that the error I showed them made it seem like I had a package out of date.

Turns out there were many changes in React Router V6 in relation to V5. One of these things that changed being that 'state' is a prop in . I created my own modal that is routed from the Pokemon List component and needed a way to set the background of the page to the one we are currently at so the modal appears over it. After searching for a bit, I found an article on StackOverflow of someone with the exact same issue.

  • Issue 2

Designing the features responsively, to fit on smaller screen sizes such as cell phones, was a bit challenging at first but I was able to learn a lot. I had originally done float: left and float: right to seperate the image from the context. Then after attempting to center the type text in their respective labels, nothing would happen and the text would stay where it was. I learned that this is because the text isn't centered because the elements are floated, and floated elements "shrink" to the content, even if it's a block level element.

I implemented Flexbox to design my layout.

THANK YOU

reliaquestpokemon's People

Contributors

devinoles avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.