Git Product home page Git Product logo

dark-mode-challenge's Introduction

Help SPACEMAN join the dark side (theme switcher)

Coding Challenge for Morningscore

  • Help our mascot, SPACEMAN, join the dark side by completing this challenge! This is part of our job screening process, but anyone willing to take on the challenge is very welcome to send the results our way (send to [email protected]). See instructions below.

Difficulty: Medium | Time required: ~ 30 minutes

spaceman

Requirements

  • Add dark-mode switching functionality to the existing dark-mode button found in the ThemeSwitcher component
    • Utilise the existing dark-mode scss file by adding a dark-mode class to a parent html element of the App component
  • When in Dark mode:
    • The button icon should be faSun
    • The button icon colour should be (#FFA500). You can use the color prop on the Icon component.

Think about

  • How to prevent unnecessary re-renders.
  • How to implement dark mode in a bigger application. Would your solution work for this?
  • How to make the theme selection persistent for the user.
  • How to showcase your React skills and knowledge with this relatively simple challenge.

screenshot-light screenshot-dark

Getting started

npm i
npm start

This package includes scripts and configuration used by Create React App. Please refer to its documentation:

  • Getting Started โ€“ How to create a new app.
  • User Guide โ€“ How to develop apps bootstrapped with Create React App.

dark-mode-challenge's People

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.