presskit.ejs 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. <% var content = get_page(site.posts, page.target_id) %>
  2. <main role="main" class="presskit">
  3. <section class="py-5 text-center container">
  4. <div class="row py-lg-5">
  5. <div class="col-10 mx-auto">
  6. <h1><%- content.title %> <small class="fw-light">Presskit</small></h1>
  7. <p class="lead text-muted"><%- content.description %></p>
  8. <a class="btn-steam" href="https://store.steampowered.com/app/1481070/Max_Raider/">
  9. <!-- <img src="images/button-steam.png"> -->
  10. </a>
  11. </div>
  12. </div>
  13. </section>
  14. <% if(content.trailer != undefined) { %>
  15. <div class="album py-5 bg-light">
  16. <div class="container container-large">
  17. <div class="row justify-content-center">
  18. <div class="col-lg-10" style="text-align: center;">
  19. <div class="ratio ratio-16x9">
  20. <iframe class="video-player" src="<%- content.trailer %>" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  21. </div>
  22. </div>
  23. </div>
  24. </div>
  25. </div>
  26. <% } %>
  27. <% if(content.developer != undefined) { %>
  28. <div class="container" style="margin-top: 80px;">
  29. <div class="row justify-content-center">
  30. <div class="col-lg-10">
  31. <dl class="row">
  32. <h2 class="text-center space-bottom">Fact Sheet</h2>
  33. <% if(content.developer != undefined && content.developer_url != undefined) { %>
  34. <dt class="col-sm-3">Developer</dt>
  35. <dd class="col-sm-9"><a href="<%- content.developer_url %>"><%- content.developer %></a></dd>
  36. <% } %>
  37. <% if(content.publisher != undefined && content.publisher_url != undefined) { %>
  38. <dt class="col-sm-3">Publisher</dt>
  39. <dd class="col-sm-9"><a href="<%- content.publisher_url %>"><%- content.publisher %></a></dd>
  40. <% } %>
  41. <% if(content.genre != undefined) { %>
  42. <dt class="col-sm-3">Genre</dt>
  43. <dd class="col-sm-9"><%- content.genre %></dd>
  44. <% } %>
  45. <% if(content.tags != undefined) { %>
  46. <dt class="col-sm-3">Tags</dt>
  47. <dd class="col-sm-9">
  48. <%- list_tags(content.tags, {style: false, separator: ', ', show_count: false}) %>
  49. </dd>
  50. %>
  51. <% } %>
  52. <% if(content.platforms != undefined) { %>
  53. <dt class="col-sm-3">Platforms</dt>
  54. <dd class="col-sm-9"><%- content.platforms %></dd>
  55. <% } %>
  56. <% if(content.release != undefined && content.released != undefined) { %>
  57. <dt class="col-sm-3">
  58. <% if(content.released) { %>
  59. Released
  60. <% } else { %>
  61. Release date
  62. <% } %>
  63. </dt>
  64. <dd class="col-sm-9"><%- content.release %></dd>
  65. <% } %>
  66. <% if(content.game_modes != undefined) { %>
  67. <dt class="col-sm-3">Game Modes</dt>
  68. <dd class="col-sm-9"><%- content.game_modes %></dd>
  69. <% } %>
  70. <% if(content.email != undefined) { %>
  71. <dt class="col-sm-3">Email</dt>
  72. <dd class="col-sm-9"><%- content.email %></dd>
  73. <% } %>
  74. <% if(content.twitter_dev != undefined) { %>
  75. <dt class="col-sm-3">Twitter (dev): </dt>
  76. <dd class="col-sm-9">
  77. <a href="http://twitter.com/<%- content.twitter_dev %>">@<%- content.twitter_dev %></a>
  78. </dd>
  79. <% } %>
  80. </dl>
  81. </div>
  82. </div>
  83. </div>
  84. <% } %>
  85. <section class="container" style="margin-bottom: 80px;">
  86. <div class="row">
  87. <div class="col-10 mx-auto presskit-content">
  88. <%- page.content %>
  89. </a>
  90. </div>
  91. </div>
  92. </section>
  93. <% if(content.media != undefined) { %>
  94. <div class="album py-3 bg-light" style="margin-bottom: 80px;">
  95. <div class="container-fluid content">
  96. <div class="row">
  97. <div class="col-12">
  98. <h2>Screenshots</h2>
  99. </div>
  100. </div>
  101. <div class="row py-5 row-cols-1 row-cols-sm-2 row-cols-md-3 g-3 space-bottom">
  102. <% var screenshot_count = (Math.round(content.media.screenshots.list.length/3)*3) %>
  103. <% for(var i = 0; i < screenshot_count; i++) { %>
  104. <div class="col">
  105. <div class="card shadow-sm">
  106. <a href="<%- content.media.screenshots.list[i] %>" target="_BLANK">
  107. <img src="<%- content.media.screenshots.list[i] %>" class="img-fluid">
  108. </a>
  109. </div>
  110. </div>
  111. <% }; %>
  112. </div>
  113. </div>
  114. </div>
  115. <% } %>
  116. <section class="container" style="margin-bottom: 80px;">
  117. <div class="row">
  118. <div class="col-12" style="padding-bottom: 20px;">
  119. <h2>Media</h2>
  120. </div>
  121. </div>
  122. <div class="row">
  123. <% for (const [key, value] of Object.entries(content.media)) { %>
  124. <% var media = content.media[key]; %>
  125. <% if(media.hide_media == undefined || media.hide_media == false) { %>
  126. <% var c = 'col-md-8'; %>
  127. <% if (media.media_type != 'image') c = 'col-md-12' %>
  128. <div class="card mb-3 col-12">
  129. <div class="row g-0">
  130. <div class="<%- c %>">
  131. <div class="card-body">
  132. <h5 class="card-title">
  133. <a target="_BLANK" href="<%- media.path %>"
  134. v-on:click="mixpanelTrack('Media Download', { media_name: '<%- media.name %>', media_type: '<%- media.media_type %>', link : '<%- media.path %>', parent: '<%- page.title %>'})">
  135. <%- media.name %>
  136. </a>
  137. </h5>
  138. <p class="card-text" style="margin-bottom: 12px;">
  139. <%- media.description %>
  140. </p>
  141. <p class="card-text" >
  142. <small class="text-muted">
  143. <%- media.file_size %>
  144. </small>
  145. <% if(media.image_size != undefined) { %>
  146. <small class="text-muted" style="padding-left: 10px;">
  147. <%- media.image_size %>
  148. </small>
  149. <% } %>
  150. </p>
  151. </div>
  152. </div>
  153. <% if(media.media_type == 'image') { %>
  154. <div class="col-md-4 image-box">
  155. <a target="_BLANK" href="<%- media.path %>"
  156. v-on:click="mixpanelTrack('Media Download', { media_name: '<%- media.name %>', media_type: '<%- media.media_type %>', link : '<%- media.path %>', parent: '<%- page.title %>'})">
  157. <img src="<%- media.path %>" class="img-fluid" alt="...">
  158. </a>
  159. </div>
  160. <% } %>
  161. </div>
  162. </div>
  163. <% } %>
  164. <% } %>
  165. </div>
  166. </div>
  167. </section>
  168. </main>