GithubHelp home page GithubHelp logo

assignment-product-cards's Introduction

Product Cards

Issue tickets have been created so that you can track your progress. As you complete a ticket, close it out.

Study Group Requirements

  • Each person should create a github assignment repo named ASSIGNMENT-product-cards
  • Each person should create a local folder in this location: ~/workspace/foundations/exercises/product-cards.
  • You should be using flexbox.
  • Decide as a team how many branches you will need and what will happen on each branch (remember one feature per branch).

Setup

  • While in ~/workspace/foundations/exercises, make a directory called product-cards
  • Create a github repository called product-cards and push up a README.md file
  • Create a setup branch and push up the usual stuff

Requirements

Your task is to build a grid of cards for a company's products. Here are the requirements for the basic structure of the cards.

  1. Each card should be a div.
  2. Cards should be 3 per row.
  3. Each product should contain a header element that, itself, contains an h2 element where the product's title will be written.
  4. Each product should have three block level html elements.
  5. The first section should contain three child block elements.
    1. The first element contains the product image.
    2. The second element contains the product description.
    3. The third element contains the product availability (e.g. "Available" or "Not Available")
  6. The second section contains product specifications.
    1. This section should have a header containing the word "Specifications"
    2. This section should contain two block elements
    3. The first block element specifies the size.
    4. The second block element specifies the weight.
    5. This section should contain a footer.
    6. The footer contains text stating when the product specifications become invalid.
  7. The third section contains the product pricing.
    1. This section should contain a header.
    2. This section should contain three block elements.
    3. Each block element contains information about the price for different quantities.

Additional style requirements

  1. The entire card has a box shadow.
  2. The card title has a solid 1px border that is lightblue.
  3. The title and product image are centered.
  4. Notice that the text for the description in the image is justified.
  5. The text for the product specification details and pricing details is bold.
  6. The availability element extends the full width of the card, with a dark grey background and yellow text.

Visual example

Here's an image that shows how the cards should appear.

Static Web Product Cards Example

Challenges

Challenge 1: Switch up the colors!

  1. Design your application and use some colors that aren't weird or boring.
  2. Use a tool called Material Palette and pick 2 colors and you will get a resulting palette. You can click to download and then select "CSS" and you will get a file that looks like this:
/* Palette generated by Material Palette - materialpalette.com/brown/teal */

.dark-primary-color    { background: #5D4037; }
.default-primary-color { background: #795548; }
.light-primary-color   { background: #D7CCC8; }
.text-primary-color    { color: #FFFFFF; }
.accent-color          { background: #009688; }
.primary-text-color    { color: #212121; }
.secondary-text-color  { color: #757575; }
.divider-color         { border-color: #BDBDBD; }
  1. Modify your CSS and/or HTML classes to incorporate this new color palette.

Challenge 2: Switch up the font!

  1. Pick font(s) from Google Font and include them in your project. You can use them wherever you want, but uh, don't make it too ugly.

Challenge 3: Sold out.

  1. For items that are no longer available, place this image over top of the product card. Note this is complex positioning, it is going to challenge you.. What I mean by "over the product card" is Sold Out

Challenge 4: Display responsively on any size screen!

  1. Use CSS to conditionally apply styles depending on the width of the screen! (or the size of the browser window) You can do this using a fancy thing called media queries. You can find a good example of how to do that here.

assignment-product-cards's People

Contributors

drteresavasquez avatar

assignment-product-cards's Issues

Challenge 1: Switch up the colors!

Challenge 1: Switch up the colors!

  1. Design your application and use some colors that aren't weird or boring.
  2. Use a tool called Material Palette and pick 2 colors and you will get a resulting palette. You can click to download and then select "CSS" and you will get a file that looks like this:
/* Palette generated by Material Palette - materialpalette.com/brown/teal */

.dark-primary-color    { background: #5D4037; }
.default-primary-color { background: #795548; }
.light-primary-color   { background: #D7CCC8; }
.text-primary-color    { color: #FFFFFF; }
.accent-color          { background: #009688; }
.primary-text-color    { color: #212121; }
.secondary-text-color  { color: #757575; }
.divider-color         { border-color: #BDBDBD; }
  1. Modify your CSS and/or HTML classes to incorporate this new color palette.

Requirements

Requirements

Your task is to build a grid of cards for a company's products. Here are the requirements for the basic structure of the cards.

  1. Each card should be a div.
  2. Cards should be 3 per row.
  3. Each product should contain a header element that, itself, contains an h2 element where the product's title will be written.
  4. Each product should have three block level html elements.
  5. The first section should contain three child block elements.
    1. The first element contains the product image.
    2. The second element contains the product description.
    3. The third element contains the product availability (e.g. "Available" or "Not Available")
  6. The second section contains product specifications.
    1. This section should have a header containing the word "Specifications"
    2. This section should contain two block elements
    3. The first block element specifies the size.
    4. The second block element specifies the weight.
    5. This section should contain a footer.
    6. The footer contains text stating when the product specifications become invalid.
  7. The third section contains the product pricing.
    1. This section should contain a header.
    2. This section should contain three block elements.
    3. Each block element contains information about the price for different quantities.

Setup

Setup

  • While in ~/workspace/foundations/exercises, make a directory called product-cards
  • Create a github repository called product-cards and push up a README.md file
  • Create a setup branch and push up the usual stuff

Additional style requirements

  1. The entire card has a box shadow.
  2. The card title has a solid 1px border that is lightblue.
  3. The title and product image are centered.
  4. Notice that the text for the description in the image is justified.
  5. The text for the product specification details and pricing details is bold.
  6. The availability element extends the full width of the card, with a dark grey background and yellow text.

Challenge 3: Sold out.

Challenge 3: Sold out.

  1. For items that are no longer available, place this image over top of the product card. Note this is complex positioning, it is going to challenge you.. What I mean by "over the product card" is Sold Out

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.