Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 2 years ago

Social Media Dashboard - CSS Grid and Flexbox

Ryan Bradley•630
@ryanbradley-webdev
A solution to the Social media dashboard with theme switcher challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


This project overall was fairly straight-forward, however the top-border of the "Instagram Card" was actually a challenge at first. The other cards used solid colors as their top-borders, so that was pretty easy, however this card used a gradient which I knew would trip me up. After doing a little research, I resorted to using a psuedo-element positioned at the top with the same width as the other borders. Additionally, I set the top left and right border radii as the same as the other cards, which I was unsure about to begin with but ultimately it worked out.

My question is, does there exist a better way to go about doing this? I guess my main concern is that this isn't necessarily a solution that I find to be modular enough to put into larger projects.

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 Ryan Bradley'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