This is a solution to the Social media dashboard with theme switcher challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- View the optimal layout for the site depending on their device's screen size
- See hover states for all interactive elements on the page
- Toggle color theme to their preference
- React - JS library
- Styled Components - For styles
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
-
Basic structure of using
styled-components
with React:// App --> React Component --> Styled Component export function Card() { return ( <StyledCard> <div className="card-top"></div> /* more divs */ </StyledCard> ); }
App structure: