home.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <div class="container">
  4. {% with messages = get_flashed_messages() %}
  5. {% if messages %}
  6. {% for message in messages %}
  7. <div class="row">
  8. <div class="twelve columns">
  9. <div class="alert">
  10. {{ message }}
  11. </div>
  12. </div>
  13. </div>
  14. {% endfor %}
  15. {% endif %}
  16. {% endwith %}
  17. <form action="/newgame">
  18. <div class="row">
  19. <div class="six columns">
  20. <label for="playerNameNewInput">Player Name</label>
  21. <input type="text"
  22. class="u-full-width"
  23. placeholder="Cool Guy"
  24. id="playerNameNewInput"
  25. name="playerName">
  26. </div>
  27. <div class="two columns">
  28. <label for="handSizeInput">Hand Size</label>
  29. <input type="number"
  30. name="handSize"
  31. id="handSizeInput"
  32. class="u-full-width"
  33. value="7">
  34. </div>
  35. <div class="two columns">
  36. <label for="matchCountInput">Match Count</label>
  37. <input type="number"
  38. name="matchCount"
  39. id="matchCountInput"
  40. class="u-full-width"
  41. value="2">
  42. </div>
  43. <div class="two columns">
  44. <label for="turnCountInput">Turn Count</label>
  45. <input type="number"
  46. name="turnCount"
  47. id="turnCountInput"
  48. class="u-full-width"
  49. value="10">
  50. </div>
  51. </div>
  52. <div class="row">
  53. <div class="twelve column">
  54. <button type="submit"
  55. class="button-primary button-full">
  56. New Game
  57. </a>
  58. </div>
  59. </div>
  60. </form>
  61. <hr>
  62. <form action="/game">
  63. <div class="row">
  64. <div class="one-third column">
  65. <input type="text"
  66. class="u-full-width"
  67. placeholder="Game Code"
  68. id="gameCodeInput"
  69. name="gameCode">
  70. </div>
  71. <div class="one-third column">
  72. <input type="text"
  73. class="u-full-width"
  74. name="playerName"
  75. id="playerNameJoinInput"
  76. placeholder="Player Name">
  77. </div>
  78. <div class="one-third column">
  79. <button type="submit"
  80. class="button-primary button-full">
  81. Join Game
  82. </button>
  83. </div>
  84. </div>
  85. </form>
  86. </div>
  87. {% endblock %}