Add collapsible Team Help chat widget on all public pages
Self-contained assistant (no external services) with a knowledge base covering the strategy, levels, costs, wallet setup, funding, joining, training videos, and live current-sponsor/queue data; falls back to the configured Telegram group link when it can't answer. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -20,3 +20,27 @@ a{color:inherit}.wrap{width:min(1160px,calc(100% - 32px));margin:auto}.nav{heigh
|
||||
|
||||
.video-card{max-width:880px;margin:0 auto;padding:10px;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
|
||||
.video-frame{display:block;width:100%;height:auto;aspect-ratio:16/9;border:0;border-radius:12px}
|
||||
|
||||
.chat-fab{position:fixed;right:18px;bottom:18px;width:58px;height:58px;border-radius:50%;background:var(--gold);color:#071421;border:0;box-shadow:var(--shadow);cursor:pointer;z-index:998;font-size:26px;line-height:1;display:flex;align-items:center;justify-content:center;transition:transform .15s}
|
||||
.chat-fab:hover{transform:scale(1.07)}
|
||||
.chat-panel{position:fixed;right:18px;bottom:18px;width:min(372px,calc(100vw - 24px));height:min(560px,calc(100vh - 90px));display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);z-index:999;overflow:hidden}
|
||||
.chat-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid var(--line);background:rgba(243,190,67,.06)}
|
||||
.chat-head strong{font-size:15px}
|
||||
.chat-sub{color:var(--muted);font-size:12px;margin-top:2px}
|
||||
.chat-close{background:none;border:0;color:var(--muted);font-size:22px;cursor:pointer;padding:0 4px;line-height:1}
|
||||
.chat-close:hover{color:var(--text)}
|
||||
.chat-msgs{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px}
|
||||
.chat-msg{max-width:88%;padding:10px 13px;border-radius:12px;font-size:13.5px;line-height:1.5;overflow-wrap:break-word}
|
||||
.chat-msg.bot{background:rgba(78,214,203,.08);border:1px solid rgba(78,214,203,.18);color:var(--text);align-self:flex-start;border-bottom-left-radius:4px}
|
||||
.chat-msg.user{background:var(--gold);color:#071421;align-self:flex-end;border-bottom-right-radius:4px}
|
||||
.chat-msg a{color:var(--teal)}
|
||||
.chat-msg.user a{color:#071421}
|
||||
.chat-chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 8px}
|
||||
.chat-chip{font-size:12px;padding:6px 11px;border-radius:999px;background:transparent;border:1px solid var(--line);color:var(--muted);cursor:pointer}
|
||||
.chat-chip:hover{color:var(--text);border-color:var(--teal)}
|
||||
.chat-input{display:flex;gap:8px;padding:12px;border-top:1px solid var(--line)}
|
||||
.chat-input input{flex:1;min-width:0;background:var(--bg);border:1px solid var(--line);border-radius:10px;color:var(--text);padding:9px 12px;font-size:14px}
|
||||
.chat-input input:focus{outline:none;border-color:var(--teal)}
|
||||
.chat-foot{padding:8px 14px 12px;font-size:12px;color:var(--muted);text-align:center}
|
||||
.chat-foot a{color:var(--teal)}
|
||||
.chat-hidden{display:none}
|
||||
|
||||
Reference in New Issue
Block a user