This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Task technical description
Задача:
- Необходимо сверстать компонент и подключить стили из Tailwind CSS v.2
- Настроить взаимодействие с компонентом через слайдер и инпут. При изменении позиции слайдера должно происходить изменение значения в инпуте. И наоборот, при изменении содержимого инпута слайдер должен изменять позицию
- Сделать переключение режима light/dark через Tailwind Dark Mode
Валидация:
- в инпут можно ввести только числа с плавающей точкой
- после запятой только 2 знака
- минимальное значение 0, максимальное значение 100
- недопустимы отрицительные значения, при вводе отрицательного значения приводить его к 0
- при вводе значения большее 100, приводить значение к 100