loopable / web /index.html
fsanyoto's picture
Deploy AIOS web (React glide grid + FastAPI slice)
98c8696 verified
Raw History Blame
9.64 kB
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="%BASE_URL%favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Loopable</title>
<!-- Critical signed-out paint. Token values match DESIGN.md §5.1 and index.css. -->
<style id="signed-out-critical">
@layer signed-out-fallback {
:root {
--lp-surface: #ffffff; --lp-surface-2: #f7f7f6; --lp-ink: #202433;
--lp-muted: #6b7280; --lp-line: #e6e9ef; --lp-wash: #fafbfc;
--lp-primary: #5433cc; --lp-primary-hover: #472bad; --lp-brand: #6e56cf;
--lp-blue-deep: #768fb6; --lp-red-deep: #a3453c;
--lp-fs-2xs: 0.75rem; --lp-fs-xs: 0.8125rem; --lp-fs-sm: 0.875rem;
--lp-fs-md: 1rem; --lp-fs-lg: 1.25rem; --lp-fw-semibold: 600;
--lp-lh: 1.5; --lp-lh-tight: 1.3; --lp-r-sm: 4px; --lp-r-md: 6px;
--lp-canvas: var(--lp-surface-2); --lp-panel: var(--lp-surface);
--lp-r-panel: 16px; --lp-panel-inset: 8px;
--lp-panel-shadow: 0 1px 2px color-mix(in srgb, var(--lp-ink) 4%, transparent), 0 0 12px color-mix(in srgb, var(--lp-ink) 10%, transparent);
--lp-content-inset: 24px; --lp-section-gap: 24px;
--lp-content-border-width: 0; --lp-content-shadow: none; --lp-hairline-width: 1px;
--lp-login-form-max-width: 400px; --lp-login-control-height: 40px;
--lp-logo-loader-size: 56px;
--lp-home-disabled-opacity: 0.45;
}
html { font-size: 17px; }
body { margin: 0; }
}
.signed-out.signed-out, .freeze-page > .shell-boot, .shell-boot.shell-boot {
box-sizing: border-box; display: flex; flex-direction: column; align-items: center;
justify-content: flex-start; width: 100%; max-width: none; min-height: 100vh; min-height: 100dvh;
margin: 0; padding: var(--lp-panel-inset); background: var(--lp-canvas); color: var(--lp-ink);
font-family: Inter, system-ui, sans-serif; font-size: var(--lp-fs-sm); line-height: var(--lp-lh);
}
.signed-out *, .signed-out *::before, .signed-out *::after, .shell-boot * { box-sizing: border-box; }
.signed-out .signed-out-panel, .shell-boot > .login-brand {
flex: 0 0 auto; width: 100%; min-width: 0; max-width: var(--lp-login-form-max-width);
margin: max(var(--lp-section-gap), 12vh) 0 var(--lp-section-gap); padding: var(--lp-content-inset);
border: var(--lp-content-border-width); border-radius: var(--lp-r-panel);
background: var(--lp-panel); box-shadow: var(--lp-panel-shadow); overflow-wrap: anywhere;
}
.signed-out .signed-out-login { padding: 0; }
.signed-out .login-card {
margin: 0; padding: var(--lp-content-inset); border: var(--lp-content-border-width);
background: transparent; box-shadow: var(--lp-content-shadow);
}
.signed-out .signed-out-wide { max-width: none; margin-top: var(--lp-section-gap); }
.signed-out :is(.signed-out-brand, .login-brand, .signup-brand), .shell-boot > .login-brand {
display: flex; align-items: center; gap: calc(var(--lp-section-gap) / 2);
}
.signed-out :is(.signed-out-brand, .login-brand, .signup-brand) { margin-bottom: var(--lp-section-gap); }
.signed-out .signed-out-brand:only-child { margin-bottom: 0; }
.signed-out .lp-mark, .shell-boot .lp-mark { display: block; flex: none; }
.shell-boot .lp-mark { width: var(--lp-logo-loader-size); height: var(--lp-logo-loader-size); }
.signed-out .lp-wordmark, .shell-boot .lp-wordmark {
font-size: var(--lp-fs-lg); font-weight: var(--lp-fw-semibold); color: var(--lp-ink); letter-spacing: -0.02em;
}
@layer signed-out-fallback {
.signed-out :is(h1, h2, h3) { margin: 0 0 var(--lp-section-gap); font-size: var(--lp-fs-lg); font-weight: var(--lp-fw-semibold); }
.signed-out :is(.login-mfa-heading, .set-h) { font-size: var(--lp-fs-md); }
.signed-out :is(.login-mfa-heading, .set-h):focus { outline: none; }
.signed-out :is(.login-form, .signup-form, .lpf-field) { display: flex; flex-direction: column; }
.signed-out :is(label, .lpf-field) { margin-bottom: calc(var(--lp-section-gap) / 3); }
.signed-out :is(input:not([type=checkbox], .lpf-hp), textarea, select) {
width: 100%; min-width: 0; min-height: var(--lp-login-control-height); padding: calc(var(--lp-content-inset) / 3);
border: var(--lp-hairline-width) solid var(--lp-line); border-radius: var(--lp-r-sm);
font: inherit; background: var(--lp-surface-2); color: var(--lp-ink);
}
.signed-out .login-input { margin-bottom: calc(var(--lp-section-gap) / 2); }
.signed-out .security-qr-image { display: block; width: min(100%, calc(var(--lp-logo-loader-size) * 4)); height: auto; }
.signed-out .security-qr-field { fill: var(--lp-surface); }
.signed-out button { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.signed-out :is(.login-submit, .lpf-btn, .pubv-btn, .signup-primary) {
width: 100%; min-height: var(--lp-login-control-height); padding: calc(var(--lp-content-inset) / 3);
border-radius: var(--lp-r-md); background: var(--lp-primary); color: var(--lp-surface); font-weight: var(--lp-fw-semibold);
}
.signed-out :is(input, textarea, select, button, a):focus-visible { outline: calc(var(--lp-hairline-width) * 2) solid var(--lp-blue-deep); outline-offset: var(--lp-hairline-width); }
.signed-out :disabled { opacity: var(--lp-home-disabled-opacity); cursor: not-allowed; }
.signed-out .login-field { position: relative; }
.signed-out .login-field input { padding-right: var(--lp-login-control-height); }
.signed-out .login-eye { position: absolute; right: 0; top: 0; width: var(--lp-login-control-height); height: var(--lp-login-control-height); }
.signed-out .login-eye svg { width: var(--lp-content-inset); height: var(--lp-content-inset); fill: none; stroke: currentColor; }
.signed-out :is(.login-msg, .signup-error, .lpf-err, .pubv-error, .shell-crash-detail) { min-height: 1lh; font-size: var(--lp-fs-2xs); color: var(--lp-red-deep); }
.signed-out :is(.login-mfa-help, .login-mfa-policy, .pubv-note) { font-size: var(--lp-fs-2xs); color: var(--lp-muted); }
.signed-out :is(.login-mfa-secret, .login-mfa-uri) { display: block; overflow-wrap: anywhere; }
.signed-out :is(.lp-sr-only, .lpf-hp) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.signed-out .lpf-hp { left: calc(-1 * var(--lp-login-control-height)); border: 0; pointer-events: none; }
.signed-out .pubv-tablewrap { overflow-x: auto; }
.signed-out .pubv-table { width: 100%; border-collapse: collapse; }
.signed-out .pubv-table :is(th, td) { text-align: left; padding: calc(var(--lp-content-inset) / 2); border-bottom: var(--lp-hairline-width) solid var(--lp-line); }
.signed-out .pubv-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.signed-out .pubv-cards { list-style: none; padding: 0; }
.signed-out .pubv-map svg { display: block; width: 100%; }
.signed-out .pubv-map-bg { fill: var(--lp-canvas); }
.signed-out .pubv-pin { fill: var(--lp-blue-deep); stroke: var(--lp-surface); }
}
@media (max-width: 600px) {
.signed-out .signed-out-panel, .shell-boot > .login-brand { margin-top: var(--lp-section-gap); }
}
</style>
<!-- SDLC 67 close (2026-09-29): THE BOOT WATCHDOG. HF's Space proxy answered 502 on 12-20% of
requests (measured on staging, public live and a third-party Space); the app needs ~12
static chunks to start, and ONE 502 among them leaves this skeleton on screen forever
(seen in the owner's Chrome: alertsModel-*.js 502, root never mounted). Inline, in <head>
and first, so its capture listener exists before Vite's module script and preload links.
A failed /assets/ fetch reloads the page, at most 4 times with a growing delay; chunks are
served `immutable`, so each reload refetches only what failed. main.tsx calls
__aiosBootOk() once every static chunk ran, which clears the counter. -->
<script>
(function () {
var KEY = "aios.bootRetry", MAX = 4, n = 0, armed = false;
try { n = +(sessionStorage.getItem(KEY) || 0) || 0; } catch (e) { n = MAX; }
window.addEventListener("error", function (ev) {
var t = ev.target, url = (t && (t.src || t.href)) || "";
if (armed || window.__aiosBooted || n >= MAX || !/\/assets\//.test(url)) return;
armed = true;
try { sessionStorage.setItem(KEY, String(n + 1)); } catch (e) { return; }
setTimeout(function () { location.reload(); }, 400 * (n + 1));
}, true);
window.__aiosBootOk = function () {
window.__aiosBooted = true;
try { sessionStorage.removeItem(KEY); } catch (e) {}
};
})();
</script>
</head>
<body>
<!-- HTML-only boot paint lives inside root so React replaces it in one mount. -->
<div id="root"><div class="shell-boot" role="status" aria-label="Loading Loopable">
<div class="login-brand">
<img class="lp-mark" src="%BASE_URL%favicon.svg" width="44" height="44" alt="" aria-hidden="true" />
<span class="lp-wordmark">Loopable</span>
</div>
</div></div>
<div id="portal"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>