JSON ข้อความ · Message objectflexlay-edu-exam-results.json
{
"type": "flex",
"altText": "ผลสอบกลางภาค 2/2569 ของ ด.ช. ธนกร มีสุข เกรดเฉลี่ย 3.62",
"contents": {
"type": "bubble",
"size": "mega",
"body": {
"type": "box",
"layout": "vertical",
"paddingAll": "xl",
"contents": [
{
"type": "box",
"layout": "horizontal",
"spacing": "md",
"contents": [
{
"type": "box",
"layout": "vertical",
"paddingAll": "md",
"cornerRadius": "md",
"backgroundColor": "#F1F5F9",
"contents": [
{
"type": "text",
"size": "xxl",
"text": "3.62",
"align": "center",
"color": "#111827",
"weight": "bold"
},
{
"type": "text",
"size": "xxs",
"text": "เกรดเฉลี่ย",
"align": "center",
"color": "#5F6673"
}
]
},
{
"type": "box",
"layout": "vertical",
"paddingAll": "md",
"cornerRadius": "md",
"backgroundColor": "#F1F5F9",
"contents": [
{
"type": "text",
"size": "xxl",
"text": "5/42",
"align": "center",
"color": "#111827",
"weight": "bold"
},
{
"type": "text",
"size": "xxs",
"text": "ลำดับในชั้น",
"align": "center",
"color": "#5F6673"
}
]
}
]
},
{
"type": "box",
"layout": "vertical",
"margin": "lg",
"contents": [
{
"type": "box",
"layout": "horizontal",
"contents": [
{
"type": "text",
"size": "sm",
"text": "คณิตศาสตร์",
"color": "#111827"
},
{
"type": "text",
"size": "sm",
"text": "92/100",
"align": "end",
"color": "#111827",
"weight": "bold"
}
]
},
{
"type": "box",
"layout": "vertical",
"height": "6px",
"margin": "sm",
"cornerRadius": "3px",
"backgroundColor": "#E5E7EB",
"contents": [
{
"type": "box",
"layout": "vertical",
"width": "92%",
"height": "6px",
"cornerRadius": "3px",
"backgroundColor": "#2563EB",
"contents": []
}
]
}
]
},
{
"type": "box",
"layout": "vertical",
"margin": "lg",
"contents": [
{
"type": "box",
"layout": "horizontal",
"contents": [
{
"type": "text",
"size": "sm",
"text": "วิทยาศาสตร์",
"color": "#111827"
},
{
"type": "text",
"size": "sm",
"text": "85/100",
"align": "end",
"color": "#111827",
"weight": "bold"
}
]
},
{
"type": "box",
"layout": "vertical",
"height": "6px",
"margin": "sm",
"cornerRadius": "3px",
"backgroundColor": "#E5E7EB",
"contents": [
{
"type": "box",
"layout": "vertical",
"width": "85%",
"height": "6px",
"cornerRadius": "3px",
"backgroundColor": "#047857",
"contents": []
}
]
}
]
},
{
"type": "box",
"layout": "vertical",
"margin": "lg",
"contents": [
{
"type": "box",
"layout": "horizontal",
"contents": [
{
"type": "text",
"size": "sm",
"text": "ภาษาไทย",
"color": "#111827"
},
{
"type": "text",
"size": "sm",
"text": "78/100",
"align": "end",
"color": "#111827",
"weight": "bold"
}
]
},
{
"type": "box",
"layout": "vertical",
"height": "6px",
"margin": "sm",
"cornerRadius": "3px",
"backgroundColor": "#E5E7EB",
"contents": [
{
"type": "box",
"layout": "vertical",
"width": "78%",
"height": "6px",
"cornerRadius": "3px",
"backgroundColor": "#BE185D",
"contents": []
}
]
}
]
},
{
"type": "box",
"layout": "vertical",
"margin": "lg",
"contents": [
{
"type": "box",
"layout": "horizontal",
"contents": [
{
"type": "text",
"size": "sm",
"text": "ภาษาอังกฤษ",
"color": "#111827"
},
{
"type": "text",
"size": "sm",
"text": "88/100",
"align": "end",
"color": "#111827",
"weight": "bold"
}
]
},
{
"type": "box",
"layout": "vertical",
"height": "6px",
"margin": "sm",
"cornerRadius": "3px",
"backgroundColor": "#E5E7EB",
"contents": [
{
"type": "box",
"layout": "vertical",
"width": "88%",
"height": "6px",
"cornerRadius": "3px",
"backgroundColor": "#7C3AED",
"contents": []
}
]
}
]
}
]
},
"footer": {
"type": "box",
"layout": "vertical",
"paddingAll": "md",
"paddingTop": "none",
"contents": [
{
"type": "button",
"color": "#2563EB",
"style": "link",
"height": "sm",
"action": {
"type": "uri",
"uri": "https://example.com/reports/2569-2-mid",
"label": "ดูใบรายงานผล"
}
}
]
},
"header": {
"type": "box",
"layout": "vertical",
"background": {
"type": "linearGradient",
"angle": "135deg",
"endColor": "#7C3AED",
"startColor": "#2563EB"
},
"paddingAll": "xl",
"contents": [
{
"type": "text",
"size": "lg",
"text": "ผลสอบกลางภาค 2/2569",
"color": "#FFFFFF",
"weight": "bold"
},
{
"type": "text",
"size": "xs",
"text": "ด.ช. ธนกร มีสุข · ม.2/3",
"color": "#FFFFFF",
"margin": "xs"
}
]
}
}
}