-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhello-world.deck.json
More file actions
214 lines (214 loc) · 5.76 KB
/
hello-world.deck.json
File metadata and controls
214 lines (214 loc) · 5.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
{
"$schema": "./schemas/deck.schema.json",
"type": "AdaptiveDeck",
"version": "1.0.0",
"metadata": {
"title": "Hello World — Adaptive Slide Demo",
"description": "A sample deck exercising all built-in tile types",
"author": "Adaptive Slide",
"tags": ["demo", "example", "hello-world"]
},
"theme": {
"name": "Blue",
"primaryColor": "#0078d4",
"accentColor": "#50e6ff",
"backgroundColor": "#ffffff",
"fontFamily": "Segoe UI, sans-serif",
"darkMode": false
},
"defaults": {
"layout": "stack",
"transition": "fade",
"padding": "default"
},
"slides": [
{
"type": "AdaptiveSlide",
"id": "slide-title",
"title": "Title Slide",
"background": {
"gradient": {
"type": "linear",
"colors": ["#0078d4", "#50e6ff"],
"angle": 135
}
},
"body": [
{
"type": "Tile.Text",
"text": "Adaptive Slide",
"style": "heading",
"size": "extraLarge",
"weight": "bolder",
"color": "light",
"horizontalAlignment": "center",
"spacing": "extraLarge"
},
{
"type": "Tile.Text",
"text": "Schema-driven presentations built on Adaptive Cards",
"style": "subheading",
"color": "light",
"horizontalAlignment": "center"
}
],
"notes": "Welcome the audience. Introduce the concept of schema-driven presentations."
},
{
"type": "AdaptiveSlide",
"id": "slide-architecture",
"title": "Architecture",
"body": [
{
"type": "Tile.Text",
"text": "How It Works",
"style": "heading",
"size": "large"
},
{
"type": "Tile.Text",
"text": "Every deck is a JSON file. Slides are Adaptive Card buckets. Tiles are the content atoms.",
"style": "body"
},
{
"type": "Tile.Code",
"language": "json",
"title": "deck-structure.json",
"code": "{\n \"type\": \"AdaptiveDeck\",\n \"slides\": [\n {\n \"type\": \"AdaptiveSlide\",\n \"body\": [\n { \"type\": \"Tile.Text\", \"text\": \"Hello!\" }\n ]\n }\n ]\n}",
"showLineNumbers": true,
"theme": "dark"
}
]
},
{
"type": "AdaptiveSlide",
"id": "slide-tiles",
"title": "Tile Types",
"layout": {
"mode": "grid",
"columns": 2,
"gap": "default"
},
"body": [
{
"type": "Tile.Text",
"text": "📝 Text Tile",
"style": "heading",
"size": "medium",
"gridPosition": { "column": 1, "row": 1 }
},
{
"type": "Tile.Image",
"url": "https://adaptivecards.io/content/cats/1.png",
"altText": "A sample image tile showing a cat",
"size": "medium",
"horizontalAlignment": "center",
"caption": "Image Tile with caption",
"gridPosition": { "column": 2, "row": 1 }
},
{
"type": "Tile.Code",
"code": "console.log('Hello from a Code Tile!');",
"language": "javascript",
"showLineNumbers": false,
"gridPosition": { "column": 1, "row": 2 }
},
{
"type": "Tile.Chart",
"chartType": "bar",
"title": "Chart Tile",
"data": {
"labels": ["Q1", "Q2", "Q3", "Q4"],
"datasets": [
{
"label": "Revenue",
"values": [12, 19, 8, 15],
"color": "#0078d4"
}
]
},
"gridPosition": { "column": 2, "row": 2 }
}
]
},
{
"type": "AdaptiveSlide",
"id": "slide-container",
"title": "Container Tile",
"body": [
{
"type": "Tile.Text",
"text": "Nested Layouts with Container Tiles",
"style": "heading"
},
{
"type": "Tile.Container",
"layout": "row",
"style": "emphasis",
"items": [
{
"type": "Tile.Text",
"text": "**Left column** — text content with markdown support",
"style": "body"
},
{
"type": "Tile.Text",
"text": "**Right column** — tiles nest inside containers for complex layouts",
"style": "body"
}
]
},
{
"type": "Tile.Container",
"layout": "row",
"style": "accent",
"items": [
{
"type": "Tile.Text",
"text": "Containers can use different styles: `default`, `emphasis`, `good`, `attention`, `warning`, `accent`",
"style": "caption"
}
]
}
]
},
{
"type": "AdaptiveSlide",
"id": "slide-end",
"title": "Thank You",
"background": {
"color": "#0078d4"
},
"body": [
{
"type": "Tile.Text",
"text": "Thank You!",
"style": "heading",
"size": "extraLarge",
"color": "light",
"horizontalAlignment": "center",
"spacing": "extraLarge"
},
{
"type": "Tile.Text",
"text": "Built with ❤️ on Adaptive Cards",
"style": "body",
"color": "light",
"horizontalAlignment": "center"
}
],
"actions": [
{
"type": "Action.OpenUrl",
"title": "Learn More",
"url": "https://adaptivecards.io/"
},
{
"type": "Action.GoToSlide",
"title": "Back to Start",
"targetSlideId": "slide-title"
}
]
}
]
}