overlay.ejs 9.2 KB

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