{
  "board": {
    "title": "태양계 안내 키오스크",
    "theme": "dark",
    "accent": "#a78bfa",
    "skin": {
      "palette": {
        "paper": "#0b0b1e",
        "ink": "#ece9ff",
        "muted": "#9a96c4",
        "rule": "#2c2a5a"
      },
      "frame": "flat",
      "radius": 14
    }
  },
  "statuses": {
    "rocky": {
      "tone": "warn",
      "label": "암석 행성"
    },
    "gas": {
      "tone": "info",
      "label": "가스 거인"
    },
    "ice": {
      "tone": "accent",
      "label": "얼음 거인"
    }
  },
  "data": {
    "kiosk": {
      "from": "kiosk",
      "path": "/kiosk/now",
      "time": "updatedAt",
      "fields": {
        "name": {}
      }
    },
    "planets": {
      "from": "kiosk",
      "path": "/kiosk/planets",
      "list": "/value",
      "key": "name",
      "time": "updatedAt",
      "fields": {
        "kind": {
          "state": "raw"
        },
        "name": {},
        "day": {},
        "au": {
          "unit": "AU"
        },
        "diameter": {
          "unit": "km",
          "format": "number"
        },
        "gravity": {
          "unit": "m/s²"
        }
      }
    },
    "kinds": {
      "from": "kiosk",
      "path": "/kiosk/planets",
      "list": "/value",
      "time": "updatedAt",
      "fields": {
        "rocky": {
          "derive": {
            "op": "count",
            "where": {
              "kind": "rocky"
            }
          },
          "unit": "개"
        },
        "gas": {
          "derive": {
            "op": "count",
            "where": {
              "kind": "gas"
            }
          },
          "unit": "개"
        },
        "ice": {
          "derive": {
            "op": "count",
            "where": {
              "kind": "ice"
            }
          },
          "unit": "개"
        }
      }
    }
  },
  "parts": {
    "title": {
      "as": "header",
      "of": "kiosk",
      "title": "{{name}}",
      "kicker": "천문 과학관 1층",
      "subtitle": "행성을 누르면 그 행성의 백과 문서가 새 탭에서 열립니다 · 예시 데이터"
    },
    "rocky": {
      "as": "stat",
      "of": "kinds",
      "show": "rocky",
      "title": "암석 행성"
    },
    "gas": {
      "as": "stat",
      "of": "kinds",
      "show": "gas",
      "title": "가스 거인"
    },
    "ice": {
      "as": "stat",
      "of": "kinds",
      "show": "ice",
      "title": "얼음 거인"
    },
    "planet": {
      "as": "status-card",
      "each": "planets",
      "title": "{{name}}",
      "subtitle": "{{day}}",
      "state": "kind",
      "meter": {
        "field": "gravity",
        "min": 0,
        "max": 26,
        "form": "bar"
      }
    },
    "distance": {
      "as": "bar-list",
      "of": "planets",
      "title": "태양에서의 거리 (AU)",
      "label": "name",
      "value": "au",
      "state": "kind"
    }
  },
  "triggers": [
    {
      "on": {
        "event": "click",
        "part": "planet"
      },
      "do": [
        {
          "action": "open-link",
          "url": "https://ko.wikipedia.org/wiki/{{key}}"
        }
      ]
    }
  ],
  "layout": {
    "kind": "grid",
    "items": [
      [
        "title",
        12
      ],
      [
        "rocky",
        4
      ],
      [
        "gas",
        4
      ],
      [
        "ice",
        4
      ],
      {
        "id": "planet",
        "span": 3,
        "height": 158
      },
      {
        "id": "distance",
        "span": 12,
        "height": 410
      }
    ]
  }
}
