Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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',
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: 'https://github.com/bem-site/bem-method/blob/bem-info-data/platform/tutorials/start-with-project-stub/start-with-project-stub__logo.png'
},
{
elem: 'slogan',
content: 'A new way of thinking'
}
]
}
]
}
}
]
}
},
{
block: 'goods',
goods: [
{
title: 'iPhone 7 128Gb',
image: 'https://github.com/bem-site/bem-method/blob/bem-info-data/platform/tutorials/start-with-project-stub/start-with-project-stub__iphone7.png',
price: '47 000',
url: '/'
},
{
title: 'Samsung Galaxy A7 32Gb',
image: 'https://github.com/bem-site/bem-method/blob/bem-info-data/platform/tutorials/start-with-project-stub/start-with-project-stub__samsung.png',
price: '26 000',
url: '/'
},
{
title: 'Meizu MX5 16Gb',
image: 'https://github.com/bem-site/bem-method/blob/bem-info-data/platform/tutorials/start-with-project-stub/start-with-project-stub__meizu.png',
price: '15 000',
url: '/'
},
{
title: 'iPhone 6s 32GB',
image: 'https://github.com/bem-site/bem-method/blob/bem-info-data/platform/tutorials/start-with-project-stub/start-with-project-stub__iphone6s.png',
price: '***',
url: '/',
new: true
},
{
title: 'Xiaomi Redmi 4X 16Gb',
image: 'https://github.com/bem-site/bem-method/blob/bem-info-data/platform/tutorials/start-with-project-stub/start-with-project-stub__xiaomi.png',
price: '10 000',
url: '/'
}
]
}
]
};
@shaihulud1992

This comment has been minimized.

Copy link

@shaihulud1992 shaihulud1992 commented Oct 1, 2018

Ссылки вида
https://github.com/bem-site/bem-method/blob/bem-info-data/platform/tutorials/start-with-project-stub/start-with-project-stub__iphone7.png
не подтягивают картинки в учебный проект на ru.bem.info,
а вот такие ссылки:
https://raw.githubusercontent.com/bem-site/bem-method/bem-info-data/platform/tutorials/start-with-project-stub/start-with-project-stub__iphone7.png
срабатывают (эти ссылки копируются в атрибут src тега <img>)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.