diff --git a/README.md b/README.md index 1613a3b0..e550ec2f 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,20 @@ # 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. +Creating a place to keep track of the GitHub repos made during my Boot Camp at Technigo. Using JavaScript, html, css and fetching data from API's from the JSON response. ## 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? +My page includes: + +- A list of all repos that are forked from Technigo +- Username and profile picture +- Most recent update (push) for each repo +- Name of default branch for each repo +- URL to the actual GitHub repo +- Number of commits for each repo +- It is responsive (mobile first) +- A visualisation, a donut chart, of how many projects I've done so far, compared to how many I will do. ## View it live -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. +https://elegant-pasteur-b7cf22.netlify.app/ diff --git a/code/chart.js b/code/chart.js index 92e85a30..c1a0bb68 100644 --- a/code/chart.js +++ b/code/chart.js @@ -1,4 +1,27 @@ //DOM-selector for the canvas 👇 -const ctx = document.getElementById('chart').getContext('2d') +const ctx = document.getElementById("chart").getContext("2d"); //"Draw" the chart here 👇 + +const drawChart = (amount) => { + const config = { + type: "doughnut", + data: { + labels: ["Completed Projects", "Remaining Projects"], + datasets: [ + { + label: "My First Dataset", + data: [amount, 20 - amount], + backgroundColor: [ + "rgb(22, 35, 50)", + "rgba(222,207,168,255) ", + "rgb(255, 205, 86)", + ], + hoverOffset: 4, + }, + ], + }, + }; + + const myChart = new Chart(ctx, config); +}; diff --git a/code/index.html b/code/index.html index 2fb5e0ae..77f98d7f 100644 --- a/code/index.html +++ b/code/index.html @@ -1,21 +1,36 @@ -
- - - -