Rob Colbert
2 years ago
5 changed files with 86 additions and 1 deletions
@ -0,0 +1,49 @@ |
|||
// welcome.js
|
|||
// Copyright (C) 2022 DTP Technologies, LLC
|
|||
// License: Apache-2.0
|
|||
|
|||
'use strict'; |
|||
|
|||
const DTP_COMPONENT_NAME = 'welcome'; |
|||
|
|||
const path = require('path'); |
|||
|
|||
const express = require('express'); |
|||
const captcha = require('svg-captcha'); |
|||
|
|||
const { SiteController/*, SiteError */ } = require('../../lib/site-lib'); |
|||
|
|||
class HelpController extends SiteController { |
|||
|
|||
constructor (dtp) { |
|||
super(dtp, DTP_COMPONENT_NAME); |
|||
} |
|||
|
|||
async start ( ) { |
|||
const { limiter: limiterService } = this.dtp.services; |
|||
|
|||
const router = express.Router(); |
|||
this.dtp.app.use( |
|||
'/help', |
|||
limiterService.create(limiterService.config.help.getHome), |
|||
router, |
|||
); |
|||
|
|||
router.get('/', this.getHomeView.bind(this)); |
|||
|
|||
return router; |
|||
} |
|||
|
|||
async getHomeView (req, res) { |
|||
res.render('help/index'); |
|||
} |
|||
} |
|||
|
|||
module.exports = { |
|||
slug: 'help', |
|||
name: 'help', |
|||
create: async (dtp) => { |
|||
let controller = new HelpController(dtp); |
|||
return controller; |
|||
}, |
|||
}; |
@ -0,0 +1,19 @@ |
|||
extends ../layouts/main |
|||
block content |
|||
|
|||
section.uk-section.uk-section-default.uk-section-small |
|||
.uk-container |
|||
|
|||
h1 HELP! |
|||
|
|||
p This is the online help. It will eventually more helpful. |
|||
|
|||
h2 Game Play |
|||
|
|||
ol |
|||
li Each player is dealt 7 answer cards at the start of the game |
|||
li A Führer is chosen at the start of each round |
|||
li A question card is dislayed to start each round |
|||
li Each player selects an answer card or cards from their hand for the question (depending on the question's format) |
|||
li The Führer will then reveal each selected answer and read the question and answer together |
|||
li Führer then selects their favorite answer, which becomes the winning answer for that round. |
@ -1,7 +1,9 @@ |
|||
extends layouts/main-sidebar |
|||
block content |
|||
|
|||
.uk-margin |
|||
img(src="/img/landing-attract.png").responsive |
|||
|
|||
h1= config.site.name |
|||
img(src="/img/landing-attract.png").responsive |
|||
|
|||
p Game description goes here. |
Loading…
Reference in new issue