1324 lines
54 KiB
HTML
1324 lines
54 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>💰</text></svg>">
|
|
<title>rWallet.online | Democratic Wallet Management for Communities</title>
|
|
<meta name="description" content="Democratic wallet management for communities. Interactive visualizations for group treasury management — balance rivers, Sankey flow diagrams, and multi-chain analysis from live on-chain data.">
|
|
<style>
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
|
|
:root {
|
|
--primary: #00d4ff;
|
|
--primary-dim: rgba(0, 212, 255, 0.15);
|
|
--accent: #7c3aed;
|
|
--accent-dim: rgba(124, 58, 237, 0.15);
|
|
--bg: #0f0f1a;
|
|
--bg-card: rgba(255, 255, 255, 0.03);
|
|
--border: rgba(255, 255, 255, 0.08);
|
|
--text: #e0e0e0;
|
|
--text-dim: #888;
|
|
--text-faint: #555;
|
|
--green: #34d399;
|
|
--blue: #3b82f6;
|
|
--purple: #a78bfa;
|
|
--orange: #fb923c;
|
|
--red: #f87171;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
min-height: 100vh;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1100px;
|
|
margin: 0 auto;
|
|
padding: 0 24px;
|
|
}
|
|
|
|
/* ─── Hero ─────────────────────────────────────────── */
|
|
|
|
.hero {
|
|
position: relative;
|
|
text-align: center;
|
|
padding: 80px 24px 60px;
|
|
overflow: hidden;
|
|
}
|
|
.hero::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
background: radial-gradient(ellipse 600px 400px at 50% 20%, var(--primary-dim), transparent),
|
|
radial-gradient(ellipse 400px 300px at 80% 80%, var(--accent-dim), transparent);
|
|
z-index: 0;
|
|
}
|
|
.hero > * { position: relative; z-index: 1; }
|
|
|
|
.badge {
|
|
display: inline-block;
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
padding: 5px 14px;
|
|
border-radius: 999px;
|
|
border: 1px solid rgba(0, 212, 255, 0.25);
|
|
background: var(--primary-dim);
|
|
color: var(--primary);
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.hero h1 {
|
|
font-size: clamp(2rem, 5vw, 3.2rem);
|
|
font-weight: 800;
|
|
line-height: 1.15;
|
|
margin-bottom: 18px;
|
|
color: #fff;
|
|
}
|
|
.hero h1 span {
|
|
background: linear-gradient(135deg, var(--primary), var(--accent));
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.hero-sub {
|
|
font-size: 1.15rem;
|
|
color: var(--text-dim);
|
|
max-width: 620px;
|
|
margin: 0 auto 36px;
|
|
line-height: 1.65;
|
|
}
|
|
.hero-sub strong { color: var(--text); }
|
|
|
|
/* ─── Wallet Input ─────────────────────────────────── */
|
|
|
|
.wallet-input-section {
|
|
max-width: 680px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.wallet-input-group {
|
|
display: flex;
|
|
gap: 0;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
border: 2px solid var(--border);
|
|
background: rgba(255, 255, 255, 0.04);
|
|
transition: border-color 0.3s;
|
|
}
|
|
.wallet-input-group:focus-within {
|
|
border-color: rgba(0, 212, 255, 0.5);
|
|
box-shadow: 0 0 30px rgba(0, 212, 255, 0.08);
|
|
}
|
|
|
|
.wallet-input-group input {
|
|
flex: 1;
|
|
padding: 16px 20px;
|
|
background: transparent;
|
|
border: none;
|
|
outline: none;
|
|
color: #fff;
|
|
font-size: 1rem;
|
|
font-family: 'Courier New', monospace;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
.wallet-input-group input::placeholder {
|
|
color: var(--text-faint);
|
|
font-family: 'Segoe UI', system-ui, sans-serif;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
.wallet-input-group button {
|
|
padding: 16px 28px;
|
|
background: linear-gradient(135deg, var(--primary), #0099cc);
|
|
border: none;
|
|
color: #fff;
|
|
font-weight: 700;
|
|
font-size: 1rem;
|
|
cursor: pointer;
|
|
transition: opacity 0.2s;
|
|
white-space: nowrap;
|
|
}
|
|
.wallet-input-group button:hover {
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.input-hint {
|
|
margin-top: 12px;
|
|
font-size: 0.82rem;
|
|
color: var(--text-faint);
|
|
text-align: center;
|
|
}
|
|
.input-hint a {
|
|
color: var(--primary);
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
}
|
|
.input-hint a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.input-error {
|
|
color: var(--red);
|
|
font-size: 0.85rem;
|
|
margin-top: 8px;
|
|
text-align: center;
|
|
display: none;
|
|
}
|
|
|
|
/* ─── Section headings ─────────────────────────────── */
|
|
|
|
section {
|
|
padding: 60px 0;
|
|
}
|
|
|
|
.section-header {
|
|
text-align: center;
|
|
margin-bottom: 40px;
|
|
}
|
|
.section-header h2 {
|
|
font-size: 1.8rem;
|
|
font-weight: 700;
|
|
margin-bottom: 10px;
|
|
color: #fff;
|
|
}
|
|
.section-header p {
|
|
color: var(--text-dim);
|
|
font-size: 1.05rem;
|
|
max-width: 560px;
|
|
margin: 0 auto;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* ─── ELI5 Cards ──────────────────────────────────── */
|
|
|
|
.eli5-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.eli5-card {
|
|
padding: 28px;
|
|
border-radius: 14px;
|
|
border: 2px solid;
|
|
}
|
|
.eli5-card.multi-chain {
|
|
border-color: rgba(59, 130, 246, 0.35);
|
|
background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.02));
|
|
}
|
|
.eli5-card.transparent {
|
|
border-color: rgba(52, 211, 153, 0.35);
|
|
background: linear-gradient(135deg, rgba(52, 211, 153, 0.08), rgba(52, 211, 153, 0.02));
|
|
}
|
|
.eli5-card.visual {
|
|
border-color: rgba(167, 139, 250, 0.35);
|
|
background: linear-gradient(135deg, rgba(167, 139, 250, 0.08), rgba(167, 139, 250, 0.02));
|
|
}
|
|
|
|
.eli5-card .icon-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 12px;
|
|
}
|
|
.eli5-card .icon-circle {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.1rem;
|
|
color: #fff;
|
|
flex-shrink: 0;
|
|
}
|
|
.eli5-card.multi-chain .icon-circle { background: var(--blue); }
|
|
.eli5-card.transparent .icon-circle { background: var(--green); }
|
|
.eli5-card.visual .icon-circle { background: var(--purple); }
|
|
|
|
.eli5-card h3 {
|
|
font-size: 1.1rem;
|
|
font-weight: 700;
|
|
}
|
|
.eli5-card.multi-chain h3 { color: var(--blue); }
|
|
.eli5-card.transparent h3 { color: var(--green); }
|
|
.eli5-card.visual h3 { color: var(--purple); }
|
|
|
|
.eli5-card p {
|
|
font-size: 0.9rem;
|
|
color: var(--text-dim);
|
|
line-height: 1.6;
|
|
}
|
|
.eli5-card p strong {
|
|
display: block;
|
|
margin-top: 8px;
|
|
color: var(--text);
|
|
}
|
|
|
|
/* ─── Visualization Cards ─────────────────────────── */
|
|
|
|
.viz-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 24px;
|
|
}
|
|
|
|
.viz-card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: 16px;
|
|
padding: 32px;
|
|
transition: all 0.3s ease;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.viz-card:hover {
|
|
background: rgba(255, 255, 255, 0.06);
|
|
border-color: rgba(0, 212, 255, 0.3);
|
|
transform: translateY(-4px);
|
|
box-shadow: 0 12px 40px rgba(0, 212, 255, 0.08);
|
|
}
|
|
|
|
.viz-card .viz-icon {
|
|
font-size: 2.5rem;
|
|
margin-bottom: 14px;
|
|
}
|
|
.viz-card h3 {
|
|
color: var(--primary);
|
|
font-size: 1.3rem;
|
|
margin-bottom: 10px;
|
|
}
|
|
.viz-card p {
|
|
color: var(--text-dim);
|
|
line-height: 1.6;
|
|
font-size: 0.92rem;
|
|
flex: 1;
|
|
}
|
|
.viz-card .feature-list {
|
|
margin-top: 16px;
|
|
padding-top: 16px;
|
|
border-top: 1px solid var(--border);
|
|
list-style: none;
|
|
}
|
|
.viz-card .feature-list li {
|
|
color: var(--text-faint);
|
|
font-size: 0.83rem;
|
|
margin-bottom: 5px;
|
|
padding-left: 18px;
|
|
position: relative;
|
|
}
|
|
.viz-card .feature-list li::before {
|
|
content: "\2192";
|
|
position: absolute;
|
|
left: 0;
|
|
color: var(--primary);
|
|
}
|
|
|
|
/* ─── Supported Chains ─────────────────────────────── */
|
|
|
|
.chains-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
gap: 16px;
|
|
}
|
|
.chain-pill {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 18px;
|
|
border-radius: 999px;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
font-size: 0.88rem;
|
|
font-weight: 500;
|
|
color: var(--text-dim);
|
|
transition: border-color 0.2s, background 0.2s;
|
|
}
|
|
.chain-pill:hover {
|
|
border-color: rgba(255, 255, 255, 0.2);
|
|
background: rgba(255, 255, 255, 0.06);
|
|
}
|
|
.chain-dot {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* ─── Demo CTA ─────────────────────────────────────── */
|
|
|
|
.demo-section {
|
|
position: relative;
|
|
border-radius: 20px;
|
|
border: 2px solid rgba(0, 212, 255, 0.2);
|
|
background: linear-gradient(135deg, var(--primary-dim), var(--accent-dim));
|
|
padding: 60px 40px;
|
|
text-align: center;
|
|
overflow: hidden;
|
|
}
|
|
.demo-section::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: -60px;
|
|
right: -60px;
|
|
width: 200px;
|
|
height: 200px;
|
|
background: var(--primary-dim);
|
|
border-radius: 50%;
|
|
filter: blur(60px);
|
|
}
|
|
.demo-section::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -60px;
|
|
left: -60px;
|
|
width: 200px;
|
|
height: 200px;
|
|
background: var(--accent-dim);
|
|
border-radius: 50%;
|
|
filter: blur(60px);
|
|
}
|
|
.demo-section > * { position: relative; z-index: 1; }
|
|
.demo-section h2 {
|
|
font-size: 1.6rem;
|
|
color: #fff;
|
|
margin-bottom: 12px;
|
|
}
|
|
.demo-section p {
|
|
color: var(--text-dim);
|
|
font-size: 1.05rem;
|
|
max-width: 500px;
|
|
margin: 0 auto 28px;
|
|
line-height: 1.6;
|
|
}
|
|
.demo-section .demo-address {
|
|
font-family: 'Courier New', monospace;
|
|
font-size: 0.8rem;
|
|
color: var(--text-faint);
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.btn-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
gap: 14px;
|
|
}
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 14px 28px;
|
|
border-radius: 10px;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
transition: all 0.2s;
|
|
cursor: pointer;
|
|
border: none;
|
|
}
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, var(--primary), #0099cc);
|
|
color: #fff;
|
|
}
|
|
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }
|
|
.btn-outline {
|
|
background: transparent;
|
|
border: 1.5px solid rgba(0, 212, 255, 0.3);
|
|
color: var(--primary);
|
|
}
|
|
.btn-outline:hover {
|
|
background: var(--primary-dim);
|
|
border-color: rgba(0, 212, 255, 0.5);
|
|
}
|
|
|
|
/* ─── How It Works ─────────────────────────────────── */
|
|
|
|
.steps-row {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 20px;
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
}
|
|
@media (max-width: 640px) {
|
|
.steps-row { grid-template-columns: repeat(2, 1fr); }
|
|
}
|
|
|
|
.step {
|
|
text-align: center;
|
|
padding: 24px;
|
|
}
|
|
.step-number {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, var(--primary), var(--accent));
|
|
color: #fff;
|
|
font-weight: 700;
|
|
font-size: 1.1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0 auto 14px;
|
|
}
|
|
.step h3 {
|
|
font-size: 1.05rem;
|
|
margin-bottom: 8px;
|
|
color: #fff;
|
|
}
|
|
.step p {
|
|
font-size: 0.88rem;
|
|
color: var(--text-dim);
|
|
line-height: 1.55;
|
|
}
|
|
|
|
/* ─── Footer ──────────────────────────────────────── */
|
|
|
|
footer {
|
|
text-align: center;
|
|
padding: 40px 24px;
|
|
color: var(--text-faint);
|
|
font-size: 0.82rem;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
footer a {
|
|
color: var(--primary);
|
|
text-decoration: none;
|
|
}
|
|
footer a:hover { text-decoration: underline; }
|
|
footer .footer-links {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 20px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 10px;
|
|
}
|
|
footer .footer-sep {
|
|
color: var(--border);
|
|
}
|
|
|
|
/* ─── AppSwitcher ─────────────────────────────────── */
|
|
|
|
.app-switcher {
|
|
position: relative;
|
|
}
|
|
|
|
.app-switcher-trigger {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.375rem 0.625rem;
|
|
border-radius: 0.5rem;
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: #cbd5e1;
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
white-space: nowrap;
|
|
}
|
|
.app-switcher-trigger:hover {
|
|
background: rgba(255, 255, 255, 0.12);
|
|
}
|
|
|
|
.app-switcher-badge {
|
|
width: 1.5rem;
|
|
height: 1.5rem;
|
|
border-radius: 0.375rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 10px;
|
|
font-weight: 900;
|
|
color: #0f172a;
|
|
line-height: 1;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.app-switcher-arrow {
|
|
font-size: 0.7em;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.app-switcher-dropdown {
|
|
display: none;
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
margin-top: 0.375rem;
|
|
width: 300px;
|
|
max-height: 70vh;
|
|
overflow-y: auto;
|
|
border-radius: 0.75rem;
|
|
background: #1e293b;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
|
|
z-index: 9999;
|
|
}
|
|
.app-switcher-dropdown.open {
|
|
display: block;
|
|
}
|
|
|
|
.app-switcher-dropdown::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
.app-switcher-dropdown::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
.app-switcher-dropdown::-webkit-scrollbar-thumb {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.app-switcher-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.625rem;
|
|
padding: 0.75rem 0.875rem;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.app-switcher-header-badge {
|
|
width: 1.75rem;
|
|
height: 1.75rem;
|
|
border-radius: 0.5rem;
|
|
background: linear-gradient(135deg, #67e8f9, #c4b5fd, #fda4af);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 11px;
|
|
font-weight: 900;
|
|
color: #0f172a;
|
|
line-height: 1;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.app-switcher-header-text {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.app-switcher-header-title {
|
|
font-size: 0.875rem;
|
|
font-weight: 700;
|
|
color: #fff;
|
|
}
|
|
.app-switcher-header-sub {
|
|
font-size: 10px;
|
|
color: #94a3b8;
|
|
}
|
|
|
|
.app-switcher-category {
|
|
padding: 0.75rem 0.875rem 0.25rem;
|
|
font-size: 0.6rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
color: #64748b;
|
|
user-select: none;
|
|
}
|
|
|
|
.app-switcher-item {
|
|
display: flex;
|
|
align-items: center;
|
|
transition: background 0.15s;
|
|
}
|
|
.app-switcher-item:hover {
|
|
background: rgba(255, 255, 255, 0.04);
|
|
}
|
|
.app-switcher-item.current {
|
|
background: rgba(255, 255, 255, 0.07);
|
|
}
|
|
|
|
.app-switcher-item a {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.625rem;
|
|
flex: 1;
|
|
padding: 0.5rem 0.875rem;
|
|
color: #cbd5e1;
|
|
text-decoration: none;
|
|
min-width: 0;
|
|
}
|
|
|
|
.app-switcher-item-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
.app-switcher-item-name {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.375rem;
|
|
}
|
|
.app-switcher-item-name span:first-child {
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
}
|
|
.app-switcher-item-name span:last-child {
|
|
font-size: 0.875rem;
|
|
flex-shrink: 0;
|
|
}
|
|
.app-switcher-item-desc {
|
|
font-size: 11px;
|
|
color: #94a3b8;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.app-switcher-item .app-switcher-ext {
|
|
width: 2rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 0.75rem;
|
|
color: #22d3ee;
|
|
opacity: 0;
|
|
transition: opacity 0.15s;
|
|
flex-shrink: 0;
|
|
text-decoration: none;
|
|
}
|
|
.app-switcher-item:hover .app-switcher-ext {
|
|
opacity: 0.5;
|
|
}
|
|
.app-switcher-item .app-switcher-ext:hover {
|
|
opacity: 1 !important;
|
|
}
|
|
|
|
.app-switcher-footer {
|
|
padding: 0.625rem 0.875rem;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.08);
|
|
text-align: center;
|
|
}
|
|
.app-switcher-footer a {
|
|
font-size: 11px;
|
|
color: #64748b;
|
|
text-decoration: none;
|
|
transition: color 0.15s;
|
|
}
|
|
.app-switcher-footer a:hover {
|
|
color: #22d3ee;
|
|
}
|
|
|
|
/* badge colors */
|
|
.badge-teal { background: #5eead4; }
|
|
.badge-amber { background: #fcd34d; }
|
|
.badge-rose { background: #fda4af; }
|
|
.badge-sky { background: #7dd3fc; }
|
|
.badge-emerald { background: #6ee7b7; }
|
|
.badge-green { background: #86efac; }
|
|
.badge-indigo { background: #a5b4fc; }
|
|
.badge-fuchsia { background: #f0abfc; }
|
|
.badge-violet { background: #c4b5fd; }
|
|
.badge-lime { background: #bef264; }
|
|
.badge-yellow { background: #fde047; }
|
|
.badge-orange { background: #fdba74; }
|
|
.badge-red { background: #fca5a5; }
|
|
.badge-blue { background: #93c5fd; }
|
|
.badge-cyan { background: #67e8f9; }
|
|
.badge-pink { background: #f9a8d4; }
|
|
.badge-purple { background: #d8b4fe; }
|
|
|
|
/* ─── Responsive ──────────────────────────────────── */
|
|
|
|
@media (max-width: 640px) {
|
|
.hero { padding: 50px 16px 40px; }
|
|
.wallet-input-group { flex-direction: column; }
|
|
.wallet-input-group input { text-align: center; }
|
|
.wallet-input-group button { padding: 14px; }
|
|
.demo-section { padding: 40px 20px; }
|
|
.btn-row { flex-direction: column; align-items: center; }
|
|
.app-switcher-trigger .app-switcher-label { display: none; }
|
|
.app-switcher-dropdown { width: 280px; }
|
|
}
|
|
</style>
|
|
<script defer src="https://rdata.online/collect.js" data-website-id="331bdc06-0bd0-4538-a7cd-e79ba428a876"></script>
|
|
</head>
|
|
<body>
|
|
|
|
<!-- Nav -->
|
|
<nav style="border-bottom:1px solid var(--border);padding:1rem 0;">
|
|
<div class="container" style="display:flex;align-items:center;justify-content:space-between;">
|
|
<!-- AppSwitcher -->
|
|
<div class="app-switcher" id="app-switcher">
|
|
<button class="app-switcher-trigger" id="app-switcher-trigger">
|
|
<span class="app-switcher-badge badge-yellow">rW</span>
|
|
<span class="app-switcher-label">rWallet</span>
|
|
<span class="app-switcher-arrow">▾</span>
|
|
</button>
|
|
<div class="app-switcher-dropdown" id="app-switcher-dropdown">
|
|
<!-- Header -->
|
|
<div class="app-switcher-header">
|
|
<span class="app-switcher-header-badge">r*</span>
|
|
<div class="app-switcher-header-text">
|
|
<div class="app-switcher-header-title">rStack</div>
|
|
<div class="app-switcher-header-sub">Self-hosted community app suite</div>
|
|
</div>
|
|
</div>
|
|
<!-- Creating -->
|
|
<div class="app-switcher-category">Creating</div>
|
|
<div class="app-switcher-item">
|
|
<a href="https://rspace.online">
|
|
<span class="app-switcher-badge badge-teal">rS</span>
|
|
<div class="app-switcher-item-info">
|
|
<div class="app-switcher-item-name"><span>rSpace</span><span>🎨</span></div>
|
|
<div class="app-switcher-item-desc">Real-time collaborative canvas</div>
|
|
</div>
|
|
</a>
|
|
<a href="https://rspace.online" target="_blank" rel="noopener noreferrer" class="app-switcher-ext" title="rspace.online">↗</a>
|
|
</div>
|
|
<div class="app-switcher-item">
|
|
<a href="https://rnotes.online">
|
|
<span class="app-switcher-badge badge-amber">rN</span>
|
|
<div class="app-switcher-item-info">
|
|
<div class="app-switcher-item-name"><span>rNotes</span><span>📝</span></div>
|
|
<div class="app-switcher-item-desc">Group note-taking & knowledge capture</div>
|
|
</div>
|
|
</a>
|
|
<a href="https://rnotes.online" target="_blank" rel="noopener noreferrer" class="app-switcher-ext" title="rnotes.online">↗</a>
|
|
</div>
|
|
<div class="app-switcher-item">
|
|
<a href="https://rpubs.online">
|
|
<span class="app-switcher-badge badge-rose">rP</span>
|
|
<div class="app-switcher-item-info">
|
|
<div class="app-switcher-item-name"><span>rPubs</span><span>📰</span></div>
|
|
<div class="app-switcher-item-desc">Collaborative publishing platform</div>
|
|
</div>
|
|
</a>
|
|
<a href="https://rpubs.online" target="_blank" rel="noopener noreferrer" class="app-switcher-ext" title="rpubs.online">↗</a>
|
|
</div>
|
|
<!-- Planning -->
|
|
<div class="app-switcher-category">Planning</div>
|
|
<div class="app-switcher-item">
|
|
<a href="https://rcal.online">
|
|
<span class="app-switcher-badge badge-sky">rC</span>
|
|
<div class="app-switcher-item-info">
|
|
<div class="app-switcher-item-name"><span>rCal</span><span>📅</span></div>
|
|
<div class="app-switcher-item-desc">Collaborative scheduling & events</div>
|
|
</div>
|
|
</a>
|
|
<a href="https://rcal.online" target="_blank" rel="noopener noreferrer" class="app-switcher-ext" title="rcal.online">↗</a>
|
|
</div>
|
|
<div class="app-switcher-item">
|
|
<a href="https://rtrips.online">
|
|
<span class="app-switcher-badge badge-emerald">rT</span>
|
|
<div class="app-switcher-item-info">
|
|
<div class="app-switcher-item-name"><span>rTrips</span><span>✈️</span></div>
|
|
<div class="app-switcher-item-desc">Group travel planning in real time</div>
|
|
</div>
|
|
</a>
|
|
<a href="https://rtrips.online" target="_blank" rel="noopener noreferrer" class="app-switcher-ext" title="rtrips.online">↗</a>
|
|
</div>
|
|
<div class="app-switcher-item">
|
|
<a href="https://rmaps.online">
|
|
<span class="app-switcher-badge badge-green">rM</span>
|
|
<div class="app-switcher-item-info">
|
|
<div class="app-switcher-item-name"><span>rMaps</span><span>🗺️</span></div>
|
|
<div class="app-switcher-item-desc">Collaborative real-time mapping</div>
|
|
</div>
|
|
</a>
|
|
<a href="https://rmaps.online" target="_blank" rel="noopener noreferrer" class="app-switcher-ext" title="rmaps.online">↗</a>
|
|
</div>
|
|
<!-- Discussing & Deciding -->
|
|
<div class="app-switcher-category">Discussing & Deciding</div>
|
|
<div class="app-switcher-item">
|
|
<a href="https://rinbox.online">
|
|
<span class="app-switcher-badge badge-indigo">rI</span>
|
|
<div class="app-switcher-item-info">
|
|
<div class="app-switcher-item-name"><span>rInbox</span><span>📬</span></div>
|
|
<div class="app-switcher-item-desc">Private group messaging</div>
|
|
</div>
|
|
</a>
|
|
<a href="https://rinbox.online" target="_blank" rel="noopener noreferrer" class="app-switcher-ext" title="rinbox.online">↗</a>
|
|
</div>
|
|
<div class="app-switcher-item">
|
|
<a href="https://rchoices.online">
|
|
<span class="app-switcher-badge badge-fuchsia">rCh</span>
|
|
<div class="app-switcher-item-info">
|
|
<div class="app-switcher-item-name"><span>rChoices</span><span>🔀</span></div>
|
|
<div class="app-switcher-item-desc">Collaborative decision making</div>
|
|
</div>
|
|
</a>
|
|
<a href="https://rchoices.online" target="_blank" rel="noopener noreferrer" class="app-switcher-ext" title="rchoices.online">↗</a>
|
|
</div>
|
|
<div class="app-switcher-item">
|
|
<a href="https://rvote.online">
|
|
<span class="app-switcher-badge badge-violet">rV</span>
|
|
<div class="app-switcher-item-info">
|
|
<div class="app-switcher-item-name"><span>rVote</span><span>🗳️</span></div>
|
|
<div class="app-switcher-item-desc">Real-time polls & governance</div>
|
|
</div>
|
|
</a>
|
|
<a href="https://rvote.online" target="_blank" rel="noopener noreferrer" class="app-switcher-ext" title="rvote.online">↗</a>
|
|
</div>
|
|
<!-- Funding & Commerce -->
|
|
<div class="app-switcher-category">Funding & Commerce</div>
|
|
<div class="app-switcher-item">
|
|
<a href="https://rfunds.online">
|
|
<span class="app-switcher-badge badge-lime">rF</span>
|
|
<div class="app-switcher-item-info">
|
|
<div class="app-switcher-item-name"><span>rFunds</span><span>💸</span></div>
|
|
<div class="app-switcher-item-desc">Collaborative fundraising & grants</div>
|
|
</div>
|
|
</a>
|
|
<a href="https://rfunds.online" target="_blank" rel="noopener noreferrer" class="app-switcher-ext" title="rfunds.online">↗</a>
|
|
</div>
|
|
<div class="app-switcher-item current">
|
|
<a href="https://rwallet.online">
|
|
<span class="app-switcher-badge badge-yellow">rW</span>
|
|
<div class="app-switcher-item-info">
|
|
<div class="app-switcher-item-name"><span>rWallet</span><span>💰</span></div>
|
|
<div class="app-switcher-item-desc">Multi-chain crypto wallet</div>
|
|
</div>
|
|
</a>
|
|
<a href="https://rwallet.online" target="_blank" rel="noopener noreferrer" class="app-switcher-ext" title="rwallet.online">↗</a>
|
|
</div>
|
|
<div class="app-switcher-item">
|
|
<a href="https://rcart.online">
|
|
<span class="app-switcher-badge badge-orange">rCt</span>
|
|
<div class="app-switcher-item-info">
|
|
<div class="app-switcher-item-name"><span>rCart</span><span>🛒</span></div>
|
|
<div class="app-switcher-item-desc">Group commerce & shared shopping</div>
|
|
</div>
|
|
</a>
|
|
<a href="https://rcart.online" target="_blank" rel="noopener noreferrer" class="app-switcher-ext" title="rcart.online">↗</a>
|
|
</div>
|
|
<div class="app-switcher-item">
|
|
<a href="https://rauctions.online">
|
|
<span class="app-switcher-badge badge-red">rA</span>
|
|
<div class="app-switcher-item-info">
|
|
<div class="app-switcher-item-name"><span>rAuctions</span><span>🔨</span></div>
|
|
<div class="app-switcher-item-desc">Live auction platform</div>
|
|
</div>
|
|
</a>
|
|
<a href="https://rauctions.online" target="_blank" rel="noopener noreferrer" class="app-switcher-ext" title="rauctions.online">↗</a>
|
|
</div>
|
|
<!-- Social & Sharing -->
|
|
<div class="app-switcher-category">Social & Sharing</div>
|
|
<div class="app-switcher-item">
|
|
<a href="https://rnetwork.online">
|
|
<span class="app-switcher-badge badge-blue">rNe</span>
|
|
<div class="app-switcher-item-info">
|
|
<div class="app-switcher-item-name"><span>rNetwork</span><span>🌐</span></div>
|
|
<div class="app-switcher-item-desc">Community network & social graph</div>
|
|
</div>
|
|
</a>
|
|
<a href="https://rnetwork.online" target="_blank" rel="noopener noreferrer" class="app-switcher-ext" title="rnetwork.online">↗</a>
|
|
</div>
|
|
<div class="app-switcher-item">
|
|
<a href="https://rfiles.online">
|
|
<span class="app-switcher-badge badge-cyan">rFi</span>
|
|
<div class="app-switcher-item-info">
|
|
<div class="app-switcher-item-name"><span>rFiles</span><span>📁</span></div>
|
|
<div class="app-switcher-item-desc">Collaborative file storage</div>
|
|
</div>
|
|
</a>
|
|
<a href="https://rfiles.online" target="_blank" rel="noopener noreferrer" class="app-switcher-ext" title="rfiles.online">↗</a>
|
|
</div>
|
|
<div class="app-switcher-item">
|
|
<a href="https://rtube.online">
|
|
<span class="app-switcher-badge badge-pink">rTu</span>
|
|
<div class="app-switcher-item-info">
|
|
<div class="app-switcher-item-name"><span>rTube</span><span>🎬</span></div>
|
|
<div class="app-switcher-item-desc">Group video platform</div>
|
|
</div>
|
|
</a>
|
|
<a href="https://rtube.online" target="_blank" rel="noopener noreferrer" class="app-switcher-ext" title="rtube.online">↗</a>
|
|
</div>
|
|
<div class="app-switcher-item">
|
|
<a href="https://rdata.online">
|
|
<span class="app-switcher-badge badge-purple">rD</span>
|
|
<div class="app-switcher-item-info">
|
|
<div class="app-switcher-item-name"><span>rData</span><span>📊</span></div>
|
|
<div class="app-switcher-item-desc">Analytics & insights dashboard</div>
|
|
</div>
|
|
</a>
|
|
<a href="https://rdata.online" target="_blank" rel="noopener noreferrer" class="app-switcher-ext" title="rdata.online">↗</a>
|
|
</div>
|
|
<!-- Footer -->
|
|
<div class="app-switcher-footer">
|
|
<a href="https://rstack.online">rstack.online — self-hosted, community-run</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div style="display:flex;align-items:center;gap:1rem;">
|
|
<a href="#" id="nav-demo-link" style="color:var(--text-dim);text-decoration:none;font-size:0.875rem;">Demo</a>
|
|
<a href="#" onclick="document.getElementById('wallet-input').focus();return false;" style="color:var(--text-dim);text-decoration:none;font-size:0.875rem;">Explore Wallet</a>
|
|
<span id="encryptid-auth" style="display:inline-block;"></span>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<!-- Hero -->
|
|
<section class="hero">
|
|
<div class="badge">Part of the rSpace Ecosystem</div>
|
|
<h1><span>Democratic Wallet Management</span><br>for Communities</h1>
|
|
<p class="hero-sub">
|
|
Interactive visualizations for <strong>group treasury management</strong>.
|
|
Explore any Safe multi-sig wallet with balance rivers, Sankey flow diagrams,
|
|
and multi-chain analysis — all from <strong>live on-chain data</strong>.
|
|
</p>
|
|
|
|
<!-- Wallet Input -->
|
|
<div class="wallet-input-section">
|
|
<div class="wallet-input-group">
|
|
<input type="text" id="wallet-input" placeholder="Enter a Safe wallet address (0x...)"
|
|
spellcheck="false" autocomplete="off" />
|
|
<button id="explore-btn">Explore Wallet</button>
|
|
</div>
|
|
<p class="input-error" id="input-error">Please enter a valid Ethereum address (0x followed by 40 hex characters).</p>
|
|
<p class="input-hint">
|
|
Or try the demo:
|
|
<a id="demo-link" href="#">TEC Commons Fund on Gnosis</a>
|
|
</p>
|
|
</div>
|
|
</section>
|
|
|
|
<div class="container">
|
|
|
|
<!-- ELI5 -->
|
|
<section>
|
|
<div class="section-header">
|
|
<div class="badge" style="border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); color: var(--text-dim);">ELI5</div>
|
|
<h2>rWallet in 30 Seconds</h2>
|
|
<p>
|
|
A <strong style="color: var(--blue);">multi-chain</strong>,
|
|
<strong style="color: var(--green);">transparent</strong>,
|
|
<strong style="color: var(--purple);">visual</strong>
|
|
wallet explorer built for community treasuries.
|
|
</p>
|
|
</div>
|
|
|
|
<div class="eli5-grid">
|
|
<div class="eli5-card multi-chain">
|
|
<div class="icon-row">
|
|
<div class="icon-circle">🌐</div>
|
|
<h3>Multi-Chain</h3>
|
|
</div>
|
|
<p>
|
|
Automatically detects your Safe across Ethereum, Gnosis, Polygon, Base, Optimism, Arbitrum, and Avalanche.
|
|
<strong>See all activity in one place.</strong>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="eli5-card transparent">
|
|
<div class="icon-row">
|
|
<div class="icon-circle">🔍</div>
|
|
<h3>Transparent</h3>
|
|
</div>
|
|
<p>
|
|
Real-time data fetched directly from the Safe Transaction Service API. No intermediaries, nothing hidden.
|
|
<strong>Verify every transaction yourself.</strong>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="eli5-card visual">
|
|
<div class="icon-row">
|
|
<div class="icon-circle">📊</div>
|
|
<h3>Visual</h3>
|
|
</div>
|
|
<p>
|
|
Interactive D3.js visualizations: Balance River timelines, Sankey flow diagrams, and cross-chain analysis.
|
|
<strong>Understand flows at a glance.</strong>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- How It Works -->
|
|
<section>
|
|
<div class="section-header">
|
|
<div class="badge">How It Works</div>
|
|
<h2>From Address to Insight</h2>
|
|
</div>
|
|
|
|
<div class="steps-row">
|
|
<div class="step">
|
|
<div class="step-number">1</div>
|
|
<h3>Enter Address</h3>
|
|
<p>Paste any Safe multi-sig wallet address. rWallet checks all supported chains in parallel.</p>
|
|
</div>
|
|
<div class="step">
|
|
<div class="step-number">2</div>
|
|
<h3>Fetch Live Data</h3>
|
|
<p>Transactions, balances, and transfers are pulled directly from the Safe Global API — no backend needed.</p>
|
|
</div>
|
|
<div class="step">
|
|
<div class="step-number">3</div>
|
|
<h3>Visualize</h3>
|
|
<p>Choose from three interactive visualization modes to understand fund flows, balances over time, and cross-chain activity.</p>
|
|
</div>
|
|
<div class="step">
|
|
<div class="step-number">4</div>
|
|
<h3>Share & Verify</h3>
|
|
<p>Every view has a shareable deep-link. Anyone can verify the data independently — full transparency.</p>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Visualization Types -->
|
|
<section>
|
|
<div class="section-header">
|
|
<h2>Three Ways to Explore</h2>
|
|
<p>Each visualization reveals different aspects of your wallet's activity.</p>
|
|
</div>
|
|
|
|
<div class="viz-grid">
|
|
<a href="wallet-timeline-visualization.html" class="viz-card" id="viz-timeline">
|
|
<div class="viz-icon">🌊</div>
|
|
<h3>Balance River Timeline</h3>
|
|
<p>Watch funds flow through the wallet over time. The river thickness represents balance, with inflows and outflows color-coded for instant comprehension.</p>
|
|
<ul class="feature-list">
|
|
<li>Scroll to zoom into time periods</li>
|
|
<li>Drag or shift-scroll to pan through history</li>
|
|
<li>Hover the river for balance at any point</li>
|
|
<li>Flow width proportional to transaction size</li>
|
|
</ul>
|
|
</a>
|
|
|
|
<a href="wallet-multichain-visualization.html" class="viz-card" id="viz-multichain">
|
|
<div class="viz-icon">🔗</div>
|
|
<h3>Multi-Chain Flow Analysis</h3>
|
|
<p>See fund flows across all detected chains in one view. Filter by chain to drill into Gnosis, Ethereum, Base, or any other active network.</p>
|
|
<ul class="feature-list">
|
|
<li>Auto-detects chains with Safe deployments</li>
|
|
<li>Interactive chain filtering</li>
|
|
<li>Flow diagram with address-level detail</li>
|
|
<li>Stats breakdown by direction</li>
|
|
</ul>
|
|
</a>
|
|
|
|
<a href="wallet-visualization.html" class="viz-card" id="viz-sankey">
|
|
<div class="viz-icon">📊</div>
|
|
<h3>Single-Chain Sankey</h3>
|
|
<p>Classic Sankey diagram showing the complete flow of funds on a single chain. Nodes represent addresses, links represent value transferred.</p>
|
|
<ul class="feature-list">
|
|
<li>Per-chain Sankey flow diagram</li>
|
|
<li>Address-level fund flow breakdown</li>
|
|
<li>Chain selector for multi-chain wallets</li>
|
|
<li>Transaction details on hover</li>
|
|
</ul>
|
|
</a>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Supported Chains -->
|
|
<section>
|
|
<div class="section-header">
|
|
<h2>Supported Chains</h2>
|
|
<p>rWallet auto-detects Safe deployments across these networks.</p>
|
|
</div>
|
|
|
|
<div class="chains-row">
|
|
<div class="chain-pill">
|
|
<span class="chain-dot" style="background: #627eea;"></span>
|
|
Ethereum
|
|
</div>
|
|
<div class="chain-pill">
|
|
<span class="chain-dot" style="background: #ff0420;"></span>
|
|
Optimism
|
|
</div>
|
|
<div class="chain-pill">
|
|
<span class="chain-dot" style="background: #04795b;"></span>
|
|
Gnosis
|
|
</div>
|
|
<div class="chain-pill">
|
|
<span class="chain-dot" style="background: #8247e5;"></span>
|
|
Polygon
|
|
</div>
|
|
<div class="chain-pill">
|
|
<span class="chain-dot" style="background: #0052ff;"></span>
|
|
Base
|
|
</div>
|
|
<div class="chain-pill">
|
|
<span class="chain-dot" style="background: #28a0f0;"></span>
|
|
Arbitrum
|
|
</div>
|
|
<div class="chain-pill">
|
|
<span class="chain-dot" style="background: #e84142;"></span>
|
|
Avalanche
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Demo CTA -->
|
|
<section>
|
|
<div class="demo-section">
|
|
<div class="badge">Live Demo</div>
|
|
<h2>See It in Action</h2>
|
|
<p>
|
|
Explore the TEC Commons Fund — a real multi-chain Safe wallet
|
|
managing community funds on Gnosis and beyond.
|
|
</p>
|
|
<div class="btn-row">
|
|
<a href="wallet-timeline-visualization.html?address=0x29567BdBcC92aCF37AC6B56B69180857bB69f7D1" class="btn btn-primary">
|
|
🌊 Balance River
|
|
</a>
|
|
<a href="wallet-multichain-visualization.html?address=0x29567BdBcC92aCF37AC6B56B69180857bB69f7D1" class="btn btn-outline">
|
|
🔗 Multi-Chain Flow
|
|
</a>
|
|
<a href="wallet-visualization.html?address=0x29567BdBcC92aCF37AC6B56B69180857bB69f7D1&chainId=100" class="btn btn-outline">
|
|
📊 Gnosis Sankey
|
|
</a>
|
|
</div>
|
|
<p class="demo-address">0x29567BdBcC92aCF37AC6B56B69180857bB69f7D1</p>
|
|
</div>
|
|
</section>
|
|
|
|
</div>
|
|
|
|
<!-- Footer -->
|
|
<footer>
|
|
<div class="footer-links" style="gap:12px;margin-bottom:16px;">
|
|
<span style="font-weight:500;color:var(--text-dim);">r* Ecosystem</span>
|
|
<a href="https://rspace.online">rSpace</a>
|
|
<a href="https://rmaps.online">rMaps</a>
|
|
<a href="https://rnotes.online">rNotes</a>
|
|
<a href="https://rvote.online">rVote</a>
|
|
<a href="https://rfunds.online">rFunds</a>
|
|
<a href="https://rtrips.online">rTrips</a>
|
|
<a href="https://rcart.online">rCart</a>
|
|
<a href="https://rchoices.online">rChoices</a>
|
|
<a href="https://rwallet.online" style="color:var(--primary);">rWallet</a>
|
|
<a href="https://rfiles.online">rFiles</a>
|
|
<a href="https://rtube.online">rTube</a>
|
|
<a href="https://rcal.online">rCal</a>
|
|
<a href="https://rnetwork.online">rNetwork</a>
|
|
<a href="https://rinbox.online">rInbox</a>
|
|
<a href="https://rstack.online">rStack</a>
|
|
<a href="https://rauctions.online">rAuctions</a>
|
|
<a href="https://rpubs.online">rPubs</a>
|
|
<a href="https://rdata.online">rData</a>
|
|
</div>
|
|
<p>Part of the r* ecosystem — collaborative tools for communities.</p>
|
|
</footer>
|
|
|
|
<script src="js/encryptid.browser.js"></script>
|
|
<script src="js/encryptid.js"></script>
|
|
<script>
|
|
// ─── EncryptID Auth ────────────────────────────────────────
|
|
EncryptID.renderAuthButton('encryptid-auth');
|
|
|
|
// If redirected from a visualization page that requires auth, show a message
|
|
const urlParams = new URLSearchParams(window.location.search);
|
|
if (urlParams.get('login') === 'required') {
|
|
const returnUrl = urlParams.get('return');
|
|
const banner = document.createElement('div');
|
|
banner.style.cssText = 'background:#1e293b;border:1px solid var(--primary);border-radius:12px;padding:16px;margin-bottom:16px;text-align:center;color:#94a3b8;font-size:0.9rem;';
|
|
banner.innerHTML = 'Please sign in with EncryptID to access wallet visualizations.';
|
|
const authContainer = document.getElementById('encryptid-auth');
|
|
if (authContainer) authContainer.parentNode.insertBefore(banner, authContainer);
|
|
|
|
// After successful auth, redirect back
|
|
const checkAuth = setInterval(() => {
|
|
if (EncryptID.isAuthenticated() && returnUrl) {
|
|
clearInterval(checkAuth);
|
|
window.location.href = decodeURIComponent(returnUrl);
|
|
}
|
|
}, 500);
|
|
}
|
|
|
|
// ─── Wallet Input Logic ────────────────────────────────────
|
|
const DEMO_ADDRESS = '0x29567BdBcC92aCF37AC6B56B69180857bB69f7D1';
|
|
|
|
const input = document.getElementById('wallet-input');
|
|
const btn = document.getElementById('explore-btn');
|
|
const error = document.getElementById('input-error');
|
|
const demoLink = document.getElementById('demo-link');
|
|
const navDemoLink = document.getElementById('nav-demo-link');
|
|
if (navDemoLink) {
|
|
navDemoLink.addEventListener('click', function(e) {
|
|
e.preventDefault();
|
|
input.value = DEMO_ADDRESS;
|
|
window.location.href = '/wallet/' + DEMO_ADDRESS;
|
|
});
|
|
}
|
|
|
|
function isValidAddress(addr) {
|
|
return /^0x[a-fA-F0-9]{40}$/.test(addr);
|
|
}
|
|
|
|
function navigateToWallet(address) {
|
|
// Default to multichain view for the best first experience
|
|
window.location.href = `wallet-multichain-visualization.html?address=${address}`;
|
|
}
|
|
|
|
function tryExplore() {
|
|
const addr = input.value.trim();
|
|
if (!isValidAddress(addr)) {
|
|
error.style.display = 'block';
|
|
input.style.borderColor = '#f87171';
|
|
setTimeout(() => {
|
|
error.style.display = 'none';
|
|
input.style.borderColor = '';
|
|
}, 3000);
|
|
return;
|
|
}
|
|
navigateToWallet(addr);
|
|
}
|
|
|
|
btn.addEventListener('click', tryExplore);
|
|
input.addEventListener('keydown', e => { if (e.key === 'Enter') tryExplore(); });
|
|
|
|
// Demo link
|
|
demoLink.addEventListener('click', e => {
|
|
e.preventDefault();
|
|
navigateToWallet(DEMO_ADDRESS);
|
|
});
|
|
|
|
// ─── AppSwitcher Toggle ──────────────────────────────────────
|
|
(function() {
|
|
var trigger = document.getElementById('app-switcher-trigger');
|
|
var dropdown = document.getElementById('app-switcher-dropdown');
|
|
var switcher = document.getElementById('app-switcher');
|
|
|
|
trigger.addEventListener('click', function(e) {
|
|
e.stopPropagation();
|
|
dropdown.classList.toggle('open');
|
|
});
|
|
|
|
document.addEventListener('click', function(e) {
|
|
if (switcher && !switcher.contains(e.target)) {
|
|
dropdown.classList.remove('open');
|
|
}
|
|
});
|
|
|
|
// Close on Escape key
|
|
document.addEventListener('keydown', function(e) {
|
|
if (e.key === 'Escape') {
|
|
dropdown.classList.remove('open');
|
|
}
|
|
});
|
|
})();
|
|
|
|
// If viz cards don't have an address param yet, add the demo address on click
|
|
// (only if user hasn't entered their own)
|
|
document.querySelectorAll('.viz-card').forEach(card => {
|
|
card.addEventListener('click', e => {
|
|
const addr = input.value.trim();
|
|
if (isValidAddress(addr)) {
|
|
e.preventDefault();
|
|
const url = new URL(card.href, window.location.origin);
|
|
url.searchParams.set('address', addr);
|
|
window.location.href = url.toString();
|
|
}
|
|
// Otherwise, follow the link as-is (no address = page shows its own input)
|
|
});
|
|
});
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|