{
  "schemaVersion": "1.2",
  "kind": "template",
  "id": "quiz-trivia",
  "variantId": "quiz-trivia",
  "template": "quiz",
  "title": "Trivia Quiz",
  "url": "https://cliphou.se/templates/quiz-trivia/",
  "editorUrl": "https://cliphou.se/#/v/quiz-trivia",
  "templateVersion": 1,
  "latestTemplateVersion": 1,
  "sourceHash": "b271aa21d573f890",
  "generation": {
    "model": "Claude Opus 5.5",
    "modelId": "claude-opus-5-5",
    "provider": "Anthropic",
    "effort": "medium"
  },
  "siteCommit": "27d0f0df8e4cf1d189d78476bbbb4d8c7f2dacaa",
  "license": "MIT-0",
  "licenseUrl": "https://cliphou.se/license/",
  "price": "Free",
  "attributionRequired": false,
  "format": {
    "aspectRatio": "9:16",
    "width": 1080,
    "height": 1920,
    "fps": 30,
    "durationInFrames": 330,
    "seconds": 11
  },
  "scenes": [
    {
      "type": "question",
      "label": "Question",
      "from": 0,
      "duration": 90,
      "roles": [
        "headline",
        "quote"
      ]
    },
    {
      "type": "list",
      "label": "List",
      "from": 90,
      "duration": 170,
      "roles": [
        "items"
      ]
    },
    {
      "type": "end-screen",
      "label": "End screen",
      "from": 260,
      "duration": 70,
      "roles": [
        "cta"
      ]
    }
  ],
  "props": {
    "texts": {
      "headline": "Quick quiz",
      "quote": "Which planet has the shortest day in our solar system?",
      "items": "Jupiter, Mars, Earth, Saturn",
      "cta": "Comment your answer"
    },
    "theme": {
      "background": "#2a1f6b",
      "surface": "#3b2f8f",
      "foreground": "#ffffff",
      "accent": "#ffcf33",
      "accent2": "#2fd18b"
    }
  },
  "editableFields": {
    "texts": {
      "headline": {
        "label": "Headline",
        "maxLength": 24,
        "current": "Quick quiz"
      },
      "quote": {
        "label": "Quote",
        "maxLength": 140,
        "current": "Which planet has the shortest day in our solar system?"
      },
      "items": {
        "label": "List",
        "maxLength": 120,
        "format": "Separate 2 to 6 items with commas.",
        "current": "Jupiter, Mars, Earth, Saturn"
      },
      "cta": {
        "label": "Call to action",
        "maxLength": 20,
        "current": "Comment your answer"
      }
    },
    "theme": {
      "background": {
        "format": "#RRGGBB",
        "current": "#2a1f6b"
      },
      "surface": {
        "format": "#RRGGBB",
        "current": "#3b2f8f"
      },
      "foreground": {
        "format": "#RRGGBB",
        "current": "#ffffff"
      },
      "accent": {
        "format": "#RRGGBB",
        "current": "#ffcf33"
      },
      "accent2": {
        "format": "#RRGGBB",
        "current": "#2fd18b"
      }
    }
  },
  "jsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "texts": {
        "type": "object",
        "properties": {
          "headline": {
            "type": "string",
            "minLength": 1,
            "maxLength": 24,
            "role": "headline"
          },
          "quote": {
            "type": "string",
            "minLength": 1,
            "maxLength": 140,
            "role": "quote"
          },
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[^,]*[^,\\s][^,]*(,[^,]*[^,\\s][^,]*){1,5}$",
            "role": "items"
          },
          "cta": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "role": "cta"
          }
        },
        "required": [
          "headline",
          "quote",
          "items",
          "cta"
        ],
        "additionalProperties": false
      },
      "theme": {
        "type": "object",
        "properties": {
          "background": {
            "type": "string",
            "pattern": "^#[0-9a-fA-F]{6}$",
            "role": "background"
          },
          "surface": {
            "type": "string",
            "pattern": "^#[0-9a-fA-F]{6}$",
            "role": "surface"
          },
          "foreground": {
            "type": "string",
            "pattern": "^#[0-9a-fA-F]{6}$",
            "role": "foreground"
          },
          "accent": {
            "type": "string",
            "pattern": "^#[0-9a-fA-F]{6}$",
            "role": "accent"
          },
          "accent2": {
            "type": "string",
            "pattern": "^#[0-9a-fA-F]{6}$",
            "role": "accent2"
          }
        },
        "required": [
          "background",
          "surface",
          "foreground",
          "accent",
          "accent2"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "texts",
      "theme"
    ],
    "additionalProperties": false
  },
  "handoff": {
    "urlTemplate": "https://cliphou.se/#/v/quiz-trivia?props=<url-encoded props JSON>",
    "example": "https://cliphou.se/#/v/quiz-trivia?props=%7B%22texts%22%3A%7B%22headline%22%3A%22Quick%20quiz%22%2C%22quote%22%3A%22Which%20planet%20has%20the%20shortest%20day%20in%20our%20solar%20system%3F%22%2C%22items%22%3A%22Jupiter%2C%20Mars%2C%20Earth%2C%20Saturn%22%2C%22cta%22%3A%22Comment%20your%20answer%22%7D%2C%22theme%22%3A%7B%22background%22%3A%22%232a1f6b%22%2C%22surface%22%3A%22%233b2f8f%22%2C%22foreground%22%3A%22%23ffffff%22%2C%22accent%22%3A%22%23ffcf33%22%2C%22accent2%22%3A%22%232fd18b%22%7D%7D",
    "maxEncodedLength": 8000,
    "note": "cliphou.se validates the props before it opens them. Invalid props are rejected and never saved."
  },
  "source": {
    "package": "https://cliphou.se/source/quiz/v1.tar.gz",
    "packageSha256": "4bc27ade37c3dbfbc797312f21a613b6ca5b5c03d4f785bb92571f5a1ecc92e7",
    "templateVersion": 1,
    "renderCommand": "npm ci && npx remotion render src/index.ts quiz out/video.mp4 --props=props.json",
    "repository": "https://github.com/sunmer/voodoo",
    "path": "src/videos/quiz/",
    "contents": "Remotion component, schema, scene metadata, shared helpers, exact dependency versions, lockfile, example props, and MIT-0 license. Fonts install from pinned Fontsource packages.",
    "note": "Rendering uses Remotion, which has separate license terms: https://remotion.dev/license"
  },
  "instructions": [
    "For text and color edits, change only props.texts and props.theme. Keep each text within maxLength and each color as #RRGGBB.",
    "Return text and color edits as handoff.urlTemplate with the props JSON URL-encoded.",
    "For layout, motion, timing, or scene edits, download source.package, extract it, and edit the code.",
    "Render the source package with source.renderCommand. Edit props.json to change text and colors.",
    "Never send code through the handoff URL. It accepts props only."
  ]
}
