diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 00000000..7338560d Binary files /dev/null and b/.DS_Store differ diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..c80900c9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +code/secret.js \ No newline at end of file diff --git a/README.md b/README.md index 1613a3b0..03214016 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,20 @@ 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. +-track nr of forked technigo projects and link to the repository +-display user img +-display user name +-display default branch +-display last push +-display number och commits ## 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 biggest issue was with getting the fetch for number of commits but solved the problem in the end with help from student collegue. +I had passed on the wrong parameters and was actually looking for the commits in the wrong place. ## 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://tender-minsky-8b6ded.netlify.app/ \ No newline at end of file diff --git a/code/.DS_Store b/code/.DS_Store new file mode 100644 index 00000000..d844f2d3 Binary files /dev/null and b/code/.DS_Store differ diff --git a/code/chart.js b/code/chart.js index 92e85a30..786d5065 100644 --- a/code/chart.js +++ b/code/chart.js @@ -1,4 +1,37 @@ -//DOM-selector for the canvas 👇 -const ctx = document.getElementById('chart').getContext('2d') -//"Draw" the chart here 👇 + // //DOM-selector for the canvas 👇 +const ctx = document.getElementById("chart").getContext("2d"); + + +const drawChart = (amount) => { +const labels = [ + 'Projects done', + 'Technigo projects', + ]; + + const data = { + labels: labels, + datasets: [{ + label: 'My First dataset', + data: [amount, 19-amount], + backgroundColor: ['rgba(203,108,127,255)', 'rgba(245,243,240)' ], + borderColor: 'none', + }] + }; + + const config = { + type: 'doughnut', + data: data, + options: { + responsive: true, + maintainAspectRatio: true, + } + }; + + const myChart = new Chart( + document.getElementById('chart'), + config + ); + } + + console.log('test') \ No newline at end of file diff --git a/code/img/.DS_Store b/code/img/.DS_Store new file mode 100644 index 00000000..6a4d7241 Binary files /dev/null and b/code/img/.DS_Store differ diff --git a/code/img/susan-wilkinson-SjhL-Zrol6A-unsplash.jpg b/code/img/susan-wilkinson-SjhL-Zrol6A-unsplash.jpg new file mode 100644 index 00000000..6e41117a Binary files /dev/null and b/code/img/susan-wilkinson-SjhL-Zrol6A-unsplash.jpg differ diff --git a/code/index.html b/code/index.html index 2fb5e0ae..3c3d18cf 100644 --- a/code/index.html +++ b/code/index.html @@ -6,16 +6,31 @@