верстка

This commit is contained in:
2021-02-06 17:09:23 +03:00
parent 6a5f514081
commit 113ef9c570
12 changed files with 1437 additions and 82 deletions

34
src/consts.js Normal file
View File

@ -0,0 +1,34 @@
export const LOCAL_DATA_KEY = 'example-for-kids';
export const START_PAGE = 'StartPage';
export const GAME_PAGE = 'GamePage';
export const RESULT_PAGE = 'ResultPage';
export const NO_DISPLAY_CLASS = 'd-none';
export const TEXT_SUCCESS_CLASS = 'text-success';
export const TEXT_DANGER_CLASS = 'text-danger';
export const NAME_INPUT_ID = 'startPageNameInput';
export const START_BUTTON_ID = 'start-button';
export const CHECK_BUTTON_ID = 'check-button';
export const REPEAT_BUTTON_ID = 'repeat-button';
export const START_FORM_ID = 'start-form';
export const FIRST_INPUT_ID = 'first-input';
export const SECOND_INPUT_ID = 'second-input';
export const SUM_INPUT_ID = 'sum-input';
export const RESULT_CONTAINER_ID = 'result-container';
export const SIGN_SPAN_ID = 'sign-span';
export const EXAMPLE_TYPE = {
PLUS: '+',
MINUS: '-',
};
export const EVENTS = {
CLICK: 'click',
INPUT: 'input',
SUBMIT: 'submit',
};
export const MAX_NUMBER = 10;
export const MAX_COUNT_EXAMPLES = 10;