working evening

This commit is contained in:
didier amyot committed 2016-02-22 21:27:59 -05:00
1 parent 7f0bbbb55b
commit b1b657b6f7
15 files changed
+63 -14

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
define(['m', '_', 'util', 'resultParser', 'views/topNavBar', 'views/footer'], function (m, _ , util, resultParser, topNavBar, footer) {
var newsPageBody = {};
newsPageBody.logo = function(){
var style = 'height: 250px; width: 250px; background-size: 250px; background-image: url(images/logosansfond.JPG);';
return m('div.uk-cover-background.uk-container-center', {style: style});
};
newsPageBody.getArticle = function(){
return m('article.uk-article',
m('h1.uk-article-title', util.loremIpsum(5)),
m('p.uk-article-meta.uk-margin-bottom', util.loremIpsum(8)),
util.loremIpsum()
);
};
newsPageBody.view = function(){
return m('div', [newsPageBody.getArticle(), newsPageBody.getArticle(), newsPageBody.getArticle(), newsPageBody.getArticle()]);
};
var newsPage = {};
newsPage.view = function(){
return [
m.component(topNavBar),
m('div.uk-grid.uk-margin-top.uk-margin-bottom',
m('div.uk-width-large-2-5.uk-width-small-1-1.uk-container-center',
m.component(newsPageBody))),
m.component(footer)
];
};
return newsPage;
});