<template lang="pug">
main
input#modalInfo.modal(type="checkbox")
- div#infoDiv(role="dialog" data-checkbox="modalInfo" aria-labelledby="infoMessage")
- .card.smallpad.small-modal.text-center
+ div#infoDiv(role="dialog" data-checkbox="modalInfo")
+ .card.text-center
label.modal-close(for="modalInfo")
- h3#infoMessage.section
- p(v-html="infoMessage")
+ h3.section
+ p(v-html="infoMessage")
input#modalNewgame.modal(type="checkbox")
- div#newgameDiv(role="dialog" data-checkbox="modalNewgame"
- aria-labelledby="titleFenedit")
- .card.smallpad(@keyup.enter="newChallenge")
+ div#newgameDiv(role="dialog" data-checkbox="modalNewgame")
+ .card(@keyup.enter="newChallenge()")
label#closeNewgame.modal-close(for="modalNewgame")
fieldset
label(for="selectVariant") {{ st.tr["Variant"] }} *
button(@click="setDisplay('c','corr',$event)")
| {{ st.tr["Correspondance challenges"] }}
ChallengeList(v-show="cdisplay=='live'"
- :challenges="filterChallenges('live')" @click-challenge="clickChallenge()")
+ :challenges="filterChallenges('live')" @click-challenge="clickChallenge")
ChallengeList(v-show="cdisplay=='corr'"
- :challenges="filterChallenges('corr')" @click-challenge="clickChallenge()")
+ :challenges="filterChallenges('corr')" @click-challenge="clickChallenge")
#people
h3.text-center {{ st.tr["Who's there?"] }}
#players
| {{ getActionLabel(sid) }}
p.anonymous @nonymous ({{ anonymousCount }})
#chat
- Chat(:newChat="newChat" @mychat="processChat")
+ Chat(:newChat="newChat" @mychat="processChat" :pastChats="[]")
.clearer
div
.button-group
#newGame
display: block
margin: 10px auto 5px auto
+
+#infoDiv > .card
+ max-width: 370px
+
+#newgameDiv > .card
+ max-width: 767px
+ max-height: 100%
+
#people
width: 100%
#players