hypertwist/Content/Browser/index.html
2026-06-11 17:45:34 +00:00

332 lines
7.3 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<title>HyperTwist Browser Runtime</title>
<style>
:root {
color-scheme: dark;
--paper: #09111c;
--paper-raised: rgba(13, 24, 38, 0.92);
--paper-soft: rgba(20, 36, 56, 0.84);
--line: rgba(153, 195, 255, 0.18);
--ink: #eff6ff;
--ink-soft: #afc0d6;
--accent: #8ee3ff;
--accent-strong: #52c7ff;
--accent-warm: #ffd38a;
--ok: #9bf6bf;
--warn: #ffd38a;
--bg-bloom: radial-gradient(circle at top left, rgba(82, 199, 255, 0.22), transparent 35%),
radial-gradient(circle at top right, rgba(255, 211, 138, 0.14), transparent 30%),
linear-gradient(160deg, #050b14 0%, #0d1624 45%, #101c2c 100%);
--shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
--font-ui: "IBM Plex Sans", "Segoe UI", sans-serif;
--font-mono: "IBM Plex Mono", "Consolas", monospace;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
background: var(--bg-bloom);
color: var(--ink);
font-family: var(--font-ui);
}
body::before {
content: "";
position: fixed;
inset: 0;
background-image:
linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
background-size: 24px 24px;
pointer-events: none;
opacity: 0.35;
}
#app {
position: relative;
z-index: 1;
padding: 28px;
}
.shell {
display: grid;
gap: 20px;
}
.hero {
display: grid;
gap: 12px;
padding: 24px;
border: 1px solid var(--line);
border-radius: 24px;
background: linear-gradient(140deg, rgba(14, 27, 42, 0.94), rgba(11, 20, 31, 0.78));
box-shadow: var(--shadow);
overflow: hidden;
}
.hero h1,
.section-title,
.card h2 {
margin: 0;
letter-spacing: 0.02em;
}
.hero p,
.section-note,
.card p,
.card li,
.runtime-note {
margin: 0;
color: var(--ink-soft);
line-height: 1.5;
}
.hero-grid,
.stack-grid,
.utility-grid {
display: grid;
gap: 16px;
}
.hero-grid {
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.stack-grid,
.utility-grid {
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.metric,
.card,
.panel {
border: 1px solid var(--line);
border-radius: 18px;
background: var(--paper-raised);
box-shadow: var(--shadow);
}
.metric {
padding: 16px 18px;
}
.metric strong {
display: block;
margin-bottom: 4px;
color: var(--accent);
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.1em;
}
.metric span {
font-size: 1.35rem;
font-weight: 600;
}
.section {
display: grid;
gap: 12px;
}
.section-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
}
.card {
padding: 18px;
display: grid;
gap: 12px;
transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.card:hover {
transform: translateY(-2px);
border-color: rgba(142, 227, 255, 0.42);
background: linear-gradient(180deg, rgba(17, 32, 51, 0.96), rgba(12, 22, 35, 0.9));
}
.card-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
}
.phase-chip,
.status-chip,
.activation-chip {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 6px 10px;
border-radius: 999px;
font-size: 0.78rem;
border: 1px solid rgba(142, 227, 255, 0.16);
background: rgba(18, 36, 57, 0.78);
}
.phase-chip {
color: var(--accent);
text-transform: uppercase;
letter-spacing: 0.08em;
}
.status-chip[data-status="ready"] {
color: var(--ok);
}
.status-chip[data-status="idle"] {
color: var(--ink-soft);
}
.status-chip[data-status="loading"] {
color: var(--warn);
}
.status-chip[data-status="error"] {
color: #ffb0b0;
}
.card-actions,
.solver-actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
button,
input,
textarea {
font: inherit;
}
button {
border: 1px solid rgba(82, 199, 255, 0.28);
background: linear-gradient(180deg, rgba(82, 199, 255, 0.18), rgba(55, 120, 184, 0.16));
color: var(--ink);
border-radius: 12px;
padding: 10px 14px;
cursor: pointer;
}
button.secondary {
background: rgba(24, 39, 58, 0.8);
}
button:hover {
border-color: rgba(142, 227, 255, 0.52);
}
.panel {
padding: 18px;
display: grid;
gap: 14px;
}
.panel-grid {
display: grid;
gap: 14px;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.data-block {
border: 1px solid rgba(255, 255, 255, 0.06);
background: var(--paper-soft);
border-radius: 14px;
padding: 14px;
}
.data-block pre,
.card code,
.panel code {
margin: 0;
white-space: pre-wrap;
word-break: break-word;
color: #d4e8ff;
font-family: var(--font-mono);
font-size: 0.88rem;
}
#analytics-demo {
min-height: 240px;
}
#viewer-demo {
min-height: 320px;
display: grid;
place-items: center;
text-align: center;
}
#viewer-demo model-viewer {
width: 100%;
height: 280px;
border-radius: 14px;
background: linear-gradient(180deg, rgba(17, 28, 43, 0.92), rgba(9, 16, 27, 0.92));
}
.field {
display: grid;
gap: 8px;
}
textarea {
min-height: 108px;
resize: vertical;
}
input,
textarea {
width: 100%;
border-radius: 12px;
border: 1px solid rgba(142, 227, 255, 0.16);
background: rgba(11, 19, 31, 0.82);
color: var(--ink);
padding: 12px;
}
.log-list {
display: grid;
gap: 8px;
max-height: 240px;
overflow: auto;
}
.log-entry {
border-left: 3px solid rgba(82, 199, 255, 0.32);
padding: 10px 12px;
background: rgba(10, 18, 28, 0.88);
border-radius: 0 12px 12px 0;
}
.log-entry strong {
color: var(--accent-warm);
}
@media (max-width: 720px) {
#app {
padding: 18px;
}
}
</style>
</head>
<body>
<div id="app"></div>
<script src="./src/browser-runtime-bootstrap.js"></script>
</body>
</html>