diff --git a/README.md b/README.md index 1613a3b0..e4e96798 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,17 @@ # 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. +Using Github API to fetch information about our Technigo projects such as user profile, repos, pullrequests and commit messages. Displaying them nicely and drawing a chart to see progress. + ## 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 team and I was working closely in our team room so that we could support eachother and ask for help. I planned to do the majority of the javascript at the beginning of the week so I had everything before going in to styling. This was a great progress for me so that I don't jump to much back and forth between my code files. + +I have not solved my modal but I have a conversation ongoing in stackoverflow. + ## 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://carling-githubtracker-w7.netlify.app/ diff --git a/code/chart.js b/code/chart.js index 92e85a30..2a228a8a 100644 --- a/code/chart.js +++ b/code/chart.js @@ -1,4 +1,22 @@ //DOM-selector for the canvas 👇 const ctx = document.getElementById('chart').getContext('2d') -//"Draw" the chart here 👇 +//Draws the chart and displays progress in projects finished vs left +const drawChart = (amount) => { + const config = { + type: 'doughnut', + data: { + labels: ['Finished projects', 'Projects left'], + datasets: [ + { + label: 'Technigo projects', + data: [amount, 19 - amount], + backgroundColor: ['rgb(161, 112, 218)', 'rgb(122, 71, 180)'], + hoverOffset: 4, + }, + ], + }, + } + + const myChart = new Chart(ctx, config) +} diff --git a/code/images/big-github_icon.png b/code/images/big-github_icon.png new file mode 100644 index 00000000..081af6c5 Binary files /dev/null and b/code/images/big-github_icon.png differ diff --git a/code/images/github-icon_black.png b/code/images/github-icon_black.png new file mode 100644 index 00000000..081af6c5 Binary files /dev/null and b/code/images/github-icon_black.png differ diff --git a/code/images/github_icon.png b/code/images/github_icon.png new file mode 100644 index 00000000..a6de6a93 Binary files /dev/null and b/code/images/github_icon.png differ diff --git a/code/images/link_icon.png b/code/images/link_icon.png new file mode 100644 index 00000000..35c27746 Binary files /dev/null and b/code/images/link_icon.png differ diff --git a/code/images/location_icon.png b/code/images/location_icon.png new file mode 100644 index 00000000..cbf22731 Binary files /dev/null and b/code/images/location_icon.png differ diff --git a/code/index.html b/code/index.html index 2fb5e0ae..980fa320 100644 --- a/code/index.html +++ b/code/index.html @@ -1,21 +1,68 @@ -
- - - -+ During the boot camp we will have 19 weekly projects and you can follow + the progress in the chart displayed here: +
+ +