contact.ejs 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. <main role="main" class="bg-dark2" >
  2. <%- partial('_partial/logo', { created_by : false }) %>
  3. <div class="container">
  4. <div class="row">
  5. <div class="col-12">
  6. <h2 class="group-header">Contact</h2>
  7. </div>
  8. </div>
  9. <ul class="nav nav-pills justify-content-center" id="myTab" role="tablist">
  10. <li class="nav-item" role="presentation">
  11. <button type="button" role="tab" class="nav-link active" id="message-tab" data-bs-toggle="pill" data-bs-target="#message">Message</button>
  12. </li>
  13. <li class="nav-item" role="presentation">
  14. <button type="button" role="tab" class="nav-link" id="feedback-tab" data-bs-toggle="pill" data-bs-target="#feedback">Feedback</button>
  15. </li>
  16. <li class="nav-item" role="presentation">
  17. <button type="button" role="tab" class="nav-link" id="report-tab" data-bs-toggle="pill" data-bs-target="#report">Bug Report</button>
  18. </li>
  19. </ul>
  20. <div class="tab-content">
  21. <div class="tab-pane fade show active" id="message" role="tabpanel" aria-labelledby="message-tab" style="min-height: 450px;">
  22. <div class="row">
  23. <div class="col-md-12 gy-5">
  24. <p class="lead ">Write a direct message to our team. We'll do our best to respond all messages.</p>
  25. </div>
  26. </div>
  27. <div class="row" v-show="contact.message.send_status != ''">
  28. <div class="col-12" v-show="contact.message.send_status == 'sending'">
  29. <div class="alert alert-secondary fade show" role="alert">
  30. <i class="fas fa-spinner fa-pulse" style="margin-right: 10px; font-size: 1.3em;">
  31. </i> Sending message...
  32. </div>
  33. </div>
  34. <div class="col-12" v-show="contact.message.send_status == 'success'">
  35. <div class="alert alert-success fade show" role="alert">
  36. <i class="fas fa-check-circle" style="margin-right: 10px; font-size: 1.3em;">
  37. </i> Your message was sent successfully.
  38. </div>
  39. </div>
  40. <div class="col-12" v-show="contact.message.send_status == 'error'">
  41. <div class="alert alert-danger fade show" role="alert">
  42. <i class="fas fa-exclamation-circle" style="margin-right: 10px; font-size: 1.3em;">
  43. </i> There was an error sending your message. Please try again.
  44. <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close" style="float: right;"></button>
  45. </div>
  46. </div>
  47. </div>
  48. <form @submit.prevent="send_contact_message" class="dark-form" v-show="contact.message.send_status == ''">
  49. <div class="row">
  50. <div class="col-md-6 gy-3">
  51. <label for="inputName1" class="form-label">Name</label>
  52. <input type="text" v-model="contact.message.name" class="form-control" id="inputName1">
  53. </div>
  54. <div class="col-md-6 gy-3">
  55. <label for="inputEmail1" class="form-label">Email</label>
  56. <input type="email" v-model="contact.message.email" class="form-control" id="inputEmail1">
  57. </div>
  58. <div class="col-12 gy-3">
  59. <label for="inputAddress" class="form-label">Subject</label>
  60. <input type="text" v-model="contact.message.subject" class="form-control" id="inputAddress" placeholder="Message title">
  61. </div>
  62. <div class="col-12 gy-3">
  63. <label for="inputAddress2" class="form-label">Message</label>
  64. <textarea class="form-control" v-model="contact.message.message" id="exampleFormControlTextarea1" rows="3"></textarea>
  65. </div>
  66. <div class="col-12 gy-3">
  67. <button type="submit" class="btn btn-secondary">
  68. Send Message
  69. </button>
  70. </div>
  71. </div>
  72. </form>
  73. </div>
  74. <!-- Tab 2 -->
  75. <div class="tab-pane fade" id="feedback" role="tabpanel" aria-labelledby="feedback-tab" style="min-height: 550px;">
  76. <div class="row g-3">
  77. <div class="col-md-12 gy-5">
  78. <p class="lead ">Give your feedback or suggest features for one of our games or services.</p>
  79. </div>
  80. </div>
  81. <div class="row" v-show="contact.feedback.send_status != ''">
  82. <div class="col-12" v-show="contact.feedback.send_status == 'sending'">
  83. <div class="alert alert-secondary fade show" role="alert">
  84. <i class="fas fa-spinner fa-pulse" style="margin-right: 10px; font-size: 1.3em;">
  85. </i> Sending message...
  86. </div>
  87. </div>
  88. <div class="col-12" v-show="contact.feedback.send_status == 'success'">
  89. <div class="alert alert-success fade show" role="alert">
  90. <i class="fas fa-check-circle" style="margin-right: 10px; font-size: 1.3em;">
  91. </i> Your message was sent successfully.
  92. </div>
  93. </div>
  94. <div class="col-12" v-show="contact.feedback.send_status == 'error'">
  95. <div class="alert alert-danger fade show" role="alert">
  96. <i class="fas fa-exclamation-circle" style="margin-right: 10px; font-size: 1.3em;">
  97. </i> There was an error sending your message. Please try again.
  98. <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close" style="float: right;"></button>
  99. </div>
  100. </div>
  101. </div>
  102. <form @submit.prevent="send_feedback_message" class="dark-form" v-show="contact.feedback.send_status == ''">
  103. <div class="row">
  104. <div class="col-md-3">
  105. <label for="inputState" class="form-label">Topic</label>
  106. <select id="inputState" v-model="contact.feedback.topic" class="form-select">
  107. <option>General</option>
  108. <option>Games</option>
  109. <option>Website</option>
  110. </select>
  111. </div>
  112. <div class="col-md-6" v-show="contact.feedback.topic == 'Games'">
  113. <label for="inputState" class="form-label">Game</label>
  114. <select id="inputState" v-model="contact.feedback.game" class="form-select">
  115. <option>Grid Miner</option>
  116. <option>Max Raider</option>
  117. </select>
  118. </div>
  119. </div>
  120. <div class="row g-3">
  121. <div class="col-md-6 gy-5">
  122. <label for="inputName2" class="form-label">Name</label>
  123. <input type="text" v-model="contact.feedback.name" class="form-control" id="inputName2">
  124. </div>
  125. <div class="col-md-6 gy-5">
  126. <label for="inputEmail2" class="form-label">Email</label>
  127. <input type="email" v-model="contact.feedback.email" class="form-control" id="inputEmail2">
  128. </div>
  129. </div>
  130. <div class="row g-3">
  131. <div class="col-12 gy-5">
  132. <label for="inputSubject" class="form-label">Subject</label>
  133. <input type="text" v-model="contact.feedback.subject" class="form-control" id="inputSubject" placeholder="Message title">
  134. </div>
  135. <div class="col-12">
  136. <label for="inputMessage2" class="form-label">Message</label>
  137. <textarea class="form-control" v-model="contact.feedback.message" id="inputMessage2" rows="6"></textarea>
  138. </div>
  139. <div class="col-12">
  140. <button type="submit" class="btn btn-secondary">
  141. Send Message
  142. </button>
  143. </div>
  144. </div>
  145. </form>
  146. </div>
  147. <!-- Tab 3 -->
  148. <div class="tab-pane fade" id="report" role="tabpanel" aria-labelledby="report-tab" style="min-height: 700px;">
  149. <div class="row g-3">
  150. <div class="col-md-12 gy-5">
  151. <p class="lead ">Send a bug report about one of our games or services. Reports can also be sent directly from a game's main menu (in development).</p>
  152. </div>
  153. </div>
  154. <div class="row" v-show="contact.report.send_status != ''">
  155. <div class="col-12" v-show="contact.report.send_status == 'sending'">
  156. <div class="alert alert-secondary fade show" role="alert">
  157. <i class="fas fa-spinner fa-pulse" style="margin-right: 10px; font-size: 1.3em;">
  158. </i> Sending message...
  159. </div>
  160. </div>
  161. <div class="col-12" v-show="contact.report.send_status == 'success'">
  162. <div class="alert alert-success fade show" role="alert">
  163. <i class="fas fa-check-circle" style="margin-right: 10px; font-size: 1.3em;">
  164. </i> Your message was sent successfully.
  165. </div>
  166. </div>
  167. <div class="col-12" v-show="contact.report.send_status == 'error'">
  168. <div class="alert alert-danger fade show" role="alert">
  169. <i class="fas fa-exclamation-circle" style="margin-right: 10px; font-size: 1.3em;">
  170. </i> There was an error sending your message. Please try again.
  171. <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close" style="float: right;"></button>
  172. </div>
  173. </div>
  174. </div>
  175. <form @submit.prevent="send_report_message" class="dark-form" v-show="contact.report.send_status == ''">
  176. <div class="row">
  177. <div class="col-md-3">
  178. <label for="inputState" class="form-label">Topic</label>
  179. <select v-model="contact.report.topic" id="inputState" class="form-select">
  180. <option>General</option>
  181. <option>Games</option>
  182. <option>Website</option>
  183. </select>
  184. </div>
  185. <div class="col-md-6" v-show="contact.report.topic == 'Games'">
  186. <label for="inputState" class="form-label">Game</label>
  187. <select v-model="contact.report.game" id="inputState" class="form-select">
  188. <option>Grid Miner</option>
  189. <option>Max Raider</option>
  190. </select>
  191. </div>
  192. </div>
  193. <div class="row" v-show="contact.report.topic == 'Games'">
  194. <div class="col-md-3 gy-3">
  195. <label for="inputState" class="form-label">Platform</label>
  196. <select v-model="contact.report.platform" id="inputState" class="form-select">
  197. <option>Windows</option>
  198. <option>Mac</option>
  199. <option>Linux</option>
  200. </select>
  201. </div>
  202. <!-- <div class="col-md-6 gy-3">
  203. <label for="inputName" class="form-label">Operating System</label>
  204. <input type="email" class="form-control" id="inputName" placeholder="ex: Windows 10">
  205. </div> -->
  206. <div class="col-md-3 gy-3">
  207. <label for="inputName" class="form-label">Game Version</label>
  208. <input v-model="contact.report.game_version" type="text" class="form-control" id="inputName" placeholder="ex: 1.0">
  209. </div>
  210. </div>
  211. <div class="row g-3">
  212. <div class="col-md-6 gy-5">
  213. <label for="inputName3" class="form-label">Name</label>
  214. <input type="name" v-model="contact.report.name" class="form-control" id="inputName3">
  215. </div>
  216. <div class="col-md-6 gy-5">
  217. <label for="inputEmail3" class="form-label">Email</label>
  218. <input type="email" v-model="contact.report.email" class="form-control" id="inputEmail3">
  219. </div>
  220. <div class="col-12 gy-5">
  221. <label for="inputSubject" class="form-label">Subject</label>
  222. <input type="text" v-model="contact.report.subject" class="form-control" id="inputSubject" placeholder="Message title">
  223. </div>
  224. <div class="col-12">
  225. <label for="inputMessage3" class="form-label">Message</label>
  226. <textarea class="form-control" v-model="contact.report.message" id="inputMessage3" rows="6"></textarea>
  227. </div>
  228. <div class="col-12">
  229. <button type="submit" class="btn btn-secondary">
  230. Send Report
  231. </button>
  232. </div>
  233. </div>
  234. </form>
  235. </div>
  236. </div>
  237. </div>
  238. <%- partial('_partial/links') %>
  239. </main>