github-user-search-app

Solution retrospective
Definitely has some minor bugs, but overall works, took a break last week from coding, and would like to move onto a new project. Will probably come back at some point to finish fleshing it out. I also forgot to make it responsive to mobile... oops.
Please log in to post a comment
Log in with GitHubCommunity feedback
- Account deleted
Hello Kent, I do really like how you worked this project. I checked the JavaScript logic noticing the following:
Line 91 to 132 contains code that could be optimized, I like how you used the
.slice()
method to get the dates, but theswitch
structure seems a little bit hardcoded. Thecreate__at
string value, can be passed as an argument to aDate
object, then the.toLocaleString()
method allows you to pull out the values that you specify in different formats and return them as a string value.// created_at: '2011-01-25T18:44:36Z' let creationDate = new Date(created_at); let joinDate = creationDate.toLocaleString('en-GB', { year: 'numeric', month: 'short', day: 'numeric'}); // joinDate: '25 Jan 2011'
Good job and I see you around, happpy coding!
Marked as helpful - @MoodyJW
Hi Kent! Excellent job on the challenge. I noticed a few issues that might help you improve.
- definitely take a look at the HTML report, you have a number of accessibility issues regarding missing landmark elements.
- you have a styling issue in the links section at the bottom, here's a screenshot
When the text is longer as seen in the image, it's going to force the other elements to the right and it gets a bit sloppy. However, this is pretty easy to fix. There are a lot of ways to handle long strings, but my favorite is to just truncate and add an ellipsis.
On the container
div
, the links wrapper, addoverflow: hidden
to your sass. Then on thep
element, addoverflow: hidden; width: 100%; text-overflow: ellipsis
. That's it!The icons are also a bit clipped, but that's also easy enough to fix! If you open the
svg
file for the icon, there should be a width and height. Simply set the same width and height on the containerdiv
and it should be perfect.Great job, keep it up!
Marked as helpful
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord