Skip to content

felipetn1989/social-media-dashboard-with-theme-switcher-master

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Social media dashboard with theme switcher solution

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.

Table of contents

Overview

The challenge

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

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • Flexbox
  • CSS Grid
  • Mobile-first workflow

What I learned

Learned to create a toggle switch for a dark / light theme. Used a template from w3schools and adjusted the parameters for my project. Inside the javaScript, added mouseover and mouseout events for both the dark and light pages. Without them, the dark page parameters would transfer to the light page when using the toggle, so I had to create events for both cases even considering I already had hover states in my CSS. Tried to group similar elements together to save a lot of lines in the JS code.

Useful resources

w3schools article with a template for toggle switches

(https://www.w3schools.com/howto/howto_css_switch.asp)

Author

About

FrontEnd Mentor Challenge

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published