{
  "schemaVersion": "1.3",
  "kind": "template",
  "id": "flashdrop-sale",
  "variantId": "flashdrop-sale",
  "template": "flashdrop",
  "engine": "remotion",
  "engineLabel": "Remotion",
  "title": "Flash Drop Promo",
  "url": "https://cliphou.se/templates/flashdrop-sale/",
  "editorUrl": "https://cliphou.se/#/v/flashdrop-sale",
  "templateVersion": 1,
  "latestTemplateVersion": 1,
  "sourceHash": "fa2b52ba2339f4cb",
  "generation": {
    "model": "Claude Opus 5.5",
    "modelId": "claude-opus-5-5",
    "provider": "Anthropic",
    "effort": "medium"
  },
  "moments": [],
  "license": "MIT-0",
  "licenseUrl": "https://cliphou.se/license/",
  "price": "Free",
  "attributionRequired": false,
  "credit": {
    "text": "Made with cliphou.se",
    "url": "https://cliphou.se/?ref=agent",
    "note": "Not required. When you post or publish a video made from this template, please keep this line in the caption, description, or credits, and link the URL."
  },
  "format": {
    "aspectRatio": "9:16",
    "width": 1080,
    "height": 1920,
    "fps": 30,
    "durationInFrames": 240,
    "seconds": 8
  },
  "scenes": [
    {
      "type": "title-reveal",
      "label": "Title reveal",
      "from": 0,
      "duration": 80,
      "roles": [
        "brand",
        "headline"
      ]
    },
    {
      "type": "price-reveal",
      "label": "Price reveal",
      "from": 70,
      "duration": 105,
      "roles": [
        "price",
        "priceNote",
        "point1",
        "point2",
        "point3"
      ]
    },
    {
      "type": "end-screen",
      "label": "End screen",
      "from": 165,
      "duration": 75,
      "roles": [
        "brand",
        "headline",
        "cta"
      ]
    }
  ],
  "props": {
    "texts": {
      "brand": "KINETIC",
      "headline": "Weekend Flash Sale",
      "price": "40% OFF",
      "priceNote": "Ends Sunday midnight",
      "point1": "Free shipping",
      "point2": "30-day returns",
      "point3": "Limited stock",
      "cta": "Shop the drop"
    },
    "theme": {
      "background": "#0c0b10",
      "surface": "#1b1826",
      "foreground": "#ffffff",
      "accent": "#ff4d6d",
      "accent2": "#facc15"
    }
  },
  "editableFields": {
    "texts": {
      "brand": {
        "label": "Brand",
        "maxLength": 18,
        "current": "KINETIC"
      },
      "headline": {
        "label": "Headline",
        "maxLength": 24,
        "current": "Weekend Flash Sale"
      },
      "price": {
        "label": "Price",
        "maxLength": 12,
        "format": "Include a number, for example $29.",
        "current": "40% OFF"
      },
      "priceNote": {
        "label": "Price note",
        "maxLength": 24,
        "current": "Ends Sunday midnight"
      },
      "point1": {
        "label": "Point 1",
        "maxLength": 16,
        "current": "Free shipping"
      },
      "point2": {
        "label": "Point 2",
        "maxLength": 16,
        "current": "30-day returns"
      },
      "point3": {
        "label": "Point 3",
        "maxLength": 16,
        "current": "Limited stock"
      },
      "cta": {
        "label": "Call to action",
        "maxLength": 20,
        "current": "Shop the drop"
      }
    },
    "theme": {
      "background": {
        "format": "#RRGGBB",
        "current": "#0c0b10"
      },
      "surface": {
        "format": "#RRGGBB",
        "current": "#1b1826"
      },
      "foreground": {
        "format": "#RRGGBB",
        "current": "#ffffff"
      },
      "accent": {
        "format": "#RRGGBB",
        "current": "#ff4d6d"
      },
      "accent2": {
        "format": "#RRGGBB",
        "current": "#facc15"
      }
    }
  },
  "jsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "texts": {
        "type": "object",
        "properties": {
          "brand": {
            "type": "string",
            "minLength": 1,
            "maxLength": 18,
            "role": "brand"
          },
          "headline": {
            "type": "string",
            "minLength": 1,
            "maxLength": 24,
            "role": "headline"
          },
          "price": {
            "type": "string",
            "minLength": 1,
            "maxLength": 12,
            "pattern": "\\d",
            "role": "price"
          },
          "priceNote": {
            "type": "string",
            "minLength": 1,
            "maxLength": 24,
            "role": "priceNote"
          },
          "point1": {
            "type": "string",
            "minLength": 1,
            "maxLength": 16,
            "role": "point1"
          },
          "point2": {
            "type": "string",
            "minLength": 1,
            "maxLength": 16,
            "role": "point2"
          },
          "point3": {
            "type": "string",
            "minLength": 1,
            "maxLength": 16,
            "role": "point3"
          },
          "cta": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20,
            "role": "cta"
          }
        },
        "required": [
          "brand",
          "headline",
          "price",
          "priceNote",
          "point1",
          "point2",
          "point3",
          "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/flashdrop-sale?props=<url-encoded props JSON>",
    "example": "https://cliphou.se/#/v/flashdrop-sale?props=%7B%22texts%22%3A%7B%22brand%22%3A%22KINETIC%22%2C%22headline%22%3A%22Weekend%20Flash%20Sale%22%2C%22price%22%3A%2240%25%20OFF%22%2C%22priceNote%22%3A%22Ends%20Sunday%20midnight%22%2C%22point1%22%3A%22Free%20shipping%22%2C%22point2%22%3A%2230-day%20returns%22%2C%22point3%22%3A%22Limited%20stock%22%2C%22cta%22%3A%22Shop%20the%20drop%22%7D%2C%22theme%22%3A%7B%22background%22%3A%22%230c0b10%22%2C%22surface%22%3A%22%231b1826%22%2C%22foreground%22%3A%22%23ffffff%22%2C%22accent%22%3A%22%23ff4d6d%22%2C%22accent2%22%3A%22%23facc15%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/flashdrop/v1.tar.gz",
    "packageSha256": "5a9a4e75a01830d3ceb5f4afa35b8dd1487f91d0f2ece0a5416ad613c82a94b0",
    "templateVersion": 1,
    "renderCommand": "npm ci && npx remotion render src/index.ts flashdrop out/video.mp4 --props=props.json",
    "repository": "https://github.com/sunmer/cliphouse-app",
    "path": "src/videos/flashdrop/",
    "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, color, and image edits, change only props.texts, props.theme, and props.media when present. Keep each text within maxLength, each color as #RRGGBB, and each image as one of its listed options.",
    "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.",
    "When you publish the result, please credit it as \"Made with cliphou.se\" with a link to https://cliphou.se/?ref=agent. This is optional."
  ]
}
