Last active
July 8, 2020 11:16
-
-
Save frsechet/a081fd649fc9f37372f144961f19533a to your computer and use it in GitHub Desktop.
Webapp coverage of CSML components
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
start: | |
say "His palms are sweaty, knees weak, arms are heavy" | |
say Text("There's vomit on his sweater already, mom's spaghetti") | |
say "He's _nervous_, but **on the surface** he looks [calm and ready](https://www.youtube.com/watch?v=_Yhyp-_hX2s)" | |
say Typing(2000) | |
say Image("https://images.unsplash.com/photo-1560114928-40f1f1eb26a0") | |
say Question("Hi! My name is:", buttons=[Button("What?"), Button("Who?")]) | |
say Question( | |
"Hi! My name is:", | |
buttons=[ | |
Button("What?", payload="btn1"), | |
Button("Who?", payload="btn2"), | |
] | |
) | |
say Video("https://www.youtube.com/watch?v=lqBhgEQ4LT0") | |
say Audio("https://open.spotify.com/track/1xB3YT8Rakvnfcc1dp2kzJ") | |
say Url("https://www.wikipedia.org/", text="Visit Wikipedia") | |
do card1 = Card( | |
"The Marshall Mathers LP", | |
subtitle="Release date: May 23, 2000", | |
image_url="https://upload.wikimedia.org/wikipedia/en/a/ae/The_Marshall_Mathers_LP.jpg", | |
buttons=[Button("Listen to this album", payload="marshallmatherslp1")] | |
) | |
do card2 = Card( | |
"The Slim Shady LP", | |
subtitle="Release date: February 23, 1999", | |
image_url="https://upload.wikimedia.org/wikipedia/en/3/35/Eminem_-_The_Slim_Shady_LP_CD_cover.jpg", | |
buttons=[Button("Listen to this album", payload="theslimshadylp")] | |
) | |
do card3 = Card( | |
"The Marshall Mathers LP 2", | |
subtitle="Release date: November 5, 2013", | |
image_url="https://upload.wikimedia.org/wikipedia/en/8/87/The_Marshall_Mathers_LP_2.png", | |
buttons=[Button("Listen to this album", payload="marshallmatherslp2")] | |
) | |
say Carousel(cards=[card1, card2, card3]) | |
goto end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment