Better email link
[vchess.git] / views / index.pug
1 extends layout
2
3 block css
4 link(rel="stylesheet", href="/stylesheets/index.css")
5
6 block content
7 .container#indexPage
8 .row
9 .col-sm-12
10 h1.text-center Welcome to v[ariant] chess club !
11 h2.help.text-center(onClick="document.getElementById('modal-control').checked=true") Help ?
12 input#modal-control.modal(type="checkbox")
13 div(role="dialog")
14 .card
15 label.modal-close(for="modal-control")
16 h3.blue.section Modes
17 p.section.
18 Each variant page offers two modes: against a human or computer opponent,
19 which is here to help learning the rules.
20 h3.blue.section Comments
21 p.section.
22 All games start with a random assymetric position. #[br]
23 Games are untimed, and played anonymously. #[br]
24 No chat, to rather focus on the moves :)
25 h3.purple.section Bug report
26 p.section.
27 If you find a bug in a game, please follow this procedure: #[br]
28 1. stop playing (click on the resign button); #[br]
29 2. click on the PGN to download it; #[br]
30 3. send an email to
31 #[a(href="mailto:contact@vchess.club?subject=[vchess.club] bug report") contact@vchess.club],
32 describing the situation (expected vs. observed),
33 with the PGN attached :)#[br]
34 Thank you!
35 .row
36 my-variant-summary(
37 v-for="(v,idx) in sortedCounts",
38 v-show="v.name.startsWith(curPrefix)",
39 v-bind:vobj="v",
40 v-bind:key="v.name")
41
42 block javascripts
43 script.
44 const variantArray = !{JSON.stringify(variantArray)};
45 //JSON.parse("!{variantArray}".replace(/\"/g,'"'));
46 script(src="/javascripts/utils/socket_url.js")
47 script(src="/javascripts/components/variantSummary.js")
48 script(src="/javascripts/index.js")