index.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="theme-color" content="#000000">
  6. <link rel="manifest" href="manifest.json">
  7. <link rel="shortcut icon" href="favicon.ico">
  8. <title><%= htmlWebpackPlugin.options.PAGE_TITLE %></title>
  9. <% if (htmlWebpackPlugin.options.IS_PROD) { %>
  10. <!-- Global site tag (gtag.js) - Google Analytics -->
  11. <script async src="https://www.googletagmanager.com/gtag/js?id=UA-133429788-6"></script>
  12. <script>
  13. window.dataLayer = window.dataLayer || [];
  14. function gtag(){dataLayer.push(arguments);}
  15. gtag('js', new Date());
  16. gtag('config', 'UA-133429788-6', { 'anonymize_ip': true });
  17. </script>
  18. <% } %>
  19. <script type="text/javascript" src="/env-config.js"></script>
  20. <% if (!htmlWebpackPlugin.options.IS_LIVE) { %>
  21. <meta name="viewport" content="width=device-width">
  22. <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
  23. <style>
  24. body {
  25. background: #000 !important;
  26. color: #fff !important;
  27. min-height: 100vh !important;
  28. margin: 0 !important;
  29. padding: 0 !important;
  30. padding-top: 20vh !important;
  31. box-sizing: border-box;
  32. font-family: 'Inter', sans-serif !important;
  33. }
  34. header {
  35. width: 100%;
  36. background: #261EE4;
  37. }
  38. .info-flexbox {
  39. display: flex;
  40. width: 80%;
  41. max-width: 800px;
  42. margin: 0 auto;
  43. align-items: flex-end;
  44. padding: 20px;
  45. }
  46. h2 {
  47. font-weight: normal !important;
  48. margin-bottom: 20px;
  49. }
  50. .blog-link {
  51. margin-left: auto;
  52. color: #000 !important;
  53. background: #6C6CFF;
  54. padding: 10px 20px;
  55. font-size: 16px;
  56. text-decoration: none;
  57. transition: background-color 0.2s;
  58. }
  59. .blog-link:hover {
  60. background: #fff;
  61. }
  62. .box-content {
  63. display: flex;
  64. flex-direction: column;
  65. justify-content: space-between;
  66. margin-top: 20px;
  67. }
  68. .logo-alexandria {
  69. width: 30%;
  70. flex-shrink: 0;
  71. margin-right: 30px;
  72. }
  73. @media screen and (max-width: 800px) {
  74. h2 {
  75. font-size: 20px !important;
  76. }
  77. }
  78. @media screen and (max-width: 500px) {
  79. body {
  80. padding: 50px 0 !important;
  81. }
  82. .info-flexbox {
  83. flex-wrap: wrap;
  84. }
  85. .info-flexbox > * {
  86. width: 100% !important;
  87. }
  88. }
  89. </style>
  90. <% } %>
  91. </head>
  92. <body>
  93. <% if (htmlWebpackPlugin.options.IS_LIVE) { %>
  94. <noscript>
  95. You need to enable JavaScript to run this app.
  96. </noscript>
  97. <div id="root"></div>
  98. <div id="tooltips"></div>
  99. <script>
  100. if (window.self !== window.top) {
  101. window.top.location.href = window.location.href;
  102. }
  103. </script>
  104. <% } else { %>
  105. <header>
  106. <div class="info-flexbox">
  107. <img src="./Logo_Alexandrial.svg" class="logo-alexandria">
  108. <div class="box-content">
  109. <h2>
  110. Our new testnet - Alexandria will be launched
  111. around&nbsp;09:00&nbsp;UTC on&nbsp;Monday the&nbsp;21st
  112. of&nbsp;September&nbsp;2020.
  113. </h2>
  114. <a href="https://blog.joystream.org/announcing-alexandria/" target="_blank" class="blog-link">Find out more</a>
  115. </div>
  116. </div>
  117. </header>
  118. <% } %>
  119. </body>
  120. </html>