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

Card Component With HTML, SCSS, FlexBox

@folathecoder

Desktop design screenshot for the Profile card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Do you mind checking my scss nesting and my overall implementation?

Community feedback

P
Grace 27,890

@grace-snow

Posted

Hi Folarin,

Take another pass at the html for this. You can't have all content as headings. And when you do have headings, they need to make sense on their own. They form the document outline/structure and are the primary way for screen readers and search engines to navigate/understand a page. Think about the stat numbers in particular. There are much more appropriate meaningful elements that will keep the number and word closely linked. For example,

  • paragraphs (both in one p with spans inside to control styling)
  • unordered list > list items (again, spans inside to control styling)
  • description lists (html key-value pairs)

Hope this helps :)

p.s. if you are leaving alt blank on an svg image, it needs to have aria-hidden as well (that's an active voiceover bug where it still reads svgs out)

1

P
Grace 27,890

@grace-snow

Posted

Other than that, all looks pretty good. The scss nesting and BEM you asked about is spot on

Some of the text is too small - 12px is about the minimum text can ever go to, and that should be smallprint.

And don't forget to add details like the card shadow.

1

@folathecoder

Posted

@grace-snow Thank you very much, Grace! Your feedbacks are always educative and detailed.

I have fixed some problems you noted and I just signed up for an accessibility course on edx to sharpen my skills.

Thank you very much!

0
P
Grace 27,890

@grace-snow

Posted

@folathecoder that course is excellent

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