diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 00000000..5008ddfc Binary files /dev/null and b/.DS_Store differ diff --git a/README.md b/README.md index 1613a3b0..eab2ad05 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,15 @@ # GitHub Tracker +The gitHub tracker project was all about fetching the repositories from my gitHub that was forked from Technigo, and get some user info and project info. -Replace this readme with your own information about your project. +## The problem -Start by briefly describing the assignment in a sentence or two. Keep it short and to the point. +I really liked this project, even if I have a really hard time with the javascript syntax. This week I gave the live sessions a repetition which gave a lot. I decided how I wanted to structure tha page and had to make som changes and additions in both html file and inner.html in the javascript file. I also managed to change the type of chart I used. -## The problem +If I hade more time I would like to look at how to implement a searchfield to be able to search for repos. Did try to implement a popup. But actually gave up 😅 and decided to try out a more simple tooltip. -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? +It was a bit frustrating to work with only 60 requests per hour... Need to learn how to get past that problem! ## 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. +Here is my deployed site on Netifly. +https://vigilant-mestorf-12aeff.netlify.app/ diff --git a/code/.DS_Store b/code/.DS_Store new file mode 100644 index 00000000..9379ded4 Binary files /dev/null and b/code/.DS_Store differ diff --git a/code/GitHub-Icon-White-Logo.wine.svg b/code/GitHub-Icon-White-Logo.wine.svg new file mode 100644 index 00000000..c4febfb0 --- /dev/null +++ b/code/GitHub-Icon-White-Logo.wine.svg @@ -0,0 +1,4 @@ + diff --git a/code/arrow-right.svg b/code/arrow-right.svg new file mode 100644 index 00000000..b70116ab --- /dev/null +++ b/code/arrow-right.svg @@ -0,0 +1,9 @@ + diff --git a/code/chart.js b/code/chart.js index 92e85a30..deb0c4f8 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 config = { + type: 'bar', + data: { + labels: [ + 'Finished', + 'Left', + 'Total', + ], + datasets: [{ + label: 'Bootcamp projects', + data: [amount, 19-amount, 19], + barPercentage: 100, + barThickness: 60, + maxBarThickness: 100, + borderRadius: 4, + // minBarLength: 10, + backgroundColor: [ + 'rgba(60, 179, 113)', + 'rgba(255, 99, 132)', + 'rgba(255, 159, 64)', + ], + + hoverOffset: 4 + }] + }, +} +const theChart = new Chart (ctx, config) +} diff --git a/code/f_logo_RGB-White_250.png b/code/f_logo_RGB-White_250.png new file mode 100755 index 00000000..adcfea03 Binary files /dev/null and b/code/f_logo_RGB-White_250.png differ diff --git a/code/index.html b/code/index.html index 2fb5e0ae..d59d5a7a 100644 --- a/code/index.html +++ b/code/index.html @@ -1,21 +1,58 @@ -
- - - -