-
Notifications
You must be signed in to change notification settings - Fork 131
Week 7 Github Tracker by Lousanne #56
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
loulunds
wants to merge
16
commits into
Technigo:main
Choose a base branch
from
loulunds: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
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
4c68a03
user profile and pull request done
loulunds 87e1308
fetched commits url
loulunds ec75984
added and fixed dates
loulunds c14cdb5
added dynamic id
loulunds 2f3bae4
fixed mobile view styling
loulunds d937cc6
media queries styling
loulunds 5ef2bce
ipad view styling test
loulunds 68ecf89
media queries styling done
loulunds 2316fd8
added search bar
loulunds 55121ba
search bar func fixed, chart fixed
loulunds 603f8ae
mobile input fixed
loulunds dc8971e
edited readme
loulunds a3b6a3b
added html url to profile image
loulunds e255749
nav bar fixed, error message added
loulunds 8d1e4a2
nav styling fixed
loulunds ee8d3c4
nav bar fixed, error message added
loulunds 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,3 +1,3 @@ | ||
| { | ||
| "liveServer.settings.port": 5505 | ||
| { | ||
| "liveServer.settings.port": 5505 | ||
| } |
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,19 @@ | ||
| # 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 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? | ||
|
|
||
| ## 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. | ||
| # GitHub Tracker | ||
|
|
||
| This project makes use of Github API. The user can fetch data to view their own or other Technigo students' profile. The project show the user profile information like name, username and location. It can also show the repositories forked from Technigo's Github account. | ||
|
|
||
| Start by briefly describing the assignment in a sentence or two. Keep it short and to the point. | ||
|
|
||
| ## The problem | ||
|
|
||
| Data is fetched from [Github's API](https://docs.github.com/en/rest) by fetching through different URLs with different queries necessary to locate the data needed. Data is also filtered by `.filter()` method or `.find()` in order to get only the repositories forked from Technigo and with pull requests done by the user. | ||
|
|
||
| The website has my profile as default but users can search for their own profile. Their repositories from Technigo are the ones that are going to be shown. | ||
|
|
||
| A chart showing the number of Technigo projects and some other information are shown. The chart will be re-rendered every time a new profile is searched. | ||
|
|
||
| I also added a light mode that will turn the background white and the font color dark and readable. Click on the lightbulb to see this. | ||
|
|
||
| ## View it live | ||
|
|
||
| [Lousanne's Github Tracker](https://happy-noether-88c607.netlify.app/) |
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,59 @@ | ||
| //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 plugin = { | ||
| id: "custom_canvas_background_color", | ||
| beforeDraw: (chart) => { | ||
| const ctx = chart.canvas.getContext("2d"); | ||
| ctx.save(); | ||
| ctx.globalCompositeOperation = "destination-over"; | ||
| ctx.fillStyle = "rgb(189,219,227)"; | ||
| ctx.fillRect(0, 0, chart.width, chart.height); | ||
| ctx.restore(); | ||
| }, | ||
| }; | ||
|
|
||
| //"Draw" the chart here 👇 | ||
| const drawChart = (amount) => { | ||
| const config = { | ||
| type: "polarArea", | ||
| data: { | ||
| labels: [ | ||
| "Finished Projects", | ||
| "Projects Left", | ||
| "Individual Projects", | ||
| "Team Projects", | ||
| ], | ||
| datasets: [ | ||
| { | ||
| label: "My First Dataset", | ||
| data: [amount, 19 - amount, amount - 4, amount - 2], | ||
| backgroundColor: [ | ||
| "rgb(255, 99, 132)", | ||
| "rgb(75, 192, 192)", | ||
| "rgb(247,226,0)", | ||
| "rgb(84,81,185)", | ||
| ], | ||
| }, | ||
| ], | ||
| }, | ||
| options: { | ||
| plugins: { | ||
| title: { | ||
| display: true, | ||
| text: "My Github Repositories", | ||
| color: "#138", | ||
| font: { | ||
| size: 25, | ||
| }, | ||
| }, | ||
| }, | ||
| responsive: true, | ||
| borderColor: "#d32", | ||
| color: "#138", | ||
| }, | ||
| plugins: [plugin], | ||
| }; | ||
|
|
||
| const myChart = new Chart(ctx, config); | ||
| }; | ||
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.
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,21 +1,89 @@ | ||
| <!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> | ||
|
|
||
| <!-- This will be used to draw the chart 👇 --> | ||
| <canvas id="chart"></canvas> | ||
|
|
||
| <script src="./script.js"></script> | ||
| <script src="./chart.js"></script> | ||
| </body> | ||
| </html> | ||
| <!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" /> | ||
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | ||
| </head> | ||
|
|
||
| <body> | ||
| <nav> | ||
| <!-- mobile nav --> | ||
| <div class="nav-mobile"> | ||
| <img | ||
| id="nav-sub" | ||
| class="nav-menu" | ||
| src="images/menu (1).png" | ||
| alt="menu" | ||
| /> | ||
| <div class="nav-links"> | ||
| <input | ||
| id="navInputMobile" | ||
| class="nav-input" | ||
| type="text" | ||
| placeholder="Search" | ||
| /> | ||
| <a href="#">Pulls</a> | ||
| <a href="#">Issues</a> | ||
| <a href="#">Marketplace</a> | ||
| <a href="#">Explore</a> | ||
| </div> | ||
| <a class="nav-icon" href="https://github.com/" target="_blank" | ||
| ><img src="images/GitHub-Mark-Light-32px.png" alt="github" | ||
| /></a> | ||
|
|
||
| <button id="btn-light-nav"> | ||
| <img class="nav-notif" src="images/notification.png" alt="bell" /> | ||
| </button> | ||
| </div> | ||
|
|
||
| <!-- desktop nav --> | ||
| <div class="nav-desktop"> | ||
| <a class="nav-icon" href="https://github.com/" target="_blank" | ||
| ><img | ||
| id="nav-github-img" | ||
| src="images/GitHub-Mark-Light-32px.png" | ||
| alt="github" | ||
| /></a> | ||
| <input | ||
| id="navInput" | ||
| class="nav-input" | ||
| type="text" | ||
| placeholder="Search" | ||
| /> | ||
| <div class="nav-a"> | ||
| <a href="#">Pulls</a> | ||
| <a href="#">Issues</a> | ||
| <a href="#">Marketplace</a> | ||
| <a href="#">Explore</a> | ||
| </div> | ||
| <button id="btn-light"> | ||
| <img class="nav-notif" src="images/notification.png" alt="bell" /> | ||
| </button> | ||
| </div> | ||
| </nav> | ||
|
|
||
| <!-- main content --> | ||
| <main> | ||
| <!-- where the user info is --> | ||
| <section id="userInfo"></section> | ||
|
|
||
| <!-- where the repos are --> | ||
| <section id="projects"> | ||
| <h2 class="project-title">My Project Repositories with Technigo</h2> | ||
| <div id="project-box"></div> | ||
| </section> | ||
| </main> | ||
|
|
||
| <!-- This will be used to draw the chart 👇 --> | ||
| <section class="canvas-box"><canvas id="chart"></canvas></section> | ||
|
|
||
| <footer><img src="images/mylogo.png" alt="logo" /></footer> | ||
|
|
||
| <script src="./script.js"></script> | ||
| <script src="./chart.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.
I really like that you added individual and team projects to you chart!