计划
不做一次性玩具网站。P0 作业 = DeRonin 六个月中文实战站:把 DeRonin 的路线图做成中文学习站,学到哪章更新到哪章。
P0: build a real project from day one — a Chinese practice site based on DeRonin's 6-month roadmap.
你不指定的,AI 就自己猜。语言、颜色、字数——想要什么就写什么。比如英文 prompt 不会自动生成中文网站,必须写:All page content must be bilingual: Simplified Chinese primary, English secondary.
Iron rule of prompting: what you don't specify, the AI guesses. Spell out everything.
HTML 是骨架:决定页面上有什么。CSS 是衣服:决定长什么样。JS 是动作:决定点了会发生什么。
HTML is the skeleton, CSS the clothing, JS the behavior.
max-width: 680px 限宽,内容不铺满全屏。margin: 0 auto 居中(center)。padding 留白(whitespace)。
Three lines that shape a page: constrain width, center it, breathe with padding.
Google 直接搜 #XXXXXX,色卡马上出来。DeRonin 站配色:背景 #FAF7F1 暖纸色,文字 #2A2A28 墨灰,点缀 #A8894F 哑光金。
Look up any hex code by Googling it. DeRonin site palette: warm paper, ink gray, matte gold.
git init -b main:在文件夹里初始化一个仓库,主分支叫 main。从这一刻起,Git 开始盯着这个文件夹。
git add -A:把所有文件放进暂存区——就是告诉 Git:"这些,我要打包了。"
git commit -m "备注":正式打包成一个版本。备注写清楚这次干了什么,以后随时能回到这个版本。
The git trio: init a repo on main, stage everything, commit a version with a clear message. You can always come back to any version.
我的文件夹 ⇄ GitHub(中转站)⇄ 你的文件夹。git 走的不是"传文件",是"对账本"——两边各自记账,push / pull 就是对账。
走来走去的文件(网站本身):index.html 骨架内容、styles.css 样子、log/*.html 每篇日志、README.md 说明书、.nojekyll 让 Pages 原样发布。
不走的:我的后台(流量账本、文章包、图片素材)不上 GitHub;Antigravity 的 scratch 目录是草稿纸,push 后才进中转站。
GitHub 独家记的:Pages 开关和部署记录、仓库设置、commit 公账——跟本地 .git 一样,但这份丢不了,是你电脑坏了之后的救命账。
Git doesn't pass files around — it reconciles ledgers. GitHub is the cloud ledger you can always recover from.
Shell 就是你跟电脑说话的语言,终端是它的嘴。每一行都是"动词 + 对象":cd 文件夹 = 去那儿,git push = 推上去。
cd 不是机器语言——机器语言是 0 和 1。Shell 把你的人话翻成操作系统能懂的指令:你 → shell → 操作系统 → 0 和 1。
常用 12 个:pwd 我在哪、ls 有啥、cd 进去、mkdir 新建文件夹、git status/add/commit/push/pull/log 记账五件套、rm 删除(不进回收站,用前先问)。
DOS 是亲戚:Mac 现在用 zsh,你 2003 年学的 cd、mkdir 照用,二十多年没变。唯一区别:当年 dir 现在叫 ls。
Shell is how you talk to the computer. Code says what to do; shell is how you command it. An evergreen skill.
作者 Linus Torvalds(Linux 之父)起的。Git 在英式俚语里是"蠢货"——他原话:"我是个自大的混蛋,所有项目都以自己命名。"名字是自嘲,工具是认真的。
"Git" is British slang for "idiot" — Linus named it after himself, as a joke.
计划
7 个主题轮换:Shell、Git、Python、HTML/CSS、Prompt、AI 概念、读代码。每天一讲 7 条,60 天每主题从入门到进阶。字卡自动同步到本站字卡页。
Seven topics on rotation, 7 bites a day, 60 days from basics to advanced. Flashcards auto-sync to this site.
计划
DeRonin 实战站:中英双语,中文为主。学习笔记:justfont 风——干净黑体 + 简体中文 + 30px 网格底。双站分工:DeRonin 站我亲手(P0),CurtainRaiser 他全权——不混。
Decisions: bilingual DeRonin site (Chinese first); notes in Justfont style; hands-on P0 stays mine, CurtainRaiser stays his. No mixing.
素材
"找到好的素材要存起来,术业有专攻,直接见贤思齐更节省时间。"
——我的原话
触因:今天看 justfont.com,中文字体排版好看,网格底喜欢。字体设计师花四年磨一套字,我直接学做好的。
落地:建素材库,每条记一句"好在哪"。参考:justfont.com(30px 网格底,品牌绿 #66AC35)。
"Save good materials when you find them — specialization matters; learning from the best saves time." — my own words, after browsing justfont.com.
设计
CurtainRaiser = 我们的 playground(实验场)。想到什么就往上放着玩——字卡、学习日志、手册都长在这里。不怕试错,先上线再迭代。
CurtainRaiser is our playground: ship experiments fast, break things, iterate. No fear of trying.
设计
菜单:首页 / 六个月 / 资料库 / 笔记本 / 字卡。"资料库"是我先说"资源库"又改口的——放 DeRonin 文章链接简介 + 以后翻书总结。卡片加"类型"字段区分:链接简介 vs 读书总结。
Nav: Home / 6 Months / Library / Notebook / Flashcards. "Library" holds link briefs and book notes, typed per card.
设计
我的想法:spiral 学习法 × 简 / 中 / 难三版可切换,0 摩擦。他的建议:别做三个独立版本——一页三段折叠,一次写完,维护只要 1x。spiral 本来就是简 → 中 → 难三轮回看。
My idea: spiral learning × easy/medium/hard toggle. His fix: one page, three collapsible sections — write once, maintain 1x.
设计
配色:低饱和暖中性(米白 / 暖灰 / 墨灰)+ 哑光金点缀。克制留白,拒绝高饱和和强对比。排版是卖点——只做最好看,不将就。
Palette: low-saturation warm neutrals + matte gold accents. Restraint, whitespace, no neon. Typography is the product.
pwd —— 显示你现在在哪。晕了就敲它ls —— 列出当前目录里的东西。隐藏文件用 ls -lacd —— 进目录。cd 文件夹名 进去,cd .. 回上一层,直接 cd 回车 = 回家pwd: where am I. ls: what's here. cd: go there.
git init -b main —— 开账本,主分支叫 main。一个项目只跑一次;跑完多出隐藏 .git,别删git add -A —— 把所有改动放进暂存区。-A = 全部;单个文件用 git add index.htmlgit commit -m "备注" —— 正式记一笔账。备注写清楚干了什么,如 "首页改暖纸底"git push —— 账本抄送到 GitHub。第一次用 git push -u origin main,以后光 git pushgit pull —— 从 GitHub 把更新抄回来对账git status —— 看现在啥状态:改了啥、暂存了啥。卡住先敲它git log --oneline —— 翻旧账,一行一条。前面的 7fcafe7 是版本号Git doesn't pass files around — it reconciles ledgers. GitHub is the cloud ledger.
mkdir 名字 —— 新建文件夹rm 文件名 —— 删除,不进回收站。删文件夹用 rm -r;拿不准先问mkdir: new folder. rm: delete forever — no trash. When unsure, ask first.