{
"$comment": "The content pages' components (docs/mockups/cms). One description read by both sides: the simulator embeds it to check a page (crates/simulator/src/pages), the web UI draws with it (components.tsx). A prop's type is text (must be {$t('key')}), url (https:, mailto: or a site path), image (https: or a site path), enum, number, bool or place. children is none, text (one {$t('key')}) or blocks (components, optionally only those in allow).",
"root": "Page",
"components": {
"Page": {
"doc": "The page itself; exactly once, at the root. Its title and description are the browser tab's and the link preview's. menu puts the page in the site's top bar once it is published, at that position (1 first); nav is its word there when the title is too long for a bar.",
"props": {
"title": {"type": "text", "required": true},
"description": {"type": "text", "required": true},
"menu": {"type": "number"},
"nav": {"type": "text"}
},
"children": "blocks",
"example": "\n {$t('hero.lead')}\n"
},
"Hero": {
"doc": "The wide opening band: a big heading, a lead text and buttons, optionally over a picture.",
"props": {
"heading": {"type": "text", "required": true},
"image": {"type": "image"}
},
"children": "blocks",
"allow": ["Text", "ButtonLink", "DownloadButtons"],
"example": "\n {$t('hero.lead')}\n {$t('hero.cta')}\n"
},
"Section": {
"doc": "A titled part of the page.",
"props": {
"heading": {"type": "text"}
},
"children": "blocks",
"example": ""
},
"Columns": {
"doc": "Its children side by side on a wide screen, under each other on a phone.",
"props": {},
"children": "blocks",
"allow": ["Feature", "Image", "Quote", "Text"],
"example": "\n {$t('map.body')}\n {$t('chat.body')}\n"
},
"Feature": {
"doc": "A card with an icon, a heading and a short text.",
"props": {
"icon": {"type": "enum", "values": ["location_on", "chat", "public", "group", "lock", "calendar_month", "star", "image", "mic", "videocam", "edit", "description"]},
"heading": {"type": "text", "required": true}
},
"children": "text",
"example": "{$t('private.body')}"
},
"Text": {
"doc": "Running text. A blank line starts a new paragraph; **bold**, *italic* and [a link](/path) are allowed inside the text itself. lead makes it the larger opening text.",
"props": {
"lead": {"type": "bool"}
},
"children": "text",
"example": "{$t('intro')}"
},
"Image": {
"doc": "A picture, with a description for people who cannot see it and an optional caption.",
"props": {
"src": {"type": "image", "required": true},
"alt": {"type": "text", "required": true},
"caption": {"type": "text"}
},
"children": "none",
"example": ""
},
"ButtonLink": {
"doc": "A link drawn as a button.",
"props": {
"href": {"type": "url", "required": true},
"variant": {"type": "enum", "values": ["primary", "secondary"]}
},
"children": "text",
"example": "{$t('cta')}"
},
"Quote": {
"doc": "A quotation, optionally with who said it.",
"props": {
"by": {"type": "text"}
},
"children": "text",
"example": "{$t('quote.text')}
"
},
"PlaceLink": {
"doc": "A link that opens the world at a place, as a place link in the chat does. place is what follows ?place= in a shared place link: lat,lon, optionally then the height, pitch and heading (53.2194,6.5665,120m,-12.5,45.0).",
"props": {
"place": {"type": "place", "required": true}
},
"children": "text",
"example": "{$t('grote-markt')}"
},
"DownloadButtons": {
"doc": "The ways to get Cartopolis: the Android app, the browser and a server of your own. Its labels are the site's own texts.",
"props": {},
"children": "none",
"example": ""
}
},
"site_texts": {
"site.nav.community": {"nl": "Community", "en": "Community"},
"site.nav.world": {"nl": "Wereld", "en": "World"},
"site.nav.admin": {"nl": "Beheer", "en": "Admin"},
"site.nav.site": {"nl": "De site", "en": "The site"},
"site.nav.app": {"nl": "De app", "en": "The app"},
"site.home": {"nl": "Home", "en": "Home"},
"site.menu": {"nl": "Menu", "en": "Menu"},
"site.path": {"nl": "Waar je bent", "en": "Where you are"},
"site.signin": {"nl": "Inloggen", "en": "Sign in"},
"site.language": {"nl": "Taal", "en": "Language"},
"site.loading": {"nl": "Even laden…", "en": "Loading…"},
"site.not_found": {"nl": "Deze pagina bestaat niet (meer).", "en": "This page does not exist (any more)."},
"site.failed": {"nl": "De pagina kon niet geladen worden. Probeer het zo nog eens.", "en": "The page could not be loaded. Try again in a moment."},
"site.draft": {"nl": "Concept — nog niet gepubliceerd", "en": "Draft — not published yet"},
"site.download.android": {"nl": "Android-app", "en": "Android app"},
"site.download.web": {"nl": "In je browser", "en": "In your browser"},
"site.download.server": {"nl": "Je eigen server", "en": "Your own server"}
}
}