Giter Club home page Giter Club logo

pangaea-lumskin's Introduction

Pangaea Lumskin Challenge

For this challenge we'll be recreating the luminskin.com product page and cart using a GraphQL API in ReactJS. This doesn't need to be a pixel perfect recreation, but the more accurate you make it the better. Overall the things we are evaluating on are functionality, polish (is this production quality) and code quality.

Product Page Requirements

  • Should query from https://pangaea-interviews.now.sh/api/graphql , retrieve the products and display them in a grid. Feel free to use graphql client libraries such as Apollo Client.
  • Each item should display the image, title, price and a "Add to Cart" button.
  • For screens wider than 768px, it should show grid of 3 items, for less than 768px wide it should show a grid of two wide.

Cart Requirements

  • When a user clicks "Add to Cart" on an item it should open the cart sidebar and add the item in.
  • If the item already exists it should increment the quantity.
  • Clicking the + or - buttons will increase or descrease the quantity, if the quantity is 1 and the "-" button is pressed it should remove the item.
  • In the top left there is a currency select, doing so should requery the GraphQL api with a new currency and update the prices.
  • It should sum the items in the cart and display them in the correct selected currency.
  • Ignore anything related to subscriptions

For this challenged I have used the following tools:

  • CSS - Bootstrap, React-Bootstrap
  • JS - React
  • State Management - Props Drilling (React)
  • Fonts - FF Bau, Freight Display
  • GraphQL API - Apollo Client
  • React Hooks - UseEffect, UseState, UseRef
  • CI/CD deployment - Netlify
  • VCS - GitHub

Screenshot 1 (Full Page showing products with title, price and add to cart button)

Screenshot 2 (Showing 2 columns for screens smaller than 768px)

Screenshot 3 (Shopping Cart section showing all items added)

pangaea-lumskin's People

Contributors

chigozieorunta avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar  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.