Last active
July 18, 2019 04:29
-
-
Save softwarechido/1bcc8c35cd135d0bb203a9d4cc1398b3 to your computer and use it in GitHub Desktop.
Ejemplo APL Intermedio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "APL", | |
"version": "1.1", | |
"theme": "dark", | |
"import": [ | |
{ | |
"name": "alexa-layouts", | |
"version": "1.1.0" | |
} | |
], | |
"settings": { | |
"idleTimeout": 120000 | |
}, | |
"resources": [ | |
{ | |
"colors": { | |
"color1": "#C83A26" | |
} | |
}, | |
{ | |
"when": "${viewport.shape == 'round'}", | |
"color": { | |
"ReferenciaColor": "blue" | |
} | |
}, | |
{ | |
"when": "${viewport.shape == 'rectangle'}", | |
"color": { | |
"ReferenciaColor": "green" | |
} | |
} | |
], | |
"styles": { | |
"textStyle1": { | |
"values": { | |
"fontWeight": "bold", | |
"textAlign": "center", | |
"textAlignVertical": "center", | |
"color": "@ReferenciaColor" | |
} | |
} | |
}, | |
"onMount": [], | |
"graphics": {}, | |
"commands": {}, | |
"layouts": {}, | |
"mainTemplate": { | |
"parameters": [ | |
"payload" | |
], | |
"items": [ | |
{ | |
"type": "Container", | |
"width": "100%", | |
"height": "100%", | |
"direction": "column", | |
"justifyContent": "spaceAround", | |
"items": [ | |
{ | |
"type": "Text", | |
"textAlign": "center", | |
"fontSize": "10vw", | |
"style": "textStyle1", | |
"color":"@color1", | |
"text": "${payload.docData.hello1}" | |
}, | |
{ | |
"type": "Text", | |
"textAlign": "center", | |
"fontSize": "10vw", | |
"style": "textStyle1", | |
"text": "${payload.docData.hello2}" | |
}, | |
{ | |
"type": "Text", | |
"textAlign": "center", | |
"fontSize": "10vw", | |
"style": "textStyle1", | |
"text": "${payload.docData.hello3}" | |
} | |
] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment