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
Not Found
Not Found
Not Found
Not Found

Submitted

Social Media Dashboard - CSS Grid and Flexbox

P

@ryanbradley-webdev

Desktop design screenshot for the Social media dashboard with theme switcher coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

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.

Community feedback

@coderdannie

Posted

Hi Congrats on the completion of this project. An extra features you can add is to store the themes state using browser localstorage so that your site can maintain the theme state even if the page was reload. Right now if I switch to light mode and reload the web page its switching back to the default theme. Using browser storage to store the theme and accessing the themes based on user preference will prevent this from happening. https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage

Marked as helpful

1

P

@ryanbradley-webdev

Posted

@coderdannie That's a very helpful tip, thanks for the feedback!

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