左侧刻度章节导航
源自 heeyunior.xyz 的左侧刻度与整屏吸附联动范式:暖纸色单栏画布旁只露出极克制的短横线刻度,不制造侧栏压迫感;整屏滚动(y mandatory)切换章节时当前刻度平滑伸长并驱动正文错峰上浮,悬停或键盘聚焦时章节名轻盈滑出,点击附带横向轻弹反馈。
演示与调参
决定原站呼吸感的四个核心细节:① 默认态只保留 12px 宽、16% 墨色短横线,即使当前激活章节也只把刻度拉长到 24px(42% 墨色)而不常驻露出文字,把左侧留白彻底还给正文;② 悬停或 Tab 聚焦时用 cubic-bezier(0.16, 1, 0.3, 1) 让章节名从 -8px 滑入,点击时叠加 scale(0.97) 与 520ms 横向 4px 轻弹(timelineFlash);③ 右侧采用无边框暖纸画布(#F5F4F0)配 scroll-snap-type: y mandatory 一屏一章,切换到当前屏时子模块按 80ms 阶梯错峰上浮;④ 遵循原生 scroll-target-group / scrollsnapchange 渐进增强与视口中心线兜底,中途手滚滚轮立即打断程序平滑滚动,绝不抢手。
A bit about me
Design Engineer
Hi, I'm Yunior
8+ years of product & UX design building global SaaS and complex web apps. Helped shape Notta from early Pro monetization to enterprise scale, and solo built & shipped Nook from 0 to 1 with AI agents.
Most ideas don't arrive fully formed—they take shape through making. Staying curious and building hands-on is how good solutions and judgment emerge.
Personal project · 2026
Nook — Turning everyday photos into digital albums
A digital family photo album designed and built solo from 0 to 1—owning product definition, visual craft, and 400+ PRs with AI agents.



2021.06 – 2024.10
Notta — Designing for product growth
Global AI meeting notetaker—leading lifecycle UX across signup, Pro conversion, retention, and the web design system.


2018.01 – 2021.03
EXX — Digital-asset trading app & web redesign
End-to-end redesign across app, web, and marketing—restructuring market browsing, fiat deposit, and core trading flows.


Small design experiments
Earlier motion and interaction studies shared on Dribbble—exploring visual direction, transitions, and micro-interaction craft.



Thank you
For exploring this far
If you’re curious about any of these projects, the trade-offs behind them, or building products with AI, I’d love to chat.
Think & build.
复刻提示词
请用 React + Tailwind CSS 复刻 heeyunior.xyz 原站的「左侧刻度章节导航 + 暖纸整屏滚动吸附(Timeline Rail Nav)」完整页面组件。
视觉与纸感色彩系统:
- 采用无外框暖纸色画布(#F5F4F0),主文字 #141414,正文 70% 墨色透明度,辅助信息 40% 透明度,作品卡片底色 #E7E4DF,搭配 2px 重复点状分割线(2px 实点 + 6px 留白)。
- 顶部固定 56px 渐变遮罩顶栏(由 #F5F4F0 向透明过渡,外层 pointer-events: none),左侧为品牌锚点,右侧为「中文 / EN」双语切换按钮(默认英文)。
左侧刻度导航(.timeline)精确物理参数:
- 固定在视口左侧 `left: 24px; top: calc(50% - 56px); transform: translateY(-50%);`,使用语义化 `<nav>` + `<ol>`(项间距 4px,开启 `scroll-target-group: auto`),激活项同步标注 `aria-current="location"`。
- 每行采用双列网格 `grid-template-columns: 24px 1fr; gap: 8px;`:左侧圆角刻度线粗细 2px,静息宽度 12px(16% 墨色);激活或悬停时在 360ms(`cubic-bezier(0.16, 1, 0.3, 1)`)内平滑伸展至 24px(42% 墨色)。
- 章节文字显隐策略:默认隐藏文字(opacity: 0, translateX(-8px)),即使当前激活项也仅拉长刻度不露文字,仅在鼠标悬停或键盘 Tab 聚焦单行时从左向右轻盈滑入。
- 点击微反馈:按下缩放 `scale(0.97)`,点击瞬间触发 520ms 横向 4px 轻弹回落动画(`timelineFlash`)并平滑滚动至目标章节。
整屏吸附与章节错峰显影:
- 主滚动流采用「scroll-snap-type: y mandatory 一屏一章强制吸附(scroll-snap-stop: always)」,隐藏滚动条。
- 结合 `scrollsnapchange` 原生事件与视口中心线 / `IntersectionObserver` 双重联动高亮;程序平滑滚动途中一旦检测到用户滚轮或触摸操作立即交还控制权,绝不抢手。
- 当前激活屏(`.is-visible`)内的标题、正文、案例卡与指标栏按 80ms 阶梯错峰从 `translateY(16px)` 柔和上浮显影,并完整兼容 `prefers-reduced-motion: reduce`。代码
"use client";
import React, { useCallback, useEffect, useId, useRef, useState } from "react";
const railParams = {
"copyLang": "en",
"restWidthPx": 12,
"activeWidthPx": 24,
"rowGapPx": 4,
"lineThicknessPx": 2,
"durationMs": 360,
"labelRevealMode": "hover-single",
"snapMode": "snap",
"showActiveLabel": false
};
export interface TimelineRailNavParams {
copyLang?: string;
restWidthPx?: number;
activeWidthPx?: number;
rowGapPx?: number;
lineThicknessPx?: number;
durationMs?: number;
labelRevealMode?: string;
snapMode?: string;
showActiveLabel?: boolean;
}
interface SectionCopy {
id: string;
navLabel: { en: string; zh: string };
}
const NAV_SECTIONS: SectionCopy[] = [
{ id: "about-me", navLabel: { en: "About me", zh: "关于我" } },
{ id: "nook", navLabel: { en: "Nook", zh: "Nook" } },
{ id: "notta", navLabel: { en: "Notta", zh: "Notta" } },
{ id: "exx-app-web", navLabel: { en: "EXX app & web", zh: "EXX app & web" } },
{
id: "design-experiments",
navLabel: { en: "Design experiments", zh: "设计尝试" },
},
{ id: "thank-you", navLabel: { en: "Contact me", zh: "联系我" } },
];
const HAIRLINE_BG =
"repeating-linear-gradient(to right, rgba(20, 20, 20, 0.28) 0 2px, transparent 2px 8px)";
function InlineBrandLink({
href,
children,
}: {
href: string;
children: React.ReactNode;
}) {
return (
<a
href={href}
target="_blank"
rel="noopener noreferrer"
className="hy-inline-link"
>
{children}
<svg
viewBox="0 0 16 16"
aria-hidden="true"
className="hy-inline-link-arrow"
>
<path
d="M4 12 12 4M5 4h7v7"
fill="none"
stroke="currentColor"
strokeWidth="1.6"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
</a>
);
}
function CasePreviewCard({
src,
title,
subtitle,
}: {
src: string;
title: string;
subtitle?: string;
}) {
const [imgFailed, setImgFailed] = useState(false);
return (
<div className="hy-feature-item group/card">
<div className="hy-feature-card">
{!imgFailed ? (
<img
src={src}
alt={title}
loading="lazy"
decoding="async"
onError={() => setImgFailed(true)}
className="h-full w-full object-cover"
/>
) : (
<span aria-hidden="true" className="hy-feature-placeholder" />
)}
<span aria-hidden="true" className="hy-feature-open-icon">
<svg viewBox="0 0 16 16" className="size-3 text-[#F5F4F0]">
<path
d="M4.5 11.5 11.5 4.5M5.5 4.5h6v6"
fill="none"
stroke="currentColor"
strokeWidth="1.8"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
</span>
</div>
<div className="grid gap-0.5 leading-[1.25]">
<strong className="truncate font-sans text-[11px] font-bold text-[#141414]">
{title}
</strong>
{subtitle ? (
<span className="truncate font-sans text-[10px] font-bold text-[#141414]/40">
{subtitle}
</span>
) : null}
</div>
</div>
);
}
function TimelineRailNav({
params = {},
}: {
params?: TimelineRailNavParams;
}) {
const rawUid = useId();
const uid = rawUid.replace(/[^a-zA-Z0-9_-]/g, "");
const paramLang = params.copyLang === "zh" ? "zh" : "en";
const [lang, setLang] = useState<"en" | "zh">(paramLang);
useEffect(() => {
setLang(paramLang);
}, [paramLang]);
const restWidthPx = Number(params.restWidthPx ?? 12);
const activeWidthPx = Number(params.activeWidthPx ?? 24);
const rowGapPx = Number(params.rowGapPx ?? 4);
const lineThicknessPx = Number(params.lineThicknessPx ?? 2);
const durationMs = Number(params.durationMs ?? 360);
const labelRevealMode = String(params.labelRevealMode ?? "hover-single");
const snapMode = String(params.snapMode ?? "snap");
const showActiveLabel = Boolean(params.showActiveLabel ?? false);
const feedRef = useRef<HTMLElement | null>(null);
const sectionRefs = useRef<Record<string, HTMLElement | null>>({});
const destinationRef = useRef<string | null>(null);
const settleTimerRef = useRef<number>(0);
const rafRef = useRef<number>(0);
const [activeId, setActiveId] = useState<string>("about-me");
const [railHovered, setRailHovered] = useState(false);
const [hoveredId, setHoveredId] = useState<string | null>(null);
const [flashingId, setFlashingId] = useState<string | null>(null);
const [avatarLifted, setAvatarLifted] = useState(false);
const [avatarImgFailed, setAvatarImgFailed] = useState(false);
const [emailCopied, setEmailCopied] = useState(false);
const isZh = lang === "zh";
const getSectionId = useCallback(
(slug: string) => `${uid}-${slug}`,
[uid]
);
const findSectionAtCenter = useCallback((): string => {
const feed = feedRef.current;
if (!feed) return NAV_SECTIONS[0].id;
const bounds = feed.getBoundingClientRect();
const center = bounds.top + feed.clientHeight / 2;
for (const sec of NAV_SECTIONS) {
const el = sectionRefs.current[sec.id];
if (!el) continue;
const rect = el.getBoundingClientRect();
if (rect.top <= center && rect.bottom > center) {
return sec.id;
}
}
return NAV_SECTIONS[0].id;
}, []);
const syncVisibleSection = useCallback(() => {
if (rafRef.current) return;
rafRef.current = window.requestAnimationFrame(() => {
rafRef.current = 0;
setActiveId(findSectionAtCenter());
});
window.clearTimeout(settleTimerRef.current);
settleTimerRef.current = window.setTimeout(() => {
destinationRef.current = null;
setActiveId(findSectionAtCenter());
}, 180);
}, [findSectionAtCenter]);
useEffect(() => {
const feed = feedRef.current;
if (!feed) return;
const handleSnapChange = (event: Event) => {
const snapTarget = (event as Event & { snapTargetBlock?: HTMLElement | null })
.snapTargetBlock;
const slug = snapTarget?.dataset.sectionSlug;
if (slug) {
destinationRef.current = null;
setActiveId(slug);
}
};
const interruptProgrammaticScroll = () => {
if (!destinationRef.current) return;
destinationRef.current = null;
feed.scrollTo({ top: feed.scrollTop, behavior: "instant" as ScrollBehavior });
syncVisibleSection();
};
if ("onscrollsnapchange" in HTMLElement.prototype) {
feed.addEventListener("scrollsnapchange", handleSnapChange);
}
let observer: IntersectionObserver | null = null;
if (typeof IntersectionObserver !== "undefined") {
observer = new IntersectionObserver(
(entries) => {
for (const entry of entries) {
if (entry.isIntersecting) {
const slug = (entry.target as HTMLElement).dataset.sectionSlug;
if (slug && !destinationRef.current) {
setActiveId(slug);
}
}
}
},
{
root: feed,
rootMargin: "-48% 0px -48% 0px",
threshold: 0,
}
);
for (const sec of NAV_SECTIONS) {
const node = sectionRefs.current[sec.id];
if (node) observer.observe(node);
}
}
feed.addEventListener("wheel", interruptProgrammaticScroll, { passive: true });
feed.addEventListener("touchstart", interruptProgrammaticScroll, {
passive: true,
});
feed.addEventListener("pointerdown", interruptProgrammaticScroll, {
passive: true,
});
return () => {
if ("onscrollsnapchange" in HTMLElement.prototype) {
feed.removeEventListener("scrollsnapchange", handleSnapChange);
}
observer?.disconnect();
feed.removeEventListener("wheel", interruptProgrammaticScroll);
feed.removeEventListener("touchstart", interruptProgrammaticScroll);
feed.removeEventListener("pointerdown", interruptProgrammaticScroll);
if (rafRef.current) window.cancelAnimationFrame(rafRef.current);
window.clearTimeout(settleTimerRef.current);
};
}, [syncVisibleSection]);
const scrollToChapter = (slug: string, withFlash = true) => {
const feed = feedRef.current;
const target = sectionRefs.current[slug];
if (!feed || !target) return;
const reduced =
typeof window !== "undefined" &&
window.matchMedia("(prefers-reduced-motion: reduce)").matches;
destinationRef.current = slug;
setActiveId(slug);
if (withFlash && !reduced) {
setFlashingId(null);
window.requestAnimationFrame(() => {
setFlashingId(slug);
});
}
feed.scrollTo({
top: target.offsetTop,
behavior: reduced ? "auto" : "smooth",
});
target.focus({ preventScroll: true });
};
const handleCopyEmail = async () => {
const email = "heeyunior@gmail.com";
try {
await navigator.clipboard?.writeText(email);
} catch {
// Fallback ignored inside sandboxed frames
}
setEmailCopied(true);
window.setTimeout(() => setEmailCopied(false), 1500);
};
const handleAvatarClick = () => {
setAvatarLifted(true);
window.setTimeout(() => setAvatarLifted(false), 900);
};
return (
<div
lang={isZh ? "zh-CN" : "en"}
className="hy-stage relative aspect-[16/10] w-full max-w-[720px] overflow-hidden rounded-xl border border-[#141414]/[0.08] bg-[#F5F4F0] text-[#141414] shadow-[0_1px_2px_rgba(0,0,0,0.03)] select-none"
>
<style>{`
@font-face {
font-family: "Sentient";
font-style: normal;
font-weight: 500;
font-display: swap;
src: url("/recipes/heeyunior/sentient-500.woff2") format("woff2");
}
@font-face {
font-family: "Daniel";
font-style: normal;
font-weight: 700;
font-display: swap;
src: url("/recipes/heeyunior/Daniel-Bold.otf") format("opentype");
}
@font-face {
font-family: "Silkscreen";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("/recipes/heeyunior/silkscreen-latin-400.woff2") format("woff2");
}
.hy-stage {
--hy-bg: #f5f4f0;
--hy-fg: #141414;
--hy-body: rgba(20, 20, 20, 0.7);
--hy-muted: rgba(20, 20, 20, 0.4);
--hy-soft: #e7e4df;
--hy-paper: #faf9f7;
--hy-line: rgba(20, 20, 20, 0.14);
--hy-ring: rgba(20, 20, 20, 0.38);
--hy-ease: cubic-bezier(0.16, 1, 0.3, 1);
--hy-flare: "Sentient", Georgia, "Iowan Old Style", "Times New Roman", serif;
--hy-sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", sans-serif;
--hy-hand: "Daniel", "Bradley Hand", "Snell Roundhand", cursive;
font-family: var(--hy-sans);
}
.hy-stage[lang="zh-CN"] {
--hy-flare: var(--hy-sans);
}
.hy-flare {
font-family: var(--hy-flare);
}
.hy-hand {
font-family: var(--hy-hand);
}
.hy-rail-list {
scroll-target-group: auto;
}
.hy-feed {
scrollbar-width: none;
overscroll-behavior-y: contain;
}
.hy-feed::-webkit-scrollbar {
display: none;
}
@keyframes hyTimelineFlash {
0% { transform: translateX(0); }
45% { transform: translateX(4px); }
100% { transform: translateX(0); }
}
.hy-rail-link.is-flashing {
animation: hyTimelineFlash 520ms var(--hy-ease);
}
.hy-rail-link:is(:target-current, .is-active) .hy-tick-line {
width: var(--hy-active-w) !important;
background-color: rgba(20, 20, 20, 0.42) !important;
}
.hy-snap-section .hy-col > * {
opacity: 0;
transform: translateY(16px);
transition:
opacity 760ms var(--hy-ease),
transform 760ms var(--hy-ease);
}
.hy-snap-section.is-visible .hy-col > * {
opacity: 1;
transform: translateY(0);
}
.hy-snap-section.is-visible .hy-col > *:nth-child(2) {
transition-delay: 80ms;
}
.hy-snap-section.is-visible .hy-col > *:nth-child(3) {
transition-delay: 160ms;
}
.hy-snap-section.is-visible .hy-col > *:nth-child(4) {
transition-delay: 240ms;
}
.hy-snap-section.is-visible .hy-col > *:nth-child(5) {
transition-delay: 320ms;
}
.hy-inline-link {
display: inline-flex;
align-items: baseline;
gap: 2px;
color: var(--hy-muted);
white-space: nowrap;
background-image:
linear-gradient(var(--hy-fg), var(--hy-fg)),
linear-gradient(rgba(20, 20, 20, 0.24), rgba(20, 20, 20, 0.24));
background-position: 100% 100%, 0 100%;
background-repeat: no-repeat;
background-size: 0% 1px, 100% 1px;
padding-bottom: 1px;
text-decoration: none;
transition:
background-size 280ms cubic-bezier(0.77, 0, 0.175, 1),
color 150ms ease;
}
.hy-inline-link:hover,
.hy-inline-link:focus-visible {
color: var(--hy-fg);
background-position: 0 100%, 0 100%;
background-size: 100% 1px, 100% 1px;
}
.hy-inline-link-arrow {
width: 9px;
height: 9px;
align-self: center;
transition: transform 150ms ease;
}
.hy-inline-link:hover .hy-inline-link-arrow {
transform: translate(1px, -1px);
}
.hy-profile-card {
position: relative;
width: 64px;
height: 64px;
flex-shrink: 0;
border-radius: 22%;
background: var(--hy-soft);
box-shadow: 0 0 0 4px var(--hy-bg);
transform: translate(-8px, -4px) rotate(4deg);
transition:
transform 300ms var(--hy-ease),
box-shadow 300ms ease-out;
cursor: pointer;
}
.hy-profile-card::after {
content: "Hello!";
position: absolute;
top: -4px;
right: -8px;
z-index: 2;
padding: 4px 8px;
border-radius: 12px 12px 12px 4px;
background: var(--hy-fg);
color: var(--hy-bg);
font-family: "Silkscreen", ui-monospace, monospace;
font-size: 9px;
line-height: 1;
opacity: 0;
pointer-events: none;
box-shadow: 0 12px 20px rgba(20, 20, 20, 0.12);
transform: translate(-12px, 8px) scale(0.76);
transform-origin: left bottom;
transition:
opacity 180ms ease-out,
transform 360ms var(--hy-ease);
}
.hy-profile-card:hover,
.hy-profile-card.is-lifted {
box-shadow:
0 0 0 4px var(--hy-bg),
0 12px 24px rgba(20, 20, 20, 0.14);
transform: translate(-8px, -12px) rotate(-2deg) scale(1.16);
}
.hy-profile-card:hover::after,
.hy-profile-card.is-lifted::after {
opacity: 1;
transform: translate(24px, -12px) rotate(-2deg) scale(1);
}
.hy-feature-item {
display: grid;
gap: 8px;
min-width: 0;
cursor: pointer;
}
.hy-feature-card {
position: relative;
height: 80px;
border-radius: 12px;
background:
linear-gradient(145deg, rgba(20, 20, 20, 0.08), transparent 54%),
radial-gradient(circle at 72% 22%, rgba(250, 249, 247, 0.82), transparent 34%),
var(--hy-soft);
box-shadow:
inset 0 0 0 1px rgba(20, 20, 20, 0.12),
0 1px 2px rgba(20, 20, 20, 0.05);
overflow: hidden;
transition:
transform 360ms var(--hy-ease),
box-shadow 360ms var(--hy-ease);
}
.hy-feature-item:hover .hy-feature-card {
transform: translateY(-4px) scale(1.02);
box-shadow:
inset 0 0 0 1px rgba(20, 20, 20, 0.18),
0 12px 24px rgba(20, 20, 20, 0.1);
}
.hy-feature-placeholder {
position: absolute;
inset: 12px;
border-radius: 8px;
border: 1px solid rgba(20, 20, 20, 0.1);
}
.hy-feature-open-icon {
position: absolute;
top: 8px;
right: 8px;
z-index: 3;
display: grid;
place-items: center;
width: 20px;
height: 20px;
border-radius: 999px;
background: var(--hy-fg);
opacity: 0;
transform: rotate(45deg);
transition:
opacity 360ms var(--hy-ease),
transform 360ms var(--hy-ease);
}
.hy-feature-item:hover .hy-feature-open-icon {
opacity: 1;
transform: rotate(0deg);
}
@media (prefers-reduced-motion: reduce) {
.hy-stage *,
.hy-stage *::before,
.hy-stage *::after {
animation-duration: 0.01ms !important;
transition-duration: 0.01ms !important;
}
}
`}</style>
{/* Top Gradient Chrome Header (heeyunior.xyz .site-header) */}
<header
aria-label="Site header"
style={{
background:
"linear-gradient(to bottom, #f5f4f0 0%, rgba(245,244,240,0.98) 24%, rgba(245,244,240,0.68) 62%, transparent 100%)",
}}
className="pointer-events-none absolute inset-x-0 top-0 z-40 h-12 px-6"
>
<div className="pointer-events-auto mx-auto mt-2 flex h-8 w-full items-center justify-between pl-0 sm:pl-[152px] sm:pr-6">
<a
href={`#${getSectionId("about-me")}`}
onClick={(e) => {
e.preventDefault();
scrollToChapter("about-me", false);
}}
className="inline-flex h-8 items-center text-[11px] font-bold text-[#141414] outline-none focus-visible:ring-2 focus-visible:ring-[#141414]/40"
>
Yunior
</a>
<button
type="button"
onClick={() => setLang((prev) => (prev === "en" ? "zh" : "en"))}
aria-label={isZh ? "切换到英文" : "Switch to Chinese"}
className="grid size-8 cursor-pointer place-items-center rounded-lg text-[11px] font-medium text-[#141414]/70 transition-colors hover:text-[#141414] focus-visible:outline-2 focus-visible:outline-[#141414]/40"
>
{isZh ? "EN" : "中文"}
</button>
</div>
</header>
{/* Left Fixed Timeline Rail (heeyunior.xyz .timeline) */}
<nav
aria-label={isZh ? "章节时间轴导航" : "Chapter timeline"}
onMouseEnter={() => setRailHovered(true)}
onMouseLeave={() => {
setRailHovered(false);
setHoveredId(null);
}}
style={
{
"--hy-active-w": `${activeWidthPx}px`,
} as React.CSSProperties
}
className="absolute top-[calc(50%-20px)] left-6 z-30 hidden -translate-y-1/2 sm:block"
>
<ol
style={{ gap: `${rowGapPx}px` }}
className="hy-rail-list m-0 grid list-none p-0"
>
{NAV_SECTIONS.map((sec) => {
const isActive = activeId === sec.id;
const isHovered = hoveredId === sec.id;
const showLabel =
labelRevealMode === "always"
? true
: labelRevealMode === "hover-rail"
? railHovered || (showActiveLabel && isActive)
: isHovered || (showActiveLabel && isActive);
return (
<li key={sec.id}>
<a
href={`#${getSectionId(sec.id)}`}
aria-current={isActive ? "location" : undefined}
onClick={(e) => {
e.preventDefault();
scrollToChapter(sec.id, true);
}}
onMouseEnter={() => setHoveredId(sec.id)}
onMouseLeave={() =>
setHoveredId((prev) => (prev === sec.id ? null : prev))
}
onFocus={() => setHoveredId(sec.id)}
onBlur={() =>
setHoveredId((prev) => (prev === sec.id ? null : prev))
}
onAnimationEnd={() =>
setFlashingId((prev) => (prev === sec.id ? null : prev))
}
style={{
gridTemplateColumns: `${activeWidthPx}px 1fr`,
}}
className={`hy-rail-link grid min-h-6 cursor-pointer items-center gap-2 text-left text-[12px] font-bold no-underline transition-[color,transform] duration-[260ms] ease-out outline-none active:scale-[0.97] focus-visible:ring-2 focus-visible:ring-[#141414]/38 focus-visible:ring-offset-2 focus-visible:ring-offset-[#F5F4F0] ${
isActive ? "is-active" : ""
} ${flashingId === sec.id ? "is-flashing" : ""}`}
>
<span
aria-hidden="true"
style={{
width: `${
isActive || isHovered ? activeWidthPx : restWidthPx
}px`,
height: `${lineThicknessPx}px`,
backgroundColor:
isActive || isHovered
? "rgba(20, 20, 20, 0.42)"
: "rgba(20, 20, 20, 0.16)",
transition: `width ${durationMs}ms cubic-bezier(0.16, 1, 0.3, 1), background-color ${durationMs}ms ease-out`,
}}
className="hy-tick-line rounded-full"
/>
<span
style={{
opacity: showLabel ? 1 : 0,
transform: showLabel
? "translateX(0px)"
: "translateX(-8px)",
color:
isHovered || (showActiveLabel && isActive)
? "#141414"
: "rgba(20, 20, 20, 0.4)",
transition: `opacity 260ms ease-out, transform ${durationMs}ms cubic-bezier(0.16, 1, 0.3, 1), color 260ms ease-out`,
}}
className="pointer-events-none whitespace-nowrap"
>
{isZh ? sec.navLabel.zh : sec.navLabel.en}
</span>
</a>
</li>
);
})}
</ol>
</nav>
{/* Main Full-Height Scroll-Snap Feed (heeyunior.xyz #snapFeed) */}
<main
ref={feedRef}
tabIndex={0}
aria-label={
isZh ? "Yunior 个人主页章节内容" : "Yunior portfolio sections"
}
onScroll={syncVisibleSection}
style={{
scrollSnapType: snapMode === "snap" ? "y mandatory" : "none",
}}
className="hy-feed h-full w-full overflow-x-hidden overflow-y-auto outline-none"
>
{/* 1. About Me */}
<section
id={getSectionId("about-me")}
data-section-slug="about-me"
tabIndex={-1}
ref={(node) => {
sectionRefs.current["about-me"] = node;
}}
style={{
scrollSnapAlign: snapMode === "snap" ? "start" : undefined,
scrollSnapStop: snapMode === "snap" ? "always" : undefined,
}}
className={`hy-snap-section relative flex min-h-full w-full outline-none ${
activeId === "about-me" ? "is-visible" : ""
}`}
>
<div className="hy-col mx-auto flex min-h-full w-full flex-col justify-center px-6 pt-12 pb-10 sm:pl-[176px] sm:pr-12">
<header className="flex items-end justify-between gap-4">
<div>
<h2 className="hy-flare m-0 text-[18px] leading-[1.2] font-medium text-[#141414]">
{isZh ? "关于我" : "A bit about me"}
</h2>
<p className="mt-1 text-[12px] font-medium text-[#141414]/40">
Design Engineer
</p>
<p className="hy-hand mt-3 text-[18px] leading-none font-bold tracking-[0.02em] text-[#141414]">
Hi, I'm Yunior
</p>
</div>
<button
type="button"
onClick={handleAvatarClick}
aria-label="Yunior portrait"
className={`hy-profile-card ${avatarLifted ? "is-lifted" : ""}`}
>
{!avatarImgFailed ? (
<img
src="/recipes/heeyunior/yunior-pixel.svg"
alt=""
aria-hidden="true"
onError={() => setAvatarImgFailed(true)}
style={{ imageRendering: "pixelated" }}
className="block h-full w-full rounded-[inherit] object-cover"
/>
) : (
<span className="grid h-full w-full place-items-center rounded-[inherit] bg-[#141414] font-mono text-[12px] font-bold text-[#F5F4F0]">
YN
</span>
)}
</button>
</header>
<div className="hy-flare mt-4 grid gap-2.5 text-[12.5px] leading-[1.58] text-[#141414]/70">
{isZh ? (
<>
<p className="m-0">
8 年以上出海 SaaS 与复杂 Web 产品体验设计经验。曾深度参与{" "}
<InlineBrandLink href="https://www.notta.ai/en/">
Notta
</InlineBrandLink>{" "}
从早期建设、Pro 商业化到企业级扩展的全生命周期设计;也借助 AI
Agent 从 0 到 1 独立设计开发了家庭相册产品{" "}
<InlineBrandLink href="https://memorynook.cc">
Nook
</InlineBrandLink>
。
</p>
<p className="m-0">
很多想法不是提前想清楚的,而是在动手做的过程里慢慢长出来的。保持好奇、亲手去试,好方案与判断力都会在这个过程里浮现。
</p>
</>
) : (
<>
<p className="m-0">
8+ years of product & UX design building global SaaS and
complex web apps. Helped shape{" "}
<InlineBrandLink href="https://www.notta.ai/en/">
Notta
</InlineBrandLink>{" "}
from early Pro monetization to enterprise scale, and solo
built & shipped{" "}
<InlineBrandLink href="https://memorynook.cc">
Nook
</InlineBrandLink>{" "}
from 0 to 1 with AI agents.
</p>
<p className="m-0">
Most ideas don't arrive fully formed—they take shape
through making. Staying curious and building hands-on is how
good solutions and judgment emerge.
</p>
</>
)}
</div>
<div
aria-hidden="true"
style={{ background: HAIRLINE_BG }}
className="mt-4 h-[2px] w-full"
/>
<div className="mt-4 flex items-center justify-between gap-4">
<button
type="button"
onClick={() => scrollToChapter("nook", true)}
className="group/btn inline-flex h-8 cursor-pointer items-center gap-2 rounded-full bg-[#141414] px-4 text-[12px] font-bold text-[#F5F4F0] transition-transform duration-300 ease-[cubic-bezier(0.16,1,0.3,1)] hover:-translate-y-0.5 hover:scale-[1.03] active:scale-[0.98]"
>
<span>{isZh ? "简历" : "Resume"}</span>
<svg
viewBox="0 0 16 16"
aria-hidden="true"
className="size-3 rotate-45 transition-transform duration-250 ease-[cubic-bezier(0.16,1,0.3,1)] group-hover/btn:rotate-0"
>
<path
d="M4.5 11.5 11.5 4.5M5.5 4.5h6v6"
fill="none"
stroke="currentColor"
strokeWidth="1.8"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
</button>
<button
type="button"
onClick={handleCopyEmail}
className="inline-flex h-8 cursor-pointer items-center gap-2 rounded-full border border-[#141414]/14 bg-[#F7F6F3] px-4 text-[12px] font-bold text-[#141414] shadow-[0_1px_0_rgba(20,20,20,0.05)] transition-all duration-250 ease-[cubic-bezier(0.16,1,0.3,1)] hover:-translate-y-0.5 hover:border-[#141414]/24 hover:bg-[#FAF9F7] active:scale-[0.98]"
>
{emailCopied ? (
<svg
viewBox="0 0 24 24"
aria-hidden="true"
className="size-4"
>
<path
d="M6 12.4l3.4 3.4L18.2 7"
fill="none"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2.4"
/>
</svg>
) : (
<svg
viewBox="0 0 24 24"
aria-hidden="true"
className="size-4 fill-current"
>
<path d="M9 7a3 3 0 0 1 3-3h6a3 3 0 0 1 3 3v6a3 3 0 0 1-3 3h-6a3 3 0 0 1-3-3V7Zm3-1a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-6ZM3 12a3 3 0 0 1 3-3h1v2H6a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-1h2v1a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3v-6Z" />
</svg>
)}
<span>
{emailCopied
? isZh
? "已复制"
: "Copied"
: isZh
? "复制邮箱"
: "Copy email"}
</span>
</button>
</div>
</div>
</section>
{/* 2. Nook */}
<section
id={getSectionId("nook")}
data-section-slug="nook"
tabIndex={-1}
ref={(node) => {
sectionRefs.current["nook"] = node;
}}
style={{
scrollSnapAlign: snapMode === "snap" ? "start" : undefined,
scrollSnapStop: snapMode === "snap" ? "always" : undefined,
}}
className={`hy-snap-section relative flex min-h-full w-full outline-none ${
activeId === "nook" ? "is-visible" : ""
}`}
>
<div className="hy-col mx-auto flex min-h-full w-full flex-col justify-center px-6 pt-12 pb-10 sm:pl-[176px] sm:pr-12">
<div>
<p className="m-0 text-[12px] text-[#141414]/40">
{isZh ? "个人项目 · 2026" : "Personal project · 2026"}
</p>
<h2 className="hy-flare mt-1 text-[18px] leading-[1.25] font-medium text-[#141414]">
{isZh
? "Nook — 把生活照片做成电子相册"
: "Nook — Turning everyday photos into digital albums"}
</h2>
<div className="mt-2.5 flex flex-wrap gap-2">
{(isZh
? ["独立产品", "产品设计", "AI 协作开发"]
: [
"Independent Product",
"Product Design",
"AI-assisted Development",
]
).map((tag) => (
<span
key={tag}
className="inline-flex h-6 items-center rounded-full border border-[#141414]/14 px-3 text-[10px] font-bold text-[#141414]/40"
>
{tag}
</span>
))}
</div>
</div>
<p className="hy-flare mt-3 text-[12.5px] leading-[1.55] text-[#141414]/70">
{isZh
? "我从 0 到 1 独立设计与开发的电子相册产品,借助 AI Agent 跑完产品定义、视觉规范与 400+ PR 工程交付。"
: "A digital family photo album designed and built solo from 0 to 1—owning product definition, visual craft, and 400+ PRs with AI agents."}
</p>
<div className="mt-4 grid grid-cols-3 gap-3">
<CasePreviewCard
src="/recipes/heeyunior/cover-product-decisions.webp"
title={isZh ? "产品判断与取舍" : "Product decisions"}
subtitle={isZh ? "低成本创作" : "Low-effort memories"}
/>
<CasePreviewCard
src="/recipes/heeyunior/cover-agent-workflow.webp"
title={isZh ? "人机与 Agent 协作" : "Agent workflow"}
subtitle={isZh ? "400+ PR 工作流" : "400+ PR guardrails"}
/>
<CasePreviewCard
src="/recipes/heeyunior/cover-ai-design-system.webp"
title="AI Design System"
subtitle={isZh ? "工程契约" : "Token contracts"}
/>
</div>
<div
style={{ background: HAIRLINE_BG }}
className="mt-4 h-[2px] w-full"
aria-hidden="true"
/>
<div className="mt-3 grid grid-cols-3 gap-3 text-[10px] font-bold text-[#141414]/40">
<span>
<strong className="mb-0.5 block text-[12px] font-semibold text-[#141414]">
{isZh ? "0 → 1 独立交付" : "0 → 1 solo build"}
</strong>
{isZh ? "产品、设计与上线" : "Product, design & ship"}
</span>
<span>
<strong className="mb-0.5 block text-[12px] font-semibold text-[#141414]">
{isZh ? "生成耗时 -93%" : "-93% gen time"}
</strong>
{isZh ? "58.3s 压至 4.1s" : "58.3s down to 4.1s"}
</span>
<span>
<strong className="mb-0.5 block text-[12px] font-semibold text-[#141414]">
{isZh ? "专属 AI 插图" : "Personal AI art"}
</strong>
{isZh ? "两段式选物护栏" : "Two-stage guardrails"}
</span>
</div>
</div>
</section>
{/* 3. Notta */}
<section
id={getSectionId("notta")}
data-section-slug="notta"
tabIndex={-1}
ref={(node) => {
sectionRefs.current["notta"] = node;
}}
style={{
scrollSnapAlign: snapMode === "snap" ? "start" : undefined,
scrollSnapStop: snapMode === "snap" ? "always" : undefined,
}}
className={`hy-snap-section relative flex min-h-full w-full outline-none ${
activeId === "notta" ? "is-visible" : ""
}`}
>
<div className="hy-col mx-auto flex min-h-full w-full flex-col justify-center px-6 pt-12 pb-10 sm:pl-[176px] sm:pr-12">
<div>
<p className="m-0 text-[12px] text-[#141414]/40">
2021.06 – 2024.10
</p>
<h2 className="hy-flare mt-1 text-[18px] leading-[1.25] font-medium text-[#141414]">
{isZh
? "Notta — 从核心体验到商业化增长"
: "Notta — Designing for product growth"}
</h2>
<div className="mt-2.5 flex flex-wrap gap-2">
{(isZh
? ["出海 SaaS", "转化设计", "复杂交互"]
: ["Global SaaS", "Conversion design", "Complex interactions"]
).map((tag) => (
<span
key={tag}
className="inline-flex h-6 items-center rounded-full border border-[#141414]/14 px-3 text-[10px] font-bold text-[#141414]/40"
>
{tag}
</span>
))}
</div>
</div>
<p className="hy-flare mt-3 text-[12.5px] leading-[1.55] text-[#141414]/70">
{isZh
? "面向全球团队的 AI 会议纪要平台。主导注册激活、付费转化到留存拓展的全生命周期体验与 Web 设计系统。"
: "Global AI meeting notetaker—leading lifecycle UX across signup, Pro conversion, retention, and the web design system."}
</p>
<div className="mt-4 grid grid-cols-2 gap-4">
<CasePreviewCard
src="/recipes/heeyunior/notta-membership-preview.webp"
title={
isZh ? "会员转化体系重构" : "Membership conversion redesign"
}
subtitle={isZh ? "会员转化" : "Membership conversion"}
/>
<CasePreviewCard
src="/recipes/heeyunior/notta-editor-preview.webp"
title={isZh ? "详情页编辑器体验优化" : "Transcript editor craft"}
subtitle={isZh ? "复杂编辑体验" : "Complex editing"}
/>
</div>
<div
style={{ background: HAIRLINE_BG }}
className="mt-4 h-[2px] w-full"
aria-hidden="true"
/>
<div className="mt-3 grid grid-cols-3 gap-3 text-[10px] font-bold text-[#141414]/40">
<span>
<strong className="mb-0.5 block text-[12px] font-semibold text-[#141414]">
27.6%
</strong>
{isZh ? "权益限制支付转化率" : "Contextual checkout conv."}
</span>
<span>
<strong className="mb-0.5 block text-[12px] font-semibold text-[#141414]">
{isZh ? "会员权益更清晰" : "Membership clarity"}
</strong>
{isZh ? "统一权益规则" : "Unified entitlement rules"}
</span>
<span>
<strong className="mb-0.5 block text-[12px] font-semibold text-[#141414]">
{isZh ? "可扩展编辑器" : "Scalable editor"}
</strong>
{isZh ? "对象 / 状态 / 指令" : "Object / state / command"}
</span>
</div>
</div>
</section>
{/* 4. EXX App & Web */}
<section
id={getSectionId("exx-app-web")}
data-section-slug="exx-app-web"
tabIndex={-1}
ref={(node) => {
sectionRefs.current["exx-app-web"] = node;
}}
style={{
scrollSnapAlign: snapMode === "snap" ? "start" : undefined,
scrollSnapStop: snapMode === "snap" ? "always" : undefined,
}}
className={`hy-snap-section relative flex min-h-full w-full outline-none ${
activeId === "exx-app-web" ? "is-visible" : ""
}`}
>
<div className="hy-col mx-auto flex min-h-full w-full flex-col justify-center px-6 pt-12 pb-10 sm:pl-[176px] sm:pr-12">
<div>
<p className="m-0 text-[12px] text-[#141414]/40">
2018.01 – 2021.03
</p>
<h2 className="hy-flare mt-1 text-[18px] leading-[1.25] font-medium text-[#141414]">
{isZh
? "EXX — 数字资产交易平台 App & Web 改版"
: "EXX — Digital-asset trading app & web redesign"}
</h2>
<div className="mt-2.5 flex flex-wrap gap-2">
{(isZh
? ["加密金融", "B2C", "数字资产"]
: ["Crypto finance", "B2C", "Digital assets"]
).map((tag) => (
<span
key={tag}
className="inline-flex h-6 items-center rounded-full border border-[#141414]/14 px-3 text-[10px] font-bold text-[#141414]/40"
>
{tag}
</span>
))}
</div>
</div>
<p className="hy-flare mt-3 text-[12.5px] leading-[1.55] text-[#141414]/70">
{isZh
? "主导 App、Web 端与官网全面改版,围绕行情浏览、法币入金与核心交易链路重塑操作效率与专业信任感。"
: "End-to-end redesign across app, web, and marketing—restructuring market browsing, fiat deposit, and core trading flows."}
</p>
<div className="mt-4 grid grid-cols-2 gap-4">
<CasePreviewCard
src="/recipes/heeyunior/exx-app-preview.webp"
title={isZh ? "EXX app 改版" : "EXX app redesign"}
/>
<CasePreviewCard
src="/recipes/heeyunior/exx-web-preview.webp"
title={isZh ? "EXX web 改版" : "EXX web redesign"}
/>
</div>
<div
style={{ background: HAIRLINE_BG }}
className="mt-4 h-[2px] w-full"
aria-hidden="true"
/>
<div className="mt-3 grid grid-cols-3 gap-3 text-[10px] font-bold text-[#141414]/40">
<span>
<strong className="mb-0.5 block text-[12px] font-semibold text-[#141414]">
7.2% ↑
</strong>
{isZh ? "Banner 点击率" : "Banner CTR"}
</span>
<span>
<strong className="mb-0.5 block text-[12px] font-semibold text-[#141414]">
12.6% → 20.8%
</strong>
{isZh ? "法币入金转化率" : "Fiat deposit conv."}
</span>
<span>
<strong className="mb-0.5 block text-[12px] font-semibold text-[#141414]">
{isZh ? "用户信任" : "User trust"}
</strong>
{isZh ? "与清晰度" : "& clarity"}
</span>
</div>
</div>
</section>
{/* 5. Design Experiments */}
<section
id={getSectionId("design-experiments")}
data-section-slug="design-experiments"
tabIndex={-1}
ref={(node) => {
sectionRefs.current["design-experiments"] = node;
}}
style={{
scrollSnapAlign: snapMode === "snap" ? "start" : undefined,
scrollSnapStop: snapMode === "snap" ? "always" : undefined,
}}
className={`hy-snap-section relative flex min-h-full w-full outline-none ${
activeId === "design-experiments" ? "is-visible" : ""
}`}
>
<div className="hy-col mx-auto flex min-h-full w-full flex-col justify-center px-6 pt-12 pb-10 sm:pl-[176px] sm:pr-12">
<div>
<h2 className="hy-flare m-0 text-[18px] leading-[1.25] font-medium text-[#141414]">
{isZh ? "一些设计尝试" : "Small design experiments"}
</h2>
<div className="mt-2.5 flex flex-wrap gap-2">
{(isZh
? ["Vibe coding", "AI 设计", "动效设计"]
: ["Vibe coding", "AI design", "Motion design"]
).map((tag) => (
<span
key={tag}
className="inline-flex h-6 items-center rounded-full border border-[#141414]/14 px-3 text-[10px] font-bold text-[#141414]/40"
>
{tag}
</span>
))}
</div>
</div>
<p className="hy-flare mt-3 text-[12.5px] leading-[1.55] text-[#141414]/70">
{isZh
? "整理早期发布在 Dribbble 的动效与交互练习,在大型业务项目之外探索不同的视觉方向、转场节奏与细节手感。"
: "Earlier motion and interaction studies shared on Dribbble—exploring visual direction, transitions, and micro-interaction craft."}
</p>
<div className="mt-4 grid grid-cols-3 gap-3">
<CasePreviewCard
src="/recipes/heeyunior/protect-my-family.webp"
title="Blind control"
subtitle="Smart home"
/>
<CasePreviewCard
src="/recipes/heeyunior/design-experiment-04.webp"
title="Vinyl playback"
subtitle="Music"
/>
<CasePreviewCard
src="/recipes/heeyunior/design-experiment-06.webp"
title="Watch details"
subtitle="E-commerce"
/>
</div>
<div
style={{ background: HAIRLINE_BG }}
className="mt-4 h-[2px] w-full"
aria-hidden="true"
/>
<div className="mt-3">
<a
href="https://dribbble.com/heeyunior"
target="_blank"
rel="noopener noreferrer"
className="group/more inline-flex items-center gap-2 text-[12px] font-bold text-[#141414]/40 transition-colors hover:text-[#141414]"
>
<span>
{isZh
? "在 Dribbble 查看更多设计尝试"
: "More experiments on Dribbble"}
</span>
<svg
viewBox="0 0 16 16"
aria-hidden="true"
className="size-3 rotate-45 transition-transform duration-250 ease-[cubic-bezier(0.16,1,0.3,1)] group-hover/more:rotate-0"
>
<path
d="M4.5 11.5 11.5 4.5M5.5 4.5h6v6"
fill="none"
stroke="currentColor"
strokeWidth="1.8"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
</a>
</div>
</div>
</section>
{/* 6. Contact / Thank You */}
<section
id={getSectionId("thank-you")}
data-section-slug="thank-you"
tabIndex={-1}
ref={(node) => {
sectionRefs.current["thank-you"] = node;
}}
style={{
scrollSnapAlign: snapMode === "snap" ? "start" : undefined,
scrollSnapStop: snapMode === "snap" ? "always" : undefined,
}}
className={`hy-snap-section relative flex min-h-full w-full outline-none ${
activeId === "thank-you" ? "is-visible" : ""
}`}
>
<div className="hy-col mx-auto flex min-h-full w-full flex-col justify-center px-6 pt-12 pb-10 sm:pl-[176px] sm:pr-12">
<div>
<p className="hy-hand m-0 text-[18px] leading-none font-bold tracking-[0.02em] text-[#141414]">
Thank you
</p>
<p className="mt-2 text-[12px] font-medium text-[#141414]/40">
{isZh ? "感谢看到这里" : "For exploring this far"}
</p>
</div>
<div className="hy-flare mt-4 grid gap-2.5 text-[12.5px] leading-[1.58] text-[#141414]/70">
<p className="m-0">
{isZh
? "如果你对这些项目、产品取舍,或用 AI 协作做产品的过程感兴趣,随时欢迎来聊聊。"
: "If you’re curious about any of these projects, the trade-offs behind them, or building products with AI, I’d love to chat."}
</p>
<p className="m-0">Think & build.</p>
</div>
<div
style={{ background: HAIRLINE_BG }}
className="mt-5 h-[2px] w-full"
aria-hidden="true"
/>
<div className="mt-4 flex items-center justify-between gap-4">
<div className="flex items-center gap-3">
<a
href="https://dribbble.com/heeyunior"
target="_blank"
rel="noopener noreferrer"
aria-label="Dribbble"
className="grid size-8 place-items-center rounded-full border border-[#141414]/14 text-[#141414]/40 transition-all duration-250 ease-[cubic-bezier(0.16,1,0.3,1)] hover:-translate-y-0.5 hover:border-[#141414]/24 hover:bg-[#FAF9F7] hover:text-[#141414]"
>
<svg
viewBox="0 0 24 24"
aria-hidden="true"
className="size-4 fill-none stroke-current stroke-[1.8]"
>
<circle cx="12" cy="12" r="8.5" />
<path d="M8.3 5.3c2.5 2.7 4.4 6.4 5.3 13.6" />
<path d="M4.2 10.8c4.5 0 8.8-.9 12.8-3.3" />
<path d="M6.8 17.1c2.5-3.3 6.2-4.8 11.3-4.1" />
</svg>
</a>
<a
href="https://x.com/heeyunior"
target="_blank"
rel="noopener noreferrer"
aria-label="X / Twitter"
className="grid size-8 place-items-center rounded-full border border-[#141414]/14 text-[#141414]/40 transition-all duration-250 ease-[cubic-bezier(0.16,1,0.3,1)] hover:-translate-y-0.5 hover:border-[#141414]/24 hover:bg-[#FAF9F7] hover:text-[#141414]"
>
<svg
viewBox="0 0 24 24"
aria-hidden="true"
className="size-4 fill-none stroke-current stroke-[1.8]"
>
<path d="M20 5.7c-.6.3-1.2.5-1.9.6a3.4 3.4 0 0 0-5.9 3v.7A8.1 8.1 0 0 1 5.4 6.5a3.4 3.4 0 0 0 1.1 4.5c-.5 0-1-.1-1.5-.4v.1a3.4 3.4 0 0 0 2.7 3.3c-.5.1-1 .2-1.5.1a3.4 3.4 0 0 0 3.2 2.4A6.9 6.9 0 0 1 4 18c1.6 1 3.5 1.6 5.5 1.6 6.6 0 10.3-5.5 10.3-10.3v-.5c.7-.5 1.2-1.1 1.7-1.8-.6.3-1.2.5-1.9.6.7-.4 1.2-1 1.4-1.8Z" />
</svg>
</a>
</div>
<a
href="https://www.heeyunior.xyz/birdnotes/"
target="_blank"
rel="noopener noreferrer"
className="inline-flex h-8 items-center gap-2 rounded-full border border-[#141414]/14 bg-[#F7F6F3] px-4 text-[12px] font-bold text-[#141414] shadow-[0_1px_0_rgba(20,20,20,0.05)] transition-all duration-250 ease-[cubic-bezier(0.16,1,0.3,1)] hover:-translate-y-0.5 hover:border-[#141414]/24 hover:bg-[#FAF9F7]"
>
<svg
viewBox="0 0 24 24"
fill="currentColor"
shapeRendering="crispEdges"
aria-hidden="true"
className="size-4"
>
<path
fillRule="evenodd"
d="M17 2H22V7H21V9H19V11H17V12H18V13H15V15H12V16H13V17H9V18H8V20H6V22H3V20H5V18H6V15H5V11H6V9H7V11H8V7H10V5H12V4H14V3H17ZM8 15H9V13H11V11H13V9H15V7H17V5H19V7H17V9H15V11H13V13H11V15H9V17H8Z"
/>
</svg>
<span>{isZh ? "留言板" : "Guestbook"}</span>
</a>
</div>
</div>
</section>
</main>
</div>
);
}
export default function PortfolioTimelinePage() {
return <TimelineRailNav params={railParams} />;
}
参数参考
| 属性 | 默认值 | 当前值 | 说明 |
|---|---|---|---|
copyLang 页面文案语言 | en | en | 切换英文与中文个人站叙事内容(与画布右上角中英切换同步)。 |
restWidthPx 静息刻度长度 | 12 | 12 | 未激活章节短横线刻度的默认宽度(原站为 12px)。 |
activeWidthPx 激活刻度长度 | 24 | 24 | 当前章节激活或鼠标悬停时横线伸展后的宽度(原站为 24px)。 |
rowGapPx 刻度垂直间距 | 4 | 4 | 左侧章节刻度项之间的垂直间距(原站为 4px)。 |
labelRevealMode 章节名显隐策略 | hover-single | hover-single | 仅在悬停单行时滑出文字(原站默认)、悬停整栏同步滑出,或常驻显示。 |
durationMs 展开过渡时长 | 360 | 360 | 刻度伸长与章节名滑入的过渡时长,采用 cubic-bezier(0.16, 1, 0.3, 1) 超平滑缓动。 |
snapMode 滚动吸附模式 | snap | snap | 切换原站一屏一章的整屏吸附(y mandatory)或连续自由滚动。 |
lineThicknessPx 刻度线条粗细 | 2 | 2 | 全圆角水平刻度短线的粗细高度(原站为 2px)。 |
showActiveLabel 常显当前章节名 | false | false | 离开左侧刻度栏后是否继续保留当前章节标题(原站默认关闭,仅拉长刻度)。 |