Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

improve(forge/gallery/home): showcase, gallery cards, and community section polish

nirholasc79486db07a6
diff --git a/pages/forge.html b/pages/forge.html
index fe91b545c..49cc5f8c1 100644
--- a/pages/forge.html
+++ b/pages/forge.html
@@ -1995,6 +1995,18 @@
}
/* Fresh from the Forge — community showcase ------------------- */
+ /* Taller thumb area for showcase cards */
+ #showcase .creation .thumb {
+ aspect-ratio: unset;
+ min-height: 200px;
+ height: 200px;
+ }
+ /* Showcase cards get slightly larger meta text + 3-line clamp */
+ #showcase .creation .meta {
+ font-size: 0.8rem;
+ -webkit-line-clamp: 3;
+ padding: 0.6rem 0.75rem;
+ }
.showcase-head-right {
display: inline-flex;
align-items: center;
@@ -2044,20 +2056,25 @@
/* Card footer: time-ago on the left, Remix on the right. */
.showcase-foot {
display: flex;
+ flex-direction: row;
align-items: center;
justify-content: space-between;
- gap: var(--space-xs);
- padding: 0 0.7rem 0.6rem;
+ gap: var(--space-sm);
+ padding: 0.4rem 0.75rem 0.6rem;
margin-top: auto;
+ border-top: 1px solid var(--stroke);
}
.showcase-when {
font-family: var(--font-mono);
- font-size: 11px;
+ font-size: 0.7rem;
color: var(--ink-dim);
- opacity: 0.7;
+ opacity: 0.75;
+ flex-shrink: 0;
}
.showcase-remix {
font-family: var(--font-mono);
+ white-space: nowrap;
+ flex-shrink: 0;
font-size: 11px;
letter-spacing: 0.04em;
padding: 3px 10px;
diff --git a/pages/home.html b/pages/home.html
index 3b73c9282..e19ad9e0a 100644
--- a/pages/home.html
+++ b/pages/home.html
@@ -2945,9 +2945,10 @@
}
#home-community-forge .hcf-title em { font-style: normal; color: var(--text-3); }
#home-community-forge .hcf-cta {
- flex-shrink: 0; font-size: var(--text-sm); font-family: var(--font-mono);
+ flex-shrink: 0; font-size: 14px; font-weight: 500; font-family: var(--font-body);
color: var(--text-2); text-decoration: none; border: 1px solid var(--hairline);
border-radius: 8px; padding: 8px 16px; white-space: nowrap;
+ display: inline-flex; align-items: center; gap: 6px;
transition: color .15s, border-color .15s;
}
#home-community-forge .hcf-cta:hover { color: var(--text); border-color: var(--hairline-strong); }
@@ -2958,26 +2959,26 @@
}
@media (min-width: 1100px) {
#home-community-forge .hcf-track {
- grid-template-columns: repeat(6, 1fr);
+ grid-template-columns: repeat(6, minmax(0, 1fr));
}
}
@media (min-width: 700px) and (max-width: 1099px) {
#home-community-forge .hcf-track {
- grid-template-columns: repeat(3, 1fr);
+ grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
@media (max-width: 699px) {
#home-community-forge .hcf-track {
- grid-template-columns: repeat(2, 1fr);
+ grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
.hcf-card {
- border-radius: 12px; overflow: hidden;
+ border-radius: 14px; overflow: hidden;
border: 1px solid var(--hairline);
background: var(--surface-1);
display: flex; flex-direction: column;
transition: border-color .18s, transform .18s;
- cursor: default;
+ cursor: default; min-width: 0;
}
.hcf-card:hover { border-color: var(--hairline-strong); transform: translateY(-2px); }
.hcf-viewer-wrap {
@@ -2998,7 +2999,7 @@
flex: 1; display: flex; flex-direction: column; gap: 4px;
}
.hcf-prompt {
- font-size: 12.5px; color: var(--text-2); line-height: 1.35;
+ font-size: 12.5px; font-family: var(--font-body); color: var(--text-2); line-height: 1.35;
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
overflow: hidden;
}
@@ -3029,6 +3030,7 @@
<div class="hcf-skel"><div class="hcf-skel-thumb"></div><div class="hcf-skel-body"><div class="hcf-skel-line"></div><div class="hcf-skel-line"></div></div></div>
<div class="hcf-skel"><div class="hcf-skel-thumb"></div><div class="hcf-skel-body"><div class="hcf-skel-line"></div><div class="hcf-skel-line"></div></div></div>
<div class="hcf-skel"><div class="hcf-skel-thumb"></div><div class="hcf-skel-body"><div class="hcf-skel-line"></div><div class="hcf-skel-line"></div></div></div>
+ <div class="hcf-skel"><div class="hcf-skel-thumb"></div><div class="hcf-skel-body"><div class="hcf-skel-line"></div><div class="hcf-skel-line"></div></div></div>
</div>
</div>
</section>
@@ -3111,7 +3113,7 @@
return card;
}
- fetch('/api/forge-gallery?scope=community&limit=24')
+ fetch('/api/forge-gallery?scope=community&limit=18')
.then(function(r) { return r.json(); })
.then(function(data) {
var all = Array.isArray(data && data.creations) ? data.creations : [];
diff --git a/public/gallery/gallery.css b/public/gallery/gallery.css
index 60aae1773..a8aed44b5 100644
--- a/public/gallery/gallery.css
+++ b/public/gallery/gallery.css
@@ -824,14 +824,15 @@ body.gallery-page {
}
.gallery-forge-count {
font-size: 0.7rem;
- font-weight: 500;
+ font-weight: 600;
font-family: var(--font-mono, monospace);
- padding: 2px 8px;
+ padding: 3px 10px;
border-radius: 999px;
- background: rgba(255, 255, 255, 0.06);
- border: 1px solid rgba(255, 255, 255, 0.1);
- color: rgba(255, 255, 255, 0.45);
+ background: rgba(255, 255, 255, 0.08);
+ border: 1px solid rgba(255, 255, 255, 0.14);
+ color: rgba(255, 255, 255, 0.65);
font-variant-numeric: tabular-nums;
+ letter-spacing: 0.02em;
}
.gallery-forge-sub {
font-size: 0.85rem;
@@ -842,24 +843,31 @@ body.gallery-page {
}
.gallery-forge-cta {
flex: none;
- font-size: 0.82rem;
- font-weight: 500;
- font-family: var(--font-mono, monospace);
- color: var(--ink-dim, rgba(255,255,255,0.55));
+ font-size: 0.825rem;
+ font-weight: 700;
+ color: #000;
text-decoration: none;
white-space: nowrap;
- border: 1px solid rgba(255,255,255,0.1);
- border-radius: 8px;
- padding: 6px 14px;
- transition: color 0.15s, border-color 0.15s, background 0.15s;
+ border: 1px solid transparent;
+ border-radius: 99px;
+ padding: 9px 20px;
+ background: #fff;
+ transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s, opacity 0.15s;
display: inline-flex;
align-items: center;
- gap: 5px;
+ gap: 6px;
+ box-shadow: 0 2px 16px rgba(255, 255, 255, 0.12);
+ letter-spacing: -0.01em;
}
.gallery-forge-cta:hover {
- color: var(--ink, #fff);
- border-color: rgba(255,255,255,0.2);
- background: rgba(255,255,255,0.04);
+ background: #f0f0f0;
+ color: #000;
+ box-shadow: 0 4px 24px rgba(255, 255, 255, 0.18);
+ opacity: 0.92;
+}
+.gallery-forge-cta:focus-visible {
+ outline: 2px solid rgba(165, 180, 252, 0.7);
+ outline-offset: 2px;
}
/* Grid — matches the main gallery's column width exactly */
@@ -878,29 +886,49 @@ body.gallery-page {
/* Placeholder for cards with no preview image —
centered cube icon with accent color on the gradient bg */
.forge-card-ph {
- width: 48px;
- height: 48px;
+ width: 60px;
+ height: 60px;
display: flex;
align-items: center;
justify-content: center;
- border-radius: 12px;
- background: rgba(255, 255, 255, 0.06);
- border: 1px solid rgba(255, 255, 255, 0.1);
- color: rgba(255, 255, 255, 0.4);
+ border-radius: 16px;
+ background: rgba(255, 255, 255, 0.12);
+ border: 1px solid rgba(255, 255, 255, 0.28);
+ color: rgba(255, 255, 255, 0.9);
font-size: 0;
/* override inherited .gallery-card-ph opacity */
opacity: 1;
filter: none;
+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
+ transition: transform 0.2s ease, box-shadow 0.2s ease;
+}
+.forge-card:hover .forge-card-ph {
+ transform: scale(1.08);
+ box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.forge-card-ph svg {
- width: 22px;
- height: 22px;
- opacity: 0.7;
+ width: 28px;
+ height: 28px;
+ opacity: 1;
+ filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
+}
+/* Prompt-only pill variant — amber tint to distinguish from "3D" badge */
+.forge-card-prompt-pill {
+ background: rgba(251, 191, 36, 0.15);
+ border-color: rgba(251, 191, 36, 0.3);
+ color: rgba(251, 191, 36, 0.9);
}
/* Image cards: scale on hover like regular gallery */
.forge-card:hover .gallery-card-thumb img {
transform: scale(1.04);
}
+/* Prompt-only cards: slightly dimmer so they read as "in progress" */
+.forge-card--no-model {
+ opacity: 0.88;
+}
+.forge-card--no-model:hover {
+ opacity: 1;
+}
/* Card name: 2-line clamp so longer prompts don't explode the card */
.forge-card .gallery-card-name {
font-size: 13.5px;
diff --git a/public/gallery/gallery.js b/public/gallery/gallery.js
index d1123925f..041b8d054 100644
--- a/public/gallery/gallery.js
+++ b/public/gallery/gallery.js
@@ -571,14 +571,17 @@ const FORGE_ENGINE_LABELS = {
function renderForgeCard(c) {
const label = c.prompt || 'Forged model';
+ const hasModel = !!c.glb_url;
const openUrl = c.id
? `/forge?share=${encodeURIComponent(c.id)}`
- : c.glb_url
+ : hasModel
? `/app#model=${encodeURIComponent(c.glb_url)}`
+ : c.prompt
+ ? `/forge?prompt=${encodeURIComponent(c.prompt)}`
: '/forge';
const card = document.createElement('div');
- card.className = 'gallery-card forge-card';
+ card.className = 'gallery-card forge-card' + (hasModel ? '' : ' forge-card--no-model');
card.tabIndex = 0;
card.setAttribute('role', 'button');
card.setAttribute('aria-label', `Open in Forge: ${escapeAttr(label)}`);
@@ -604,17 +607,24 @@ function renderForgeCard(c) {
thumb.appendChild(glyph);
}
- // 3D badge — consistent with the avatar cards
+ // Badge — "3D" for model cards, amber "prompt" for prompt-only
const pill = document.createElement('span');
- pill.className = 'gallery-card-3dpill';
- pill.textContent = '3D';
+ if (hasModel) {
+ pill.className = 'gallery-card-3dpill';
+ pill.textContent = '3D';
+ } else {
+ pill.className = 'gallery-card-3dpill forge-card-prompt-pill';
+ pill.textContent = 'prompt';
+ }
thumb.appendChild(pill);
- // Hover play icon
+ // Hover icon — play for model cards, remix arrow for prompt-only
const play = document.createElement('div');
play.className = 'gallery-card-play';
play.setAttribute('aria-hidden', 'true');
- play.innerHTML = `<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M8 5.14v14l11-7-11-7Z"/></svg>`;
+ play.innerHTML = hasModel
+ ? `<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M8 5.14v14l11-7-11-7Z"/></svg>`
+ : `<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M3 3v5h5"/></svg>`;
thumb.appendChild(play);
card.appendChild(thumb);
@@ -661,7 +671,7 @@ function renderForgeCard(c) {
const actions = document.createElement('div');
actions.className = 'gallery-card-actions';
- if (c.prompt) {
+ if (hasModel && c.prompt) {
const remixBtn = document.createElement('button');
remixBtn.type = 'button';
remixBtn.className = 'gallery-card-btn gallery-card-btn--ghost';
@@ -675,10 +685,10 @@ function renderForgeCard(c) {
}
const openBtn = document.createElement('a');
- openBtn.className = 'gallery-card-btn';
+ openBtn.className = 'gallery-card-btn gallery-card-btn--primary';
openBtn.href = openUrl;
- openBtn.textContent = 'Open';
- openBtn.setAttribute('aria-label', `Open "${label}" in Forge`);
+ openBtn.textContent = hasModel ? 'View' : 'Remix';
+ openBtn.setAttribute('aria-label', hasModel ? `View "${label}" in Forge` : `Remix "${label}" prompt`);
openBtn.addEventListener('click', (e) => e.stopPropagation());
actions.appendChild(openBtn);