Keine Beschreibung
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

components-test.html 7.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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>Mechanics</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-description>
  64. <h4>Ignite</h4>
  65. <p>The fire ignites any flammable objects in the area that aren't being worn or carried.</p></card-description>
  66. <card-fill size="2"></card-fill>
  67. <card-section>At higher levels</card-section>
  68. <card-description><p>+1d6 damage for each slot above 1st</p></card-description>
  69. </card-contents>
  70. </rpg-card>
  71. <rpg-card class="card-size-25x35" color="maroon">
  72. <card-title>
  73. <h1>Burning Hands</h1>
  74. </card-title>
  75. <card-contents>
  76. <card-subtitle>1st level evocation</card-subtitle>
  77. <card-rule></card-rule>
  78. <card-fill size="1"></card-fill>
  79. <card-description>
  80. <h4>Mechanics</h4>
  81. <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>
  82. </card-description>
  83. <card-description>
  84. <h4>Ignite</h4>
  85. <p>The fire ignites any flammable objects in the area that aren't being worn or carried.</p>
  86. </card-description>
  87. <card-fill size="2"></card-fill>
  88. <card-section>At higher levels</card-section>
  89. <card-description><p>+1d6 damage for each slot above 1st</p></card-description>
  90. </card-contents>
  91. <card-title>
  92. <card-icon src="./icons/gears.svg" style="float: left"></card-icon>
  93. <h1 style="text-align: center;">Evocation 1</h1>
  94. <card-icon src="./icons/stopwatch.svg"></card-icon>
  95. </card-title>
  96. </rpg-card>
  97. <rpg-card class="card-size-25x35" color="saddlebrown">
  98. <card-title>
  99. <h1>Brown bear</h1>
  100. <h2>2</h2>
  101. <card-icon src="./icons/pawprint.svg"></card-icon>
  102. </card-title>
  103. <card-contents>
  104. <card-subtitle>Medium beast</card-subtitle>
  105. <card-rule></card-rule>
  106. <card-dndstats mode="both" str="13" dex="10" con="15" int="-" wis="-" cha="-"></card-dndstats>
  107. <card-rule></card-rule>
  108. <card-property><h4>Armor class</h4><p>12 (natural armor)</p></card-property>
  109. <card-property><h4>Hit points</h4><p>7 (2d6)</p></card-property>
  110. <card-rule></card-rule>
  111. <card-description>
  112. <h4>Multiattack</h4>
  113. <p>One bite and one claw.</p></card-description>
  114. <card-fill size="2"></card-fill>
  115. <card-section>Actions</card-section>
  116. <card-description>
  117. <h4>Bite</h4>
  118. <p>+4 to hit, 2d6+2 piercing damage.</p></card-description>
  119. <card-description>
  120. <h4>Claw</h4>
  121. <p>+4 to hit, 1d8+2 piercing damage.</p></card-description>
  122. </card-contents>
  123. <card-title>
  124. <h1>Druid thingy</h1>
  125. <card-icon src="./icons/stag-head.svg"></card-icon>
  126. </card-title>
  127. </rpg-card>
  128. <rpg-card class="card-size-25x35" color="indigo">
  129. <card-title size="12">
  130. <h1>Wand of Magic Missile</h1>
  131. <card-icon src="./icons/crossed-swords.svg"></card-icon>
  132. </card-title>
  133. <card-contents>
  134. <card-subtitle>Wondrous item</card-subtitle>
  135. <card-rule></card-rule>
  136. <card-property><h4>Maximum charges</h4><p>7</p></card-property>
  137. <card-property><h4>Recharge</h4><p>1d6+1</p></card-property>
  138. <card-rule></card-rule>
  139. <card-fill size="2"></card-fill>
  140. <card-description><h4>Spells</h4><p>You can use your action to cast the following spells:</p></card-description>
  141. <card-bullet>Magic missile</card-bullet>
  142. <card-bullet>Magic missile</card-bullet>
  143. <card-bullet>Magic missile</card-bullet>
  144. <card-fill size="3"></card-fill>
  145. <card-boxes size="2.5" count="7"></card-boxes>
  146. <card-boxes size="2.5" count="7"></card-boxes>
  147. </card-contents>
  148. </rpg-card>
  149. <rpg-card class="card-size-25x35" color="forestgreen">
  150. <card-back>
  151. <card-icon src="./icons/robe.svg"></card-icon>
  152. </card-back>
  153. </rpg-card>
  154. </card-page>
  155. <card-page>
  156. </card-page>
  157. <!-- GOOGLE ANALYTICS (only for online preview, your local version won't have this) -->
  158. <script>
  159. (function (i, s, o, g, r, a, m) {
  160. i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
  161. (i[r].q = i[r].q || []).push(arguments)
  162. }, i[r].l = 1 * new Date(); a = s.createElement(o),
  163. m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
  164. })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
  165. ga('create', 'UA-61016456-1', 'auto');
  166. ga('send', 'pageview');
  167. </script>
  168. </body>
  169. </html>