Skip to content

Instantly share code, notes, and snippets.

@weimenglin
Last active July 23, 2020 07:55
Show Gist options
  • Save weimenglin/3267ab79f9be9b6338d119614cb93677 to your computer and use it in GitHub Desktop.
Save weimenglin/3267ab79f9be9b6338d119614cb93677 to your computer and use it in GitHub Desktop.
名片樣版
{
altText: '請在手機上查看「${vcard.name_tw}」的名片。',
type: 'flex',
contents: {
"type": "bubble",
"hero": {
"type": "image",
"url": "https://www.i-genomics.com.tw/themes/zh-tw/image/dark.png",
"size": "full",
"aspectRatio": "20:13",
"aspectMode": "cover",
"action": {
"type": "uri",
"uri": "https://line.me/ti/p/fbN1W0Xm2d"
}
},
"body": {
"type": "box",
"layout": "vertical",
"contents": [
{
"type": "text",
"text": "請加我好友",
"weight": "bold",
"size": "xxl"
},
{
"type": "box",
"layout": "vertical",
"margin": "lg",
"spacing": "sm",
"contents": [
{
"type": "box",
"layout": "baseline",
"spacing": "sm",
"contents": [
{
"type": "text",
"text": "自心 24小時 每周7天",
"wrap": true,
"color": "#ff0000",
"size": "lg",
"weight": "bold"
}
]
},
{
"type": "box",
"layout": "baseline",
"spacing": "sm",
"contents": [
{
"type": "text",
"text": "送unknown 不送0分",
"wrap": true,
"color": "#ff0000",
"size": "lg",
"weight": "bold"
}
]
}
]
}
]
},
"footer": {
"type": "box",
"layout": "horizontal",
"spacing": "sm",
"contents": [
{
"type": "button",
"style": "link",
"height": "sm",
"action": {
"type": "uri",
"label": "加好友",
"uri": "https://line.me/ti/p/fbN1W0Xm2d"
},
"color": "#000000"
},
{
"type": "spacer"
}
],
"flex": 0
}
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment