feat(home): 首页展示位空数据时渲染内置渐变图兜底

/showcase 返回空时 hero 拼贴与作品墙不再留白——
用 public/showcase 下 11 张内置 SVG 渐变图填充;
接口有数据时仍优先使用后台配置的展示图。

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
2026-10-27 15:08:07 +08:00
co-authored by Devin
parent 466507b388
commit 8fd49db8c2
12 changed files with 166 additions and 5 deletions
+13
View File
@@ -0,0 +1,13 @@
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="534" viewBox="0 0 800 534">
<defs>
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1"><stop offset="0%" stop-color="#a855f7"/><stop offset="100%" stop-color="#6366f1"/></linearGradient>
<radialGradient id="b1" cx="0.3" cy="0.25" r="0.7"><stop offset="0%" stop-color="#e9d5ff" stop-opacity="0.5"/><stop offset="100%" stop-color="#e9d5ff" stop-opacity="0"/></radialGradient>
<radialGradient id="b2" cx="0.75" cy="0.75" r="0.6"><stop offset="0%" stop-color="#ffffff" stop-opacity="0.28"/><stop offset="100%" stop-color="#ffffff" stop-opacity="0"/></radialGradient>
</defs>
<rect width="800" height="534" fill="url(#g)"/>
<rect width="800" height="534" fill="url(#b1)"/>
<rect width="800" height="534" fill="url(#b2)"/>
<circle cx="576" cy="160.2" r="72" fill="rgba(255,255,255,0.5)"/>
<path d="M0 331.08 Q 240 267 440.00000000000006 331.08 T 800 293.70000000000005 V 534 H0 Z" fill="rgba(255,255,255,0.12)"/>
<path d="M0 384.47999999999996 Q 280 320.4 480 384.47999999999996 T 800 352.44 V 534 H0 Z" fill="rgba(255,255,255,0.1)"/>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB