Skip to content

Instantly share code, notes, and snippets.

@iscomad
Last active January 22, 2018 10:05
Show Gist options
  • Save iscomad/39d9fcb8a9388c6a4aecdba20557ca4e to your computer and use it in GitHub Desktop.
Save iscomad/39d9fcb8a9388c6a4aecdba20557ca4e to your computer and use it in GitHub Desktop.
Advert screen components
[
{
"id": "analytics-title",
"component": {
"id": "text:title-icon", // компонент для отображения текста с иконкой справа
"category": "row"
},
"text": {
"title": "Анализ цены"
},
"images": {
"icon": "ic_info_blue"
},
"custom": {
"title_color": "#1c1819"
}
},
{
"id": "analytics-group",
"component": {
"id": "default:group", // компонент для группировки компонентов и добавления разделителя между ними
"category": "banner"
},
"children": [
{
"id": "analytics-info",
"component": {
"id": "default:row",
"category": "row"
},
"text": {
"title": "Дешевле на 8,1%",
"subtitle": "чем в похожих предложениях\n в Алмалинском р-не"
},
"custom": {
"title": {
"text_color": "#64bd38",
"text_size": 18.0,
"font_family": "sans-serif-medium", // возможные значения: sans-serif(по умолч), sans-serif-light, sans-serif-medium, sans-serif-condensed, sans-serif-black, sans-serif-thin
"gravity": "center_horizontal" // возможные значения: center_horizontal, center_vertical, center, left, right, top, bottom. Также можно комбинировать, например: "center_horizontal|top"
},
"subtitle": {
"text_color": "#1c1819",
"gravity": "center_horizontal" // правила как выше
}
}
},
{
"id": "analytics-price-group",
"component": {
"id": "default:group",
"category": "banner"
},
"children": [
{
"id": "analytics-price-per-meter-this",
"component": {
"id": "default:row",
"category": "row"
},
"text": {
"title": "321 тыс. ₸/м",
"subtitle": "В этом объявлении"
},
"custom": {
"title": {
"text_color": "#1c1819",
"text_size": 18.0,
"gravity": "center_horizontal"
},
"subtitle": {
"text_color": "#414247",
"text_size": 13.0,
"gravity": "center_horizontal"
}
}
},
{
"id": "analytics-price-per-meter-other",
"component": {
"id": "default:row",
"category": "row"
},
"text": {
"title": "338 тыс. ₸/м",
"subtitle": "В похожих квартирах"
},
"custom": {
"title": {
"text_color": "#1c1819",
"text_size": 18.0,
"gravity": "center_horizontal"
},
"subtitle": {
"text_color": "#414247",
"text_size": 13.0,
"gravity": "center_horizontal"
}
}
}
],
"custom": {
"orientation": "horizontal", // возможные значения: horizontal и vertical
"divider": "medium", // возможные значения: thin, medium и thick
"justify_content": "spread" // возможные значения: start, end, center и spread(равномерное расперделения элементов по всей ширине/высоте)
}
}
],
"custom": {
"orientation": "vertical",
"divider": "medium"
}
}
]
[
{
"id": "specialist",
"component": {
"id": "text:specialist",
"category": "row"
},
"text": {
"title": "Аваз Шарипов",
"subtitle": "Сотрудник агентства «Grand Estate Company»"
},
"images": {
"main": {
"uri": "https://profile-kr.kcdn.kz/01/e60598c85dd4c9d357fc01972fb9e925c5bf06/photo-90x90.jpg",
"placeholder": "no_profile_photo"
}
},
"custom": {
"checked_title": "Проверенный специалист",
"button_text": "Показать телефоны"
}
},
{
"id": "specialist-company",
"component": {
"id": "text:specialist",
"category": "row"
},
"text": {
"title": "Grand Estate Company",
"subtitle": "Агентство недвижимости"
},
"images": {
"main": {
"uri": "https://profile-kr.kcdn.kz/04/38f50b524df6111b911e2e2ef022e2d1492855/photo-120x90.png",
"placeholder": "no_profile_photo"
}
},
"custom": {
"checked_title": "Проверенное агентство" // указывать только если проверенное агентство или специалист
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment