-
Notifications
You must be signed in to change notification settings - Fork 130
Katie Wu #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
katiewu1
wants to merge
21
commits into
Technigo:main
Choose a base branch
from
katiewu1:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Katie Wu #6
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
e6a548f
initial commit
katiewu1 85f739f
some changes after today's live session
katiewu1 4879d76
add profile and some styling
katiewu1 7d57e4d
add more data and charts. Started with styling
katiewu1 9ddfc8b
started with media query and styling
katiewu1 595a112
remove borders
katiewu1 19208a0
add hover effect on social media icons
katiewu1 84bb001
change amount of projects in chart.js
katiewu1 138fb42
change sizes and background to position fixed
katiewu1 7468ea0
create folder assets
katiewu1 0f0138d
add . before the path for each image src
katiewu1 6f6fe3b
add style for h3
katiewu1 374365f
style hr
katiewu1 33fb6dd
update margin for hr
katiewu1 0efa0ed
clean up
katiewu1 5971da5
add filter profile image
katiewu1 1a2b005
add buttons for accessibility and cleanup
katiewu1 942c07d
update chart.js
katiewu1 d6ade21
cleanup
katiewu1 0bf2bc2
update Readme.md
katiewu1 5bd7b5c
add alt to profile image
katiewu1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,16 @@ | ||
| # 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. | ||
| This week's assignment is about exploring more about API and JavaScript. | ||
| We are suppose to create a GitHub Tracker, to keep track of our repos that we have created at Technigo. | ||
| Throughout the Technigo boot camp (24 weeks) we will be doing 19 different projects. | ||
|
|
||
| ## 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? | ||
| When reading this week's project, I did not really know how to start with this assignment. It was a link to GitHub's own documentation and some example of different Endpoints we can use. | ||
| We didn't get any particular design or style to get inspired by. So it took some time to think and plan on how to structure the data we get from GitHub. But it was quite nice to try to practice designing yourself without some standard requirements. | ||
| The documentation from GitHub was massive! So it was easier to Google and apparently many had the same problems as I did. It helped a lot, especially Stack Overflow. | ||
| If I had more time I would want to tackle the higher level requirements such as adding a search field or try to sort the repos. | ||
|
|
||
| ## 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. | ||
| Netlify link: https://katiewu1-githubtracker.netlify.app/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,84 @@ | ||
| //DOM-selector for the canvas 👇 | ||
| const ctx = document.getElementById('chart').getContext('2d') | ||
| const ctx = document.getElementById('progressChart').getContext('2d'); | ||
|
|
||
| //"Draw" the chart here 👇 | ||
| // function to draw the Progress Chart, we have passed in amount of repos as an argument | ||
| const drawProgressChart = (amountOfRepos) => { | ||
| const data = { | ||
| labels: ['Finished Projects', 'Unfinished Projects'], | ||
| datasets: [ | ||
| { | ||
| label: 'Technigo boot camp projects', | ||
| data: [amountOfRepos, 19 - amountOfRepos], | ||
| // length of the repo array, total 19 projects minus length of the repo array | ||
| backgroundColor: ['rgb(255, 99, 132)', 'rgb(255, 205, 86)'], | ||
| hoverOffset: 4, | ||
| }, | ||
| ], | ||
| }; | ||
| const config = { | ||
| type: 'doughnut', | ||
| data: data, | ||
| options: { | ||
| plugins: { | ||
| legend: { | ||
| labels: { | ||
| color: 'white', | ||
| font: { | ||
| size: 12, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }; | ||
| const progressChart = new Chart(ctx, config); | ||
| }; | ||
|
|
||
| // function to draw the Language Chart with three arguments | ||
| const drawLanguagesChart = (html_percent, css_percent, js_percent) => { | ||
| // put the variable for the second canvas here because | ||
| // the id="languageChart" hasn't been created yet because of innerHTML in script.js | ||
| // if we put it at start of the chart.js, we wouldn't know what languageChart is | ||
| const ctx_languages = document.getElementById('languagesChart'); | ||
| const data_2 = { | ||
| labels: ['HTML', 'CSS', 'Javascript'], | ||
| datasets: [ | ||
| { | ||
| label: 'Language use (percentage)', | ||
| data: [html_percent, css_percent, js_percent], | ||
| backgroundColor: [ | ||
| 'rgb(255, 159, 64)', | ||
| 'rgb(128, 0, 128)', | ||
| 'rgb(255, 205, 86)', | ||
| ], | ||
| borderColor: [ | ||
| 'rgba(255, 159, 64, 0.2)', | ||
| 'rgb(128, 0, 128, 0.2)', | ||
| 'rgba(255, 205, 86, 0.2)', | ||
| ], | ||
| borderWidth: 2, | ||
| }, | ||
| ], | ||
| }; | ||
|
|
||
| const stackedBar = new Chart(ctx_languages, { | ||
| type: 'bar', | ||
| data: data_2, | ||
| options: { | ||
| scales: { | ||
| y: { | ||
| beginAtZero: true, | ||
| }, | ||
| }, | ||
| plugins: { | ||
| legend: { | ||
| labels: { | ||
| color: 'black', | ||
| font: { | ||
| size: 12, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }); | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,59 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <title>Project GitHub Tracker</title> | ||
| <link rel="stylesheet" href="./style.css" /> | ||
| </head> | ||
| <body> | ||
| <h1>GitHub Tracker</h1> | ||
| <h2>Projects:</h2> | ||
| <main id="projects"></main> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <title>Katie Wu - GitHub Tracker</title> | ||
| <link rel="stylesheet" href="./style.css" /> | ||
| <link rel="icon" href="./assets/favicon.png" /> | ||
| <link rel="preconnect" href="https://fonts.googleapis.com" /> | ||
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | ||
| <link | ||
| href="https://fonts.googleapis.com/css2?family=Itim&display=swap" | ||
| rel="stylesheet" | ||
| /> | ||
| </head> | ||
| <body> | ||
| <header> | ||
| <img | ||
| src="./assets/bg-image.jpg" | ||
| alt="cover image of plants" | ||
| class="background-image" | ||
| /> | ||
| <h1 class="header-title"> | ||
| <img class="octacat" src="./assets/Octocat.png" alt="octocat" /> GitHub | ||
| Tracker | ||
| </h1> | ||
| <div class="profile" id="profile"></div> | ||
| </header> | ||
|
|
||
| <!-- This will be used to draw the chart 👇 --> | ||
| <canvas id="chart"></canvas> | ||
| <hr /> | ||
|
|
||
| <script src="./script.js"></script> | ||
| <script src="./chart.js"></script> | ||
| </body> | ||
| </html> | ||
| <main class="projects"> | ||
| <h3>Repositories</h3> | ||
| <section class="project-container" id="projectContainer"></section> | ||
| <section class="modal-project" id="modalProject"> | ||
| <button class="close-btn" id="closeBtn">×</button> | ||
| <div class="modal-content" id="modalContent"></div> | ||
| </section> | ||
| </main> | ||
|
|
||
| <h3>Technigo boot camp projects</h3> | ||
| <div class="progress-chart"> | ||
| <canvas id="progressChart"></canvas> | ||
| </div> | ||
|
|
||
| <footer> | ||
| <p>©2021 by Katie Wu</p> | ||
| <p> | ||
| Team Foxes 🦊 | | ||
| <a href="https://www.technigo.io/" target="blank">Technigo</a> | ||
| </p> | ||
| </footer> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pretty footer. I like the link to Technigo, Spread the word sister!
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I do commercial for free hehe 😆 |
||
|
|
||
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | ||
| <script src="./chart.js"></script> | ||
| <script src="./script.js"></script> | ||
| </body> | ||
| </html> | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So cute octocat! :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah didn't know that the cat was an octopus too 🐙 until I searched for the icon 😊