t3ksplash.html 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <!DOCTYPE html>
  2. <html>
  3. <!-- HEAD -->
  4. <head>
  5. <meta charset="UTF-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"/>
  7. <title>MOD</title>
  8. <link rel="stylesheet" type="text/css" href="css/main.css?v={{version}}"/>
  9. <link rel="stylesheet" type="text/css" href="css/fonts.css?v={{version}}"/>
  10. <link rel="stylesheet" type="text/css" href="img/icons/icons.css?v={{version}}"/>
  11. <script type="text/javascript" src="js/lib/jquery-1.9.1.min.js?v={{version}}"></script>
  12. <style type="text/css">
  13. /* --- t3k splash ------------------------------------------------------ */
  14. .t3k-splash {
  15. --t3k-bg: #0d0d0d;
  16. --t3k-surface: #1a1a1a;
  17. --t3k-line: #2b2b2b;
  18. --t3k-fg: #f2f2f2;
  19. --t3k-fg-dim: #9a9a9a;
  20. --t3k-accent: #ffe000;
  21. box-sizing: border-box;
  22. max-width: 640px;
  23. margin: 0 auto;
  24. min-height: 100vh;
  25. display: flex;
  26. align-items: center;
  27. justify-content: center;
  28. background: var(--t3k-bg);
  29. color: var(--t3k-fg);
  30. font-family: 'Questrial', 'Helvetica Neue', Arial, sans-serif;
  31. }
  32. .t3k-splash *, .t3k-splash *:before, .t3k-splash *:after { box-sizing: inherit; }
  33. .t3k-splash-inner {
  34. width: 100%;
  35. padding: 40px 28px;
  36. display: flex;
  37. flex-direction: column;
  38. align-items: center;
  39. text-align: center;
  40. }
  41. /* logos row: [mod logo] x [tone3000 logo] */
  42. .t3k-splash-brands {
  43. display: flex;
  44. align-items: center;
  45. justify-content: center;
  46. gap: 20px;
  47. margin-bottom: 30px;
  48. }
  49. .t3k-splash-mod-logo img { display: block; height: 34px; width: auto; }
  50. .t3k-splash-x {
  51. font-size: 18px;
  52. color: var(--t3k-fg-dim);
  53. }
  54. .t3k-splash-t3k-logo img { display: block; height: 30px; width: auto; }
  55. .t3k-splash-message--warning {
  56. background: rgba(255, 224, 0, 0.08);
  57. border: 1px solid var(--t3k-accent);
  58. color: var(--t3k-fg);
  59. }
  60. .t3k-splash-message--warning .t3k-splash-msg-icon {
  61. color: var(--t3k-accent);
  62. }
  63. .t3k-splash-msg-icon {
  64. font-weight: 700;
  65. font-size: 28px;
  66. line-height: 1;
  67. flex-shrink: 0;
  68. margin-top: 2px;
  69. }
  70. /* partnership copy */
  71. .t3k-splash-text {
  72. max-width: 420px;
  73. margin: 0 0 34px;
  74. font-size: 15px;
  75. line-height: 1.5;
  76. color: var(--t3k-fg-dim);
  77. }
  78. .t3k-splash-text b,
  79. .t3k-splash-text strong {
  80. color: var(--t3k-fg);
  81. font-weight: 700;
  82. }
  83. /* continue button */
  84. .t3k-splash-btn {
  85. appearance: none;
  86. border: none;
  87. border-radius: 999px;
  88. padding: 14px 40px;
  89. font-family: inherit;
  90. font-size: 15px;
  91. font-weight: 700;
  92. color: #0d0d0d;
  93. background: #fff;
  94. cursor: pointer;
  95. transition: opacity .15s ease;
  96. }
  97. .t3k-splash-btn:hover { opacity: .88; }
  98. .t3k-splash-btn:active { opacity: .72; }
  99. @media (max-width: 380px) {
  100. .t3k-splash-text { font-size: 14px; }
  101. .t3k-splash-mod-logo img { height: 28px; }
  102. .t3k-splash-t3k-logo img { height: 24px; }
  103. }
  104. </style>
  105. <script type="text/javascript">
  106. var t3k_api_key = '{{t3k_api_key}}'
  107. $('document').ready(function() {
  108. const hasApiKey = t3k_api_key && t3k_api_key.length > 0
  109. const buttonContinue = $('#t3k-splash-continue')
  110. if (hasApiKey) {
  111. $('#t3k-no-api-key').addClass('mod-hidden')
  112. } else {
  113. $('#t3k-no-api-key').removeClass('mod-hidden')
  114. }
  115. buttonContinue.text(hasApiKey ? 'Continue' : 'Close')
  116. buttonContinue.click(function () {
  117. if (hasApiKey) {
  118. // Trigger sign-in flow / hide splash and proceed
  119. // The opener registers the continuation on itself before opening
  120. // this window: a property set on the popup's initial about:blank
  121. // global is lost when this document replaces it (race on first open).
  122. var opener = window.opener
  123. if (opener && typeof opener.onT3KSplashContinue === 'function') {
  124. opener.onT3KSplashContinue()
  125. } else if (typeof window.onSplashContinue === 'function') {
  126. window.onSplashContinue()
  127. }
  128. } else {
  129. window.close()
  130. }
  131. })
  132. })
  133. </script>
  134. </head>
  135. <!-- END HEAD -->
  136. <!-- BODY -->
  137. <body class="mod-dark" style="min-width: unset;">
  138. <div class="t3k-splash" id="t3k-splash">
  139. <div class="t3k-splash-inner">
  140. <!-- BRAND LOCKUP: MOD x TONE3000 -->
  141. <div class="t3k-splash-brands">
  142. <span class="t3k-splash-mod-logo">
  143. <img src="/img/icons/36/mod.png?v={{version}}" alt="MOD"/>
  144. </span>
  145. <span class="t3k-splash-x">&times;</span>
  146. <span class="t3k-splash-t3k-logo">
  147. <img src="js/lib/t3k/logo/TONE3000%20logo.png" alt="TONE3000"/>
  148. </span>
  149. </div>
  150. <!-- PARTNERSHIP COPY -->
  151. <p class="t3k-splash-text" id="t3k-splash-text">
  152. <strong>MOD Audio</strong> brings TONE3000 to your device: a massive library of Neural Amp Modeler (NAM) captures and IRs of real analog gear, created by a global community of musicians.
  153. <br/><br/>
  154. This integration was made possible by our friends at <strong>Starless</strong>. Thank you! &#10084;&#65039;
  155. </p>
  156. <div class="t3k-splash-error mod-hidden" id="t3k-no-api-key">
  157. <p>
  158. <span class="t3k-splash-msg-icon">⚠️</span>
  159. <div class="t3k-splash-msg-body">
  160. <strong>No Tone3000 API key is configured on the system</strong>
  161. </div>
  162. <div>
  163. Tone3000 integration is disabled.
  164. </div>
  165. </p>
  166. </div>
  167. <!-- CONTINUE -->
  168. <button class="t3k-splash-btn" id="t3k-splash-continue">Close</button>
  169. </div>
  170. </div>
  171. </body>
  172. <!-- END BODY -->
  173. </html>