{"size": 1085, "ext": "js", "max_stars_repo_path": "src/js/build.js", "max_stars_repo_name": "Milypm/to-do-list-JS", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/js/build.js", "max_issues_repo_name": "Milypm/to-do-list-JS", "max_issues_repo_issues_event_min_datetime": "2021-05-09T21:32:51.000Z", "max_issues_repo_issues_event_max_datetime": "2021-06-01T20:46:10.000Z", "max_forks_repo_path": "src/js/build.js", "max_forks_repo_name": "Milypm/to-do-list-JS", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 25.8333333333, "max_line_length": 55, "alphanum_fraction": 0.6755760369}
import setLeftView from './dom/leftView';
import setMiddleView from './dom/middleView';
import setRightView from './dom/rightView';

require('../css/style.css');

const buildAll = (() => {
  const setHeader = () => {
    const header = document.createElement('header');
    header.classList.add('main-header');

    const headerTitle = document.createElement('h1');
    headerTitle.classList.add('header-title');
    headerTitle.textContent = 'ToDo List';

    header.appendChild(headerTitle);

    return header;
  };

  const setMain = () => {
    const main = document.createElement('main');
    main.classList.add('main-container');
    main.setAttribute('id', 'main');

    main.appendChild(setLeftView.setLeft());
    main.appendChild(setMiddleView.setMiddle());
    main.appendChild(setRightView.setRight());

    return main;
  };

  const startProject = () => {
    const content = document.getElementById('content');
    content.appendChild(setHeader());
    content.appendChild(setMain());
  };
  return { setHeader, setMain, startProject };
})();

export default buildAll;
