overlay.ejs 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. <style text="text/css">
  2. #serverSelectContent {
  3. display: flex;
  4. flex-direction: column;
  5. justify-content: center;
  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. justify-content: center;
  21. max-height: 65%;
  22. min-height: 40%;
  23. }
  24. #serverSelectListScrollable {
  25. padding: 0px 5px;
  26. overflow-y: scroll;
  27. }
  28. #serverSelectListScrollable::-webkit-scrollbar {
  29. width: 2px;
  30. }
  31. #serverSelectListScrollable::-webkit-scrollbar-track {
  32. display: none;
  33. }
  34. #serverSelectListScrollable::-webkit-scrollbar-thumb {
  35. border-radius: 10px;
  36. box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.50);
  37. }
  38. .serverListing {
  39. border: none;
  40. padding: 0px;
  41. width: 375px;
  42. min-height: 60px;
  43. display: flex;
  44. justify-content: flex-start;
  45. align-items: center;
  46. opacity: 0.6;
  47. transition: 0.25s ease;
  48. cursor: pointer;
  49. position: relative;
  50. background: rgba(131, 131, 131, 0.25);
  51. }
  52. .serverListing[selected] {
  53. cursor: default;
  54. opacity: 1.0;
  55. }
  56. .serverListing:hover,
  57. .serverListing:focus {
  58. outline: none;
  59. opacity: 1.0;
  60. }
  61. #serverSelectListScrollable > .serverListing:not(:first-child):not(:last-child) {
  62. margin: 5px 0px;
  63. }
  64. #serverSelectListScrollable > .serverListing:first-child {
  65. margin-bottom: 5px;
  66. }
  67. #serverSelectListScrollable > .serverListing:last-child {
  68. margin-top: 5px;
  69. }
  70. .serverListingImg {
  71. margin: 0px 10px 0px 5px;
  72. border: 1px solid #fff;
  73. height: 50px;
  74. width: auto;
  75. }
  76. .serverListingDetails {
  77. display: flex;
  78. flex-direction: column;
  79. align-items: flex-start;
  80. justify-content: space-between;
  81. height: 50px;
  82. }
  83. .serverListingName {
  84. font-family: 'Avenir Book';
  85. font-size: 14px;
  86. font-weight: bold;
  87. color: #fff;
  88. }
  89. .serverListingDescription {
  90. font-family: 'Avenir Book';
  91. font-size: 10px;
  92. line-height: 10px;
  93. font-weight: bold;
  94. color: #fff;
  95. }
  96. #serverSelectActions {
  97. display: flex;
  98. flex-direction: column;
  99. justify-content: center;
  100. align-items: center;
  101. margin-top: 25px;
  102. }
  103. #serverSelectConfirm {
  104. background: none;
  105. border: 1px solid #ffffff;
  106. color: white;
  107. font-family: 'Avenir Medium';
  108. font-weight: bold;
  109. border-radius: 2px;
  110. padding: 0px 8.1px;
  111. cursor: pointer;
  112. transition: 0.25s ease;
  113. min-height: 20.67px;
  114. }
  115. #serverSelectConfirm:hover,
  116. #serverSelectConfirm:focus {
  117. box-shadow: 0px 0px 10px 0px #fff;
  118. outline: none;
  119. }
  120. #serverSelectConfirm:active {
  121. border-color: rgba(255, 255, 255, 0.75);
  122. color: rgba(255, 255, 255, 0.75);
  123. }
  124. #serverSelectCancel {
  125. font-family: 'Avenir Book';
  126. font-weight: bold;
  127. font-size: 10px;
  128. text-decoration: none;
  129. padding-top: 2.5px;
  130. color: rgba(202, 202, 202, 0.75);
  131. transition: 0.25s ease;
  132. }
  133. #serverSelectCancel:hover {
  134. color: rgba(255, 255, 255, 0.75);
  135. }
  136. #serverSelectCancel:active {
  137. color: rgba(165, 165, 165, 0.75);
  138. }
  139. .serverListingInfo {
  140. width: 100%;
  141. display: flex;
  142. justify-content: flex-start;
  143. }
  144. .serverListingVersion {
  145. font-size: 10px;
  146. color: #fff;
  147. font-family: 'Avenir Book';
  148. text-align: center;
  149. display: flex;
  150. justify-content: center;
  151. align-items: center;
  152. line-height: 12px;
  153. height: 12px;
  154. border-radius: 2px;
  155. background: rgba(31, 140, 11, 0.8);
  156. padding: 0px 2px;
  157. }
  158. .serverListingRevision {
  159. font-family: 'Avenir Book';
  160. color: #969696;
  161. font-size: 10px;
  162. line-height: 12px;
  163. padding: 0px 5px;
  164. }
  165. #serverListingStarWrapper {
  166. display: flex;
  167. align-items: center;
  168. cursor: pointer;
  169. height: 12px;
  170. position: relative;
  171. }
  172. .serverListingStarTooltip {
  173. visibility: hidden;
  174. opacity: 0;
  175. width: 65px;
  176. background-color: rgba(0, 0, 0, 0.40);
  177. color: #fff;
  178. text-align: center;
  179. border-radius: 4px;
  180. position: absolute;
  181. z-index: 1;
  182. left: 130%;
  183. font-family: 'Avenir Book';
  184. font-size: 10px;
  185. transition: visibility 0s linear 0.25s, opacity 0.25s ease;
  186. }
  187. .serverListingStarTooltip::after {
  188. content: " ";
  189. position: absolute;
  190. top: 50%;
  191. right: 100%; /* To the left of the tooltip */
  192. margin-top: -5px;
  193. border-width: 5px;
  194. border-style: solid;
  195. border-color: transparent rgba(0, 0, 0, 0.40) transparent transparent;
  196. }
  197. #serverListingStarWrapper:hover .serverListingStarTooltip {
  198. visibility: visible;
  199. opacity: 1;
  200. transition-delay:0s;
  201. }
  202. </style>
  203. <div id="overlayContainer" style="display: none;">
  204. <div id="serverSelectContent">
  205. <span id="serverSelectHeader">Available Servers</span>
  206. <div id="serverSelectList">
  207. <div id="serverSelectListScrollable">
  208. <button class="serverListing" selected>
  209. <img class="serverListingImg" src="./assets/images/WesterosSealSquare.png"/>
  210. <div class="serverListingDetails">
  211. <span class="serverListingName">WesterosCraft Production Server</span>
  212. <span class="serverListingDescription">Main WesterosCraft server. Connect to enter the Realm.</span>
  213. <div class="serverListingInfo">
  214. <div class="serverListingVersion">1.11.2</div>
  215. <div class="serverListingRevision">3.4.17</div>
  216. <div id="serverListingStarWrapper">
  217. <svg id="Layer_1" viewBox="0 0 107.45 104.74" width="20px" height="20px">
  218. <defs>
  219. <style>.cls-1{fill:#fff;}.cls-2{fill:none;stroke:#fff;stroke-miterlimit:10;}</style>
  220. </defs>
  221. <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"/>
  222. <circle class="cls-2" cx="53.73" cy="53.9" r="38"/>
  223. </svg>
  224. <span class="serverListingStarTooltip">Main Server</span>
  225. </div>
  226. </div>
  227. </div>
  228. </button>
  229. <button class="serverListing">
  230. <img class="serverListingImg" src="./assets/images/testserver.png"/>
  231. <div class="serverListingDetails">
  232. <span class="serverListingName">WesterosCraft Test Server</span>
  233. <span class="serverListingDescription">Main testing server. Experimental changes live here.</span>
  234. <div class="serverListingInfo">
  235. <div class="serverListingVersion">1.11.2</div>
  236. <div class="serverListingRevision">3.6.0</div>
  237. </div>
  238. </div>
  239. </button>
  240. <button class="serverListing">
  241. <img class="serverListingImg" src="./assets/images/testserver.png"/>
  242. <div class="serverListingDetails">
  243. <span class="serverListingName">WesterosCraft 1.12.2 Test Server</span>
  244. <span class="serverListingDescription">Tests for our version change to 1.12.2 are live here.</span>
  245. <div class="serverListingInfo">
  246. <div class="serverListingVersion">1.12.2</div>
  247. <div class="serverListingRevision">4.0.1</div>
  248. </div>
  249. </div>
  250. </button>
  251. <button class="serverListing">
  252. <img class="serverListingImg" src="./assets/images/testserver.png"/>
  253. <div class="serverListingDetails">
  254. <span class="serverListingName">EssosCraft Test Server</span>
  255. <span class="serverListingDescription">Tests for our next project!</span>
  256. <div class="serverListingInfo">
  257. <div class="serverListingVersion">1.15.0</div>
  258. <div class="serverListingRevision">9.7.2</div>
  259. </div>
  260. </div>
  261. </button>
  262. </div>
  263. </div>
  264. <div id="serverSelectActions">
  265. <button id="serverSelectConfirm">Select</button>
  266. <a href="javascript:void(0);" id="serverSelectCancel">Cancel</a>
  267. </div>
  268. </div>
  269. <div id="overlayContent" style="display: none;">
  270. <span id="overlayTitle">Lorem Ipsum:<br>Finis Illud</span>
  271. <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>
  272. <div id="overlayActionContainer">
  273. <button id="overlayAcknowledge">Conare Iterum</button>
  274. <a href="javascript:void(0);" id="overlayDismiss" style="display: none;">Dismiss</a>
  275. </div>
  276. </div>
  277. </div>