diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..af56aa87 --- /dev/null +++ b/.gitignore @@ -0,0 +1,22 @@ +//.gitignore file +code/secret.js + +# 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* + diff --git a/README.md b/README.md index 1613a3b0..f805e233 100644 --- a/README.md +++ b/README.md @@ -9,5 +9,4 @@ Start by briefly describing the assignment in a sentence or two. Keep it short a 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? ## 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://hopeful-pasteur-51eb45.netlify.app/ diff --git a/code/chart.js b/code/chart.js index 92e85a30..1496cf3e 100644 --- a/code/chart.js +++ b/code/chart.js @@ -1,4 +1,19 @@ //DOM-selector for the canvas 👇 const ctx = document.getElementById('chart').getContext('2d') +const technigoProjects = 22 //"Draw" the chart here 👇 + +const drawBarChart = (repos) => { + new Chart(ctx, { + type: 'doughnut', + data: { labels: ['Projects to do', 'Finished projects'], + datasets: [ { data: [ technigoProjects - repos.length, repos.length,], + backgroundColor: ['#747474','#ffbb00']}] + }, + display: true, + labels: { + color: 'rgb(0, 0, 0)' + } + }) +} \ No newline at end of file diff --git a/code/index.html b/code/index.html index 2fb5e0ae..f1344930 100644 --- a/code/index.html +++ b/code/index.html @@ -6,16 +6,39 @@