HM-67. Верстка главной страницы (#33)
This commit is contained in:
@ -1,10 +1,12 @@
|
||||
import Component from '../component/index';
|
||||
import MainStatistic from '../main-statistic';
|
||||
import MainContent from '../main-content';
|
||||
|
||||
class MainPage extends Component {
|
||||
constructor (mainNodeSelector, parentNode) {
|
||||
super(mainNodeSelector, parentNode);
|
||||
|
||||
this.mainNode.textContent = 'Главная страница';
|
||||
this.mainStatistic = new MainStatistic(this.mainNode);
|
||||
this.mainContent = new MainContent(this.mainNode);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user