|
| 1 | +# CaseItem (data contract for a single case study entry) |
| 2 | +# |
| 3 | +# Required fields: |
| 4 | +# - id: string — unique identifier of the case |
| 5 | +# - description: string — markdown-enabled text (supports **bold** and [links](https://example.com)) |
| 6 | +# - type: string — one of: multiplatform | server-side |
| 7 | +# |
| 8 | +# Optional fields: |
| 9 | +# - logo: list (0–2) of image paths (strings) |
| 10 | +# Use up to two logos, path relative to /public/ directory |
| 11 | +# |
| 12 | +# - signature: object — author or source of the quote |
| 13 | +# line1: string — supports markdown (e.g., **Name Surname**, Role) |
| 14 | +# line2: string — plain text |
| 15 | +# |
| 16 | +# - isExternal: boolean — shows if the case story is from an external source (default: false) |
| 17 | +# |
| 18 | +# - link: string — URL of the full case story |
| 19 | +# |
| 20 | +# - linkText: string — text for the link (default: "Read the full story") |
| 21 | +# |
| 22 | +# - linkStyle: string — 'text' or 'button' — style of the link (default: text) |
| 23 | +# |
| 24 | +# - platforms: list of strings — platform tags shown on the card |
| 25 | +# Examples: android, ios, desktop, frontend, backend, compose-multiplatform |
| 26 | +# |
| 27 | +# - media: object — media block for the card |
| 28 | +# type: youtube | image |
| 29 | +# When type: youtube |
| 30 | +# videoId: string — YouTube video ID |
| 31 | +# When type: image |
| 32 | +# path: string — image path relative to /public/ directory |
| 33 | +# |
| 34 | +# - featuredOnMainPage: boolean — mark this case to be highlighted on the main page |
| 35 | +# |
| 36 | + |
| 37 | +items: |
| 38 | + - id: CompanyName # required: unique identifier |
| 39 | + type: server-side # required: multiplatform | server-side |
| 40 | + description: > # required: markdown-supported text |
| 41 | + **Case description** supporting [links](https://example.com) and emphasis. |
| 42 | + logo: # optional: list of 0–2 image paths (strings) |
| 43 | + - /images/case-studies/google.svg |
| 44 | + - /images/case-studies/google.svg |
| 45 | + signature: # optional |
| 46 | + line1: "**Name Surname**" |
| 47 | + line2: "Position at Company or note" |
| 48 | + isExternal: false # optional, default: true |
| 49 | + link: https://example.com/full-story # optional |
| 50 | + linkText: Read the full story # optional |
| 51 | + linkStyle: text # optional: button | text (default: button) |
| 52 | + platforms: # optional |
| 53 | + - android |
| 54 | + - ios |
| 55 | + - desktop |
| 56 | + - frontend |
| 57 | + - backend |
| 58 | + - compose-multiplatform |
| 59 | + media: # optional |
| 60 | + type: youtube # required: youtube | image |
| 61 | + videoId: o14wGByBRAQ # required when type: youtube |
| 62 | + # when type: image |
| 63 | + # type: image |
| 64 | + # path: ./images/case-studies/google.svg |
| 65 | + featuredOnMainPage: false # optional: mark the case as selected for the main page |
0 commit comments