Git Product home page Git Product logo

code-challenge's Introduction

Solution to New Engen Code Challenge

By Zack Carlson

Live Link๐Ÿš€

Instructions

  1. Navigate to repo
  2. Clone locally using git clone https://github.com/zackcarlson/code-challenge.git
  3. Install dependencies using npm install
  4. Run tests using npm test
  5. Start your dev server using npm run dev
  6. Navigate to app in browser
  7. Enjoy!

Discussion

I used the following technologies: React, React Context, React Hooks, React Router, PropTypes, TypeScript, GraphQL, Apollo Client, Enzyme, Jest, Serve, Husky, Eslint, Prettier, and CSS. I used create-react-app to generate the scaffolding for this app.

Core Goals

Replicate design

Replicate functionality

  • Click "Load More" button retrieves "# of your choice" more colors from database
  • Display a grid list of colors on homepage
  • When a color is clicked, it should be saved to the color cart.
  • Cart Icon that displays the current number of added colors in the sites header.
  • Clicking on the cart icon should route you to the /cart route view which should display the list of saved palette colors which a user can delete.
  • Refreshing the /cart route should reload the page and rehydrate the page with the correct data (ie the colors the user selected before refreshing the page).
  • The styling should be responsive so the application looks appropriate no matter the screen size.

Stretch Goals

Name and save current selected cart colors on the /cart route and display a list of previously saved color palettes

  • I completed this functionality using React Context and localStorage.

Adding animation and motion (id route transitions, hover effects where it seems appropriate)

  • I didn't add in route transitions, but I did add in appropriate hover effects.

code-challenge's People

Contributors

imjakechapman avatar zackcarlson avatar

Watchers

 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.