class Report():
def content(self):
flex_message = FlexSendMessage(
alt_text='hello',
contents={
"type": "bubble",
"header": {
"type": "box",
"layout": "vertical",
"contents": [
{
"type": "text",
"text": "專案進度",
"size": "lg",
"color": "#ffffff"
}
],
"backgroundColor": "#0066ff"
},
"body": {
"type": "box",
"layout": "vertical",
"contents": [
{
"type": "button",
"action": {
"type": "postback",
"label": "回報",
"data": "回報",
"displayText": "回報"
},
"margin": "sm",
"color": "#0066ff",
"style": "primary"
},
{
"type": "button",
"action": {
"type": "postback",
"label": "修改",
"data": "修改",
"displayText": "修改"
},
"color": "#0066ff",
"style": "primary",
"margin": "sm"
},
{
"type": "button",
"action": {
"type": "postback",
"label": "查看",
"data": "查看",
"displayText": "查看"
},
"color": "#0066ff",
"margin": "sm",
"style": "primary"
}
]
}
}
)
return flex_message
顯示出樣板之後會跳出三個按鈕,“回報”“修改”“查看”
HTML Color Codes 還是一個很實用的色彩工具,除了選色外還能查詢 HEX 色碼、RGB、HSL 和 CMYK,並將你選擇的顏色匯出為 HTML、CSS 或 SCSS ,對於平常會用到選色器的設計師來說這網站相當方便,不僅提供你在線上快速選取顏色,亦能將選取的顏色暫存起來,以便下次重新打開網站時依然能夠取用你先前選擇的顏色調色盤。
HTML Color Codes 選色器其實跟一般 Windows 和 MacOS 選色工具沒有太大差異,從右側拉桿來調色,再從中間點擊即可選取某個色塊,選取後右側會顯示更大張的色彩預覽,以及該顏色色碼、RGB、HSL 等資訊。
如果你對於顏色沒什麼想法,可點擊選單的「Chart」頁面,網站收錄完整平面設計(Flat Design)、Material Design 和網頁安全色,這些顏色組合上更為單純,直接點擊一樣能夠選取顏色並顯示色碼。
今天的歌曲是 周杰倫-聽媽媽的話 Listen to Mom
https://www.youtube.com/watch?v=_B8RaLCNUZw&list=PLFl6Na2uUoOZBEhBtQ_jeGA4P1V20JvpW&index=17&ab_channel=%E5%91%A8%E6%9D%B0%E5%80%ABJayChou