Skip to content

Commit 976e133

Browse files
committed
Add a favicon.
1 parent 9cf8d98 commit 976e133

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

assets/favicon.svg

Lines changed: 8 additions & 0 deletions
Loading

src/main.rs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,13 @@ 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" }
52+
document::Meta { name: "author", content: "Jiaye Will Wang" }
53+
document::Meta { name: "description", content: "Solve Solo-Chess puzzles from chess.com. Place pieces, run the solver, and step through the capture sequence that leaves one piece." }
54+
document::Link { rel: "icon", href: asset!("/assets/favicon.svg") }
5155
document::Link { rel: "stylesheet", href: STYLE }
52-
div {
53-
h2 { "Solo-Chess Solver" }
56+
main {
57+
h1 { "Solo-Chess Solver" }
5458
div {
5559
class: "board-stack",
5660
Chessboard {
@@ -65,13 +69,13 @@ fn App() -> Element {
6569
}
6670
PieceSelectionBoard { selected: selected_piece }
6771
Solution { steps, selected_step }
68-
div {
72+
section {
6973
h2 { "Rules" }
70-
p { "From chess.com: "}
74+
p { "From chess.com: " }
7175
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" }
76+
li { "Capture a piece with every move until just one remains." }
77+
li { "No piece may capture more than 2 times per puzzle (shown in black if cannot move)." }
78+
li { "If there is a King on the board, it must be the final piece." }
7579
}
7680
}
7781
}

0 commit comments

Comments
 (0)