Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

social-links-profile

Arjay Malagaβ€’ 30

@ArjayGithub-dev

Desktop design screenshot for the Social links profile coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

The buttons!

What challenges did you encounter, and how did you overcome them?

The buttons.

Community feedback

Rebecca Padgettβ€’ 1,760

@bccpadge

Posted

Hello @ArjayGithub-dev. Congratulations on completing this challenge!!!πŸŽ‰

I have a few tips you might be interested in to improve your solution.

HTML πŸ“ƒ:

  • Every website should have at least one landmark like a main tag. You can wrap all your content using main tag.
  • Attribution can be contained in a footer tag
  • Images must have alt text for screen readers
    • Example: <img src="assets/images/avatar-jessica.jpeg" alt="headshot of Jessica Randall">

To make your HTML more accessible

  • Use semantic HTML tags

For the social media wrap them in ul tag

<ul>
 <li>
  <a href="wwww.github.com"> Github</a>
</li>
</ul>

The code above is showing that a user can link on the Github link and go to the website.

More infoπŸ“š:

CSS 🎨:

  • Best practice to remove all the default styles using CSS Reset
  • Font size must be in rem units. Pixels don't scale when users want to change their font size in their preferred web browser.

The code below is updated with comments explaining my corrections.

body{
    /* height: 100vh; */ Using height or width gives elements a fixed size so you can change it to min-height
    /* margin: auto; */  You can remove this line of code because it is unnecessary.
    display: grid;
   /* justify-content: center; */ You can use place-content: center which is CSS shortand property for justify-content:center and align-items:center
   /* align-items: center; */
    background-color: hsl(0, 0%, 8%);
    font-family: "Inter", sans-serif;
}

.container {
    background-color: hsl(0, 0%, 12%);
    border-radius: 10px;
   /* width: 90vw; */ You can remove this line of code because it is unnecessary.
    max-width: 300px; 
    padding: 20px;
    text-align: center; 
}

Here is my solution to this challenge Social links profile

I hope you find this useful and don't hesitate to reach out if you have any questions.

1
Ridwan Hasanβ€’ 400

@Ridwan10000

Posted

@ArjayGithub-dev Good Job. Use <main> land marks. Also use <footer> instead of <div> to include attributions. Instead of using color: white in too many places use it in .container rule. Try to use em instead of px as long as you can avoid using px.

Nice clean code. Very good job. Keep coding!

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