Files
PinchChat/docs/index.html

873 lines
32 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>PinchChat — Webchat UI for OpenClaw</title>
<meta name="description" content="A sleek, dark-themed webchat UI for OpenClaw. Monitor sessions, stream responses, and inspect tool calls in real-time." />
<meta property="og:title" content="PinchChat" />
<meta property="og:description" content="A sleek, dark-themed webchat UI for OpenClaw." />
<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 — Webchat UI for OpenClaw" />
<meta name="twitter:description" content="A sleek, dark-themed webchat UI for OpenClaw. Monitor sessions, stream responses, and inspect tool calls in real-time." />
<meta name="twitter:image" content="https://raw.githubusercontent.com/MarlBurroW/pinchchat/main/public/og-card.png" />
<meta property="og:url" content="https://marlburrow.github.io/pinchchat/" />
<link rel="icon" type="image/png" href="https://raw.githubusercontent.com/MarlBurroW/pinchchat/main/public/logo.png" />
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
--bg-primary: #0a0a0f;
--bg-secondary: #12121a;
--bg-card: #1a1a2e;
--border: #2a2a3e;
--text-primary: #e4e4e7;
--text-secondary: #a1a1aa;
--accent-cyan: #22d3ee;
--accent-purple: #a78bfa;
--accent-pink: #f472b6;
--glow-cyan: rgba(34, 211, 238, 0.15);
--glow-purple: rgba(167, 139, 250, 0.15);
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
line-height: 1.6;
overflow-x: hidden;
}
.bg-gradient {
position: fixed;
inset: 0;
z-index: -1;
background:
radial-gradient(ellipse 80% 50% at 50% -20%, var(--glow-cyan), transparent),
radial-gradient(ellipse 60% 40% at 80% 60%, var(--glow-purple), transparent),
var(--bg-primary);
}
.container {
max-width: 960px;
margin: 0 auto;
padding: 0 1.5rem;
}
/* ─── Hero ─── */
.hero {
text-align: center;
padding: 4rem 0 2rem;
}
.hero-top {
display: flex;
align-items: center;
justify-content: center;
gap: 1rem;
margin-bottom: 1rem;
}
.hero-logo {
width: 72px;
height: 72px;
filter: drop-shadow(0 0 20px rgba(34, 211, 238, 0.3));
animation: float 4s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-6px); }
}
.hero h1 {
font-size: 3rem;
font-weight: 800;
letter-spacing: -0.02em;
background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hero .tagline {
font-size: 1.15rem;
color: var(--text-secondary);
max-width: 600px;
margin: 0 auto 1.5rem;
}
.buttons {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 2rem;
}
.btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1.75rem;
border-radius: 0.75rem;
font-size: 1rem;
font-weight: 600;
text-decoration: none;
transition: all 0.2s ease;
}
.btn-primary {
background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
color: var(--bg-primary);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 30px rgba(34, 211, 238, 0.3);
}
.btn-secondary {
background: var(--bg-card);
color: var(--text-primary);
border: 1px solid var(--border);
}
.btn-secondary:hover {
border-color: var(--accent-cyan);
transform: translateY(-2px);
}
/* ─── Demo window (in hero) ─── */
.demo-window {
display: flex;
border: 1px solid var(--border);
border-radius: 1rem;
overflow: hidden;
height: 420px;
background: var(--bg-secondary);
box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 80px rgba(34,211,238,0.06);
max-width: 860px;
margin: 0 auto;
}
.demo-sidebar {
width: 210px;
min-width: 210px;
background: #0d0d14;
border-right: 1px solid var(--border);
padding: 0.75rem;
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.demo-sidebar-header {
display: flex; align-items: center; gap: 0.5rem;
font-weight: 700; font-size: 0.95rem; padding: 0.5rem 0.25rem 0.75rem;
color: var(--text-primary);
}
.demo-sidebar-logo { width: 22px; height: 22px; border-radius: 4px; }
.demo-session {
padding: 0.5rem 0.6rem;
border-radius: 0.5rem;
cursor: default;
transition: background 0.15s;
}
.demo-session-active { background: rgba(34,211,238,0.08); }
.demo-session-name { font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 0.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-session-active .demo-session-name { color: var(--text-primary); }
.demo-token-bar { height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.demo-token-fill { height: 100%; background: var(--accent-cyan); border-radius: 2px; transition: width 1s ease; }
.demo-token-low { background: #4ade80; }
.demo-chat { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.demo-chat-scroll { flex: 1; overflow-y: auto; padding: 1.25rem 1.25rem 0.5rem; display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.demo-input {
display: flex; align-items: center; gap: 0.5rem;
padding: 0.75rem 1rem;
border-top: 1px solid var(--border);
}
.demo-input-box {
flex: 1; background: rgba(255,255,255,0.04); border: 1px solid var(--border);
border-radius: 0.5rem; padding: 0.5rem 0.75rem;
font-size: 0.85rem; color: var(--text-primary); min-height: 34px;
font-family: inherit;
}
.demo-send-btn {
width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
border-radius: 0.5rem; color: var(--bg-primary); font-size: 1rem; cursor: default;
}
.demo-msg { display: flex; gap: 0.6rem; animation: msgIn 0.3s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.demo-avatar {
width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
font-size: 0.75rem; flex-shrink: 0; margin-top: 2px;
}
.demo-avatar-user { background: rgba(34,211,238,0.15); color: var(--accent-cyan); }
.demo-avatar-bot { background: rgba(167,139,250,0.15); color: var(--accent-purple); }
.demo-msg-body { flex: 1; min-width: 0; }
.demo-msg-role { font-size: 0.7rem; color: var(--text-secondary); margin-bottom: 0.15rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.demo-msg-text { font-size: 0.85rem; line-height: 1.55; color: var(--text-primary); }
.demo-msg-text code { background: rgba(255,255,255,0.06); padding: 0.1em 0.35em; border-radius: 3px; font-size: 0.8rem; font-family: 'SF Mono','Fira Code',monospace; }
.demo-thinking {
display: inline-flex; align-items: center; gap: 0.4rem;
font-size: 0.78rem; color: var(--accent-purple); padding: 0.3rem 0;
}
.demo-thinking-dots span {
display: inline-block; width: 4px; height: 4px; background: var(--accent-purple);
border-radius: 50%; animation: blink 1.2s infinite;
}
.demo-thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.demo-thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%,80%,100% { opacity: 0.2; } 40% { opacity: 1; } }
.demo-tool {
display: inline-flex; align-items: center; gap: 0.35rem;
padding: 0.2rem 0.55rem; border-radius: 0.375rem; font-size: 0.75rem; font-weight: 500;
border: 1px solid; margin: 0.2rem 0.3rem 0.2rem 0; cursor: default;
transition: all 0.2s;
}
.demo-tool-exec { border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.1); color: #fcd34d; }
.demo-tool-read { border-color: rgba(14,165,233,0.3); background: rgba(14,165,233,0.1); color: #7dd3fc; }
.demo-tool-web { border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.1); color: #6ee7b7; }
.demo-tool-edit { border-color: rgba(139,92,246,0.3); background: rgba(139,92,246,0.1); color: #c4b5fd; }
.demo-tool-memory { border-color: rgba(244,63,94,0.3); background: rgba(244,63,94,0.1); color: #fda4af; }
.demo-tool-expand {
margin: 0.2rem 0 0.3rem;
border: 1px solid rgba(255,255,255,0.06);
border-radius: 0.5rem;
background: rgba(255,255,255,0.02);
font-size: 0.73rem;
overflow: hidden;
animation: expandIn 0.3s ease;
}
@keyframes expandIn { from { opacity:0; max-height:0; } to { opacity:1; max-height:200px; } }
.demo-tool-expand-header {
padding: 0.35rem 0.6rem;
color: var(--text-secondary);
font-weight: 600;
border-bottom: 1px solid rgba(255,255,255,0.04);
}
.demo-tool-expand-body {
padding: 0.35rem 0.6rem;
color: var(--text-secondary);
font-family: 'SF Mono','Fira Code',monospace;
font-size: 0.7rem;
white-space: pre-wrap;
max-height: 80px;
overflow: hidden;
}
.demo-cursor { display: inline-block; width: 2px; height: 1em; background: var(--accent-cyan); animation: cursorBlink 0.8s step-end infinite; vertical-align: text-bottom; margin-left: 1px; }
@keyframes cursorBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
/* ─── Docker oneliner ─── */
.oneliner-section {
text-align: center;
padding: 2.5rem 0 1rem;
}
.oneliner-label {
font-size: 0.85rem;
color: var(--text-secondary);
margin-bottom: 0.5rem;
}
.oneliner {
max-width: 700px;
margin: 0 auto;
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: 0.75rem;
padding: 1rem 1.5rem;
font-family: 'SF Mono', 'Fira Code', monospace;
font-size: 0.9rem;
color: var(--accent-cyan);
text-align: left;
position: relative;
overflow-x: auto;
}
.oneliner::before {
content: '$ ';
color: var(--accent-purple);
}
/* ─── Features — alternating sections ─── */
.features-section {
padding: 4rem 0 2rem;
}
.features-heading {
text-align: center;
font-size: 2rem;
font-weight: 700;
margin-bottom: 1rem;
}
.features-sub {
text-align: center;
color: var(--text-secondary);
font-size: 1rem;
max-width: 560px;
margin: 0 auto 3.5rem;
}
.feature-row {
display: flex;
align-items: center;
gap: 3rem;
margin-bottom: 4rem;
opacity: 0;
transform: translateY(30px);
transition: opacity 0.6s ease, transform 0.6s ease;
}
.feature-row.visible {
opacity: 1;
transform: translateY(0);
}
.feature-row:nth-child(even) {
flex-direction: row-reverse;
}
.feature-row-text {
flex: 1;
min-width: 0;
}
.feature-row-visual {
flex: 1;
min-width: 0;
display: flex;
justify-content: center;
}
.feature-row-icon {
font-size: 2.5rem;
margin-bottom: 0.75rem;
}
.feature-row-text h3 {
font-size: 1.35rem;
font-weight: 700;
margin-bottom: 0.5rem;
}
.feature-row-text p {
font-size: 0.95rem;
color: var(--text-secondary);
line-height: 1.6;
}
/* Visual panels for features */
.feature-visual-panel {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 0.75rem;
padding: 1.25rem;
width: 100%;
max-width: 360px;
}
.fv-tool-badges {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
}
.fv-session-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.fv-session-item {
display: flex;
align-items: center;
gap: 0.6rem;
padding: 0.5rem 0.6rem;
border-radius: 0.5rem;
background: rgba(255,255,255,0.03);
}
.fv-session-item.active {
background: rgba(34,211,238,0.08);
}
.fv-session-label {
font-size: 0.8rem;
color: var(--text-secondary);
flex: 1;
}
.fv-session-item.active .fv-session-label { color: var(--text-primary); }
.fv-dot {
width: 6px; height: 6px; border-radius: 50%; background: #4ade80; flex-shrink: 0;
}
.fv-dot-idle { background: var(--text-secondary); opacity: 0.4; }
.fv-stream-lines {
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.fv-stream-line {
height: 8px;
border-radius: 4px;
background: linear-gradient(90deg, rgba(34,211,238,0.2), rgba(167,139,250,0.1));
animation: streamPulse 2s ease-in-out infinite;
}
.fv-stream-line:nth-child(2) { width: 85%; animation-delay: 0.3s; }
.fv-stream-line:nth-child(3) { width: 60%; animation-delay: 0.6s; }
.fv-stream-line:nth-child(4) { width: 90%; animation-delay: 0.9s; }
@keyframes streamPulse {
0%, 100% { opacity: 0.4; }
50% { opacity: 1; }
}
.fv-token-bar-wrapper {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.fv-token-row {
display: flex;
align-items: center;
gap: 0.75rem;
}
.fv-token-label {
font-size: 0.78rem;
color: var(--text-secondary);
width: 80px;
flex-shrink: 0;
}
.fv-token-track {
flex: 1;
height: 6px;
background: rgba(255,255,255,0.06);
border-radius: 3px;
overflow: hidden;
}
.fv-token-value {
height: 100%;
border-radius: 3px;
background: var(--accent-cyan);
transition: width 1.5s ease;
}
.fv-token-pct {
font-size: 0.72rem;
color: var(--text-secondary);
width: 32px;
text-align: right;
flex-shrink: 0;
}
.fv-image-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.5rem;
}
.fv-image-placeholder {
aspect-ratio: 1;
border-radius: 0.5rem;
background: linear-gradient(135deg, rgba(34,211,238,0.1), rgba(167,139,250,0.1));
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
}
.fv-lang-toggle {
display: flex;
gap: 0.5rem;
}
.fv-lang-btn {
padding: 0.4rem 1rem;
border-radius: 0.5rem;
font-size: 0.85rem;
font-weight: 600;
border: 1px solid var(--border);
background: transparent;
color: var(--text-secondary);
}
.fv-lang-btn.active {
background: rgba(34,211,238,0.1);
border-color: var(--accent-cyan);
color: var(--accent-cyan);
}
/* ─── Footer ─── */
.footer {
text-align: center;
padding: 4rem 0 2rem;
color: var(--text-secondary);
font-size: 0.85rem;
}
.footer a { color: var(--accent-cyan); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 2rem; justify-content: center; margin-bottom: 1rem; }
/* ─── Responsive ─── */
@media (max-width: 700px) {
.hero { padding: 3rem 0 1.5rem; }
.hero h1 { font-size: 2.2rem; }
.demo-sidebar { display: none; }
.demo-window { height: 360px; }
.feature-row, .feature-row:nth-child(even) {
flex-direction: column;
gap: 1.5rem;
text-align: center;
}
.feature-visual-panel { max-width: 100%; }
}
</style>
</head>
<body>
<div class="bg-gradient"></div>
<!-- ════ HERO + DEMO ════ -->
<section class="hero">
<div class="container">
<div class="hero-top">
<img src="https://raw.githubusercontent.com/MarlBurroW/pinchchat/main/public/logo.png" alt="PinchChat Logo" class="hero-logo" />
<h1>PinchChat</h1>
</div>
<p class="tagline">A sleek webchat UI for <a href="https://github.com/openclaw/openclaw" style="color: var(--accent-cyan); text-decoration: none;">OpenClaw</a>. Monitor sessions, stream AI responses, and inspect tool calls — all in real-time.</p>
<div class="buttons">
<a href="https://github.com/MarlBurroW/pinchchat#-quick-start" class="btn btn-primary">🚀 Get Started</a>
<a href="https://github.com/MarlBurroW/pinchchat" class="btn btn-secondary">⭐ GitHub</a>
</div>
<!-- Live demo — the first thing visitors see -->
<div class="demo-window">
<div class="demo-sidebar">
<div class="demo-sidebar-header">
<img src="https://raw.githubusercontent.com/MarlBurroW/pinchchat/main/public/logo.png" alt="" class="demo-sidebar-logo" />
<span>PinchChat</span>
</div>
<div class="demo-session demo-session-active">
<div class="demo-session-name">🏠 Main Session</div>
<div class="demo-token-bar"><div class="demo-token-fill" style="width:42%"></div></div>
</div>
<div class="demo-session">
<div class="demo-session-name">⏰ Daily AI Watch</div>
<div class="demo-token-bar"><div class="demo-token-fill demo-token-low" style="width:18%"></div></div>
</div>
<div class="demo-session">
<div class="demo-session-name">🔧 PinchChat Improve</div>
<div class="demo-token-bar"><div class="demo-token-fill" style="width:67%"></div></div>
</div>
<div class="demo-session">
<div class="demo-session-name">📧 Email Check</div>
<div class="demo-token-bar"><div class="demo-token-fill demo-token-low" style="width:8%"></div></div>
</div>
</div>
<div class="demo-chat">
<div class="demo-chat-scroll" id="demo-chat-area"></div>
<div class="demo-input">
<div class="demo-input-box" id="demo-input-text"></div>
<div class="demo-send-btn"></div>
</div>
</div>
</div>
</div>
</section>
<!-- ════ ONELINER ════ -->
<div class="oneliner-section">
<div class="container">
<p class="oneliner-label">Run it now with one command:</p>
<div class="oneliner">docker run -p 3000:80 ghcr.io/marlburrow/pinchchat:latest</div>
</div>
</div>
<!-- ════ FEATURES — alternating left/right ════ -->
<section class="features-section">
<div class="container">
<h2 class="features-heading">Why PinchChat?</h2>
<p class="features-sub">Everything you need to interact with your OpenClaw agent — nothing you don't.</p>
<!-- 1. Tool Call Visualization -->
<div class="feature-row">
<div class="feature-row-text">
<div class="feature-row-icon">🔧</div>
<h3>Tool Call Visualization</h3>
<p>See what your agent is doing in real-time. Colored badges, visible parameters, expandable results — the feature missing from every other chat UI.</p>
</div>
<div class="feature-row-visual">
<div class="feature-visual-panel">
<div class="fv-tool-badges">
<span class="demo-tool demo-tool-web">🌐 web_search</span>
<span class="demo-tool demo-tool-exec">⚡ exec</span>
<span class="demo-tool demo-tool-read">📖 read</span>
<span class="demo-tool demo-tool-edit">✏️ edit</span>
<span class="demo-tool demo-tool-memory">🧠 memory_search</span>
</div>
<div class="demo-tool-expand" style="margin-top:0.6rem; animation:none;">
<div class="demo-tool-expand-header">▶ web_search</div>
<div class="demo-tool-expand-body">{ "query": "latest AI news" }
✓ 3 results found</div>
</div>
</div>
</div>
</div>
<!-- 2. Multi-Session -->
<div class="feature-row">
<div class="feature-row-text">
<div class="feature-row-icon">📋</div>
<h3>Multi-Session Navigation</h3>
<p>Browse all active sessions — main chat, cron jobs, sub-agents, background tasks. Everything in one sidebar.</p>
</div>
<div class="feature-row-visual">
<div class="feature-visual-panel">
<div class="fv-session-list">
<div class="fv-session-item active"><span class="fv-dot"></span><span class="fv-session-label">🏠 Main Session</span></div>
<div class="fv-session-item"><span class="fv-dot"></span><span class="fv-session-label">⏰ Daily Cron</span></div>
<div class="fv-session-item"><span class="fv-dot fv-dot-idle"></span><span class="fv-session-label">🚀 Sub-Agent #3</span></div>
<div class="fv-session-item"><span class="fv-dot fv-dot-idle"></span><span class="fv-session-label">📧 Email Checker</span></div>
</div>
</div>
</div>
</div>
<!-- 3. Live Streaming -->
<div class="feature-row">
<div class="feature-row-text">
<div class="feature-row-icon"></div>
<h3>Live Streaming</h3>
<p>Watch the agent think and write token by token. Full WebSocket streaming from your OpenClaw gateway.</p>
</div>
<div class="feature-row-visual">
<div class="feature-visual-panel">
<div class="fv-stream-lines">
<div class="fv-stream-line" style="width:100%"></div>
<div class="fv-stream-line"></div>
<div class="fv-stream-line"></div>
<div class="fv-stream-line"></div>
</div>
<div style="margin-top:0.75rem;">
<span class="demo-thinking">Thinking <span class="demo-thinking-dots"><span></span><span></span><span></span></span></span>
</div>
</div>
</div>
</div>
<!-- 4. Token Usage -->
<div class="feature-row">
<div class="feature-row-text">
<div class="feature-row-icon">📊</div>
<h3>Token Usage Tracking</h3>
<p>Progress bars per session showing context usage in real-time. Know exactly how much headroom is left.</p>
</div>
<div class="feature-row-visual">
<div class="feature-visual-panel">
<div class="fv-token-bar-wrapper">
<div class="fv-token-row">
<span class="fv-token-label">Main</span>
<div class="fv-token-track"><div class="fv-token-value" style="width:42%"></div></div>
<span class="fv-token-pct">42%</span>
</div>
<div class="fv-token-row">
<span class="fv-token-label">Cron</span>
<div class="fv-token-track"><div class="fv-token-value" style="width:18%"></div></div>
<span class="fv-token-pct">18%</span>
</div>
<div class="fv-token-row">
<span class="fv-token-label">Sub-Agent</span>
<div class="fv-token-track"><div class="fv-token-value" style="width:75%"></div></div>
<span class="fv-token-pct">75%</span>
</div>
</div>
</div>
</div>
</div>
<!-- 5. GPT-like + Chat-focused (combined) -->
<div class="feature-row">
<div class="feature-row-text">
<div class="feature-row-icon">💬</div>
<h3>Familiar & Focused</h3>
<p>A GPT-like interface — sessions in a sidebar, switch between conversations. No settings menus or config panels cluttering the screen. Just the conversation, clean and efficient.</p>
</div>
<div class="feature-row-visual">
<div class="feature-visual-panel" style="text-align:center; padding: 2rem 1.25rem;">
<div style="font-size:2.5rem; margin-bottom:0.75rem;">🎯</div>
<div style="font-size:0.9rem; color: var(--text-secondary);">Zero config clutter.<br>Just you and your agent.</div>
</div>
</div>
</div>
<!-- 6. Images + i18n -->
<div class="feature-row">
<div class="feature-row-text">
<div class="feature-row-icon">🖼️</div>
<h3>Inline Images & i18n</h3>
<p>Generated or read images render directly in chat with a click-to-zoom lightbox. English and French built-in — easy to add new languages.</p>
</div>
<div class="feature-row-visual">
<div class="feature-visual-panel">
<div class="fv-image-grid" style="margin-bottom:0.75rem;">
<div class="fv-image-placeholder">🌄</div>
<div class="fv-image-placeholder">🎨</div>
</div>
<div class="fv-lang-toggle" style="justify-content:center;">
<span class="fv-lang-btn active">EN</span>
<span class="fv-lang-btn">FR</span>
</div>
</div>
</div>
</div>
</div>
</section>
<footer class="footer">
<div class="container">
<div class="footer-links">
<a href="https://github.com/MarlBurroW/pinchchat">GitHub</a>
<a href="https://github.com/openclaw/openclaw">OpenClaw</a>
<a href="https://discord.com/invite/clawd">Community</a>
<a href="https://github.com/MarlBurroW/pinchchat/blob/main/LICENSE">MIT License</a>
</div>
<p>Built with ❤️ for the <a href="https://github.com/openclaw/openclaw">OpenClaw</a> community</p>
</div>
</footer>
<script>
(function() {
// ── Scroll reveal for feature rows ──
const rows = document.querySelectorAll('.feature-row');
const observer = new IntersectionObserver((entries) => {
entries.forEach(e => { if (e.isIntersecting) { e.target.classList.add('visible'); observer.unobserve(e.target); } });
}, { threshold: 0.15 });
rows.forEach(r => observer.observe(r));
// ── Demo animation ──
const chat = document.getElementById('demo-chat-area');
const input = document.getElementById('demo-input-text');
const scenario = [
{ type: 'input-type', text: 'What\'s the weather in Grenoble and check my latest emails?', delay: 0 },
{ type: 'input-send', delay: 800 },
{ type: 'user-msg', text: 'What\'s the weather in Grenoble and check my latest emails?', delay: 200 },
{ type: 'thinking', delay: 400 },
{ type: 'tool-badge', name: 'web_search', cls: 'demo-tool-web', icon: '🌐', label: 'web_search', delay: 800 },
{ type: 'tool-expand', tool: 'web_search', params: '{ "query": "weather Grenoble today" }', result: '☀️ Grenoble: 14°C, partly cloudy\nWind: 12 km/h NW · Humidity: 58%', delay: 600 },
{ type: 'tool-badge', name: 'exec', cls: 'demo-tool-exec', icon: '⚡', label: 'exec', delay: 500 },
{ type: 'tool-expand', tool: 'exec', params: '{ "command": "gmail unread 3" }', result: '1. [Urgent] Deploy review — team@fasst.io\n2. Charlotte school — photo day\n3. Newsletter — This Week in AI', delay: 700 },
{ type: 'remove-thinking', delay: 100 },
{ type: 'assistant-msg', html: '🌤️ <strong>Grenoble</strong> — 14°C, partly cloudy. Clear tonight.<br><br>📧 <strong>3 unread:</strong><br>1. <code>[Urgent]</code> Deploy review — team@fasst.io<br>2. Charlotte\'s school — photo day 📸<br>3. This Week in AI<br><br>Want me to open any of these?', delay: 200 },
{ type: 'pause', delay: 4000 },
{ type: 'reset', delay: 0 },
];
let thinkingEl = null, toolArea = null, currentBotMsg = null;
function scrollDown() { chat.scrollTop = chat.scrollHeight; }
function typeText(el, text, cb) {
let i = 0;
el.textContent = '';
const cursor = document.createElement('span');
cursor.className = 'demo-cursor';
el.appendChild(cursor);
const iv = setInterval(() => {
if (i < text.length) { el.insertBefore(document.createTextNode(text[i]), cursor); i++; }
else { clearInterval(iv); if (cursor.parentNode) cursor.remove(); if (cb) cb(); }
}, 28);
}
function createBotMsg() {
const msg = document.createElement('div');
msg.className = 'demo-msg';
msg.innerHTML = '<div class="demo-avatar demo-avatar-bot">🤖</div><div class="demo-msg-body"><div class="demo-msg-role">Assistant</div></div>';
chat.appendChild(msg);
currentBotMsg = msg.querySelector('.demo-msg-body');
toolArea = document.createElement('div');
currentBotMsg.appendChild(toolArea);
scrollDown();
return currentBotMsg;
}
function runStep(idx) {
if (idx >= scenario.length) return;
const step = scenario[idx];
const next = () => setTimeout(() => runStep(idx + 1), scenario[idx + 1]?.delay || 0);
switch (step.type) {
case 'input-type': typeText(input, step.text, next); break;
case 'input-send': input.textContent = ''; next(); break;
case 'user-msg': {
const msg = document.createElement('div');
msg.className = 'demo-msg';
msg.innerHTML = '<div class="demo-avatar demo-avatar-user">👤</div><div class="demo-msg-body"><div class="demo-msg-role">You</div><div class="demo-msg-text"></div></div>';
chat.appendChild(msg);
msg.querySelector('.demo-msg-text').textContent = step.text;
scrollDown(); next(); break;
}
case 'thinking': {
if (!currentBotMsg) createBotMsg();
thinkingEl = document.createElement('div');
thinkingEl.className = 'demo-thinking';
thinkingEl.innerHTML = 'Thinking <span class="demo-thinking-dots"><span></span><span></span><span></span></span>';
currentBotMsg.appendChild(thinkingEl);
scrollDown(); next(); break;
}
case 'tool-badge': {
if (!toolArea) createBotMsg();
const badge = document.createElement('span');
badge.className = 'demo-tool ' + step.cls;
badge.innerHTML = step.icon + ' ' + step.label;
toolArea.appendChild(badge);
scrollDown(); next(); break;
}
case 'tool-expand': {
const expand = document.createElement('div');
expand.className = 'demo-tool-expand';
expand.innerHTML = '<div class="demo-tool-expand-header">▶ ' + step.tool + '</div><div class="demo-tool-expand-body"><strong>Parameters:</strong>\n' + step.params + '\n\n<strong>Result:</strong>\n' + step.result + '</div>';
toolArea.appendChild(expand);
scrollDown(); next(); break;
}
case 'remove-thinking': if (thinkingEl) { thinkingEl.remove(); thinkingEl = null; } next(); break;
case 'assistant-msg': {
const d = document.createElement('div');
d.className = 'demo-msg-text';
d.innerHTML = step.html;
currentBotMsg.appendChild(d);
scrollDown(); next(); break;
}
case 'pause': setTimeout(next, step.delay); break;
case 'reset':
setTimeout(() => {
chat.innerHTML = ''; input.textContent = '';
thinkingEl = null; toolArea = null; currentBotMsg = null;
runStep(0);
}, 500);
break;
}
}
setTimeout(() => runStep(0), 1200);
})();
</script>
</body>
</html>