Giter Site home page Giter Site logo

kebin20 / color-scheme-generator Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 21 KB

An app that uses the Color API to generate different types of color schemes

Home Page: https://kebin20.github.io/color-scheme-generator/

JavaScript 32.71% HTML 44.36% CSS 22.93%

color-scheme-generator's Introduction

color-scheme-generator

An app that uses the Color API to generate different types of color schemes

Key techniques learnt:

  • This project was a very good practice of extracting data from an API using the fetch API and .then and extracting the necessary data needed to display the relevant information. Once again, it was also a good practice using .map() and .forEach when refactoring

Challenges faced:

  • I was facing issues in trying to obtain the hex value from the color picker since it kept reverting to black. I discovered that the problem was a scope problem. I declared a variable to contain the color value outside of the fetch function (the function to send the data to the color API) and was struggling to try and get the color value. However, after declaring it within the fetch function, I was able to get the hex value.

  • Refactoring; I faced a significant obstacle where I wasn't able to reference the index of the hex colors from the API and use the data to set the background color and text content of the color strips as I struggled with the flow of the forEach and map function. However, with the help of a friend, I was shown that the missing link was referencing the index of the color data by using a square bracket.

Additional feature added:

  • Added the ability to be able to copy the hex colour to clipboard and copy the rgb values to copy clipboard after clicking on the colour itself.
  • Enabled a tooltip to show user that the colour is successfully copied to clipboard.

Future implementation:

color-scheme-generator's People

Contributors

kebin20 avatar

Watchers

 avatar

color-scheme-generator's Issues

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.