a844b26250
- 新增 FullscreenTransitionProvider + RouteTransitionOverlay: cover(0.8s b1 遮罩 wipe) → push → reveal 状态机(原 73475/34841 移植), Work 卡片与详情页链接全部走 startNavigation(同路径点击回顶部) - 新增 app/work/[slug] 详情页:content/workArticles.ts 从原站 6 个详情页 1:1 提取(MDX 文章+Metadata+iframe 预览+Links),/2026 锁定时渲染解锁屏 - 新增 CustomScrollbar:桌面右缘 SVG 轨道+拖拽 thumb(188 轨道/min20)、 点击跳转、2s 自动隐藏;移动端底部进度环回顶按钮(原 72443 移植) - BackgroundGrid 重写为原版算法(3 行十字/12px 缺口/12 列内分数纵线, 主页 loading 时隐藏其余时间常显);层叠改为原版结构:canvas z-auto 最前 → grid z-20 → DOM 内容,移除各 section 的 z-30 - 修复 BGM:持久化开启时首次手势自动恢复播放(autoplay 策略被拒后 pointerdown/keydown/touchstart 重试),enabled 闭包改用 ref - 页脚邮箱改为 chenchun@virtheart.com
134 lines
4.0 KiB
TypeScript
134 lines
4.0 KiB
TypeScript
/**
|
|
* WORK_ITEMS — 1:1 from the original d59f7a97fb1c563f.js (module 28116),
|
|
* including the passcode-protected first entry (the original grid filters it
|
|
* via `WORK_ITEMS.filter(t => !t.passcodeProtected || lookup(t.href))` — the
|
|
* locked one reveals the brand label "TikTok"; see WorkSection).
|
|
*
|
|
* Internal detail routes render app/work/[slug]/page.tsx (content extracted
|
|
* 1:1 from the original pages); clicks go through the cover/reveal
|
|
* transition (startNavigation).
|
|
*/
|
|
import { revealBrandLabel } from "@/lib/passcode";
|
|
|
|
export type WorkItem = {
|
|
name: string;
|
|
imageUrl: string;
|
|
hoverImageUrl: string;
|
|
href: string;
|
|
year: string;
|
|
type: "post" | "tools" | "event";
|
|
gridClass: string;
|
|
codingProject?: boolean;
|
|
passcodeProtected?: boolean;
|
|
};
|
|
|
|
export const SELECTED_WORK_SECTION_ID = "selected-work";
|
|
|
|
export const WORK_ITEMS: WorkItem[] = [
|
|
{
|
|
name: revealBrandLabel(), // "TikTok" — obfuscated in the original bundle
|
|
imageUrl: "/work/tt01.png",
|
|
hoverImageUrl: "/work/tt02.png",
|
|
href: "/2026",
|
|
year: "2022-2026",
|
|
type: "post",
|
|
gridClass: "col-span-12 lg:col-span-8 lg:col-start-3",
|
|
passcodeProtected: true,
|
|
},
|
|
{
|
|
name: "Reunimos™",
|
|
imageUrl: "/work/reunimos01.png",
|
|
hoverImageUrl: "/work/reunimos02.png",
|
|
href: "/reunimos",
|
|
year: "2024-2026",
|
|
type: "post",
|
|
gridClass: "col-span-12 lg:col-span-8 lg:col-start-5",
|
|
codingProject: true,
|
|
},
|
|
{
|
|
name: "Inspire Mono",
|
|
imageUrl: "/work/inspire_mono_01.png",
|
|
hoverImageUrl: "/work/inspire_mono_02.png",
|
|
href: "/inspire_mono",
|
|
year: "2025",
|
|
type: "post",
|
|
gridClass: "col-span-12 lg:col-start-1 lg:col-span-6 xl:col-span-5",
|
|
codingProject: true,
|
|
},
|
|
{
|
|
name: "Wasm design utils",
|
|
imageUrl: "/work/wasm01.png",
|
|
hoverImageUrl: "/work/wasm02.png",
|
|
href: "/wasm_design_utils",
|
|
year: "2025",
|
|
type: "post",
|
|
gridClass: "col-span-12 lg:col-span-6 xl:col-span-5 lg:col-start-7 xl:col-start-7",
|
|
codingProject: true,
|
|
},
|
|
{
|
|
name: "VectorSymbols",
|
|
imageUrl: "/work/vs01.png",
|
|
hoverImageUrl: "/work/vs02.png",
|
|
href: "https://www.figma.com/community/plugin/1255914175202017737/vectorsymbols",
|
|
year: "2023",
|
|
type: "tools",
|
|
gridClass: "col-span-6 lg:col-start-5 lg:col-span-4 xl:col-start-6 xl:col-span-3",
|
|
codingProject: true,
|
|
},
|
|
{
|
|
name: "DarkSide",
|
|
imageUrl: "/work/ds01.png",
|
|
hoverImageUrl: "/work/ds02.png",
|
|
href: "https://www.figma.com/community/plugin/986289377230504703/darkside",
|
|
year: "2021",
|
|
type: "tools",
|
|
gridClass: "col-span-6 lg:col-start-9 lg:col-span-4 xl:col-start-10 xl:col-span-3",
|
|
codingProject: true,
|
|
},
|
|
{
|
|
name: "aDrive 阿里云盘",
|
|
imageUrl: "/work/ali01.png",
|
|
hoverImageUrl: "/work/ali02.png",
|
|
href: "/adrive",
|
|
year: "2020-2022",
|
|
type: "post",
|
|
gridClass: "col-span-12 lg:col-start-1 lg:col-span-4 xl:col-start-1 xl:col-span-3",
|
|
},
|
|
{
|
|
name: "Shore Icon",
|
|
imageUrl: "/work/si.png",
|
|
hoverImageUrl: "/work/si02.png",
|
|
href: "/shore_icon",
|
|
year: "2022",
|
|
type: "post",
|
|
gridClass: "col-span-6 lg:col-start-5 lg:col-span-4 xl:col-start-5 xl:col-span-3",
|
|
},
|
|
{
|
|
name: "Teambition",
|
|
imageUrl: "/work/c4.png",
|
|
hoverImageUrl: "/work/c4.png",
|
|
href: "/teambition",
|
|
year: "2018-2020",
|
|
type: "post",
|
|
gridClass: "col-span-6 lg:col-start-9 lg:col-span-4 xl:col-start-9 xl:col-span-3",
|
|
},
|
|
{
|
|
name: "FoF: See Hear Touch",
|
|
imageUrl: "/work/s01.png",
|
|
hoverImageUrl: "/work/s02.png",
|
|
href: "https://friends.figma.com/events/details/figma-shanghai-presents-see-hear-touch/",
|
|
year: "2022",
|
|
type: "event",
|
|
gridClass: "col-span-6 lg:col-start-5 lg:col-span-4 xl:col-start-6 xl:col-span-3",
|
|
},
|
|
{
|
|
name: "FoF: Design System",
|
|
imageUrl: "/work/sd01.png",
|
|
hoverImageUrl: "/work/sd02.png",
|
|
href: "https://friends.figma.com/events/details/figma-shanghai-presents-design-system/",
|
|
year: "2021",
|
|
type: "event",
|
|
gridClass: "col-span-6 lg:col-start-9 lg:col-span-4 xl:col-start-10 xl:col-span-3",
|
|
},
|
|
];
|