-
Notifications
You must be signed in to change notification settings - Fork 131
Week 7 – Github Tracker – Emma Lindell #111
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
base: main
Are you sure you want to change the base?
Conversation
| type: 'bar', | ||
| data: data, | ||
| options: { | ||
| responsive: true, |
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.
Did you want the chart to cover the page from side to side? Because the size of the chart is good for mobile size but displays quite big in desktop size.
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.
Thanks for noticing Ida! I thought about that too and want to change it for desktop. Do you know which element to add in that case?
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 found the instructions here: https://www.chartjs.org/docs/latest/configuration/responsive.html
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.
Oh, thanks! I got a 404 though :(
| @@ -0,0 +1,2 @@ | |||
| // .gitignore file | |||
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.
Good job with gitignore!
| <title>Project GitHub Tracker for emmajosefina</title> | ||
| <link rel="stylesheet" href="./style.css" /> | ||
|
|
||
| <!-- GOOGLE FONT--> |
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 like that you explain what these do!
| <h2>Projects:</h2> | ||
| <main id="projects"></main> | ||
| <header class="navbar"> | ||
| <a href="https://github.com/emmajosefina"> |
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.
Smart and simple to put the profile name in html
|
|
||
| <footer> | ||
| <p> | ||
| <a href="https://www.linkedin.com/in/emmalindell4/" class="fa fa-linkedin fa-2x"></a> |
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.
Looks good! Maybe for accessibility make them easier for a screenreader to explain?
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.
Great thanks, will think about it for this week's project
code/script.js
Outdated
| <p class="username">${data.login}</p> | ||
| </section> | ||
| <div class="status-box"> | ||
| ${data.bio} 👩💻 |
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.
Nice touch with the emoji!
| <div class="projectContainer"> | ||
| <p class="smallerContainer"> | ||
| <span class="header-project"> | ||
| ${repo.name.replace('project-', '').replace('-', ' ')} |
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.
Really nice removing "project" and the hyphens, I never got around to that myself. It also makes it more visible that the repos ar displayed alphabetically.
| </p> | ||
| <p class="smallerContainer"> | ||
| <span> Updated:</span> | ||
| <span> ${new Date(repo.pushed_at).toLocaleDateString('en-SE', {year: 'numeric', month: 'short', day: 'numeric'})}</span> |
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.
Looks really good with the month as short
| } else { | ||
| document.getElementById( | ||
| `commit-${repo.name}`).innerHTML += `no commits visible, pull request unavailable.`; | ||
| } |
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.
Nicely done with displaying the pull requests!
| } | ||
|
|
||
| /* TABLET */ | ||
| @media only screen and (min-width: 768px) and (max-width: 1023px) { |
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.
Professional styling! Only one comment about the responsiveness of the page. The "boxes" with information about your repos are placed in one column on mobile size, tablet and desktop. Was it your intention not to place them next to each other on wider screens?
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.
Thanks, Ida! I started doing flex and grid for them but didn't have enough time so I skipped it. My intention was to place two or three in a row but didn't manage to fix that. I wasnt sure about if I had to do another container inside innerHTML in JavaScript or how I should do it, i struggled a bit with the structure. Did you create both the parent container and the child container in HTML?
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.
In the innerHTML I put a <div> and inside that I put a <form> with <ul> inside. So you should be able to out it all there I think.
idanaslund
left a comment
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.
The styling of your page looks very professional. You have made a page that is functional and responsive and fulfills all requirements for blue level. Regarding responsiveness I have made som comments about how the page is displayed on desktop.
Great job with this project!
https://github-tracker-emmajosefina.netlify.app/