overlay.ejs 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. <style text="text/css">
  2. #serverSelectContent {
  3. display: flex;
  4. flex-direction: column;
  5. justify-content: space-between;
  6. align-items: center;
  7. height: 75%;
  8. }
  9. #serverSelectHeader {
  10. font-family: 'Avenir Medium';
  11. font-size: 20px;
  12. font-weight: bold;
  13. color: #fff;
  14. margin-bottom: 25px;
  15. }
  16. #serverSelectList {
  17. display: flex;
  18. flex-direction: column;
  19. align-items: center;
  20. overflow-y: scroll;
  21. padding: 0px 5px;
  22. height: 65%;
  23. }
  24. #serverSelectList::-webkit-scrollbar {
  25. width: 2px;
  26. }
  27. #serverSelectList::-webkit-scrollbar-track {
  28. display: none;
  29. }
  30. #serverSelectList::-webkit-scrollbar-thumb {
  31. border-radius: 10px;
  32. box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.50);
  33. }
  34. .serverListing {
  35. width: 375px;
  36. min-height: 60px;
  37. display: flex;
  38. justify-content: flex-start;
  39. align-items: center;
  40. margin: 5px 0px;
  41. opacity: 0.6;
  42. transition: 0.25s ease;
  43. cursor: pointer;
  44. position: relative;
  45. }
  46. .serverListing[selected] {
  47. cursor: default;
  48. background: rgba(255, 255, 255, 0.25);
  49. opacity: 1.0;
  50. }
  51. .serverListing:hover {
  52. opacity: 1.0;
  53. }
  54. .serverListingImg {
  55. margin: 0px 10px 0px 5px;
  56. border: 1px solid #fff;
  57. height: 50px;
  58. width: auto;
  59. }
  60. .serverListingDetails {
  61. display: flex;
  62. flex-direction: column;
  63. align-items: flex-start;
  64. justify-content: space-between;
  65. height: 50px;
  66. }
  67. .serverListingName {
  68. font-family: 'Avenir Book';
  69. font-size: 14px;
  70. font-weight: bold;
  71. color: #fff;
  72. }
  73. .serverListingDescription {
  74. font-family: 'Avenir Book';
  75. font-size: 10px;
  76. line-height: 10px;
  77. font-weight: bold;
  78. color: #fff;
  79. }
  80. #serverSelectActions {
  81. display: flex;
  82. flex-direction: column;
  83. justify-content: center;
  84. align-items: center;
  85. margin-top: 25px;
  86. }
  87. #serverSelectConfirm {
  88. background: none;
  89. border: 1px solid #ffffff;
  90. color: white;
  91. font-family: 'Avenir Medium';
  92. font-weight: bold;
  93. border-radius: 2px;
  94. padding: 0px 8.1px;
  95. cursor: pointer;
  96. transition: 0.25s ease;
  97. }
  98. #serverSelectConfirm:hover,
  99. #serverSelectConfirm:focus {
  100. box-shadow: 0px 0px 10px 0px #fff;
  101. outline: none;
  102. }
  103. #serverSelectConfirm:active {
  104. border-color: rgba(255, 255, 255, 0.75);
  105. color: rgba(255, 255, 255, 0.75);
  106. }
  107. #serverSelectCancel {
  108. font-family: 'Avenir Book';
  109. font-weight: bold;
  110. font-size: 10px;
  111. text-decoration: none;
  112. padding-top: 2.5px;
  113. color: rgba(202, 202, 202, 0.75);
  114. transition: 0.25s ease;
  115. }
  116. #serverSelectCancel:hover {
  117. color: rgba(255, 255, 255, 0.75);
  118. }
  119. #serverSelectCancel:active {
  120. color: rgba(165, 165, 165, 0.75);
  121. }
  122. .serverListingInfo {
  123. width: 100%;
  124. display: flex;
  125. justify-content: flex-start;
  126. }
  127. .serverListingVersion {
  128. font-size: 10px;
  129. color: #fff;
  130. font-family: 'Avenir Book';
  131. text-align: center;
  132. display: flex;
  133. justify-content: center;
  134. align-items: center;
  135. line-height: 12px;
  136. height: 12px;
  137. border-radius: 2px;
  138. background: rgba(31, 140, 11, 0.8);
  139. padding: 0px 2px;
  140. }
  141. .serverListingRevision {
  142. font-family: 'Avenir Book';
  143. color: #969696;
  144. font-size: 10px;
  145. line-height: 12px;
  146. padding: 0px 5px;
  147. }
  148. #serverListingStarWrapper {
  149. display: flex;
  150. align-items: center;
  151. cursor: pointer;
  152. height: 12px;
  153. position: relative;
  154. }
  155. .serverListingStarTooltip {
  156. visibility: hidden;
  157. opacity: 0;
  158. width: 65px;
  159. background-color: rgba(0, 0, 0, 0.40);
  160. color: #fff;
  161. text-align: center;
  162. border-radius: 4px;
  163. position: absolute;
  164. z-index: 1;
  165. left: 130%;
  166. font-family: 'Avenir Book';
  167. font-size: 10px;
  168. transition: visibility 0s linear 0.25s, opacity 0.25s ease;
  169. }
  170. .serverListingStarTooltip::after {
  171. content: " ";
  172. position: absolute;
  173. top: 50%;
  174. right: 100%; /* To the left of the tooltip */
  175. margin-top: -5px;
  176. border-width: 5px;
  177. border-style: solid;
  178. border-color: transparent rgba(0, 0, 0, 0.40) transparent transparent;
  179. }
  180. #serverListingStarWrapper:hover .serverListingStarTooltip {
  181. visibility: visible;
  182. opacity: 1;
  183. transition-delay:0s;
  184. }
  185. </style>
  186. <div id="overlayContainer" style="display: none;">
  187. <div id="serverSelectContent">
  188. <span id="serverSelectHeader">Available Servers</span>
  189. <div id="serverSelectList">
  190. <div class="serverListing" selected>
  191. <img class="serverListingImg" src="./assets/images/WesterosSealSquare.png"/>
  192. <div class="serverListingDetails">
  193. <span class="serverListingName">WesterosCraft Production Server</span>
  194. <span class="serverListingDescription">Main WesterosCraft server. Connect to enter the Realm.</span>
  195. <div class="serverListingInfo">
  196. <div class="serverListingVersion">1.11.2</div>
  197. <div class="serverListingRevision">3.4.17</div>
  198. <div id="serverListingStarWrapper">
  199. <svg id="Layer_1" viewBox="0 0 107.45 104.74" width="20px" height="20px">
  200. <defs>
  201. <style>.cls-1{fill:#fff;}.cls-2{fill:none;stroke:#fff;stroke-miterlimit:10;}</style>
  202. </defs>
  203. <path class="cls-1" d="M100.93,65.54C89,62,68.18,55.65,63.54,52.13c2.7-5.23,18.8-19.2,28-27.55C81.36,31.74,63.74,43.87,58.09,45.3c-2.41-5.37-3.61-26.52-4.37-39-.77,12.46-2,33.64-4.36,39-5.7-1.46-23.3-13.57-33.49-20.72,9.26,8.37,25.39,22.36,28,27.55C39.21,55.68,18.47,62,6.52,65.55c12.32-2,33.63-6.06,39.34-4.9-.16,5.87-8.41,26.16-13.11,37.69,6.1-10.89,16.52-30.16,21-33.9,4.5,3.79,14.93,23.09,21,34C70,86.84,61.73,66.48,61.59,60.65,67.36,59.49,88.64,63.52,100.93,65.54Z"/>
  204. <circle class="cls-2" cx="53.73" cy="53.9" r="38"/>
  205. </svg>
  206. <span class="serverListingStarTooltip">Main Server</span>
  207. </div>
  208. </div>
  209. </div>
  210. </div>
  211. <div class="serverListing">
  212. <img class="serverListingImg" src="./assets/images/testserver.png"/>
  213. <div class="serverListingDetails">
  214. <span class="serverListingName">WesterosCraft Test Server</span>
  215. <span class="serverListingDescription">Main testing server. Experimental changes live here.</span>
  216. <div class="serverListingInfo">
  217. <div class="serverListingVersion">1.11.2</div>
  218. <div class="serverListingRevision">3.6.0</div>
  219. </div>
  220. </div>
  221. </div>
  222. <div class="serverListing">
  223. <img class="serverListingImg" src="./assets/images/testserver.png"/>
  224. <div class="serverListingDetails">
  225. <span class="serverListingName">WesterosCraft 1.12.2 Test Server</span>
  226. <span class="serverListingDescription">Tests for our version change to 1.12.2 are live here.</span>
  227. <div class="serverListingInfo">
  228. <div class="serverListingVersion">1.12.2</div>
  229. <div class="serverListingRevision">4.0.1</div>
  230. </div>
  231. </div>
  232. </div>
  233. <div class="serverListing">
  234. <img class="serverListingImg" src="./assets/images/testserver.png"/>
  235. <div class="serverListingDetails">
  236. <span class="serverListingName">EssosCraft Test Server</span>
  237. <span class="serverListingDescription">Tests for our next project!</span>
  238. <div class="serverListingInfo">
  239. <div class="serverListingVersion">1.15.0</div>
  240. <div class="serverListingRevision">9.7.2</div>
  241. </div>
  242. </div>
  243. </div>
  244. </div>
  245. <div id="serverSelectActions">
  246. <button id="serverSelectConfirm">Select</button>
  247. <a href="javascript:void(0);" id="serverSelectCancel">Cancel</a>
  248. </div>
  249. </div>
  250. <div id="overlayContent" style="display: none;">
  251. <span id="overlayTitle">Lorem Ipsum:<br>Finis Illud</span>
  252. <span id="overlayDesc">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud..</span>
  253. <div id="overlayActionContainer">
  254. <button id="overlayAcknowledge">Conare Iterum</button>
  255. <a href="javascript:void(0);" id="overlayDismiss" style="display: none;">Dismiss</a>
  256. </div>
  257. </div>
  258. </div>