Nincs leírás

dengkanglin 8b2dfe9aba init: 康临随记 — a bilingual bento personal site built with Next.js 16 2 hete
.vscode 8b2dfe9aba init: 康临随记 — a bilingual bento personal site built with Next.js 16 2 hete
app 8b2dfe9aba init: 康临随记 — a bilingual bento personal site built with Next.js 16 2 hete
assets 8b2dfe9aba init: 康临随记 — a bilingual bento personal site built with Next.js 16 2 hete
components 8b2dfe9aba init: 康临随记 — a bilingual bento personal site built with Next.js 16 2 hete
config 8b2dfe9aba init: 康临随记 — a bilingual bento personal site built with Next.js 16 2 hete
docs 8b2dfe9aba init: 康临随记 — a bilingual bento personal site built with Next.js 16 2 hete
firebase 8b2dfe9aba init: 康临随记 — a bilingual bento personal site built with Next.js 16 2 hete
lib 8b2dfe9aba init: 康临随记 — a bilingual bento personal site built with Next.js 16 2 hete
messages 8b2dfe9aba init: 康临随记 — a bilingual bento personal site built with Next.js 16 2 hete
public 8b2dfe9aba init: 康临随记 — a bilingual bento personal site built with Next.js 16 2 hete
scripts 8b2dfe9aba init: 康临随记 — a bilingual bento personal site built with Next.js 16 2 hete
styles 8b2dfe9aba init: 康临随记 — a bilingual bento personal site built with Next.js 16 2 hete
types 8b2dfe9aba init: 康临随记 — a bilingual bento personal site built with Next.js 16 2 hete
.env.local.example 8b2dfe9aba init: 康临随记 — a bilingual bento personal site built with Next.js 16 2 hete
.gitignore 8b2dfe9aba init: 康临随记 — a bilingual bento personal site built with Next.js 16 2 hete
.npmrc 8b2dfe9aba init: 康临随记 — a bilingual bento personal site built with Next.js 16 2 hete
LICENSE 8b2dfe9aba init: 康临随记 — a bilingual bento personal site built with Next.js 16 2 hete
README.md 8b2dfe9aba init: 康临随记 — a bilingual bento personal site built with Next.js 16 2 hete
bun.lock 8b2dfe9aba init: 康临随记 — a bilingual bento personal site built with Next.js 16 2 hete
eslint.config.mjs 8b2dfe9aba init: 康临随记 — a bilingual bento personal site built with Next.js 16 2 hete
next.config.js 8b2dfe9aba init: 康临随记 — a bilingual bento personal site built with Next.js 16 2 hete
package.json 8b2dfe9aba init: 康临随记 — a bilingual bento personal site built with Next.js 16 2 hete
postcss.config.js 8b2dfe9aba init: 康临随记 — a bilingual bento personal site built with Next.js 16 2 hete
tsconfig.json 8b2dfe9aba init: 康临随记 — a bilingual bento personal site built with Next.js 16 2 hete
yarn.lock 8b2dfe9aba init: 康临随记 — a bilingual bento personal site built with Next.js 16 2 hete

README.md

康临随记

邓康临的个人主页:一个液态玻璃质感的 bento 卡片网格,用来放项目、工具和生活片段。

技术栈

层 选型
框架 Next.js 16(App Router)+ React 19 + TypeScript
样式 Tailwind CSS v4,无 UI 库,卡片与玻璃材质全部手写
3D three.js + @react-three/fiber + drei(车模,点击才加载)
地球 cobe(点阵 WebGL 地球,进入视口才初始化)
图片 本地文件为主,Firebase Storage 仅用于项目截图(可选)
博客 Notion API(当前停用,见下方说明)

本地运行

npm install
npm run dev          # http://localhost:3000

首页需要 NEXT_PUBLIC_FIREBASE_API_KEY 才会去拉项目截图;不配也能正常启动,会跳过 Firebase、使用本地图片。需要的话复制 .env.local.example 为 .env.local 再填。

常用脚本

命令 说明
npm run dev 开发服务器(Turbopack)
npm run build 生产构建
npm start 启动生产服务
npm run lint ESLint
npm run typecheck TypeScript 类型检查
npm run format Prettier

语言与路由

  • 中文:裸路径,/、/blog
  • 英文:/en、/en/blog
  • /zh/* 会 308 跳转到对应的裸路径,保证每个页面只有一个地址

语言切换按钮、⌘K 命令面板和页脚都会跟随当前路径切换,不会把英文链接指到中文页。

目录结构

app/[lang]/          页面(首页、博客列表、文章详情)
components/bento/    卡片网格与拖拽换位
components/cards/    各张卡片(个人信息、天空、足迹、照片、车模…)
components/blog/     博客列表与文章渲染
lib/                 数据获取、i18n、动效工具
messages/            中英文案
public/              静态资源(头像、照片、mini.glb)

目前的状态

  • 首页有 9 张卡片是空白占位,由 app/[lang]/page.tsx 里的 show 开关控制。想恢复某张卡片把对应值改成 true 即可,组件和文案都还在。
  • 博客已清空:不再请求 Notion,/blog 显示 0 篇;lib/notion.ts 和文章详情页保留,接回来就能用。
  • 头像和照片走本地文件(public/avatar/、public/photos/),不依赖外网,国内访问不会卡在加载上。
  • QQ 按钮目前隐藏(components/cards/hero.tsx 的 SHOW_QQ)。

许可

MIT,见 LICENSE。