diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 00000000..1580b9d3 Binary files /dev/null and b/.DS_Store differ diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..2fd51f55 --- /dev/null +++ b/.gitignore @@ -0,0 +1,23 @@ +# 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..c9df4dbb 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,7 @@ # 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. - -## 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 GitHub Tracker displays my repos that are forked from Technigo with info about them fetched using the GitHub API. It also includes a chart that was created using chart.js. ## 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://jessicas-github-tracker-project.netlify.app diff --git a/code/.DS_Store b/code/.DS_Store new file mode 100644 index 00000000..203f993e Binary files /dev/null and b/code/.DS_Store differ diff --git a/code/assets/GitHub-Mark-Light-64px.png b/code/assets/GitHub-Mark-Light-64px.png new file mode 100644 index 00000000..73db1f61 Binary files /dev/null and b/code/assets/GitHub-Mark-Light-64px.png differ diff --git a/code/chart.js b/code/chart.js index 92e85a30..ffa9a6d0 100644 --- a/code/chart.js +++ b/code/chart.js @@ -2,3 +2,33 @@ const ctx = document.getElementById('chart').getContext('2d') //"Draw" the chart here 👇 +const drawChart = (amount) => { + + const labels = [ + 'Done or ongoing projects', + 'Projects left to do', + ]; + + const data = { + labels: labels, + datasets: [{ + label: 'My First dataset', + backgroundColor: ['#4D724D', '#8DB48E'], + borderColor: ['#4D724D', '#8DB48E'], + data: [amount, 19-amount], + }] + }; + + const config = { + type: 'doughnut', + data: data, + options: {} + }; + + new Chart( + ctx, + config + ); +} + + diff --git a/code/index.html b/code/index.html index 2fb5e0ae..aa7128ec 100644 --- a/code/index.html +++ b/code/index.html @@ -4,18 +4,32 @@ +
+