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 componet wirh HTML/CSS

@webdevhill

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


The card component itself was simple enough. Although, in the design files it occupies more of the view port. I sized the card proportionally to the 18px specified for the name and stats. The two SVG background took some tinkering. They look fairly close.

Community feedback

Daniel 🛸 44,230

@danielmrz-dev

Posted

Hello, Jeffrey!

Your project looks great!

I had quite a hard time myself trying to place that background correctly 😅!

If you want to nail it, here's how you can do it:

background-color: var(--Dark-cyan);
background-image: url("./images/bg-pattern-top.svg"), url("./images/bg-pattern-bottom.svg");
background-repeat: no-repeat, no-repeat;
background-position: right 52vw bottom 35vh, left 48vw top 52vh;

It's not like you really need it, because I think you already did a great job.

Anyway, I hope it helps!

Marked as helpful

0

@webdevhill

Posted

hey @danielmrz-dev,

thanks for those position numbers, I was "eyeballing" them with the inspector tools

my overall size is incorrect, the <hr> looks correct but some of my margins are slightly off

ty!

1
Daniel 🛸 44,230

@danielmrz-dev

Posted

I'm glad I could help! 😊 @webdevhill

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