game.ejs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <main role="main" class="bg-dark2" >
  2. <% if(page.library_hero != undefined) { %>
  3. <div class="container-fluid">
  4. <div class="row justify-content-center">
  5. <div class="" style="text-align: center; padding: 0px;">
  6. <img src="<%- page.library_hero %>" class="img-fluid cover-bg">
  7. <img src="<%- page.library_logo %>" style="width: 65%; position: relative; top: -60%;">
  8. </div>
  9. </div>
  10. </div>
  11. <% } %>
  12. <% if(page.description != undefined) { %>
  13. <section class="py-5 text-center container"
  14. <% if(page.library_hero != undefined) { %> style="margin-top: -35%;" <% } %> >
  15. <div class="row py-lg-5">
  16. <div class="col-10 mx-auto">
  17. <p class="lead"><%- page.description %></p>
  18. <a class="btn-steam" href="https://store.steampowered.com/app/1481070/Max_Raider/">
  19. <!-- <img src="images/button-steam.png"> -->
  20. </a>
  21. </div>
  22. </div>
  23. </section>
  24. <% } %>
  25. <% if(page.media != undefined) { %>
  26. <div class="album py-5">
  27. <div class="container-fluid content">
  28. <div class="row row-cols-1 row-cols-sm-2 row-cols-md-3 g-3 space-bottom">
  29. <% var screenshot_count = (Math.round(page.media.screenshots.list.length/3)*3) %>
  30. <% for(var i = 0; i < screenshot_count; i++) { %>
  31. <div class="col">
  32. <div class="card shadow-sm card-dark hoverable">
  33. <a href="<%- page.media.screenshots.list[i] %>" target="_BLANK">
  34. <img src="<%- page.media.screenshots.list[i] %>" class="img-fluid">
  35. </a>
  36. </div>
  37. </div>
  38. <% }; %>
  39. </div>
  40. </div>
  41. </div>
  42. <% } %>
  43. <% if(page.trailer != undefined) { %>
  44. <div class="album py-5 bg-darker">
  45. <div class="container container-large">
  46. <div class="row justify-content-center">
  47. <div class="col-lg-10" style="text-align: center;">
  48. <div class="ratio ratio-16x9">
  49. <iframe class="video-player" src="<%- page.trailer %>" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. <% } %>
  56. <section class="py-5 container">
  57. <div class="row py-lg-5">
  58. <div class="col-10 mx-auto post-content">
  59. <p class="lead text-muted"><%- page.content %></p>
  60. </div>
  61. </div>
  62. </section>
  63. <% if(page.steam_widget != undefined) { %>
  64. <div class="container ">
  65. <div class="row justify-content-center">
  66. <div class="col-10" style="text-align: center;">
  67. <div class="ratio-steam" style="margin-top: 30px;">
  68. <iframe src="<%- page.steam_widget %>" frameborder="0"></iframe>
  69. </div>
  70. <!-- <div class="d-block d-sm-none">
  71. <a class="btn-steam" href="https://store.steampowered.com/app/1481070/Max_Raider/">
  72. <img src="images/button-steam.png">
  73. </a>
  74. </div> -->
  75. </div>
  76. </div>
  77. </div>
  78. <% } %>
  79. <footer>
  80. <%- partial('_partial/logo', { created_by : true }) %>
  81. <%- partial('_partial/contact') %>
  82. <%- partial('_partial/about') %>
  83. <%- partial('_partial/newsletter') %>
  84. <%- partial('_partial/links') %>
  85. </footer>
  86. </main>