diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..2f3ca25c --- /dev/null +++ b/.gitignore @@ -0,0 +1,26 @@ +// .gitignore file code/secret.js + +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + + +# Ignore Mac system files +.DS_store + +# Ignore node_modules folder +node_modules + +# Ignore all text files +*.txt + +# Ignore files related to API keys +.env + +# misc +/.pnp +.pnp.js +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# other +code/secret.js \ No newline at end of file diff --git a/README.md b/README.md index 1613a3b0..ec617caf 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,12 @@ # GitHub Tracker -Replace this readme with your own information about your project. - -Start by briefly describing the assignment in a sentence or two. Keep it short and to the point. +Create a tracker for my progress as a student at Technigo bootcamp. ## The problem -Describe how you approached to problem, and what tools and techniques you used to solve it. How did you plan? What technologies did you use? If you had more time, what would be next? +I started with getting the fetches, trying to remember everything from last weeks project. Had some trouble with (a lot) but "small things" like remembering to pass along the filtered repos and calling functions. This project was intense but I pulled through (pun intended). +With more time I would try harder to get the token to work. And as always more time on styling. ## View it live +https://id4h4lling.netlify.app/ -Every project should be deployed somewhere. Be sure to include the link to the deployed project so that the viewer can click around and see what it's all about. diff --git a/code/chart.js b/code/chart.js index 92e85a30..9b5d38a0 100644 --- a/code/chart.js +++ b/code/chart.js @@ -1,4 +1,28 @@ -//DOM-selector for the canvas 👇 -const ctx = document.getElementById('chart').getContext('2d') +const ctx = document.getElementById('myChart').getContext('2d') -//"Draw" the chart here 👇 + +const drawChart = (amount) => { +const labels = [ +'Completet projects', +'Projects left' +]; + +const data = { + labels: labels, + datasets: [{ + label: 'My First dataset', + backgroundColor: ['rgb(105, 137, 175)','rgb(250, 245, 205)'], + borderColor: 'rgb(238, 226, 185)', + data: [amount, 19 - amount], + }] +}; + +const config = { + type: 'doughnut', + data: data, + options: {} +}; + +const myChart = new Chart( + ctx,config) +} diff --git a/code/index.html b/code/index.html index 2fb5e0ae..cb4085b0 100644 --- a/code/index.html +++ b/code/index.html @@ -6,16 +6,33 @@