Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburniske committed Mar 7, 2024
1 parent 9a6ec66 commit 785ee5d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.

Large diffs are not rendered by default.

Binary file not shown.
2 changes: 1 addition & 1 deletion example/demo/dist/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang=en><meta charset=utf-8><meta content="width=device-width,initial-scale=1.0" name=viewport><title>demo</title><script type=module>import a,*as b from"/demo-e3bd7592b10438bb.js";a(`/demo-e3bd7592b10438bb_bg.wasm`);window.wasmBindings=b</script><link href=/output-ca582f800eb8ceb.css integrity=sha384-YY5ZkN9JeRpc5JnTjKN8skD3yvbS4CyEz54DFq_kyAOqg000MM8UU0x1pxzaDtlo rel=stylesheet><link href=https://fonts.googleapis.com rel=preconnect><link crossorigin href=https://fonts.gstatic.com rel=preconnect><link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;800&family=Roboto+Mono&display=swap" rel=stylesheet><link as=fetch crossorigin href=/demo-e3bd7592b10438bb_bg.wasm integrity=sha384-eD6DO3cDdDj7ev-rz8HQ167478pBe8azsMbT7C6fjVC9Es52zmvnqW7FCn-tVYu4 rel=preload type=application/wasm><link crossorigin href=/demo-e3bd7592b10438bb.js integrity=sha384-O_acg9SlU41LsrpcqCFSSgrzuAH_DFRdz3fU9qnzc6337eOPDSFqX9k6N9Mk7TIK rel=modulepreload></head><body></body></html>
<!doctype html><html lang=en><meta charset=utf-8><meta content="width=device-width,initial-scale=1.0" name=viewport><title>demo</title><script type=module>import a,*as b from"/demo-f46c0b07e58f470.js";a(`/demo-f46c0b07e58f470_bg.wasm`);window.wasmBindings=b</script><link href=/output-ca582f800eb8ceb.css integrity=sha384-YY5ZkN9JeRpc5JnTjKN8skD3yvbS4CyEz54DFq_kyAOqg000MM8UU0x1pxzaDtlo rel=stylesheet><link href=https://fonts.googleapis.com rel=preconnect><link crossorigin href=https://fonts.gstatic.com rel=preconnect><link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;800&family=Roboto+Mono&display=swap" rel=stylesheet><link as=fetch crossorigin href=/demo-f46c0b07e58f470_bg.wasm integrity=sha384-CXFtSZcpv7Jncs6_byuH5zzOoPOuqezuT5k2D6xETOTS9kkqT1T5Y_v7Po5BkxnA rel=preload type=application/wasm><link crossorigin href=/demo-f46c0b07e58f470.js integrity=sha384-27REUZHvxJXAZysTXW8AqSDlLmu-9vYrK0xesQ-j0zOjA-HYTekwnYqYZVv-vMTD rel=modulepreload></head><body></body></html>
6 changes: 3 additions & 3 deletions example/demo/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub fn App() -> impl IntoView {
fn HomePage() -> impl IntoView {
let toggle_default = create_rw_signal(false);

use_hotkeys!(("s", "home") => move |_| {
use_hotkeys!(("b", "home") => move |_| {
if toggle_default.get() {
toggle_default.set(false);
} else {
Expand All @@ -49,18 +49,18 @@ fn HomePage() -> impl IntoView {
"Conditionally change the button variant",
view! {
<Button variant= Signal::derive(move || if toggle_default.get() { ButtonVariant::Default} else { ButtonVariant::Secondary})>
Press S to change variant
Press B to change variant
</Button>
},
),
(
"Button sizes",
view! {
<div class="flex items-center gap-2">
<Button size=ButtonSize::Icon>Icon</Button>
<Button size=ButtonSize::Sm>Small</Button>
<Button>Default</Button>
<Button size=ButtonSize::Lg>Large</Button>
<Button size=ButtonSize::Icon>Icon</Button>
</div>
}
.into_view(),
Expand Down

0 comments on commit 785ee5d

Please sign in to comment.