Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@godfreyd
Last active July 26, 2016 06:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save godfreyd/3d862f3e6ff2eb5221498cdfe7bc9351 to your computer and use it in GitHub Desktop.
Save godfreyd/3d862f3e6ff2eb5221498cdfe7bc9351 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',
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: 'image',
attrs: { src: 'http://varya.me/online-shop-dummy/desktop.blocks/b-logo/b-logo.png' }
},
{
elem: 'slogan',
content: 'A new way of thinking'
}
]
}
}
]
}
}
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment