Skip to content

Commit

Permalink
Animation
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilian-heeg committed Jul 2, 2024
1 parent f3603bc commit e2443ad
Show file tree
Hide file tree
Showing 5 changed files with 224 additions and 34 deletions.
169 changes: 169 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ edition = "2021"

[dependencies]
leptos = { version = "0.6.12", features = ["csr", "nightly"] }
leptos-use = "0.10.10"
leptos_hotkeys = "0.2.1"
rand = "0.8.5"
serde = { version = "1.0.203", features = ["derive"] }
Expand Down
13 changes: 11 additions & 2 deletions assets/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ body {
font-family: "Clear Sans", "Helvetica Neue", Arial, sans-serif;
}

main {
margin-left: auto;
margin-right: auto;
width: 22.5rem;
}
div.score {
width: 22.5rem;
text-align: end;
Expand All @@ -33,12 +38,16 @@ div.controls {
justify-content: space-between;
}

div.controls > button.space {
div.controls.c-1 > button {
width: 22.5rem;
}

div.controls.c-2 > button {
width: 11rem;
}

div.controls > button {
width: 5rem;
width: 5.25rem;
height: 4rem;
background: linear-gradient(
to bottom,
Expand Down
1 change: 0 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use render::RenderGame;
fn main() {
mount_to_body(|| {
view! {
<h1> 2048</h1>
<RenderGame />
}
})
Expand Down
Loading

0 comments on commit e2443ad

Please sign in to comment.