seo: take 2 (#2817)

(pending landing on: "Going to wait to land this one until the Google
SEO 'soft 404' validation finishes. I want to make sure we're testing
separate things.")

- removes Loading text
- adds sitemap to try to get Google to play nice

### Change Type

- [x] `patch` — Bug fix

---------

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
This commit is contained in:
Mime Čuvalo 2024-02-15 11:28:43 +00:00 committed by GitHub
parent c621a43d19
commit 5bb60858b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 9 additions and 4 deletions

View file

@ -42,8 +42,9 @@
</head>
<body>
<div id="root" class="site-wrapper">Loading tldraw…</div>
<div id="root" class="site-wrapper"></div>
<script type="module" src="./src/main.tsx"></script>
<noscript>You need to enable JavaScript to run tldraw. ✌️</noscript>
</body>
</html>

View file

@ -0,0 +1 @@
https://www.tldraw.com/

View file

@ -11,5 +11,6 @@
<body>
<div id="root"></div>
<script type="module" src="./index.tsx"></script>
<noscript>You need to enable JavaScript to run tldraw. ✌️</noscript>
</body>
</html>

View file

@ -62,9 +62,11 @@ export function useScreenBounds(ref: React.RefObject<HTMLElement>) {
}, [editor, ref])
}
// Credits: from v1 by way of excalidraw
// https://github.com/tldraw/tldraw-v1/blob/main/packages/core/src/hooks/useResizeObserver.ts#L8
// https://github.com/excalidraw/excalidraw/blob/48c3465b19f10ec755b3eb84e21a01a468e96e43/packages/excalidraw/utils.ts#L600
/*!
* Author: excalidraw
* MIT License: https://github.com/excalidraw/excalidraw/blob/master/LICENSE
* https://github.com/excalidraw/excalidraw/blob/48c3465b19f10ec755b3eb84e21a01a468e96e43/packages/excalidraw/utils.ts#L600
*/
const getNearestScrollableContainer = (element: HTMLElement): HTMLElement | Document => {
let parent = element.parentElement
while (parent) {