index.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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. <!-- OG tags require absolute url for images -->
  50. <meta name="twitter:image" content="https://excalidraw.com/og-image.png" />
  51. <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
  52. <!-- Excalidraw version -->
  53. <meta name="version" content="{version}" />
  54. <link
  55. rel="preload"
  56. href="FG_Virgil.woff2"
  57. as="font"
  58. type="font/woff2"
  59. crossorigin="anonymous"
  60. />
  61. <link
  62. rel="preload"
  63. href="Cascadia.woff2"
  64. as="font"
  65. type="font/woff2"
  66. crossorigin="anonymous"
  67. />
  68. <link
  69. href="%REACT_APP_SOCKET_SERVER_URL%/socket.io"
  70. rel="preconnect"
  71. crossorigin="anonymous"
  72. />
  73. <link
  74. rel="manifest"
  75. href="manifest.json"
  76. style="--pwacompat-splash-font: 24px Virgil"
  77. />
  78. <link rel="stylesheet" href="fonts.css" type="text/css" />
  79. <% if (process.env.REACT_APP_GOOGLE_ANALYTICS_ID) { %>
  80. <script
  81. async
  82. src="https://www.googletagmanager.com/gtag/js?id=%REACT_APP_GOOGLE_ANALYTICS_ID%"
  83. ></script>
  84. <script>
  85. window.dataLayer = window.dataLayer || [];
  86. function gtag() {
  87. dataLayer.push(arguments);
  88. }
  89. gtag("js", new Date());
  90. gtag("config", "%REACT_APP_GOOGLE_ANALYTICS_ID%");
  91. </script>
  92. <% } %>
  93. <!-- FIXME: remove this when we update CRA (fix SW caching) -->
  94. <style>
  95. body {
  96. margin: 0;
  97. --ui-font: system-ui, BlinkMacSystemFont, -apple-system, Segoe UI,
  98. Roboto, Helvetica, Arial, sans-serif;
  99. font-family: var(--ui-font);
  100. -webkit-text-size-adjust: 100%;
  101. -webkit-user-select: none;
  102. user-select: none;
  103. width: 100vw;
  104. height: 100vh;
  105. }
  106. .visually-hidden {
  107. position: absolute !important;
  108. height: 1px;
  109. width: 1px;
  110. overflow: hidden;
  111. clip: rect(1px, 1px, 1px, 1px);
  112. white-space: nowrap; /* added line */
  113. }
  114. .LoadingMessage {
  115. position: absolute;
  116. top: 0;
  117. right: 0;
  118. bottom: 0;
  119. left: 0;
  120. z-index: 999;
  121. display: flex;
  122. align-items: center;
  123. justify-content: center;
  124. pointer-events: none;
  125. }
  126. .LoadingMessage span {
  127. background-color: var(--button-gray-1);
  128. border-radius: 5px;
  129. padding: 0.8em 1.2em;
  130. color: var(--popup-text-color);
  131. font-size: 1.3em;
  132. }
  133. </style>
  134. </head>
  135. <body>
  136. <noscript> You need to enable JavaScript to run this app. </noscript>
  137. <header>
  138. <h1 class="visually-hidden">Excalidraw</h1>
  139. </header>
  140. <div id="root">
  141. <div class="LoadingMessage">
  142. <span>Loading scene...</span>
  143. </div>
  144. </div>
  145. </body>
  146. </html>