Skip to content

ABodey/image-gallery

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

Cute Bunny Image Gallery

For this assignment, build and image gallery view that has:

  • Three different possible components views for a list of images
    • A wrapper component that switches between the views
  • Add and remove functionality for the list of images:
    • Actions
      • Add a new image
      • Remove an existing image
    • Use immutability
    • Use action functions to modify state

Data

The image data looks like:

{ 
  title: 'Cute Bunny',
  description: 'Isn\'t it fuzzy-wuzzy cutest thing you\'ve ever seen?',
  url: 'http://f.cl.ly/items/3g3J1G0w122M360w380O/3726490195_f7cc75d377_o.jpg'
}

You can use your own URL, or work with these cute bunnies:

For now, hard code an initial list of images and store as component state.

Components

The three image viewer component(s) you should build are:

  1. "list"
    1. tabular list - show the list like a table
    2. list item - display the title of the image, the link (not the actual image), and description.
  2. "thumbnail" -
    1. float or inline-block list - show "cards" for each image
    2. each image card shows a "thumbnail" (~ 100x100 pixel scale) and the title (above or below).
  3. "gallery" -
    1. display one image at a time, have left and right arrows to advance/go back
    2. Display the title, description and the full-size image.
    3. (Note: Gallery has own state for which image index it is on)

Then you need a view selector wrapper component that has state and has buttons or some selection mechanism for which view to show.

The image "state" can live in top level App component.

PropTypes

Include PropTypes for all components (that take props)

Testing

You also need to snapshot test:

  • your imaging viewing components
  • the wrapper component (in each view state) Unit test:
  • Data edit actions

Rubric 10pts

  • "list" component 2pt
  • "thumbnail" component 2pt
  • "gallery" component 2pt
  • view selector component 1pts
  • Tests 2pts
  • Code quality 1pt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published