Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 8 months ago

Profile card component using Gulp

bem, gulp
Derek Harnett•160
@harnettd
A solution to the Profile card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


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

For this exercise, I pretended I was working on a large project with some pre-built components stored in a library directory and some new styles stored in a common directory. To build the whole thing, I use Gulp and a gulpfile. For a project this small, all of this is massive overkill, but I did learn quite a bit.

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

I got bogged down for quite some time trying to figure out how to handle the two background-image spheres. In the end, I decided to use edge-offset values in conjunction with vw and vh units to place the two images:

background-position: right 51.5vw bottom 35vh, left 49vw top 49vh;
What specific areas of your project would you like help with?

I'd love to know if there's a better way to deal with the positioning of the background images.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Derek Harnett's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License