feat: 路由转场+详情页+自定义滚动条+常显网格线+邮箱修复
- 新增 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
This commit is contained in:
@@ -6,20 +6,21 @@ import ScrambleReveal from "@/components/dom/ScrambleReveal";
|
||||
* #contact footer — 1:1 port of the original footer (chunk 2689132c4e070b68.js
|
||||
* module 28192):
|
||||
*
|
||||
* - `<footer id="contact">` fills the last viewport (h-dvh / lg:h-screen),
|
||||
* z-10 (below the fixed canvas at z-30, above the grid) and carries
|
||||
* `data-section="footer"` — SmoothScroller's sP f2 factor and PostFX's
|
||||
* bright-source gating both read this attribute.
|
||||
* - `<footer id="contact">` fills the last viewport (h-dvh / lg:h-screen)
|
||||
* and carries `data-section="footer"` — SmoothScroller's sP f2 factor and
|
||||
* PostFX's bright-source gating both read this attribute.
|
||||
* - Headline: three 12-col grid rows at 6svw, "Let's / Create / Something /
|
||||
* Extraordinary"; "Create" and "Extraordinary" use reverse reveal (chars
|
||||
* run last→first).
|
||||
* - Bottom bar: mailto + Twitter/X / Figma / GitHub links with the dotted
|
||||
* hover border.
|
||||
*
|
||||
* NOTE: contact targets are placeholders — swap in VIRTHEART's real email
|
||||
* and social URLs.
|
||||
* NOTE: contact email is chenchun@virtheart.com (user-provided); social
|
||||
* URLs are still placeholders.
|
||||
*/
|
||||
|
||||
const CONTACT_EMAIL = "chenchun@virtheart.com";
|
||||
|
||||
const dottedLink =
|
||||
"block before:absolute relative before:inset-0 p-2 lg:hover:before:border-l1 before:border-2 before:border-transparent active:before:border-l1 before:border-dotted uppercase before:content-[''] before:transition-colors before:duration-200 cursor-pointer pointer-events-auto before:pointer-events-none";
|
||||
|
||||
@@ -34,7 +35,7 @@ export default function FooterSection() {
|
||||
<footer
|
||||
id="contact"
|
||||
data-section="footer"
|
||||
className="z-30 relative flex flex-col justify-center p-6 lg:p-16 w-full h-dvh lg:h-screen pointer-events-none"
|
||||
className="relative flex flex-col justify-center p-6 lg:p-16 w-full h-dvh lg:h-screen pointer-events-none"
|
||||
>
|
||||
<div
|
||||
className="gap-2 grid grid-cols-12 font-bold text-[7.2svw] lg:text-[6svw] 2xl:text-[5svw] xl:text-[5.6svw] uppercase leading-none"
|
||||
@@ -79,17 +80,15 @@ export default function FooterSection() {
|
||||
</div>
|
||||
<div className="absolute inset-0 flex flex-col justify-end px-4 lg:px-14 py-18 lg:py-24 font-mono-2 text-sm lg:text-base">
|
||||
<div className="flex lg:flex-row flex-col justify-between w-full">
|
||||
{/* TODO: replace with the real VIRTHEART contact address. */}
|
||||
<a className={dottedLink} href="mailto:hello@virtheart.com">
|
||||
<a className={dottedLink} href={`mailto:${CONTACT_EMAIL}`}>
|
||||
<ScrambleReveal
|
||||
text="hello@virtheart.com"
|
||||
text={CONTACT_EMAIL}
|
||||
startDelayMs={300}
|
||||
scrambleColors={false}
|
||||
/>
|
||||
</a>
|
||||
<div className="flex flex-row items-center gap-2 lg:gap-4">
|
||||
{/* TODO: replace with the real VIRTHEART social URLs. */}
|
||||
{SOCIALS.map(({ href, label }) => (
|
||||
{/* TODO: replace with the real VIRTHEART social URLs. */}{SOCIALS.map(({ href, label }) => (
|
||||
<a
|
||||
key={label}
|
||||
className={dottedLink}
|
||||
|
||||
Reference in New Issue
Block a user