GithubHelp home page GithubHelp logo

hamzadarej / pokemon-app Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.67 MB

Single page Pokemon app

Home Page: https://hamzadarej.github.io/Pokemon-app/

JavaScript 5.67% TypeScript 55.56% HTML 14.93% CSS 18.01% SCSS 5.83%
angularjs api typescript css-flexbox rxjs-observables angular-material

pokemon-app's Introduction

PokemonApp

This project was generated with Angular CLI version 13.1.4.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Pages details

Table of Contents

  1. Header
  2. Body
  3. Footer
  4. Error handling
  5. Future improvements

Header

create a header component (name it NavComponent): the header contains the following elements:

  • Title of the app
  • Input field for searching pokemon
  • Selector for change the pokemon image mode (default or shiny)
  • Passing the input value && the pokemonMode to the service through a method setMessage() using Observable to watch the changes

Body

create a body component (name it PokemonListComponent) contains the following elements:

  • louping through the pokemon data and creating a list of pokemon cards
  • add a different background color to the cards its depending on the pokemon type (grass, fire, water etc)
  • include background image for each pokemon as open pokemon-ball image
  • include icons to describe the pokemon details (height, weight, health, attack, defense, speed)
  • add a hover effect to the pokemon image to show the pokemon from back-side
  • implement pagination to show the next pokemon-list
  • get the user input value && the pokemonMode value from the service through a method getMessage() && getMode in order to filter the list of the pokemon and change the pokemon image mode
  • increment the number of pokemon when the user enter a litter in the input field from 16 to 150 pokemon in order to searching through the whole pokemon list

Footer

  • create a footer component (name it FooterComponent)

  • add a copyright text

Error handling

  • create a loader component && loader interceptor (name it LoaderComponent)

  • implement a loading spinner to handle the delay of the server response, its loading till getting 200 status response

  • create a not Found component (name it notFoundComponent)

  • handling the not founding route and get a msg with a link to back to pokemon list component

  • implement a RouterModule(router-outlet) to move between not found component and the main

  • implement a error message to show it to the user if the server response with an error or if the pokemon is not found

Future improvements

  • add a landing page includes a pokemon animation closing pokemon turned and then opening and then redirection to pokemon list component
  • add a pokemon move animation
  • working on unit tests

pokemon-app's People

Contributors

hamzadarej 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.