Code Monkey home page Code Monkey logo

js-dom-pokemon-cards's Introduction

Pokemon Trading Cards

We're going to create a Pokemon Trading Cards show page. To achieve this, you'll use JS to dynamically create all the elements on the page. The end result should look like this:

Result

Learning Objectives

  • Use JavaScript and the DOM to render dynamic HTML

Instructions

  • The data.js file contains a global array that contains information on different pokemon types
  • Inside index.js, you should loop through this array and render a "card" for each pokemon type. Use the example image as a reference.
  • You will also find an HTML example commented out in the index.html
  • Use the exact CSS classes you see in the example HTML to obtain the same style for each card
  • The cards should be nested inside <ul class="cards"></ul>
  • Use the official-artwork object key as the images for the card. The images are all inside of the sprites key, in each pokemon object
  • Render all the cards on the page that represents all the pokemons, recreating the same layout, using JS

Extended Requirements

  • Add an extra section to each card that contains information about which games each pokemon appeared in.
  • See if you can find a way to toggle between the different images of each card! (this is a hard one! You might want to use google...)

js-dom-pokemon-cards's People

Contributors

cj-cheng avatar dearshrewdwit avatar mikemherron 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.