Files
PinchChat/index.html
Nicolas Varrot ee2b244fcd feat: add loading spinner and noscript fallback to index.html
Show a CSS-only spinner while JS bundles load, improving perceived
performance on slow connections. Add noscript message for users with
JavaScript disabled.
2026-02-13 12:26:08 +00:00

40 lines
2.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="A sleek, dark-themed webchat UI for OpenClaw — monitor sessions, stream responses, and inspect tool calls in real-time." />
<meta name="theme-color" content="#1e1e24" />
<meta property="og:title" content="PinchChat" />
<meta property="og:description" content="A sleek, dark-themed webchat UI for OpenClaw" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://github.com/MarlBurroW/pinchchat" />
<meta property="og:image" content="https://raw.githubusercontent.com/MarlBurroW/pinchchat/main/public/og-card.png" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="PinchChat" />
<meta name="twitter:description" content="A sleek, dark-themed webchat UI for OpenClaw" />
<meta name="twitter:image" content="https://raw.githubusercontent.com/MarlBurroW/pinchchat/main/public/og-card.png" />
<title>PinchChat</title>
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="manifest" href="/manifest.json" />
</head>
<body>
<div id="root">
<!-- Loading spinner shown while JS bundles load, replaced by React -->
<div id="app-loader" style="display:flex;align-items:center;justify-content:center;height:100vh;background:#18181b;flex-direction:column;gap:16px;">
<div style="width:40px;height:40px;border:3px solid rgba(255,255,255,0.1);border-top-color:#06b6d4;border-radius:50%;animation:spin 0.8s linear infinite;"></div>
<span style="color:rgba(255,255,255,0.4);font-family:system-ui,sans-serif;font-size:13px;">Loading PinchChat…</span>
</div>
<style>@keyframes spin{to{transform:rotate(360deg)}}</style>
</div>
<noscript>
<div style="display:flex;align-items:center;justify-content:center;height:100vh;background:#18181b;color:#a1a1aa;font-family:system-ui,sans-serif;text-align:center;padding:2rem;">
<p>PinchChat requires JavaScript to run. Please enable JavaScript in your browser settings.</p>
</div>
</noscript>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>