Giter Club home page Giter Club logo

lab-27-28-image-gallery's Introduction

cf lab-27-28-image-gallery

Issues?

To Submit this Assignment

  • fork this repository
  • write all of your code in a directory named lab- + <your name> e.g. lab-duncan
  • push to your repository
  • submit a pull request to this repository
  • submit a link to your PR in canvas
  • write a question and observation on canvas

Directions

  • Create these directories to organize your code:
  • app
  • app/component
  • app/html
  • app/scss/vendor
  • app/asset/image
  • create a _theme.scss partial
  • add three color variables
  • create a base.scss file
  • import normalize
  • import _theme
  • write some styles that use the color variables defined in _theme
  • create a entry.js
  • require your index.html and force webpack to use the file-loader
  • require your base.scss

Requirements

For this assignment, build three different display components for an image url:

  1. The first should display the title of the image, description of the image, and the link (not the actual image), and short description.
  2. The second should display the image as a "thumbnail" (within a 100x100 pixel scale).
  3. The third should display the title, description of the image, and the full-size image, and the description.

Create a gallery component that contains hard-coded image data for populating the gallery. The gallery component must have data for at least five images. You must find your own images (and optionaly thumbnails of the same image).

Your component's must allow attributes to set the title, description, and imageUrl properties of their scopes. Each of your component's must also have its own scss file that styles its appearance.

BONUS:

  • 1pt Have the high-level component take a "parameter" to toggle between the display modes.

Rubric

App requirements: 6pts

  • Create a directive to display a text only version of the image.
  • Create a directive to display a thumbnail version of the image.
  • Create a directive to display a full size image with a title and description.
  • Create a gallery that populates and displays the image data components

Code style: 3pts

  • Passes linter
  • Well-named functions and variables, properly scoped
  • Good project organization

Git usage: 1pt

  • Well-structured pull request
  • Accurate commit messages
  • Clear, readable git history

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.