Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Your session has expired please log in again.
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

github-user-search-app

#sass/scss#bem
P
Kent O'Sullivan• 1,870

@12Kentos

Desktop design screenshot for the GitHub user search app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
  • API
2junior
View challenge

Design comparison


SolutionDesign

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.

Community 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 the switch structure seems a little bit hardcoded. The create__at string value, can be passed as an argument to a Date 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

1

P
Kent O'Sullivan• 1,870

@12Kentos

Posted

@alexcumplido

Thanks for the reply, sorry it took me so long to reply to it!

Didn't realize you could handle dates that way. I'll use it in future projects for sure.

Thanks!

0
Jason Moody• 300

@MoodyJW

Posted

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, add overflow: hidden to your sass. Then on the p element, add overflow: 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 container div and it should be perfect.

Great job, keep it up!

Marked as helpful

1

P
Kent O'Sullivan• 1,870

@12Kentos

Posted

@MoodyJW Thanks,

tbh for smaller projects like this, I don't really bother that much with the semantics of the html report like needing an <h1> tag, because if this project were in a real live website it wouldn't have that. So I tend to build it based off of situations like that. If you take a look at this project bigger website You'll notice I have no accessibility issues, and neither of the html issues it gives me makes sense. (As in they shouldn't be errors).

However for the styling issue in the links section, I definitely did miss that, and appreciate your suggestions!

1

Please log in to post a comment

Log in with GitHub
Discord logo

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