No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

components-test.html 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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. body {
  9. display: flex;
  10. flex-direction: column;
  11. justify-content: center;
  12. align-content: center;
  13. background: rgb(204,204,204);
  14. }
  15. card-page {
  16. width: 210mm;
  17. height: 296mm;
  18. }
  19. @media print {
  20. html, body {
  21. width: 210mm;
  22. }
  23. body {
  24. margin: 0;
  25. padding: 0;
  26. border: 0;
  27. }
  28. }
  29. @page {
  30. size: A4;
  31. margin: 0;
  32. }
  33. </style>
  34. </head>
  35. <body>
  36. <card-page>
  37. <rpg-card class="card-size-25x35" color="maroon">
  38. <card-title>
  39. <h1>Burning Hands</h1>
  40. <h2>1</h2>
  41. <card-icon src="/icons/book-cover.svg"></card-icon>
  42. </card-title>
  43. <card-contents>
  44. <card-subtitle>1st level evocation</card-subtitle>
  45. <card-rule></card-rule>
  46. <card-property>
  47. <h4>Casting time</h4>
  48. <p>1 action</p></card-property>
  49. <card-property>
  50. <h4>Range</h4>
  51. <p>Self (15ft cone)</p></card-property>
  52. <card-property>
  53. <h4>Components</h4>
  54. <p>V,S,Some obscure long named material</p></card-property>
  55. <card-rule></card-rule>
  56. <card-fill size="1"></card-fill>
  57. <card-description>
  58. <h4>Mechanics</h4>
  59. <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>
  60. <card-description>
  61. <h4>Ignite</h4>
  62. <p>The fire ignites any flammable objects in the area that aren't being worn or carried.</p></card-description>
  63. <card-fill size="2"></card-fill>
  64. <card-section>At higher levels</card-section>
  65. <card-description><p>+1d6 damage for each slot above 1st</p></card-description>
  66. </card-contents>
  67. </rpg-card>
  68. <rpg-card class="card-size-25x35" color="saddlebrown">
  69. <card-title>
  70. <h1>Brown bear</h1>
  71. <h2>2</h2>
  72. <card-icon src="/icons/pawprint.svg"></card-icon>
  73. </card-title>
  74. <card-contents>
  75. <card-subtitle>Medium beast</card-subtitle>
  76. <card-rule></card-rule>
  77. <card-dndstats mode="both" str="13" dex="10" con="15" int="-" wis="-" cha="-"></card-dndstats>
  78. <card-rule></card-rule>
  79. <card-property><h4>Armor class</h4><p>12 (natural armor)</p></card-property>
  80. <card-property><h4>Hit points</h4><p>7 (2d6)</p></card-property>
  81. <card-rule></card-rule>
  82. <card-description>
  83. <h4>Multiattack</h4>
  84. <p>One bite and one claw.</p></card-description>
  85. <card-fill size="2"></card-fill>
  86. <card-section>Actions</card-section>
  87. <card-description>
  88. <h4>Bite</h4>
  89. <p>+4 to hit, 2d6+2 piercing damage.</p></card-description>
  90. <card-description>
  91. <h4>Claw</h4>
  92. <p>+4 to hit, 1d8+2 piercing damage.</p></card-description>
  93. </card-contents>
  94. <card-title>
  95. <h1>Druid thingy</h1>
  96. <card-icon src="/icons/stag-head.svg"></card-icon>
  97. </card-title>
  98. </rpg-card>
  99. <rpg-card class="card-size-25x35" color="indigo">
  100. <card-title size="12">
  101. <h1>Wand of Magic Missile</h1>
  102. <card-icon src="/icons/crossed-swords.svg"></card-icon>
  103. </card-title>
  104. <card-contents>
  105. <card-subtitle>Wondrous item</card-subtitle>
  106. <card-rule></card-rule>
  107. <card-property><h4>Maximum charges</h4><p>7</p></card-property>
  108. <card-property><h4>Recharge</h4><p>1d6+1</p></card-property>
  109. <card-rule></card-rule>
  110. <card-fill size="2"></card-fill>
  111. <card-description><h4>Spells</h4><p>You can use your action to cast the following spells:</p></card-description>
  112. <card-bullet>Magic missile</card-bullet>
  113. <card-bullet>Magic missile</card-bullet>
  114. <card-bullet>Magic missile</card-bullet>
  115. <card-fill size="3"></card-fill>
  116. <card-boxes size="2.5" count="7"></card-boxes>
  117. <card-boxes size="2.5" count="7"></card-boxes>
  118. </card-contents>
  119. </rpg-card>
  120. <rpg-card class="card-size-25x35" color="forestgreen">
  121. <card-back>
  122. <card-icon src="/icons/robe.svg"></card-icon>
  123. </card-back>
  124. </rpg-card>
  125. </card-page>
  126. <card-page>
  127. </card-page>
  128. </body>
  129. </html>