From ad028c9ebdd777bd5082bc3345db03f9df5bcaa3 Mon Sep 17 00:00:00 2001 From: toom1996 <23cm.cn@gmail.com> Date: Wed, 16 Sep 2026 00:55:27 +0800 Subject: [PATCH] update --- src/components/CollectionCard.astro | 44 ++++ src/components/RefineSidebar.astro | 62 +++++ src/components/views/AccountPage.astro | 5 +- src/components/views/Home.astro | 2 +- src/components/views/ItemPage.astro | 12 +- src/components/views/RunwayLooks.astro | 347 +++++++------------------ src/components/views/StreetSnaps.astro | 258 ++++-------------- src/lib/collection-page.ts | 148 +++++++++++ src/lib/routes.ts | 9 +- src/pages/cn/item/[id].astro | 13 +- src/pages/cn/runway-looks/[id].astro | 10 + src/pages/cn/street-snaps/[id].astro | 10 + src/pages/en/item/[id].astro | 13 +- src/pages/en/runway-looks/[id].astro | 10 + src/pages/en/street-snaps/[id].astro | 10 + 15 files changed, 468 insertions(+), 485 deletions(-) create mode 100644 src/components/CollectionCard.astro create mode 100644 src/components/RefineSidebar.astro create mode 100644 src/lib/collection-page.ts create mode 100644 src/pages/cn/runway-looks/[id].astro create mode 100644 src/pages/cn/street-snaps/[id].astro create mode 100644 src/pages/en/runway-looks/[id].astro create mode 100644 src/pages/en/street-snaps/[id].astro diff --git a/src/components/CollectionCard.astro b/src/components/CollectionCard.astro new file mode 100644 index 0000000..9243cf0 --- /dev/null +++ b/src/components/CollectionCard.astro @@ -0,0 +1,44 @@ +--- +/** + * 列表卡片(走秀 / 街拍通用)。 + * + * 标记沿用 look-grid.css 的 .showscard-* 系列——与 .snapscard-* 是成对定义、样式完全 + * 相同的两套类名(见 look-grid.css 顶部注释),故统一用 showscard 不影响街拍视觉。 + * + * 组件本身不接收「数据」prop:它被放在父级