+
diff --git a/README.md b/README.md index 1613a3b0..308813a2 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,14 @@ # 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. +This week's project was to build a GitHub Tracker where I keep track of all GitHub repos that I've used at Technigo. The tracker updates continuously via information from the GitHub API's, so that the projects for upcoming weeks are added to the tracker. ## 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? +The project was mostly built with JavaScript and fetched data from API's, but also styled with CSS so that it has a responsive design. +I worked a lot with my project team and figured out the logic to find the right dta from the API's, and how to display it in th right way. I practiced fetching and filtering data, creating a chart function and sorting function, and how to use dynamic id's to display information in the rigth place. +I created all the JavaScript functions first and then moved on to styling the website. +I thought the project was really hard at times, and now I am really satisfied with the result. If I had more time I would like to add a search function so that the tracker can display information from different GitHub accounts. ## 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://mj-github-tracker.netlify.app/ diff --git a/code/.DS_Store b/code/.DS_Store new file mode 100644 index 00000000..978e7272 Binary files /dev/null and b/code/.DS_Store differ diff --git a/code/assets/gitimg.jpeg b/code/assets/gitimg.jpeg new file mode 100644 index 00000000..ba234daf Binary files /dev/null and b/code/assets/gitimg.jpeg differ diff --git a/code/assets/icon.png b/code/assets/icon.png new file mode 100644 index 00000000..ba460539 Binary files /dev/null and b/code/assets/icon.png differ diff --git a/code/chart.js b/code/chart.js index 92e85a30..569a9130 100644 --- a/code/chart.js +++ b/code/chart.js @@ -1,4 +1,21 @@ -//DOM-selector for the canvas 👇 -const ctx = document.getElementById('chart').getContext('2d') +const ctx = document.getElementById("chart").getContext("2d"); +const allProjects = 19; -//"Draw" the chart here 👇 +const drawChart = (finishedProjects) => { + const config = { + type: "doughnut", + data: { + labels: ["Finished projects", "Projects left"], + datasets: [ + { + label: "Technigo projects", + data: [finishedProjects, allProjects - finishedProjects], + backgroundColor: ["rgb(204, 194, 193)", "rgb(140, 100, 114)"], + hoverOffset: 4, + }, + ], + }, + }; + + const myChart = new Chart(ctx, config); +}; diff --git a/code/index.html b/code/index.html index 2fb5e0ae..e44e48db 100644 --- a/code/index.html +++ b/code/index.html @@ -1,21 +1,35 @@ -
- - - -Overview of projects
+ +