Nenhuma descrição
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

components-test.html 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>RPG cards</title>
  5. <!-- Components -->
  6. <link rel="import" href="components/card.html">
  7. <style type="text/css">
  8. rpg-card {
  9. margin: 4px;
  10. }
  11. body {
  12. display: flex;
  13. flex-direction: column;
  14. justify-content: center;
  15. align-content: center;
  16. background: rgb(204,204,204);
  17. }
  18. card-page {
  19. width: 210mm;
  20. height: 296mm;
  21. }
  22. @media print {
  23. html, body {
  24. width: 210mm;
  25. }
  26. body {
  27. margin: 0;
  28. padding: 0;
  29. border: 0;
  30. }
  31. }
  32. @page {
  33. size: A4;
  34. margin: 0;
  35. }
  36. </style>
  37. </head>
  38. <body>
  39. <card-page>
  40. <rpg-card class="card-size-25x35" color="maroon">
  41. <card-title>
  42. <h1>Burning Hands</h1>
  43. <h2>1</h2>
  44. <card-icon src="./icons/book-cover.svg"></card-icon>
  45. </card-title>
  46. <card-contents>
  47. <card-subtitle>1st level evocation</card-subtitle>
  48. <card-rule></card-rule>
  49. <card-property>
  50. <h4>Casting time</h4>
  51. <p>1 action</p></card-property>
  52. <card-property>
  53. <h4>Range</h4>
  54. <p>Self (15ft cone)</p></card-property>
  55. <card-property>
  56. <h4>Components</h4>
  57. <p>V,S,Some obscure long named material</p></card-property>
  58. <card-rule></card-rule>
  59. <card-fill size="1"></card-fill>
  60. <card-description>
  61. <h4>Effect</h4>
  62. <p>Each creature in a 15-foot cone must make a Dexterity saving throw. A creature takes <b>3d6 fire damage</b> on a failed save, or half as much damage on a successful one.</p></card-description>
  63. <card-vspace></card-vspace>
  64. <card-description>
  65. <h4>Ignite</h4>
  66. <p>Ignites any flammable objects in the area that aren't being worn or carried.</p></card-description>
  67. <card-fill size="2"></card-fill>
  68. <card-section>At higher levels</card-section>
  69. <card-description><p>+1d6 damage for each slot above 1st</p></card-description>
  70. </card-contents>
  71. </rpg-card>
  72. <rpg-card class="card-size-25x35" color="maroon">
  73. <card-title>
  74. <h1>Burning Hands</h1>
  75. <!--
  76. <h2>1</h2>
  77. <card-icon src="./icons/book-cover.svg"></card-icon>
  78. -->
  79. </card-title>
  80. <card-contents style="flex: 0 1 auto">
  81. <!--
  82. <card-subtitle>1st level evocation</card-subtitle>
  83. <div style="display:block; width:100%; height:1px; background-color:maroon; margin-top:4px; margin-bottom:4px"></div>
  84. -->
  85. <div style="display:flex; flex-direction:row">
  86. <div style="flex:0 1 auto; width:24px; height:24px; vertical-align:top; border:2px solid; border-radius:4px">
  87. <card-icon src="./icons/gears.svg"></card-icon>
  88. </div>
  89. <div style="flex:1 1 0px; padding-left:4px; height:24px; vertical-align:top; border:0px solid; border-radius:4px; text-align:left">
  90. Casting Time<br/>1 action
  91. </div>
  92. <div style="flex:1 1 0px; padding-right:4px; height:24px; vertical-align:top; border:0px solid; border-radius:4px; text-align:right">
  93. Range<br/>Self (15ft cone)
  94. </div>
  95. <div style="flex:0 1 auto; width:24px; height:24px; vertical-align:top; border:2px solid; border-radius:4px">
  96. <card-icon src="./icons/gears.svg"></card-icon>
  97. </div>
  98. </div>
  99. <div style="display:block; width:100%; height:4px"></div>
  100. <div style="display:flex; flex-direction:row">
  101. <div style="flex:0 1 auto; width:24px; height:24px; vertical-align:top; border:2px solid; border-radius:4px">
  102. <card-icon src="./icons/gears.svg"></card-icon>
  103. </div>
  104. <div style="flex:1 1 0px; padding-left:4px; height:24px; vertical-align:top; border:0px solid; border-radius:4px; text-align:left">
  105. Components<br/>V,S,M
  106. </div>
  107. <div style="flex:1 1 0px; padding-right:4px; height:24px; vertical-align:top; border:0px solid; border-radius:4px; text-align:right">
  108. Duration<br/>&lt;10min
  109. </div>
  110. <div style="flex:0 1 auto; width:24px; height:24px; vertical-align:top; border:2px solid; border-radius:4px">
  111. <card-icon src="./icons/gears.svg"></card-icon>
  112. </div>
  113. </div>
  114. </card-contents>
  115. <div style="height:6px"></div>
  116. <card-contents>
  117. <card-fill size="1"></card-fill>
  118. <card-description>
  119. <h4>Mechanics</h4>
  120. <p>Each creature in a 15-foot cone must make a Dexterity saving throw. A creature takes <b>3d6 fire damage</b> on a failed save, or half as much damage on a successful one.</p></card-description>
  121. <card-description>
  122. <h4>Ignite</h4>
  123. <p>The fire ignites any flammable objects in the area that aren't being worn or carried.</p></card-description>
  124. <card-fill size="2"></card-fill>
  125. <card-section>At higher levels</card-section>
  126. <card-description><p>+1d6 damage for each slot above 1st</p></card-description>
  127. </card-contents>
  128. <div style="height:14px;color:white;padding-top:4px">
  129. 1st level evocation
  130. </div>
  131. </rpg-card>
  132. <rpg-card class="card-size-25x35" color="maroon">
  133. <card-title>
  134. <h1>Burning Hands</h1>
  135. </card-title>
  136. <card-contents>
  137. <card-subtitle>1st level evocation</card-subtitle>
  138. <card-rule></card-rule>
  139. <card-fill size="1"></card-fill>
  140. <card-description>
  141. <h4>Mechanics</h4>
  142. <p>Each creature in a 15-foot cone must make a Dexterity saving throw. A creature takes <b>3d6 fire damage</b> on a failed save, or half as much damage on a successful one.</p>
  143. </card-description>
  144. <card-description>
  145. <h4>Ignite</h4>
  146. <p>The fire ignites any flammable objects in the area that aren't being worn or carried.</p>
  147. </card-description>
  148. <card-fill size="2"></card-fill>
  149. <card-section>At higher levels</card-section>
  150. <card-description><p>+1d6 damage for each slot above 1st</p></card-description>
  151. </card-contents>
  152. <card-title>
  153. <card-icon src="./icons/gears.svg" style="float: left"></card-icon>
  154. <h1 style="text-align: center;">Evocation 1</h1>
  155. <card-icon src="./icons/stopwatch.svg"></card-icon>
  156. </card-title>
  157. </rpg-card>
  158. <rpg-card class="card-size-25x35" color="saddlebrown">
  159. <card-title>
  160. <h1>Brown bear</h1>
  161. <h2>2</h2>
  162. <card-icon src="./icons/pawprint.svg"></card-icon>
  163. </card-title>
  164. <card-contents>
  165. <card-subtitle>Medium beast</card-subtitle>
  166. <card-rule></card-rule>
  167. <card-dndstats mode="both" str="13" dex="10" con="15" int="-" wis="-" cha="-"></card-dndstats>
  168. <card-rule></card-rule>
  169. <card-property><h4>Armor class</h4><p>12 (natural armor)</p></card-property>
  170. <card-property><h4>Hit points</h4><p>7 (2d6)</p></card-property>
  171. <card-rule></card-rule>
  172. <card-description>
  173. <h4>Multiattack</h4>
  174. <p>One bite and one claw.</p></card-description>
  175. <card-fill size="2"></card-fill>
  176. <card-section>Actions</card-section>
  177. <card-description>
  178. <h4>Bite</h4>
  179. <p>+4 to hit, 2d6+2 piercing damage.</p></card-description>
  180. <card-description>
  181. <h4>Claw</h4>
  182. <p>+4 to hit, 1d8+2 piercing damage.</p></card-description>
  183. </card-contents>
  184. <card-title>
  185. <h1>Druid thingy</h1>
  186. <card-icon src="./icons/stag-head.svg"></card-icon>
  187. </card-title>
  188. </rpg-card>
  189. <rpg-card class="card-size-25x35" color="indigo">
  190. <card-title size="12">
  191. <h1>Wand of Magic Missile</h1>
  192. <card-icon src="./icons/crossed-swords.svg"></card-icon>
  193. </card-title>
  194. <card-contents>
  195. <card-subtitle>Wondrous item</card-subtitle>
  196. <card-rule></card-rule>
  197. <card-property><h4>Maximum charges</h4><p>7</p></card-property>
  198. <card-property><h4>Recharge</h4><p>1d6+1</p></card-property>
  199. <card-rule></card-rule>
  200. <card-fill size="2"></card-fill>
  201. <card-description><h4>Spells</h4><p>You can use your action to cast the following spells:</p></card-description>
  202. <card-bullet>Magic missile</card-bullet>
  203. <card-bullet>Magic missile</card-bullet>
  204. <card-bullet>Magic missile</card-bullet>
  205. <card-fill size="3"></card-fill>
  206. <card-boxes size="2.5" count="7"></card-boxes>
  207. <card-boxes size="2.5" count="7"></card-boxes>
  208. </card-contents>
  209. </rpg-card>
  210. <rpg-card class="card-size-25x35" color="forestgreen">
  211. <card-back>
  212. <card-icon src="./icons/robe.svg"></card-icon>
  213. </card-back>
  214. </rpg-card>
  215. </card-page>
  216. <card-page>
  217. </card-page>
  218. </body>
  219. </html>