diff --git a/web/dds_web.css b/web/dds_web.css index 251a7f45..7677bad7 100644 --- a/web/dds_web.css +++ b/web/dds_web.css @@ -5,6 +5,70 @@ https://opensource.org/licenses/MIT */ +.site-header { + margin: 0 0 1rem; +} + +.site-header h1 { + margin: 0 0 0.25rem; + font-size: 1.75rem; + font-weight: 700; +} + +.site-tagline { + margin: 0 0 0.35rem; + color: #333; +} + +.site-repo { + margin: 0; +} + +.site-repo a { + color: #0b57d0; +} + +.deal-entry-hint { + margin: 0 0 0.75rem; + font-size: 1.1rem; + font-weight: 600; +} + +.faq { + max-width: 1100px; + margin: 1.5rem 0 2rem; +} + +.faq h2 { + margin: 0 0 0.5rem; + font-size: 1.25rem; +} + +.faq details { + margin: 0.35rem 0; + border-top: 1px solid #ccc; + padding: 0.4rem 0; +} + +.faq details:last-child { + border-bottom: 1px solid #ccc; +} + +.faq summary { + cursor: pointer; + font-weight: 600; +} + +.faq details p { + margin: 0.5rem 0 0.25rem; + max-width: 42rem; + line-height: 1.45; +} + +.faq code { + font-size: 0.95em; +} + /* Toolbar controls: flat 1px chrome like https://macroxue.github.io/bridge-solver/web/ — Sample deals keeps a CSS chevron as the only visual difference from Clear / Import / Rotate. */ diff --git a/web/dds_web.html b/web/dds_web.html index ae07b51f..88a583e8 100644 --- a/web/dds_web.html +++ b/web/dds_web.html @@ -24,14 +24,22 @@ -
Double dummy bridge solver in your browser
++ Source on GitHub +
++ Enter a 52-card deal using only these pips: +
@@ -162,6 +170,42 @@+ DDS Web is a browser demo of + DDS, + a double dummy originally written by Bo Haglund. It runs entirely + client-side via WebAssembly: enter a deal (or import one), + and the page fills a double-dummy table of max tricks by + declarer and strain. +
++ No. Cards, imports, and solve results stay on your device. + The solver module is downloaded once with the page; nothing + is sent to a server to analyze a deal. +
++ After the double-dummy table appears, click a cell to enter + play for that declarer and strain (or that seat on lead for a + partial deal). Drag or click a highlighted card to play it; + each card shows the contract outcome with best play and + defense. Undo with ⌘/Ctrl-Z, or choose Edit hands to leave + play mode. +
+