Add Tool info links and MCP section to tool cards and preview pages

- Dashboard: add "Tool info" link → preview.php on every tool card footer
- Landing page: convert lt-card <a> to div+onclick, add footer with "Learn more" link and copyable MCP slug pill
- preview.php: add MCP Integration section per tool (slug, copy button, claude_desktop_config.json snippet, login note)
- CSS: lt-card__footer, lt-card__mcp-pill, lt-preview-mcp section styles

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-24 21:25:09 +02:00
parent 61425d7f17
commit 38d617bf02
4 changed files with 207 additions and 5 deletions
+119
View File
@@ -877,3 +877,122 @@ body[data-active-tool='citations'] .results {
padding: 0.55rem 1rem;
}
}
/* ── Landing page card footer (Tool info + MCP pill) ──────────── */
.lt-card__footer {
display: flex;
align-items: center;
gap: 0.6rem;
flex-wrap: wrap;
margin-top: 1rem;
padding-top: 0.75rem;
border-top: 1px solid rgba(0, 32, 91, 0.08);
}
.lt-card__footer-link--primary {
font-family: ui-monospace, 'IBM Plex Mono', monospace;
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--dbn-blue);
text-decoration: none;
}
.lt-card__footer-link--primary:hover { color: var(--dbn-red); }
.lt-card__mcp-pill {
font-family: ui-monospace, 'IBM Plex Mono', monospace;
font-size: 0.64rem;
background: #f1f5f9;
border: 1px solid #e2e8f0;
color: #64748b;
padding: 2px 8px;
border-radius: 4px;
cursor: pointer;
white-space: nowrap;
margin-left: auto;
transition: background 0.15s;
}
.lt-card__mcp-pill:hover { background: #e2e8f0; }
/* ── Preview page MCP section ─────────────────────────────────── */
.lt-preview-mcp {
background: #f8fafc;
border-top: 1px solid #e5e7eb;
border-bottom: 1px solid #e5e7eb;
padding: 3rem 1.5rem;
}
.lt-preview-mcp__inner {
max-width: 760px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 1.25rem;
}
.lt-preview-mcp__head {
display: flex;
align-items: flex-start;
gap: 1rem;
}
.lt-preview-mcp__icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; margin-top: 0.15rem; }
.lt-preview-mcp__title {
font-size: 1.25rem;
font-weight: 700;
color: var(--dbn-blue);
margin: 0 0 0.25rem;
}
.lt-preview-mcp__sub { font-size: 0.9rem; color: #6b7280; margin: 0; }
.lt-preview-mcp__slug-row {
display: flex;
align-items: center;
gap: 0.75rem;
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 8px;
padding: 0.7rem 1rem;
flex-wrap: wrap;
}
.lt-preview-mcp__slug-label { font-size: 0.8rem; color: #6b7280; flex-shrink: 0; }
.lt-preview-mcp__slug {
font-family: ui-monospace, 'IBM Plex Mono', monospace;
font-size: 0.9rem;
color: var(--dbn-blue);
font-weight: 600;
flex: 1;
}
.lt-preview-mcp__copy {
padding: 0.3rem 0.85rem;
background: var(--dbn-blue);
color: #fff;
border: none;
border-radius: 5px;
font-size: 0.78rem;
font-weight: 600;
cursor: pointer;
flex-shrink: 0;
transition: background 0.15s;
}
.lt-preview-mcp__copy:hover { background: var(--dbn-soft-blue); }
.lt-preview-mcp__snippet { display: flex; flex-direction: column; gap: 0.4rem; }
.lt-preview-mcp__snippet-label {
font-family: ui-monospace, 'IBM Plex Mono', monospace;
font-size: 0.7rem;
color: #9ca3af;
text-transform: uppercase;
letter-spacing: 0.06em;
}
.lt-preview-mcp__pre {
background: #1e293b;
color: #e2e8f0;
font-family: ui-monospace, 'IBM Plex Mono', monospace;
font-size: 0.82rem;
line-height: 1.65;
padding: 1.1rem 1.25rem;
border-radius: 8px;
overflow-x: auto;
margin: 0;
}
.lt-preview-mcp__note {
font-size: 0.82rem;
color: #9ca3af;
margin: 0;
}
.lt-preview-mcp__note a { color: var(--dbn-blue); }