X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=views%2Findex.pug;h=6e8cc0b4ab7428428df8b745de10a785d7ce6669;hb=794b8a9863358c4572726c0d89704271efcf2527;hp=4be9cf92950bbe740c447d8555122d9f24c38f80;hpb=ea6bb36e86f23f1046d3d1dd03cfb46d598f97f7;p=vchess.git diff --git a/views/index.pug b/views/index.pug index 4be9cf92..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 @@ -74,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(