From 6767ad013ed9239b3b5d6dd34c62fb806a08aa18 Mon Sep 17 00:00:00 2001 From: PytechNo <63828779+PytechNo@users.noreply.github.com> Date: Fri, 16 Oct 2026 12:48:37 -0400 Subject: [PATCH 1/2] Give /playground its own heading and prerendered copy The playground page gets an H1 matching its title, "Online Luau & Lua Editor", in the header where the "Playground" pill was, and a 146-word section below the first screen that targets the "luau online compiler" and "luau editor" queries and links to the homepage FAQ. The header and that section move into PlaygroundShell, which the postbuild prerenders into dist/playground/index.html so crawlers that don't run JS see them, and which App's Suspense fallback reuses so nothing shifts while the editor chunk loads. The homepage's "Three steps. Zero setup." and "Questions, answered" headings become "How to run Luau online" and "Luau & Lua playground FAQ". Co-Authored-By: Claude Opus 5.5 --- index.html | 2 +- scripts/postbuild.mjs | 65 +++++++++++++---------- src/App.tsx | 5 +- src/Playground.tsx | 42 ++------------- src/components/Landing.tsx | 6 +-- src/components/PlaygroundShell.tsx | 82 ++++++++++++++++++++++++++++ src/entry-prerender.tsx | 9 ++++ src/styles.css | 85 +++++++++++++++++++++++------- todo.md | 8 ++- 9 files changed, 214 insertions(+), 90 deletions(-) create mode 100644 src/components/PlaygroundShell.tsx diff --git a/index.html b/index.html index 02be624..40ec7d6 100644 --- a/index.html +++ b/index.html @@ -139,7 +139,7 @@