Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions apps/web/public/index.html → apps/web/src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
---
// Homepage. Ported from the legacy static apps/web/public/index.html so it
// participates in the Astro build pipeline. Inline CSS and JS are preserved
// verbatim under `is:global is:inline` and `is:inline` respectively; the
// explorer JS still fetches live data from api.docxcorp.us at runtime, same
// as before.
//
// This page intentionally doesn't use the shared Layout.astro because its
// header/footer chrome and SEO metadata (custom og:title brand tagline,
// twitter:description with "The missing dataset" copy, full Dataset JSON-LD
// with variableMeasured/inLanguage/measurementTechnique) differ from the
// shared one. The other Astro pages still go through Layout.
---

<!DOCTYPE html>
<html lang="en">

<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-C9QG5MXVL5"></script>
<script>
<script is:inline>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
Expand Down Expand Up @@ -77,7 +91,7 @@
as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap"></noscript>
<style>
<style is:global is:inline>
* {
margin: 0;
padding: 0;
Expand Down Expand Up @@ -1123,7 +1137,7 @@ <h1>The largest open DOCX dataset and document corpus. 736K classified Word docu
</div>
</div>

<script>
<script is:inline>
(function () {
// ---------- state (seed from URL params) ----------
const _params = new URLSearchParams(window.location.search);
Expand Down
Loading