COGNHACKER - LAB
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

238 lignes
7.6 KiB

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1.0">
  6. <meta name="robots" content="noindex">
  7. <meta name="title" content="WorkAdventure Starter Kit">
  8. <link rel="icon" href="https://workadventu.re/favicon-96x96.png">
  9. <link href="https://fonts.googleapis.com/css?family=Press+Start+2P" rel="stylesheet">
  10. <link href="https://unpkg.com/nes.css@2.3.0/css/nes.min.css" rel="stylesheet" />
  11. <title>WorkAdventure Starter Kit</title>
  12. <script>
  13. window.onload = function () {
  14. const host = window.location.host;
  15. let path = window.location.pathname;
  16. if (path.endsWith('index.html')) {
  17. path = path.substr(path, path.length - 'index.html'.length);
  18. }
  19. const instanceId = Math.random().toString(36).substring(2, 15);
  20. const url = `https://play.workadventu.re/_/${instanceId}/${host}${path}maps/lab.json`;
  21. document.getElementById('testMapURL').href = url;
  22. document.getElementById('testMapBtnURL').href = url;
  23. document.getElementById('testMapURL').innerText = url;
  24. const jsonURL = window.location.protocol + '//' + window.location.host + path + 'maps/lab.json';
  25. document.getElementById('jsonURL').innerText = jsonURL;
  26. const gettingStartedLink = 'https://workadventu.re/getting-started?name=Map&mapUrl=' + jsonURL;
  27. document.getElementById('gettingStartedLink').href = gettingStartedLink;
  28. };
  29. </script>
  30. <style>
  31. body {
  32. font-size: 16px;
  33. font-family: 'Open Sans', sans-serif;
  34. max-width: 800px;
  35. margin: auto !important;
  36. text-align: center;
  37. }
  38. h1,
  39. h2 {
  40. font-weight: bold;
  41. }
  42. header {
  43. margin: 30px;
  44. }
  45. header .logo {
  46. display: block;
  47. position: relative;
  48. }
  49. header .logo img {
  50. display: block;
  51. width: 500px;
  52. margin: auto;
  53. text-align: center;
  54. }
  55. main {
  56. margin-bottom: 30px;
  57. }
  58. .socials img {
  59. width: 30px;
  60. height: 30px;
  61. }
  62. .socials>a {
  63. display: inline-block;
  64. margin: 20px 5px;
  65. }
  66. .content {
  67. width: 100%;
  68. position: relative;
  69. z-index: 99999;
  70. }
  71. .content>h2 {
  72. padding: 1rem 5vw;
  73. max-width: 1200px;
  74. }
  75. a.button {
  76. display: inline-block;
  77. padding: 13px 20px 12px;
  78. background: rgba(20, 48, 76, 0.9);
  79. color: white;
  80. font-weight: bold;
  81. text-transform: uppercase;
  82. text-decoration: none;
  83. text-align: center;
  84. width: auto;
  85. position: relative;
  86. font-size: 1.8em;
  87. margin-top: 2rem;
  88. }
  89. a.button:hover {
  90. top: -3px;
  91. background: rgba(20, 48, 76);
  92. cursor: pointer;
  93. color: white;
  94. }
  95. .maps {
  96. display: flex;
  97. justify-content: center;
  98. gap: 1rem;
  99. flex-wrap: wrap;
  100. }
  101. .map {
  102. width: 30%;
  103. margin-bottom: 3%;
  104. min-width: 200px;
  105. }
  106. .map a,
  107. .map img {
  108. width: 100%;
  109. display: block;
  110. }
  111. .map a.button {
  112. display: inline-block;
  113. width: auto;
  114. margin: 1rem auto;
  115. }
  116. .url {
  117. font-family: 'Courier New', Courier, monospace;
  118. font-size: 14px;
  119. }
  120. footer {
  121. display: block;
  122. font-size: 1.2em;
  123. padding: 2rem 5vw;
  124. }
  125. /*/ MEDIA QUERIES START HERE /*/
  126. @media (max-width: 768px) {
  127. /* Hand Held Device */
  128. body {
  129. font-size: 13px;
  130. }
  131. .logo img {
  132. width: 60vw;
  133. }
  134. .content {
  135. padding: 1rem;
  136. }
  137. .maps {
  138. gap: 1rem;
  139. }
  140. .map {
  141. width: 47%;
  142. margin-bottom: 3%;
  143. min-width: 200px;
  144. }
  145. }
  146. </style>
  147. </head>
  148. <body>
  149. <header>
  150. <div class="logo">
  151. <a href="https://workadventu.re/" target="_blank" title="Workadventure"><img
  152. src="https://workadventu.re/images/general/logo.svg" alt="WorkAdventure logo" /></a>
  153. </div>
  154. </header>
  155. <main>
  156. <div class="nes-container with-title is-centered" style="margin-top: 3rem">
  157. <p class="title">Useful links</p>
  158. <div class="content">
  159. <div class="socials">
  160. <a href="https://discord.gg/G6Xh9ZM9aR" target="_blank" title="discord">
  161. <img src="https://workadventu.re/images/social/discord.png" alt="discord">
  162. </a>
  163. <a href="https://github.com/thecodingmachine/workadventure" target="_blank" title="github">
  164. <img src="https://workadventu.re/images/social/github.png" alt="github">
  165. </a>
  166. <a href="https://www.youtube.com/channel/UCXJ9igV-kb9gw1ftR33y5tA" target="_blank" title="youtube">
  167. <img src="https://workadventu.re/images/social/youtube.png" alt="youtube">
  168. </a>
  169. <a href="https://twitter.com/Workadventure_" target="_blank" title="twitter">
  170. <img src="https://workadventu.re/images/social/twitter.png" alt="twitter">
  171. </a>
  172. <a href="https://www.instagram.com/workadventure_" target="_blank" title="instagram">
  173. <img src="https://workadventu.re/images/social/instagram.png" alt="instagram">
  174. </a>
  175. <a href="https://www.linkedin.com/company/workadventu-re" target="_blank" title="linkedin">
  176. <img src="https://workadventu.re/images/social/linkedin.png" alt="linkedin">
  177. </a>
  178. </div>
  179. <div class="help">
  180. <a href="https://www.youtube.com/watch?v=lu1IZgBJJD4&list=PL7jmrMKZfjCnz36FvezxJ-Tshuh3Zz-nc&ab_channel=WorkAdventure"
  181. class="nes-btn is-primary" target="_blank">Watch tutorials</a>
  182. <a href="https://discord.gg/G6Xh9ZM9aR" class="nes-btn is-primary" target="_blank">Talk to the
  183. community</a>
  184. </div>
  185. </div>
  186. </div>
  187. <div class="nes-container with-title is-centered" style="margin-top: 1rem">
  188. <p class="title">Test this map</p>
  189. <p>You can test this map at <a id="testMapURL" href="" class="url"></a></p>
  190. <p><a id="testMapBtnURL" href="" class="nes-btn is-primary">Test this map</a></p>
  191. </div>
  192. <div class="nes-container with-title is-centered" style="margin-top: 1rem">
  193. <p class="title">Happy with the result?</p>
  194. <p>Register your room on Workadventu.re</p>
  195. <p><a id="gettingStartedLink" href="" class="nes-btn is-primary">Publish this map</a></p>
  196. <p>or copy and paste the map URL in WorkAdventu.re's administration panel:</p>
  197. <p><span id="jsonURL" class="url"></span></p>
  198. </div>
  199. </main>
  200. <footer><a href="https://workadventu.re/" target="_blank" title="workadventu.re">&copy; WorkAdventure</a></footer>
  201. </body>
  202. </html>