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 page

Avanti-L 50

@Avanti-L

Desktop design screenshot for the Social links profile coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

P
Roberts P 120

@indaqoo

Posted

Hi @Avanti-L,

Everything looks good at first glance. I took a look at your HTML and there are a couple of changes I’d suggest.

  1. For changing <p class="name">Jessica Randall</p> to <h2>Jessica Randall</h2>: h2 is better for headings and helps with page structure and SEO, while <p> is for paragraphs.
  2. For replacing button tags with links <a>: links are meant for navigation, and buttons are for actions. Using <a> tags for GitHub, LinkedIn, etc., fits their purpose better.

When I checked the site in DevTools with a 320px width (which is a common mobile size), the layout was breaking - view screenshot.

I also took a look at your CSS and noticed that all your styles are in just two media queries - which is not ideal

  1. For having only two media queries in your CSS: Complexity and Performance: Using too few media queries can make CSS complex and affect performance. More specific breakpoints make the layout more flexible and efficient.

Here is my css of this challenge - view on github

When I was doing this challenge I followed a mobile-first approach. There is a nice blog which explains what that means - view blog

But in short: start with Mobile Styles, design the base styles for the smallest screens first and then apply media queries when screen size is getting bigger.

I've noticed that you used .container class for the card itself i would suggest to seperate those out like <div class="card container">.

You could benefit for taking a look at mdn docs, there you will be able to see all the available css selectors.

0

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