Projects at Technigo
+ +diff --git a/README.md b/README.md index 1613a3b0..145bc909 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ # 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 assignment was to create a GitHub tracker site for the projects froked from Technigo, using fetch and API technologies from the GitHub database. ## 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 challange was using GitHub APIs and collect the relevant information. It was a good practise to learn more about APIs and fetch function. +I tried to keep the design simple and as similar as the github website. +I have fulfilled all the blue requirements but if I had more time I would show the last commit message and language percentages of each project.. ## 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://github-tracker-pde.netlify.app/ diff --git a/code/.DS_Store b/code/.DS_Store new file mode 100644 index 00000000..5008ddfc Binary files /dev/null and b/code/.DS_Store differ diff --git a/code/chart.js b/code/chart.js index 92e85a30..41c9ae84 100644 --- a/code/chart.js +++ b/code/chart.js @@ -1,4 +1,38 @@ -//DOM-selector for the canvas 👇 -const ctx = document.getElementById('chart').getContext('2d') +//DOM-selector for the canvas +const ctx = document.getElementById("chart").getContext("2d") -//"Draw" the chart here 👇 +//Draw the chart here +const drawChart = (amount) => { + const config = { + type: "bar", + data: { + labels: ["Finished projects", "Projects left"], + datasets: [ + { + label: "Technigo Bootcamp Projects", + data: [amount, 20 - amount], + barPercentage: 20, + barThickness: 100, + maxBarThickness: 100, + borderRadius: 2, + + backgroundColor: [ + "rgba(255, 98, 132, 0.3)", + "rgba(255, 169, 63, 0.3)", + ], + borderColor: ["rgb(255, 98, 132)", "rgb(255, 169, 63)"], + borderWidth: 1, + }, + ], + }, + options: { + plugins: { + legend: { + position: "bottom", + }, + }, + }, + } + + const myChart = new Chart(ctx, config) +} diff --git a/code/index.html b/code/index.html index 2fb5e0ae..b976bf8d 100644 --- a/code/index.html +++ b/code/index.html @@ -1,21 +1,52 @@ +
- - - + + +Projects at Technigo
+ +