{ "templates": { "habr_card": { "type": "container", "background": [ { "type": "solid", "color": "#FFF" } ], "paddings": { "left": 16, "top": 16, "right": 16, "bottom": 16 }, "margins": { "bottom": 8 }, "items": [ { "type": "container", "orientation": "horizontal", "items": [ { "type": "user_avatar", "$image_url": "avatar" }, { "type": "user_name", "$text": "username" }, { "type": "time", "$text": "time" } ], "margins": { "bottom": 8 } }, { "type": "title", "$text": "title" }, { "type": "container", "orientation": "horizontal", "items": [ { "type": "footer_icon", "image_url": "https://yastatic.net/s3/home/yandex-app/div_demo/diamond.png" }, { "type": "footer_text", "text_color": "#7AA600", "$text": "votes" }, { "type": "footer_space" }, { "type": "footer_icon", "image_url": "https://yastatic.net/s3/home/yandex-app/div_demo/eye.png" }, { "type": "footer_text", "$text": "views" }, { "type": "footer_space" }, { "type": "footer_icon", "image_url": "https://yastatic.net/s3/home/yandex-app/div_demo/flag.png" }, { "type": "footer_text", "$text": "favorites" }, { "type": "footer_space" }, { "type": "footer_icon", "image_url": "https://yastatic.net/s3/home/yandex-app/div_demo/bubble.png" }, { "type": "footer_text", "$text": "comments" } ] } ], "orientation": "vertical" }, "user_name": { "type": "text", "font_size": 13, "text_color": "#414b50", "font_weight": "medium", "width": { "type": "wrap_content" }, "alignment_vertical": "center", "margins": { "right": 5 } }, "user_avatar": { "type": "image", "width": { "type": "fixed", "value": 24 }, "height": { "type": "fixed", "value": 24 }, "border": { "corner_radius": 3 }, "margins": { "right": 5 } }, "time": { "type": "text", "font_size": 13, "text_color": "#777", "width": { "type": "wrap_content" }, "alignment_vertical": "center", "margins": { "right": 5 } }, "title": { "type": "text", "font_size": 20, "text_color": "#333", "line_height": 23, "font_weight": "medium", "margins": { "bottom": 20 } }, "footer_icon": { "type": "image", "scale": "fit", "width": { "type": "fixed", "value": 24 }, "height": { "type": "fixed", "value": 24 }, "border": { "corner_radius": 3 }, "paddings": { "top": 2, "bottom": 2, "left": 2, "right": 2 } }, "footer_text": { "type": "text", "font_size": 13, "text_color": "#BDCDD6", "font_weight": "medium", "width": { "type": "wrap_content" }, "margins": { "left": 4 }, "alignment_vertical": "center" }, "footer_space": { "type": "separator", "width": { "type": "match_parent", "weight": 1 }, "delimiter_style": { "color": "#0000" } } }, "cards": [ { "log_id": "sample_card0", "states": [ { "state_id": 0, "div": { "type": "container", "background": [ { "type": "solid", "color": "#F0F0F0" } ], "items": [ { "type": "habr_card", "avatar": "https://habrastorage.org/r/w32/getpro/habr/avatars/fc3/f8c/b5f/fc3f8cb5ff62a37139359296fcb2626a.jpg", "username": "svipy", "time": "14 июля в 10:57", "title": "Пишем онлайн-тренажёр для Python, C++ и Go: опыт Практикума", "votes": "+21", "comments": "4", "views": "6.9K", "favorites": "39" } ] } } ] }, { "log_id": "sample_card1", "states": [ { "state_id": 0, "div": { "type": "container", "background": [ { "type": "solid", "color": "#F0F0F0" } ], "items": [ { "type": "habr_card", "avatar": "https://habrastorage.org/r/w32/getpro/habr/avatars/ba8/258/251/ba825825164ffb969217c5bd71ebcc3e.png", "username": "danis_gaiazov", "time": "6 июля в 10:59", "title": "Как люди помогают технологиям в Яндекс Картах", "votes": "+20", "comments": "19 +19", "views": "4.7K", "favorites": "17" } ] } } ] }, { "log_id": "sample_card2", "states": [ { "state_id": 0, "div": { "type": "container", "background": [ { "type": "solid", "color": "#F0F0F0" } ], "items": [ { "type": "habr_card", "avatar": "https://habrastorage.org/r/w32/getpro/habr/avatars/227/251/bb4/227251bb43ef457fb2873c8ff5baa879.jpg", "username": "yupych", "time": "28 июня в 11:01", "title": "Апериодическая решётка Яндекс Станции 2: история, 3D-модели и акустические эксперименты", "votes": "+110", "comments": "72 +72", "views": "22K", "favorites": "59" } ] } } ] }, { "log_id": "sample_card3", "states": [ { "state_id": 0, "div": { "type": "container", "background": [ { "type": "solid", "color": "#F0F0F0" } ], "items": [ { "type": "habr_card", "avatar": "https://habrastorage.org/r/w32/getpro/habr/avatars/61d/5cd/b27/61d5cdb270de9e77df080b1d4eedb606.jpg", "username": "MichaelEk", "time": "23 июня в 10:59", "title": "Яндекс выложил YaLM 100B — сейчас это крупнейшая GPT-подобная нейросеть в свободном доступе. Вот как удалось её обучить", "votes": "+163", "comments": "134", "views": "70K", "favorites": "206" } ] } } ] } ] }