/thematicalculator

https://www.frontendmentor.io/challenges/calculator-app-9lteq5N29

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

Frontend Mentor - Calculator app solution

This is a solution to the Calculator app challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Note: Delete this note and update the table of contents based on what sections you keep.

Overview

The challenge

Users should be able to:

  • See the size of the elements adjust based on their device's screen size
  • Perform mathematical operations like addition, subtraction, multiplication, and division
  • Adjust the color theme based on their preference
  • Bonus: Have their initial theme preference checked using prefers-color-scheme and have any additional changes saved in the browser

Screenshot

Links

My Process

Built with

What I learned

Dealing with themes in NextJS

import { ThemeProvider } from "next-themes";

const Providers = ({ children }) => {
  return (
    <ThemeProvider enableSystem={false}>
      <div suppressHydrationWarning={true}>{children}</div>
    </ThemeProvider>
  );
};

Continued development

Learn more about useForms and start coding in Typescript.

Useful resources

  • Next Themes - Dark Mode in Next JS 13 App Directory with TailwindCSS

Author

Acknowledgments

Several nice people helping students with Youtube videos...