Recipe card

One recipe at a glance: the dish and its photo, time and servings, the ingredients and the numbered method, with the step being cooked highlighted.

Category: Food and drink. Tags: Restaurants and cafes, Stores.

Previews

Recipe
Canvas
Recipe
Corner
Recipe
Chip

Views and forms

Views: canvas, corner, chip. Canvas forms: landscape, portrait, square, strip.

Card views, themes and publishing. Browse the gallery.

Data and privacy

This card uses its configured properties and live card data.

Properties

For theme, background, accent and position, see Common properties.

Set static properties in params. Bind data to a project card data key for live values; that document holds only dynamic properties. Without a data key, put the complete configuration in params. Nested rows describe the contents of their parent property.

Static properties

NameTypeDefaultValues and limitsDescription
pageSecondsinteger10minimum: 4; maximum: 60When the lists do not fit, the seconds each page stays up.

Dynamic properties

NameTypeDefaultValues and limitsDescription
titlestring""maxLength: 120The dish.
subtitlestring""maxLength: 80A byline: the kitchen, the cook, the course.
imagestring""maxLength: 200A project media reference for the dish's photo.
prepinteger0minimum: 0; maximum: 1440Preparation minutes.
cookinteger0minimum: 0; maximum: 1440Cooking minutes.
servesinteger0minimum: 0; maximum: 1000How many it serves.
tagsarray[]minItems: 0; maxItems: 6Short marks: Vegetarian, Gluten-free, Quick.
ingredientsarray[]minItems: 0; maxItems: 60
ingredients[].headingstring""maxLength: 40A section heading such as For the sauce; it replaces name.
ingredients[].amountstring""maxLength: 16The quantity: 2 tbsp, 400 g.
ingredients[].namestring""maxLength: 80The ingredient.
ingredients[].notestring""maxLength: 40Prepared how: chopped, divided.
stepsarray[]minItems: 0; maxItems: 40
stepinteger0minimum: 0; maximum: 40The step being cooked, counting from 1. Earlier steps dim and this one is highlighted. 0 highlights none.
tipstring""maxLength: 200A closing tip.

Canvas example

Add this item to a playlist page’s primitives. Publish the playlist and assign a screen.

{
  "id": "recipe",
  "primitive": "card",
  "card": "recipe",
  "major": 1,
  "params": {
    "theme": "neomustard"
  },
  "rect": {
    "x": 0,
    "y": 0,
    "width": 1920,
    "height": 1080
  },
  "layer": 0,
  "content_fit": "fill",
  "data": "recipe-main"
}

Write live data

Create this document before showing the card, then replace it to update the screen without republishing. Use the same project as the playlist. Supply your API authorization through the environment; see API authentication.

curl --request PUT "https://api.screenrig.ai/api/card-data/recipe-main" \
  --header "Authorization: Bearer $SCREENRIG_TOKEN" \
  --header "ScreenRig-Project: $SCREENRIG_PROJECT" \
  --header "Content-Type: application/json" \
  --data '{"document":{"title":"","subtitle":"","image":"","prep":0,"cook":0,"serves":0,"tags":[],"ingredients":[],"steps":[],"step":0,"tip":""}}'