Design comparison
SolutionDesign
Solution retrospective
Hello all ,
This is my solution for this challenge the live preview I wasn't able to see how to deal with the background circle is anyone can help me to understand how could I make it ? And if there is any advice others advice I'm open
Thanks for reading !
Community feedback
- @Bayoumi-devPosted over 2 years ago
Hey Yokke, Congratulations on completing this challenge...
- To handle the background
circles
, you need to give thesection
that contains the profile card the following style to put thesecircles
as abackground image
:
.container { background: url(../images/bg-pattern-top.svg) right 50vw bottom 40vh no-repeat, url(../images/bg-pattern-bottom.svg) 50vw 50vh no-repeat; //... }
- To center the component on the page add
justify-content: center;
.container { background: url(../images/bg-pattern-top.svg) right 50vw bottom 40vh no-repeat, url(../images/bg-pattern-bottom.svg) 50vw 50vh no-repeat; display: flex; justify-content: center; align-items: center; min-height: 100vh; /* flex-direction: column; */ <------ /* max-width: 100%; */ <------ you don't need to these properties here /* margin:8em auto; */ <------ }
- I suggest you put the status of the profile card into the
list item
to add moresemantics
to your project,Div
's don't do much for semantics but a list is much more meaningful..:
<ul class="stats"> <li><span class="stats-num">80K</span>Followers</li> <li><span class="stats-num">803K</span>Likes</li> <li><span class="stats-num"> 1.4K</span>Photos</li> </ul>
I hope this is helpful to you... Keep coding👍
Marked as helpful1 - To handle the background
- @JexintePosted over 2 years ago
@Bayoumi-dev Thanks for the advice I will update the solution later and try to pay more attention to semantics . What you suggested it's just a base but I'm so used to div that I forget your recommandation thanks again !
0
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