From 0a466a40d3ee6939ae44d57652123e4d5c90f028 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=90=A6?= Date: Mon, 24 Aug 2026 13:11:21 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E5=A2=9E=E5=8A=A0=E4=BA=86=E5=87=A0?= =?UTF-8?q?=E7=A7=8D=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .workbuddy/memory/2026-08-24.md | 7 + .../templates/guofeng/components/InkCard.vue | 183 ++++++++++++++++++ client/src/templates/guofeng/pages/Blog.vue | 42 +++- client/src/templates/guofeng/pages/Home.vue | 76 ++++---- 4 files changed, 264 insertions(+), 44 deletions(-) create mode 100644 client/src/templates/guofeng/components/InkCard.vue diff --git a/.workbuddy/memory/2026-08-24.md b/.workbuddy/memory/2026-08-24.md index 447f079..ed5abf7 100644 --- a/.workbuddy/memory/2026-08-24.md +++ b/.workbuddy/memory/2026-08-24.md @@ -149,3 +149,10 @@ 6. glass 升级:背景加第四层光斑;卡片渐变玻璃(linear-gradient 150deg)、顶部弧光(::before radial)、内高光 inset、hover 蓝辉光 0 0 40px。 每套重写后补回 --art-* 覆盖与 .xxx-main.full 规则。magazine Blog 文章卡补 data-index 编号。 验证:vue-tsc OK、vite build OK、6 套预览 200。 + +## 水墨明信片异形卡(canvas 随机水墨画) +用户:卡片不要全是方块,以水墨为例做异形 + 随机水墨画边框。 +- 新组件 templates/guofeng/components/InkCard.vue:canvas 绘制随机水墨明信片(宣纸底+纸纹、多层墨晕 radial 模糊圆、2-3 条淡墨远山曲线、底部淡墨影),toDataURL 作卡片背景;明信片异形圆角(border-radius 10px 34px 14px 40px)、内白边框(.ink-card-frame)、旋转印章(年糕)、hover 上浮;支持 seed 伪随机(同 seed 稳定,如 Blog 按 p.id)。 +- guofeng Home/Blog 改用 InkCard(精选文章/最新作品/栏目卡 + 文章列表 2 列网格),hero 保留 + 竖排点缀。 +- 其他套上一轮已差异化(非方块:杂志编号、报纸条目、retro 贴纸、bento 圆角宫格、glass 光弧卡)。 +验证:vue-tsc OK、vite build OK、guofeng 预览 200。 diff --git a/client/src/templates/guofeng/components/InkCard.vue b/client/src/templates/guofeng/components/InkCard.vue new file mode 100644 index 0000000..7e6da77 --- /dev/null +++ b/client/src/templates/guofeng/components/InkCard.vue @@ -0,0 +1,183 @@ + + + + + diff --git a/client/src/templates/guofeng/pages/Blog.vue b/client/src/templates/guofeng/pages/Blog.vue index 7fa91d9..566f691 100644 --- a/client/src/templates/guofeng/pages/Blog.vue +++ b/client/src/templates/guofeng/pages/Blog.vue @@ -10,17 +10,18 @@
研墨中…
+