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

Profile card component

Hesam 420

@hesam-fattahi

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


Hey everyone! 👋

  • For the circles on the background, I've used ::before and ::after. The same thing for the pattern on the component. Is there a better way to implement that or this is fine?

  • Should the profile name be a heading or p is okay?

Thank you

Community feedback

@SinisaVukmirovic

Posted

Hello!

Before and after pseudo elements for background images are OK, but maybe it would be easier with CSS multiple backgrounds

Did you know you can have multiple image for background-image? Multiple positions and sizes, too.

Check it out, hope it helps!

Marked as helpful

0

Hesam 420

@hesam-fattahi

Posted

@SinisaVukmirovic Thank you so much.🙏 Now It's done with much less code.

1

@SinisaVukmirovic

Posted

@hesamf01 Awesome!

0

@hatemhenchir

Posted

Hey Hessam, nice work

  1. for the circle in the background, you can let your image have border white and margin it in the top with some negative pixel like this:margin-top:-53px;.
  2. the profile name should be header, not p.

If you have any questions or need further clarification, feel free to reach out to me.

Happy Coding!🍂🦃

Marked as helpful

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