Skip to content

Commit 32d28dd

Browse files
committed
Add a favicon.
1 parent 9cf8d98 commit 32d28dd

File tree

3 files changed

+25
-7
lines changed

3 files changed

+25
-7
lines changed

Dioxus.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ out_dir = "dist"
77
title = "Solo-Chess Solver"
88
base_path = "/"
99

10+
[bundle]
11+
short_description = "Solo-Chess Solver is a simple web app that finds a capture sequence for Solo Chess puzzles."
12+
13+
long_description = "Solo-Chess Solver lets you place pieces on a chessboard and click to solve. It returns a step‑by‑step capture sequence that leaves one piece on the board."
14+
15+
publisher = "willwang.io"
16+
17+
icon = ["/assets/favicon.svg"]
18+
1019
# include `assets` in web platform
1120
[web.resource]
1221

assets/favicon.svg

Lines changed: 8 additions & 0 deletions
Loading

src/main.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ fn App() -> Element {
4848
let selected_step = use_signal(|| Option::<usize>::None);
4949

5050
rsx! {
51+
document::Meta { name: "viewport", content: "width=device-width, initial-scale=1" }
5152
document::Link { rel: "stylesheet", href: STYLE }
52-
div {
53-
h2 { "Solo-Chess Solver" }
53+
main {
54+
h1 { "Solo-Chess Solver" }
5455
div {
5556
class: "board-stack",
5657
Chessboard {
@@ -65,13 +66,13 @@ fn App() -> Element {
6566
}
6667
PieceSelectionBoard { selected: selected_piece }
6768
Solution { steps, selected_step }
68-
div {
69+
section {
6970
h2 { "Rules" }
70-
p { "From chess.com: "}
71+
p { "From chess.com: " }
7172
ul {
72-
li { "Capture a piece with every move until just one remains" }
73-
li { "No piece may capture more than 2 times per puzzle (shown in black if cannot move)" }
74-
li { "If there is a King on the board, it must be the final piece" }
73+
li { "Capture a piece with every move until just one remains." }
74+
li { "No piece may capture more than 2 times per puzzle (shown in black if cannot move)." }
75+
li { "If there is a King on the board, it must be the final piece." }
7576
}
7677
}
7778
}

0 commit comments

Comments
 (0)