Skip to content

Instantly share code, notes, and snippets.

@innabelaya
Forked from godfreyd/index-8.bemjson.js
Last active January 11, 2021 10:53
Show Gist options
  • Save innabelaya/6842d077cfd7f1c5e1650847c21e8182 to your computer and use it in GitHub Desktop.
Save innabelaya/6842d077cfd7f1c5e1650847c21e8182 to your computer and use it in GitHub Desktop.
module.exports = {
block: 'page',
title: 'Title of the page',
favicon: '/favicon.ico',
head: [
{ elem: 'meta', attrs: { name: 'description', content: '' }},
{ elem: 'css', url: 'index.min.css' }
],
scripts: [{ elem: 'js', url: 'index.min.js' }],
content: [
{
block: 'head',
mix: { block: 'box', js: true },
content: [
{
block: 'layout',
content: [
{
elem: 'left',
content: {
tag: 'form',
attrs: { action: 'http://yandex.ru/yandsearch' },
content: [
{
block: 'input',
name: 'text',
val: 'Find'
},
{
block: 'button',
mods: { type: 'submit' },
content: 'Search'
}
]
}
},
{
elem: 'right',
content: {
block: 'logo',
content: [
{
block: 'link',
url: 'http://ru.bem.info',
content: [
{
block: 'image',
url: 'http://varya.me/online-shop-dummy/desktop.blocks/b-logo/b-logo.png'
},
{
elem: 'slogan',
content: 'A new way of thinking'
}
]
}
]
}
}
]
},
{
block: 'box',
elem: 'switcher'
}
]
},
{
block: 'goods',
goods: [
{
title: 'iPhone 7 128Gb',
image: 'https://cdn.rawgit.com/bem-site/bem-method/bem-project/articles/start-with-project-stub/iphone7.png',
price: '47 000',
url: '/'
},
{
title: 'Samsung Galaxy A7 32Gb',
image: 'https://cdn.rawgit.com/bem-site/bem-method/bem-project/articles/start-with-project-stub/samsung.png',
price: '26 000',
url: '/'
},
{
title: 'Meizu MX5 16Gb',
image: 'https://cdn.rawgit.com/bem-site/bem-method/bem-project/articles/start-with-project-stub/meizu.png',
price: '15 000',
url: '/'
},
{
title: 'iPhone 6s 32GB',
image: 'https://cdn.rawgit.com/bem-site/bem-method/bem-project/articles/start-with-project-stub/iphone6s.png',
price: '***',
url: '/',
new: true
},
{
title: 'Xiaomi Redmi 4X 16Gb',
image: 'https://cdn.rawgit.com/bem-site/bem-method/bem-project/articles/start-with-project-stub/xiaomi.png',
price: '10 000',
url: '/'
}
]
}
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment