@@ -48,9 +48,20 @@ 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:: Meta { property: "og:site_name" , content: "Solo-Chess Solver" }
55+ document:: Meta { property: "og:title" , content: "Solo-Chess Solver" }
56+ document:: Meta { property: "og:type" , content: "website" }
57+ document:: Meta { property: "og:image" , content: asset!( "/assets/og.png" ) }
58+ document:: Meta { property: "og:image:width" , content: "1200" }
59+ document:: Meta { property: "og:image:height" , content: "630" }
60+ document:: Meta { property: "og:image:type" , content: "image/png" }
61+ document:: Link { rel: "icon" , href: asset!( "/assets/favicon.svg" ) }
5162 document:: Link { rel: "stylesheet" , href: STYLE }
52- div {
53- h2 { "Solo-Chess Solver" }
63+ main {
64+ h1 { "Solo-Chess Solver" }
5465 div {
5566 class: "board-stack" ,
5667 Chessboard {
@@ -65,13 +76,13 @@ fn App() -> Element {
6576 }
6677 PieceSelectionBoard { selected: selected_piece }
6778 Solution { steps, selected_step }
68- div {
79+ section {
6980 h2 { "Rules" }
70- p { "From chess.com: " }
81+ p { "From chess.com: " }
7182 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" }
83+ li { "Capture a piece with every move until just one remains. " }
84+ li { "No piece may capture more than 2 times per puzzle (shown in black if cannot move). " }
85+ li { "If there is a King on the board, it must be the final piece. " }
7586 }
7687 }
7788 }
0 commit comments