index.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>Excalidraw | Hand-drawn look & feel • Collaborative • Secure</title>
  6. <meta
  7. name="viewport"
  8. content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover, shrink-to-fit=no"
  9. />
  10. <meta name="referrer" content="origin" />
  11. <meta name="mobile-web-app-capable" content="yes" />
  12. <meta name="theme-color" content="#000" />
  13. <!-- General tags -->
  14. <meta
  15. name="description"
  16. content="Excalidraw is a virtual collaborative whiteboard tool that lets you easily sketch diagrams that have a hand-drawn feel to them."
  17. />
  18. <meta name="image" content="og-image.png" />
  19. <!-- OpenGraph tags -->
  20. <meta property="og:url" content="https://excalidraw.com" />
  21. <meta property="og:site_name" content="Excalidraw" />
  22. <meta property="og:type" content="website" />
  23. <meta property="og:title" content="Excalidraw" />
  24. <meta
  25. property="og:description"
  26. content="Excalidraw is a whiteboard tool that lets you easily sketch diagrams that have a hand-drawn feel to them."
  27. />
  28. <!-- OG tags require an absolute url for images -->
  29. <meta
  30. property="og:image"
  31. name="twitter:image"
  32. content="https://excalidraw.com/og-image.png"
  33. />
  34. <meta
  35. property="og:image:secure_url"
  36. name="twitter:image"
  37. content="https://excalidraw.com/og-image.png"
  38. />
  39. <meta property="og:image:width" content="1280" />
  40. <meta property="og:image:height" content="669" />
  41. <meta property="og:image:alt" content="Excalidraw logo with byline." />
  42. <!-- Twitter Card tags -->
  43. <meta name="twitter:card" content="summary_large_image" />
  44. <meta name="twitter:title" content="Excalidraw" />
  45. <meta
  46. name="twitter:description"
  47. content="Excalidraw is a whiteboard tool that lets you easily sketch diagrams that have a hand-drawn feel to them."
  48. />
  49. <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
  50. <!-- Excalidraw version -->
  51. <meta name="version" content="{version}" />
  52. <link
  53. rel="preload"
  54. href="Virgil.woff2"
  55. as="font"
  56. type="font/woff2"
  57. crossorigin="anonymous"
  58. />
  59. <link
  60. rel="preload"
  61. href="Cascadia.woff2"
  62. as="font"
  63. type="font/woff2"
  64. crossorigin="anonymous"
  65. />
  66. <link
  67. href="%REACT_APP_SOCKET_SERVER_URL%/socket.io"
  68. rel="preconnect"
  69. crossorigin="anonymous"
  70. />
  71. <link
  72. rel="manifest"
  73. href="manifest.json"
  74. style="--pwacompat-splash-font: 24px Virgil"
  75. />
  76. <link rel="stylesheet" href="fonts.css" type="text/css" />
  77. <script>
  78. window.EXCALIDRAW_ASSET_PATH = "/";
  79. // setting this so that libraries installation reuses this window tab.
  80. window.name = "_excalidraw";
  81. </script>
  82. <% if (process.env.REACT_APP_GOOGLE_ANALYTICS_ID) { %>
  83. <script
  84. async
  85. src="https://www.googletagmanager.com/gtag/js?id=%REACT_APP_GOOGLE_ANALYTICS_ID%"
  86. ></script>
  87. <script>
  88. window.dataLayer = window.dataLayer || [];
  89. function gtag() {
  90. dataLayer.push(arguments);
  91. }
  92. gtag("js", new Date());
  93. gtag("config", "%REACT_APP_GOOGLE_ANALYTICS_ID%");
  94. </script>
  95. <% } %>
  96. <!-- FIXME: remove this when we update CRA (fix SW caching) -->
  97. <style>
  98. body {
  99. margin: 0;
  100. --ui-font: system-ui, BlinkMacSystemFont, -apple-system, Segoe UI,
  101. Roboto, Helvetica, Arial, sans-serif;
  102. font-family: var(--ui-font);
  103. -webkit-text-size-adjust: 100%;
  104. width: 100vw;
  105. height: 100vh;
  106. }
  107. .visually-hidden {
  108. position: absolute !important;
  109. height: 1px;
  110. width: 1px;
  111. overflow: hidden;
  112. clip: rect(1px, 1px, 1px, 1px);
  113. white-space: nowrap; /* added line */
  114. }
  115. .LoadingMessage {
  116. position: absolute;
  117. top: 0;
  118. right: 0;
  119. bottom: 0;
  120. left: 0;
  121. z-index: 999;
  122. display: flex;
  123. align-items: center;
  124. justify-content: center;
  125. pointer-events: none;
  126. }
  127. .LoadingMessage span {
  128. background-color: var(--button-gray-1);
  129. border-radius: 5px;
  130. padding: 0.8em 1.2em;
  131. color: var(--popup-text-color);
  132. font-size: 1.3em;
  133. }
  134. #root {
  135. height: 100%;
  136. }
  137. </style>
  138. </head>
  139. <body>
  140. <noscript> You need to enable JavaScript to run this app. </noscript>
  141. <header>
  142. <h1 class="visually-hidden">Excalidraw</h1>
  143. </header>
  144. <div id="root">
  145. <div class="LoadingMessage">
  146. <span>Loading scene...</span>
  147. </div>
  148. </div>
  149. </body>
  150. </html>