remove beta mentions

pull/7776/head
Thibault Duplessis 2020-12-23 14:04:22 +01:00
parent fe3ee253d0
commit c3b4bee020
4 changed files with 3 additions and 23 deletions

View File

@ -14,7 +14,7 @@ object dgt {
def index(implicit ctx: Context) = def index(implicit ctx: Context) =
layout("index")( layout("index")(
h1("Lichess <3 DGT (BETA)"), h1("Lichess <3 DGT"),
p( p(
"This page allows you to connect your DGT board to Lichess, and to use it for playing games." "This page allows you to connect your DGT board to Lichess, and to use it for playing games."
), ),

View File

@ -17,7 +17,7 @@ object theme {
moreCss = cssTag("puzzle.page") moreCss = cssTag("puzzle.page")
)( )(
main(cls := "page box")( main(cls := "page box")(
h1("Puzzle themes (V2 BETA)"), h1("Puzzle themes"),
div(cls := "puzzle-themes")( div(cls := "puzzle-themes")(
themes map { case (cat, themes) => themes map { case (cat, themes) =>
frag( frag(

View File

@ -96,20 +96,6 @@
border: none; border: none;
} }
} }
&__beta {
@extend %box-neat;
margin-top: 1vmin;
padding: 1em;
background: mix($c-brag, $c-bg-box, 15%);
strong {
display: block;
font-size: 1.2em;
font-weight: normal;
color: $c-brag;
margin-bottom: .5em;
}
}
} }
&__theme { &__theme {

View File

@ -19,8 +19,7 @@ function puzzleInfos(ctrl: Controller, puzzle: Puzzle): VNode {
h('p', [ h('p', [
...ctrl.trans.vdom('puzzleId', h('a', { ...ctrl.trans.vdom('puzzleId', h('a', {
attrs: { href: `/training/${puzzle.id}` } attrs: { href: `/training/${puzzle.id}` }
}, '#' + puzzle.id)), }, '#' + puzzle.id))
h('strong', ' V2 BETA')
]), ]),
h('p', ctrl.trans.vdom('ratingX', ctrl.vm.mode === 'play' ? h('span.hidden', ctrl.trans.noarg('hidden')) : h('strong', puzzle.rating))), h('p', ctrl.trans.vdom('ratingX', ctrl.vm.mode === 'play' ? h('span.hidden', ctrl.trans.noarg('hidden')) : h('strong', puzzle.rating))),
h('p', ctrl.trans.vdom('playedXTimes', h('strong', numberFormat(puzzle.plays)))) h('p', ctrl.trans.vdom('playedXTimes', h('strong', numberFormat(puzzle.plays))))
@ -107,11 +106,6 @@ export function config(ctrl: Controller): MaybeVNode {
}, },
}, ctrl.trans.noarg(diff)) }, ctrl.trans.noarg(diff))
)) ))
]) : null,
ctrl.difficulty ? h('div.puzzle__side__config__beta', [
h('strong', "Puzzles v2 are brand new!"),
"They don't have stable ratings yet, so you may find them too hard or too easy.", h('br'),
"Please bear with us, it should only last a few days!"
]) : null ]) : null
]); ]);
} }