basic usercp, typo

This commit is contained in:
Jörn-Michael Miehe 2018-12-27 18:30:22 +01:00
parent 19880a1a7a
commit 4f3d74c2e5
3 changed files with 55 additions and 1 deletions

View file

@ -66,7 +66,6 @@ FFTCGROUTER.get '/:template.html', (req, res) ->
if req.session.user and req.params.template == 'index'
return res.redirect '/usercp.html'
# render requested template
res.render (req.params.template + '.pug'), (err, html) ->
# redirect invalid requests to index

View file

@ -4,6 +4,7 @@ window.$ = require('jquery')
# import bootstrap
require './style/custom.scss'
require 'bootstrap/js/dist/alert'
require 'bootstrap/js/dist/collapse'
# on load
$ ->

View file

@ -4,3 +4,57 @@ html
title Crafty Things
script(src='/usercp.bundle.js')
body
header.jumbotron.jumbotron-fluid.py-4.bg-primary.text-light.text-center
div.container
h1 Hello World!
h2 App under development, please don't submit any valuable data!
div.container.bg-light
h3 Yavook!FFTCG
div#alert-area
div.row
div.col-md-8
h4 My Decks
ul.list-group#my-decks
li.list-group-item
div.align-middle
div.d-inline-block.btn-group(role="group")
button.btn.btn-secondary(data-toggle="collapse" data-target="#modDeck0") Edit
button.btn.btn-secondary#delDeck0 Delete
div.d-inline-block.pl-2 item1
form.float-none.collapse#modDeck0(name="modDeck0")
div.form-group
label(for="deck") Decklist:
textarea.form-control.text-monospace(name="deck" required)
div.form-group
button.btn.btn-primary.w-100(type="submit") Add
li.list-group-item
div.align-middle
div.d-inline-block.btn-group(role="group")
button.btn.btn-secondary(data-toggle="collapse" data-target="#modDeck1") Edit
button.btn.btn-secondary#delDeck1 Delete
div.d-inline-block.pl-2 item2
form.float-none.collapse#modDeck1(name="modDeck1")
div.form-group
label(for="deck") Decklist:
textarea.form-control.text-monospace(name="deck" required)
div.form-group
button.btn.btn-primary.w-100(type="submit") Add
div.col-md-4
h4 New Deck
form(name="addDeck")
div.form-group
label(for="deck") Paste decklist:
textarea.form-control.text-monospace(name="deck" required)
div.form-group
button.btn.btn-primary.w-100(type="submit") Add
p Hello