Skip to content

Commit

Permalink
feat: Add demo
Browse files Browse the repository at this point in the history
  • Loading branch information
kdheepak committed Feb 19, 2024
1 parent e6323a3 commit 897bb93
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/crates-tui-tutorial-app/crates-tui-demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions code/crates-tui-tutorial-app/demo.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# A VHS tape. See https://github.com/charmbracelet/vhs
Output crates-tui-demo.gif
Set Theme "Aardvark Blue"
Set Width 1600
Set Height 800
Type "cargo run --bin crates-tui"
Enter
Sleep 3s
Type "ratatui"
Sleep 1s
Enter
Sleep 3s
Type "/"
Sleep 1s
Screenshot crates-tui-demo.png
Sleep 2s

4 changes: 4 additions & 0 deletions src/content/docs/tutorials/crates-tui/conclusion.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
title: Conclusion
---

If you put all of it together, you should be able run the TUI.

![](./crates-tui-demo.gif)

We touched on the basic framework for building an `async` application with Ratatui, namely using
`tokio` and `crossterm`'s async features to create an `Event` and `Action` enum that contain
`Render` variants. We also saw how we could use `tokio` channels to send `Action`s to run domain
Expand Down
3 changes: 3 additions & 0 deletions src/content/docs/tutorials/crates-tui/crates-tui-demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 897bb93

Please sign in to comment.