Skip to content

Instantly share code, notes, and snippets.

@aleedy
Created July 8, 2016 21:51
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 aleedy/04533a44a19e61d5b6965bc00b89ae8c to your computer and use it in GitHub Desktop.
Save aleedy/04533a44a19e61d5b6965bc00b89ae8c to your computer and use it in GitHub Desktop.
"news_list_item":{
"type":"frame",
"size":{
"w":"parent",
"h":200
},
"padding":{
"w":15,
"t":8
},
"query":{
"name":"magic.news.item",
"key":"video_id",
"meta_data":[
"news.api_video_id"
]
},
"content":[
{
"type":"frame",
"size":"parent",
"rounding":{
"corners":"all",
"radius":4
},
"content":[
{
"type":"image",
"meta-url":"news.thumbnail",
"size":"parent",
"pos":{
"x":"middle",
"y":"middle"
},
"scale-type":"aspect-fill"
},
{
"type":"widget",
"pos":{
"x":0,
"y":"bottom"
},
"size":{
"w":"parent",
"h":{
"type":"parent",
"value":0.5
}
},
"gradient-fill":{
"direction":"vertical",
"colors":[
"#00000000",
"#ff000000"
]
}
},
{
"type":"text",
"meta-text":"news.title",
"size":{
"w":"parent",
"h":{
"type":"parent",
"value":0.33
}
},
"pos":{
"x":0,
"y":"bottom"
},
"padding":{
"w":10,
"b":18
},
"font":{
"size":15,
"weight":"book"
},
"text-color":"#ffffff",
"text-align":"left",
"line-count":3
},
{
"type":"text",
"meta-text":"news.time_since_posted",
"size":{
"w":"parent",
"h":20
},
"pos":{
"x":0,
"y":"bottom"
},
"padding":{
"w":10,
"b":5
},
"font":{
"size":13,
"weight":"regular"
},
"text-color":"#ffffff",
"text-align":"left",
"line-count":3
},
{
"type":"image",
"url":"News-Icon-Overlay.webp",
"size":{
"w":50,
"h":50
},
"pos":{
"x":"right",
"y":"top"
},
"padding":{
"t":5,
"w":"10"
}
}
]
},
{
"type":"widget",
"pos":{
"x":0,
"y":0
},
"size":"parent",
"action":{
"name":"widgets_panel",
"params":{
"content_source":"news_detail_page",
"meta_data":[
{
"thumbnail":{
"key":"news.thumbnail"
}
},
{
"title":{
"key":"news.title"
}
},
{
"time_since_posted":{
"key":"news.time_since_posted"
}
},
{
"author":{
"key":"news.author"
}
},
{
"date_posted":{
"key":"news.date_posted"
}
},
{
"body":{
"key":"news.body"
}
}
]
}
}
}
]
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment