diff --git a/README.md b/README.md index f587b5193..988ad7268 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -![Demo of Ratatui](https://repository-images.githubusercontent.com/600886023/96016d23-3bdd-4611-8c03-2e8b5836f900) +![Demo of +Ratatui](https://github.com/ratatui-org/ratatui/blob/ed851fb5bb3673b3213d1511e77be82fa6719ea0/examples/demo2-noborders.gif?raw=true)
diff --git a/examples/README.md b/examples/README.md index 71bf26137..2f95cf0fe 100644 --- a/examples/README.md +++ b/examples/README.md @@ -8,7 +8,7 @@ occur in a terminal. ## Demo -This is the demo example from the main README. It is available for each of the backends. Source: +This is the previous demo example from the main README. It is available for each of the backends. Source: [demo.rs](./demo/). ```shell diff --git a/examples/demo2.tape b/examples/demo2.tape index 872ab6761..b7ef094d3 100644 --- a/examples/demo2.tape +++ b/examples/demo2.tape @@ -2,46 +2,71 @@ # To run this script, install vhs and run `vhs ./examples/demo.tape` Output "target/demo2.gif" Set Theme "OceanicMaterial" -# Github social preview size (1280x640 with 80px padding) -# Set Width 1280 -# Set Height 640 +# Github social preview size (1280x640 with 80px padding) and must be < 1MB +# This puts some constraints on the amount of interactivity we can do. +Set Width 1280 +Set Height 640 +Set Padding 80 # Without the padding for README.md, etc. -Set Width 1120 -Set Height 480 -Set Padding 0 +# Set Width 1120 +# Set Height 480 +# Set Padding 0 Hide Type "cargo run --example demo2" Enter Sleep 2s Show # About screen -Sleep 1s -Down # Red eye -Sleep 0.35s -Down # black eye -Sleep 0.35s -Down # red eye -Sleep 0.35s -Down # black eye -Sleep 1.5s +Sleep 3.5s Down # Red eye -Sleep 0.35s -Down # black eye -Sleep 0.35s -Down # red eye -Sleep 0.35s +Sleep 0.5s Down # black eye -Sleep 1.5s +Sleep 1s Tab # Email -Sleep 5s +Down +Sleep 1s +Down +Sleep 1s +Down +Sleep 1s +Down +Sleep 2s Tab # Trace route -Sleep 5s -Tab -# Misc -Sleep 5s +Sleep 1s +Down +Sleep 0.5s +Down +Sleep 0.5s +Down +Sleep 0.5s +Down +Sleep 0.5s +Down +Sleep 0.5s +Down +Sleep 0.5s +Down +Sleep 1s Tab # Recipe +Sleep 1s +Down +Sleep 0.5s +Down +Sleep 0.5s +Down +Sleep 0.5s +Down +Sleep 0.5s +Down +Sleep 0.5s +Down +Sleep 0.5s +Down +Sleep 1s +Tab +# Misc Sleep 5s Tab \ No newline at end of file diff --git a/src/lib.rs b/src/lib.rs index 07c01d41c..b131e6536 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,7 +3,7 @@ //! [ratatui](https://github.com/ratatui-org/ratatui) is a library that is all about cooking up terminal user //! interfaces (TUIs). //! -//! ![Demo](https://vhs.charm.sh/vhs-tF0QbuPbtHgUeG0sTVgFr.gif) +//! ![Demo](https://github.com/ratatui-org/ratatui/blob/ed851fb5bb3673b3213d1511e77be82fa6719ea0/examples/demo2-noborders.gif?raw=true) //! //! # Get started //!