/Challenge-Social-Media-Dashboard

Challenge Frontendmentor Social Media Dashboard by bertapsan

Primary LanguageSCSSMIT LicenseMIT

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.

Table of contents

Overview

The challenge

  • 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

  • StarterKit from Adalab (Bootcamp)
  • Semantic HTML5 markup
  • Sass (variables, reset and mixins)
  • CSS Grid
  • Mobile-first workflow
  • Javascript

What I learned

Highlights:

Variables
Mixins
Media Queries
const change = document.getElementById('check');
change.addEventListener('change', checkingCheckbox, false);
function checkingCheckbox() {
  let checked = change.checked;
  if (checked) {
    document.getElementById('styles').href = './assets/css/mainDark.css';
  } else {
    document.getElementById('styles').href = './assets/css/main.css';
  }
}
};

Continued development

I want to continue working on code optimization and acquire knowledge to add testing to my projects.

Useful resources

  • CSS-tricks - This helped me to understand grid container/items properties . I really liked this pattern and will use it going forward.

Author

Acknowledgments

A special mention to @fmontes for letting me know Frontend Mentor.