Files
personal/lib/workItems.ts
T
virtheart 285028c61d feat: 北极新一中文个人站 — MiSans 分片字体 + 全站内容国内化
- 字体: cn-font-split 分片 MiSans(4字重×~88片, unicode-range 按需加载)
  接入 --font-sans/--font-mono/--font-mono-2 栈尾; 修复 next/font 与
  Tailwind @theme 变量重名导致的死规则(--font-geist-mono/--font-departure-mono)
- 内容: 品牌名/首屏/关于/导航/页脚/滚动段/文章页 UI/解锁屏全部中文化;
  元数据 title 北极新一©2026, lang=zh-CN; 日期中文格式
- 彩蛋: 品牌标签 TikTok→小红书(保留 char-code 混淆与口令机制), /2026
  文案改为个人创作手记语境
- 页脚: 邮箱 + 抖音/微信/小红书; 有链接项点击新开主页, 全部支持悬停
  二维码卡片(正方形白衬+object-contain 防变形); 无链接项(微信)点击弹
  二维码浮层
- 移除原作者手写签名动画(AboutMedia)
- 构建: cn-font-split devDependency + onlyBuiltDependencies 允许列表
2026-09-02 17:18:22 +08:00

133 lines
4.0 KiB
TypeScript

/**
* WORK_ITEMS — from the original d59f7a97fb1c563f.js (module 28116),
* including the passcode-protected first entry (the grid filters it via
* `WORK_ITEMS.filter(t => !t.passcodeProtected || lookup(t.href))` — the
* locked one reveals the brand label "小红书"; see WorkSection).
*
* Internal detail routes render app/work/[slug]/page.tsx; 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(), // "小红书" — char-code obfuscated, 同原站方案
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",
},
];