Wan's Dine
Rebuilding a filterable food gallery into a quiet editorial publication—with a story bible, three content forms, a hard line between Liquid Glass and warm paper, and a privacy-first photo pipeline把可筛选的美食图墙重构成安静的私人刊物:编辑手册、三种体裁、Liquid Glass 与暖纸的硬界线,以及隐私优先的图片管线
July 20262026年7月
Almost every food website on the internet is built to answer the same consumer question: is this restaurant worth going to? The interface follows automatically—five-star badges, price tiers, cuisine pills, top-ten lists, and punchy verdicts designed to help a stranger pick dinner in thirty seconds.
Wan's Dine started because that wasn't what my meals actually meant to me. Moving between Guangzhou, Hong Kong, Shanghai, Yunnan, Toronto, and Vancouver left behind a camera roll of tables, bowls, and late-night stops that had nothing to do with ranking restaurants. The question underneath all of them was much quieter: when we leave a place, what still allows it to feel like home?
The first version of the site still wore the habits of a web app—a monochrome, monospace photo gallery with a rainbow tagline, vertical labels, and colored filter dots. Redesigning it into a personal dining and travel publication meant writing an editorial story bible before touching a single component, pacing the homepage like a continuous print issue, drawing a strict material boundary between Liquid Glass and warm paper, and treating personal photo privacy as a build-time invariant.
网上绝大多数美食站都在回答同一个问题:这家店值不值得吃?界面也就顺理成章长成一个模子:五星打分、人均价位、菜系标签、必吃榜,帮陌生人在三十秒内拍板晚饭。
Wan's Dine 的起点完全不是这样。在广州、香港、上海、云南、多伦多和温哥华之间来回奔波,手机相册里攒下一堆餐桌、汤碗和深夜小馆,跟给餐厅打分毫无关系。它们背后是一个安静得多的问题:离开一个地方以后,是什么让它依然像家?
第一版网站仍带着典型 Web App 的惯性:黑白等宽字体照片墙,顶着彩虹标语、竖排标签和彩色筛选圆点。把它重构成私人餐饮与旅行刊物,意味着动笔写第一行组件前先写编辑手册、按连续印刷刊物的节奏排首页、在 Liquid Glass 与暖纸之间划清材质界线,并把个人照片隐私锁进构建期铁律。
Writing a story bible before touching a layout动版面之前,先写一份编辑手册
Before redesigning a single screen, I wrote an editorial story bible to anchor every product, writing, and visual decision. It defines Wan's Dine strictly as a private geography of cities and tables—zero star ratings, zero 'best of' lists, and zero claims to culinary authority—organized mentally around four overlapping movements: familiarity before leaving (Guangzhou, Hong Kong, Shanghai, Yunnan), making an unfamiliar city ordinary through repeated tables (Toronto, Scarborough, North York, Mississauga, Vancouver), entering a place through a single travel meal without pretending to know the city (Pittsburgh, Washington, D.C.), and reading old photographs back from the present.
To keep the writing concrete rather than drifting into generic food-blog prose, most full entries weave at least three of four layers: an immediate visible scene, a local detail belonging to the city around the dining room (a sunset on the DVP, a subway walk to the TTC, or a LOOK LEFT road marking pointing to an upstairs room in Sai Ying Pun), a human relationship perceptible while still protecting privacy, and the quiet distance of later recollection. Even non-food sensory details follow a strict rule: perfume is treated as narrative evidence rather than lifestyle metadata—named plainly only when it genuinely belonged to the memory in personal notes (like wearing Le Labo Bigarade 18 driving down from Vaughan to Mhel, or Diptyque Geranium Odorata at jaBistro) and never dressed up as fragrance copy.1
Just as important is refusing to manufacture completeness. Across 34 published entries spanning Canada, China, Hong Kong, and the United States, the archive preserves the exact boundary between verified fact, remembered detail, and what can no longer be recovered. Same-day outings are merged into single entries rather than padded into separate cards—Moon Palace dim sum followed by Butter Baker soft serve in Toronto, or Sing Heung Yuen's tomato broth in Central followed by The Matcha Tokyo in Causeway Bay. Dates are cross-checked against real events where relevant, such as lunch at Kimchi Korea House on 8 July 2022 during Canada's nationwide Rogers network outage, when a day without phones turned into a long walk past Toronto General Hospital to Queen's Park. And when memory is missing—the forgotten dish names from an omakase evening at Mhel, or the unrecorded occasion behind dinner at La Castile—the text leaves the gap intact instead of inventing atmosphere.
Every draft also faces a blunt anti-cliché litmus test: could this paragraph appear unchanged in someone else's food journal? If the answer is yes—or if a sentence leans on empty stand-ins like 'warm,' 'quiet,' 'smoky,' or 'memorable' without a specific place, gesture, or verifiable detail—it gets rewritten or cut down.
重画任何一个页面前,我先写了一份编辑故事圣经来定死产品、写作和视觉边界。它把 Wan's Dine 严格定义为城市与餐桌的私人地理——不打星、不排榜单、不端美食权威架子——围绕四重交错的脉络展开:离开前的习以为常(广州、香港、上海、云南)、靠一次次落座把陌生城市过成日常(多伦多、士嘉堡、北约克、密西沙加、温哥华)、借一顿饭进入旅行地而不假装熟知整座城(匹兹堡、华盛顿特区),以及站在当下回看旧照。
为了防着文字滑向千篇一律的美食博主腔,完整条目大多织进至少三层(共四层):一眼能进得去的现场画面、属于周边城市的在地细节(DVP 高速上的日落、走去搭 TTC 地铁的夜路,或西营盘楼上私房菜门口指路的 LOOK LEFT 地面标线)、在保护隐私前提下仍摸得着的同席关系,以及事后回望的时间距离。连非食物感官细节也守死规矩:香水只作叙事证据,绝不当生活方式标签——只有在原始笔记里确认真的属于那段记忆时才平实点名(如从 Vaughan 开车去 Mhel 时穿的 Le Labo Bigarade 18,或在 jaBistro 时的 Diptyque Geranium Odorata),绝不写成香评文案。1
同样要紧的是拒绝假装完整。全站 34 篇跨加拿大、中国、香港和美国的记录,严守「已知事实、记得的细节和再也找不回的部分」之间的界线。同一天的行程合写成一篇而不硬拆卡片:多伦多 Moon Palace 早茶接 Butter Baker 软雪糕,香港中环胜香园番茄汤接铜锣湾 The Matcha Tokyo。能对照现实事件的日期逐一核实,比如 2022 年 7 月 8 日加拿大 Rogers 全网大断网当天在 Kimchi Korea House 吃午饭,手机没信号的一天反而走过医院一路散步到 Queen's Park。真忘了的细节——Mhel 那顿接近 omakase 的菜名,或去 La Castile 那晚原本纪念什么——就老实留白,绝不杜撰气氛。
每篇草稿还要过一道直白的反套话筛子:这一段原封不动搬进别人的美食日记里成立吗?只要答案是肯定的,或者靠「温暖」「安静」「烟火气」「难忘」这类空词硬撑而没具体地点、动作和可核实细节,就重写或删掉。
Three forms for uneven memory, paced like a continuous issue用三种体裁承接不均匀的记忆,像一期连续刊物那样排版
Once you stop pretending every meal deserves the same word count, a uniform grid of identical cards breaks down immediately. A long evening needs room to unfold; a fleeting stop only warrants a paragraph; a single frame from a street corner says more when you let it sit in silence. The content model therefore defines three deliberate forms matched to the source material actually available: essays (800 to 2,000 words examining a period or transition), notes (150 to 500 words keeping one evening intact), and fragments (one photograph, one sentence, a date, and a place that provide silence and pacing).2
Visually, the homepage inherits a quiet authorial thread from yflong.dev—a full-viewport hero driven by SlicedRevealCarousel with 720-millisecond sliced transitions, lower-left coordinates (such as 43° N 79° W or 22° N 114° E), muted cinematic framing, and circular pager controls—but slows the cadence down from a brisk 5.2-second portfolio reel to an unhurried 8-to-10-second publication rhythm that resets on interaction and collapses to a clean fade under prefers-reduced-motion.
Below the hero, the homepage reads as one continuous issue rather than a directory wall: a 2-to-4-line opening statement on bare paper, a lead essay you can start reading right on the homepage alongside 2-to-4 asymmetric photographs, interleaved notes and fragments that preserve each photo's natural horizontal, vertical, or detail proportions instead of cropping everything into matching rectangles, a full-width places interlude, and a chronological index preview. Readers who want to browse systematically still have dedicated /journal, /journal/[slug] (with adjacent stories and same-city links), /places, /archive (labeled Index), and /about routes, plus a keyboard-accessible gallery viewer with Escape dismissal, arrow-key navigation, background scroll locking, and automatic focus restoration.3
Glass is interface; paper is content. The moment prose starts sitting on frosted cards, a publication stops feeling like something you can read and starts feeling like a dashboard.
一旦不再假装每顿饭都配得上相同字数,整齐划一的卡片墙立刻失效。漫长的夜晚需要留出呼吸,短暂停留只够写一段,街头一帧照片留白反而更有分量。内容模型按真实留存素材分成三种体裁:essay(800 到 2,000 词,写一段时期或转折)、note(150 到 500 词,完整留住一个夜晚),以及 fragment(一张照片、一句话、一个时间和地点,负责沉默与空拍)。2
视觉上首页承接了 yflong.dev 的一脉印记:SlicedRevealCarousel 驱动的全视口头图、720 毫秒切片转场、左下角地理坐标(如 43° N 79° W 或 22° N 114° E)、克制的电影感遮罩和圆形翻页键,但把节拍从作品集利落的 5.2 秒放慢到 8–10 秒的刊物节奏,用户交互后重新计时,在 prefers-reduced-motion 下退化为干净淡入。
头图之下,首页像一期连续展开的刊物而非目录墙:裸纸面上 2–4 行开篇陈述、直接在首页就能开读的头题长文配 2–4 张非对称照片、穿插其间的短笔记和碎片(保留照片原本的横竖与细节比例,不强行裁成统一矩形)、全宽地点间奏,以及按时间排列的索引预览。想系统翻阅的读者照样有独立的 /journal、/journal/[slug](带相邻文章与同城推荐)、/places、/archive(导航标为 Index)和 /about,外加支持 Escape 关闭、方向键切图、背景滚动锁定与关闭后焦点回归的无障碍图集查看器。3
玻璃只做界面,纸张只承内容。正文一旦躺在毛玻璃卡片上,刊物就不再像能读下去的书页,而像一块仪表盘。
Drawing a hard material line between Liquid Glass and warm paper在 Liquid Glass 与暖纸之间划清材质界线
The redesign aims for an intersection that falls apart the moment you overdo any single ingredient: the unhurried editorial poise of hospitality print, the intimacy of a personal notebook, and the tactile polish of Liquid Glass. Putting frosted glass behind long-form text lowers contrast, fatigues the eye, and turns quiet writing into a UI demo. Removing the old site's rainbow tagline, colored filter dots, vertical labels, and global monospace was only half the fix; the real anchor was one non-negotiable material rule: glass belongs strictly to interface chrome, and paper holds the content.
All reading lives on warm uncoated paper tones paired with deep charcoal ink and restrained moss and clay accents, set in high-contrast serif display headings (Instrument Serif and Cormorant Garamond), Geist Sans body text held to a 640-to-720-pixel column (tuned to 18–20 px with 1.65–1.8 line height in English and 17–18 px with 1.9–2.0 in Chinese), and Geist Mono reserved strictly for coordinates, dates, and index metadata.4 Generous section spacing (144–220 pixels on desktop, 88–128 pixels on mobile), crisp 2-to-6-pixel photo corners with zero heavy card shadows, and slow motion (700–1,000 ms content reveals, 1.015× image hover over 700–900 ms, zero bounce or parallax) keep the reading surface calm.
Liquid Glass is restricted to just two shapes—pill and panel—across floating controls above the page: the top menu bar, hero and carousel controls, and gallery viewer chrome. Even the menu bar responds to what sits beneath it, starting in dark translucent glass over the full-bleed hero photograph and shifting into warm light glass once you scroll into paper prose. On mobile, opening the menu switches to a solid warm paper surface instead of blurring an entire viewport, and both mobile screens and prefers-reduced-motion dial back blur and saturation while disabling SVG displacement entirely.
这次重构瞄准的交汇点只要任何一味过量就会垮掉:精品酒店纸质刊物般的松弛、私人笔记本的亲近感,加上 Liquid Glass 的触感光泽。毛玻璃垫在长文后面会压低对比度、累眼睛,把安静文字变成界面秀。撤掉旧站的彩虹标语、彩色筛选点、竖排标签和全站等宽字体只做了一半,真正的锚点是那条死规矩:玻璃只属于界面外框,纸张承托内容。
所有阅读落在暖色无涂布纸面配深炭墨与克制的苔绿、陶土点缀上:高对比衬线标题(Instrument Serif 与 Cormorant Garamond)、收在 640–720 像素舒适栏宽内的 Geist Sans 正文(英文 18–20 px / 行高 1.65–1.8,中文 17–18 px / 行高 1.9–2.0),Geist Mono 严格留给坐标、日期和索引元数据。4 宽裕的章节留白(桌面端 144–220 像素、移动端 88–128 像素)、克制的 2–6 像素照片圆角与零厚重阴影、缓慢动效(700–1,000 ms 显现、图片悬停 700–900 ms 轻放 1.015×、零弹跳与视差)一起守住阅读面的安定。
Liquid Glass 严格收束在胶囊和面板两种形状、且只用于浮在页面之上的控件:顶栏菜单、头图与轮播按钮、图集查看器工具条。菜单栏还会随底下内容自适应:停在全出血头图上时是深色半透玻璃,滚进暖纸正文后切为暖色浅玻璃。手机端展开菜单直接换实体暖纸背景而不模糊整屏,小屏与 prefers-reduced-motion 下同步降模糊、降饱和并彻底关掉 SVG 位移滤镜。
Privacy-first photography and typed config at the build boundary把隐私优先摄影与类型化配置锁进构建边界
Underneath the typography, the redesign also retired the old data/projects.js file—where components stitched together raw public paths by convention—and consolidated everything into typed config/ modules (site, home, stories, cuisines, and an auto-generated image manifest) so components never guess filenames and home.ts selects hero stories purely by ID without duplicating metadata.
Because a personal dining journal is built from iPhone photographs, every original file quietly carries exact GPS coordinates, device models, and timestamps alongside multi-megabyte payloads. Rather than cleaning files by hand or relying on a runtime image proxy, I moved all raw originals out of public/ into a gitignored media-source/ directory and wrote a Sharp-based build pipeline (pnpm images:build).5 For every source photo, it bakes EXIF orientation into pixels via rotate(), strips all EXIF, GPS, camera, and timestamp metadata by omitting withMetadata(), writes through temporary files before atomic replacement, and generates non-upscaled AVIF and WebP variants across four widths (480, 960, 1600, and 2400 pixels) plus inline WebP blur placeholders.
That pipeline protects both visual craft and loading performance automatically. Setting withoutEnlargement: true ensures small originals—such as an older 360×360 square photo in the archive—are never stretched up and are flagged lowResolution: true in the manifest so they can never be accidentally placed into a full-bleed hero. In the browser, only the first hero LCP image is preloaded while subsequent slides prefetch modestly and body images lazy-load with explicit aspect ratios to prevent layout shift. Before Next.js 15 exports all 21 static pages, pnpm images:check runs in CI to block any raw .jpg/.jpeg/.heic files in public/, verify zero lingering EXIF/GPS metadata, reject broken image IDs, orphan derivatives, or duplicate hashes, require wide-screen hero assets, and check soft size budgets across mobile, desktop, and hero tiers.6
排版之下,重构还退役了旧的 data/projects.js(过去组件全靠约定手拼 public 路径),把全部内容迁进类型化 config/ 模块(site、home、stories、cuisines 和自动生成的图片清单),组件不再猜文件名,home.ts 也只凭 ID 选头图故事而不复制元数据。
私人饮食日志由 iPhone 照片攒起来,每张原图都悄悄带着精确 GPS 坐标、机型与拍摄时间,还动辄几兆。我没靠手工抹信息或运行时图片代理,而是把所有原图移出 public/ 放进 gitignore 的 media-source/,写了基于 Sharp 的构建管线(pnpm images:build)。5 对每张原图,先用 rotate() 把 EXIF 方向写进像素,省略 withMetadata() 彻底剥离 EXIF、GPS、设备与时间,通过临时文件原子替换输出,生成不放大的四档宽度(480、960、1600、2400 像素)AVIF 与 WebP 衍生图及内联 WebP 模糊占位。
这套管线同时自动护住视觉品质与加载性能。withoutEnlargement: true 保证小原图(比如归档里一张旧的 360×360 方图)绝不被硬拉大,并在清单中标为 lowResolution: true,防着误塞进全屏头图。浏览器端只预加载首张头图 LCP,后续幻灯片温和预取,正文图片带显式宽高比懒加载防止布局跳动。Next.js 15 导出全部 21 个静态页面前,pnpm images:check 会在 CI 里拦住 public/ 中任何原始 .jpg/.jpeg/.heic 文件、核验零残留 EXIF/GPS、拒绝失效图片 ID、孤立衍生图或重复哈希、要求宽屏头图版本,并检查移动/桌面/头图三档软体积预算。6
What we deliberately left out of version one第一版刻意砍掉了什么
The editorial story bible ends with a six-question decision checklist before adding any feature or page, culminating in one filter that killed more bad ideas than anything else: would this still feel recognizably like Wan's Dine without the logo? Any proposal oriented around ratings, comparison tables, or transactional restaurant discovery fails that test immediately.
That same discipline kept version one lean: no CMS admin backend, no user accounts, likes, or comments, no embedded map SDK, no full-site search bar, and no exposed knobs for tweaking Liquid Glass parameters. Keeping everything in versioned TypeScript config and statically exported HTML forced the writing and photography to carry the entire experience on their own before adding operational weight.
编辑手册末尾挂着一份新增功能前的六问决策清单,最后一道滤网砍掉的坏主意比什么都多:把 Logo 遮住,它还让人一眼认得出是 Wan's Dine 吗?凡是围绕打分、横评表格或交易型找店的功能,在这一关当场出局。
同样的克制让第一版保持轻盈:没有 CMS 后台、没有账号点赞评论、没有嵌入式地图 SDK、没有全站搜索框,也没有可调 Liquid Glass 参数滑块。把一切留在受版本控制的 TypeScript 配置与静态导出 HTML 里,逼着文字和照片先靠自己撑起整份体验,再谈加运维重量。
Notes注释
- Scent and weather notes are only included when explicitly supplied in the author's source notes—never inferred from photographs or used as lifestyle tags across every entry.↩︎气味与天气细节只在作者源笔记明确写到时才写入,绝不从照片反推,也不当成每篇必配的生活方式标签。↩︎
- Across the 34 entries in config/stories.ts (3 essays, 27 notes, 4 fragments), fragments deliberately break up the rhythm between longer essays and notes so the continuous homepage never turns into a wall of dense prose.↩︎config/stories.ts 共 34 篇(3 篇 essay、27 篇 note、4 篇 fragment),fragment 刻意打断长文与短笔记之间的密度,让连续首页不致沦为密密麻麻的文字墙。↩︎
- The EditorialGallery viewer handles Escape to close, Left/Right arrow navigation, body scroll locking while open, and automatic focus restoration back to the triggering photograph when dismissed.↩︎EditorialGallery 查看器支持 Escape 关闭、左右方向键切图、打开时锁定页面滚动,以及关闭后自动把焦点还给触发照片。↩︎
- The warm paper palette anchors around --paper (#e9e5dd), --paper-raised (#f3efe7), --ink (#272720), --ink-muted (#75736a), --moss (#777d69), --clay (#9f856d), and --night (#171814).↩︎暖纸色板锚定在 --paper (#e9e5dd)、--paper-raised (#f3efe7)、--ink (#272720)、--ink-muted (#75736a)、--moss (#777d69)、--clay (#9f856d) 与 --night (#171814)。↩︎
- scripts/process-images.mjs outputs AVIF (q60–65 for standard frames, q68–72 for heroes) and WebP (q76–80) derivatives into public/media/generated/ alongside the typed config/generated/images.ts manifest.↩︎scripts/process-images.mjs 向 public/media/generated/ 输出 AVIF(常规 q60–65、Hero q68–72)与 WebP(q76–80)衍生图,并生成类型化的 config/generated/images.ts 清单。↩︎
- scripts/check-public-images.mjs enforces zero-EXIF compliance, Hero width >= 1600 px, manifest integrity, and baseline size budgets of 100–180 KB (mobile), 180–350 KB (desktop body), and 350–650 KB (Hero).↩︎scripts/check-public-images.mjs 在 CI 中强制零 EXIF 合规、Hero 宽度 >= 1600 px、清单完整性,以及移动端 100–180 KB、桌面正文 180–350 KB、Hero 350–650 KB 的基线体积预算。↩︎
Designed and statically exported with Next.js 15, React 19, TypeScript, Tailwind CSS, Instrument Serif / Geist typography, and a Sharp AVIF/WebP privacy pipeline; live at dine.yflong.dev.使用 Next.js 15、React 19、TypeScript、Tailwind CSS、Instrument Serif / Geist 字体与 Sharp AVIF/WebP 隐私管线设计并静态导出,上线于 dine.yflong.dev。
Stack: Next.js 15, React 19, TypeScript, Editorial Design, Sharp AVIF/WebP.技术栈:Next.js 15、React 19、TypeScript、Editorial Design、Sharp AVIF/WebP。