Skip to content

Zzhiwei/Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solution is done with the sole purpose of practising CSS thus html Semantics elements are not used.

Frontend Mentor - Calculator app solution

This is a solution to the Calculator app challenge on Frontend Mentor.

Links

Screenshot

Screenshot 2021-08-06 at 9 47 37 PM

Screenshot 2021-08-06 at 9 47 45 PM

Screenshot 2021-08-06 at 9 47 53 PM

My process

Built with

  • React
  • SASS

What I learned

  • Theming
  • CSS GRID

Code Snippet: How I did theming

function getClass(str) {
    return `${str} ${theme === 1 ? "" : theme === 2 ? "theme2" : "theme3"}`
}
<div className={getClass("body")}></div>
.body.theme1 {
    background: $bodybg1;
}
.body.theme2 {
    background: $bodybg2;
}
.body.theme3 {
    background: $bodybg3;
}

About

Frontend Mentor Solution

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published