Design comparison
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
- @danielmrz-devPosted 12 months ago
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 helpful0@webdevhillPosted 12 months agohey @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
Please log in to post a comment
Log in with GitHubJoin 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