X-Git-Url: https://git.auder.net/pieces/cr.svg?a=blobdiff_plain;f=views%2Findex.pug;h=6e8cc0b4ab7428428df8b745de10a785d7ce6669;hb=794b8a9863358c4572726c0d89704271efcf2527;hp=99a5b561a40e5467233fbcb8b1019946ec99a756;hpb=b019d603c837db3e3c2d294a383b6ca1cf4705d4;p=vchess.git diff --git a/views/index.pug b/views/index.pug index 99a5b561..6e8cc0b4 100644 --- a/views/index.pug +++ b/views/index.pug @@ -13,12 +13,14 @@ block content a(href="/demo.webm") Demo ! input#modal-help.modal(type="checkbox") div(role="dialog") - .card + #help.card label.modal-close(for="modal-help") - h3.blue.section Modes - p.section. - Each variant page offers two modes: against a human or computer opponent, - which is here to help learning the rules. + h3.blue.section Tips + p.section + span.conditional-jump On a variant page, read the rules by clicking on the title "<Variant> rules". + span.conditional-jump Try playing against a human: click the leftmost "new game" button :) + | ...then, while waiting you can play against a (rather weak) bot or a friend. + // TODO? On the index page, try typing the first letters of a variant. h3.blue.section Comments p.section. All games start with a random assymetric position. #[br] @@ -32,6 +34,14 @@ block content 3. send an email to #[a(href="mailto:contact@vchess.club?subject=[vchess.club] bug report") contact@vchess.club] with relevant comments and the PGN attached. Thank you! + input#modal-b4welcome.modal(type="checkbox") + div(role="dialog") + #b4welcome.card.text-center + label.modal-close(for="modal-b4welcome") + h3.blue.section First visit? + p Please + span(style="color:blue;text-decoration:underline;cursor:pointer" @click="showWelcomeMsg") read this + span  before playing ☺ input#modal-welcome.modal(type="checkbox") div(role="dialog") #welcome.card.text-center @@ -47,12 +57,18 @@ block content (otherwise it's no longer a variant but a whole new game!). p(style="font-style:italic;color:purple") However... p Each variant has its own new rules, which can involve - ul - li * different pieces movements - li * different chessboard(s)    - li * new pieces                 - li * moves side effects         - li ...and so on                 + table.list-table + tbody + tr + td * different pieces movements + tr + td * different chessboard(s) + tr + td * new pieces + tr + td * moves side effects + tr + td ...and so on .section p. Example: imagine that a capture is an atomic explosion, wiping all adjacent squares @@ -68,7 +84,7 @@ block content p. For informations about hundreds (if not thousands!) of variants, you can visit the excellent #[a(href="https://www.chessvariants.com/") chessvariants] website. - p(style="cursor:pointer;color:darkgrey" onClick="setCookie('visited','1');document.getElementById('modal-welcome').checked=false") Do not annoy me again! + p(style="cursor:pointer;color:darkred" onClick="setCookie('visited','1');document.getElementById('modal-welcome').checked=false") Click here to not show this message next time p(style="font-size:0.8em") Image credit: #[a(href="https://en.wikipedia.org/wiki/List_of_chess_variants#/media/File:Hexagonal_chess.svg") Wikpedia] .row my-variant-summary(