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
Request path contains unescaped characters
Not Found
Not Found
Not Found

Submitted

Reponsive Profile Card Component

Birusha 60

@BirushaNdegeya

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


What are you most proud of, and what would you do differently next time?

  • I am proud of using SCSS syntax while styling my webpages, and I believe that in the near future, I will become more comfortable using this tool. However, some areas of my code, especially the background behind the card, are not clean.

What challenges did you encounter, and how did you overcome them?

  • The challenge was quite tricky when it came to setting a good background image behind the card and ensuring the card's responsiveness. I used the width property to address the responsiveness issue.

What specific areas of your project would you like help with?

  • I would appreciate someone helping me fix the background problem and set dimensions without using pixel measurements.

Community feedback

P
Jake Godsall 1,390

@jakegodsall

Posted

Hi 👋

I see you've been struggling with these background images. It's very difficult to get the positions right when you have to think about so many different screen sizes. I can see you've put a ton of work into it to get the result you've got and I think it really looks great.

I'd recommend in the future if you have one or two images to form a background image to use pseudo elements on the <body>.

body::before {
   content: "";
   position: absolute;
   width: 978px;
   height: 978px;
   top: -50%;
   left: -30vw;
   background-image: url('../assets/bg-pattern-top.svg');
}

body::after {
   content: "";
   position: absolute;
   width: 978px;
   height: 978px;
   bottom: 50%;
   right: 30vw;
   background-image: url("../assets/bg-pattern-bottom.svg");
}

Hope this helps 😁

This adds the background images and treats them as separate elements that can be styled and positioned individually without altering the semantics of the page, as would be the case adding two <img> elements for example.

Marked as helpful

0

P
Jake Godsall 1,390

@jakegodsall

Posted

@jakegodsall Just updated the code snippet here. I copied and pasted the wrong CSS properties from my code editor when writing this up. Sorry for the confusion!

0
Birusha 60

@BirushaNdegeya

Posted

Hello there 👋 @jakegodsall

I really appreciate that you took the time to look at my source code and help me understand those CSS properties and principles better. In my future challenges, I will use those techniques to ensure cleaner code.

Happy coding... 🚀🚀🚀🚀

0
P
Jake Godsall 1,390

@jakegodsall

Posted

@BirushaNdegeya You're very welcome! Keep up the great work 😁

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