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.
Note: Delete this note and update the table of contents based on what sections you keep.
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
- Semantic HTML5 markup
- CSS custom properties
- Javascript
- Flexbox
- Mobile-first workflow
With SCSS I was having a hard time determining how to include :hover since I normal do it with CSS. In SCSS it's all about nesting so it only made sense that it would go within the element you're trying to manipulate.
I also learned about using labels and buttons for the toggle. This was my first time trying this so I am most certainly pleased.
.example{
width:100%;
height:auto;
background-color:#d3e3e3;
border-radius:15px;
transition: background-color .4s ease;
&:hover{
background-color:#a3a3a3;
}
}
I want to focus more on understanding Flexbox better and how it interacts with elements inside it and vice versa. Not only that but I want to incorporate more Javascript within my work.
- SCSS Parent Selector - This helped me incorporate the hover feature for the cards.
- Website - Website
- Frontend Mentor - @kbrandon19
- Twitter - @mrdebonairfox