presskit.ejs 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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.screenshots != undefined) { %>
  94. <div class="album py-3 bg-light">
  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.screenshots.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.screenshots[i] %>" target="_BLANK">
  107. <img src="<%- content.screenshots[i] %>" class="img-fluid">
  108. </a>
  109. </div>
  110. </div>
  111. <% }; %>
  112. </div>
  113. </div>
  114. </div>
  115. <% } %>
  116. </main>