Skip to content

BreeJax/octocats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Octo-Cat

Created using App-App, website will be listed below

this is the website to check it out: https://octo-cat.netlify.com/

Below is the homework

React-ified Octocats

This Octodex is amazing. It has revolutionized the Github Octodex experience and more people are viewing Octocats on their mobile devices than ever.

However, the code is repetitive and isn't yet setup to work with an API.

Your task now is to refactor the static Octodex into a static (non-API) version in React.

You'll identify the main Components on the page and create React components for each, breaking down those Components into smaller ones as needed.

Objectives

  • Learn to identify parts of a web site as Components
  • Use app-app (GAMMA stack) to build a React project
  • Understand and use React components

Stretch Objectives

  • Understand and use "props" in React
  • Use Array.prototype.map to render a collection of components in React

Explorer Mode

  • Use some Octocat images to use in your page (12-16 or so). Your layout should be flexible but doesn't need to perfectly responsive.
  • Figure out the main components of the page. These will be the main components in your <App> component.
  • You should have at least two components...
  • Create your React app
  • Clear out the implementation in the render method of App and have it render your main components.
  • Create those components and paste the appropriate HTML from your Octodex into the render method of those components.
  • Break down those components and use this.props to dynamically customize the components that need it.
  • Place the definition of each Octocat in an array and use map to generate the Octocat components

Adventure Mode

  • Put the array of Octocats in a octocats.json file and import that into your app.

Epic Mode

  • Recreate the page as closely as you possibly can. Use the same fonts, sizes, and colors. Download some of your favorites.
  • Use the fetch api to retrieve the list of Octocats from this api instead

Additional Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published