Skip to content

Commit fa0e3dc

Browse files
committed
Add a weekly post with its writer, make the curriculum a step list, and turn the passport into team activities
- 연재 replaces 읽을거리 and the weekly repo pick: this week's post (pinned by weekOf, else a new post, else in turn), a writer card with medal, the series in order, and a note on how to write one - Posts carry series and episode; the article page shows the part, a writer line and previous/next part - Curriculum: one block per level with the question, goal and who built it; materials in a grid with the maker on every card; a sticky level bar; routes as numbered stops. The duplicate level cards and the recent-updates list are gone - Activity passport in three groups: learning stamps the hub gives, and team stamps (repo comment, event photo review, lecture or book review, joining as a runner, first contribution, opening a project) ticked after doing them, each with a link to where it happens - Quiz, game and lab no longer give stamps - CONTRIBUTING and README describe posts and the passport; check_data validates the new post fields
1 parent 53ca622 commit fa0e3dc

16 files changed

Lines changed: 354 additions & 152 deletions

‎404.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<div class="wrap header-row">
1818
<a class="brand" href="/"><img class="brand-logo" src="/assets/img/team-mark.png" alt="" width="34" height="34"><span class="brand-text"><span class="brand-name">Causal Inference Hub</span><span class="brand-sub">가짜연구소 인과추론팀</span></span></a>
1919
<nav class="site-nav" aria-label="주요 메뉴"><a href="/#curriculum">커리큘럼</a><a href="/game.html">게임</a><a href="/lab.html">실험실</a><a href="/builders/">Builder</a><a href="/#join">참여하기</a></nav>
20-
<button type="button" class="pass-btn" data-passport aria-label="학습 여권 열기">여권 <b data-passport-count>0/9</b></button>
20+
<button type="button" class="pass-btn" data-passport aria-label="활동 여권 열기">여권 <b data-passport-count>0/9</b></button>
2121
</div>
2222
</header>
2323
<main class="reader" id="main">

‎CONTRIBUTING.md‎

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ PR을 올리기 전에 `python3 scripts/check_data.py`를 실행해 주세요.
2323
| `data/repos.json` | 레포를 추가하거나 설명·단계·트랙·상태를 바꿀 때 |
2424
| `data/map.json` | 트랙 지도에서 레포의 위치를 정할 때. 책과 강의(`paid`)의 표지와 소개도 여기서 고칩니다. |
2525
| `data/routes.json` | 경로 안내 항목을 바꿀 때 |
26-
| `data/articles.json`, `articles/*.md` | 읽을거리를 추가할 때 |
26+
| `data/articles.json`, `articles/*.md` | 연재 글을 추가할 때. 아래 ‘연재 쓰기’를 보세요. |
2727
| `data/game.json` | ‘상관일까, 인과일까?’ 문항을 고칠 때. `answer`는 `corr` 또는 `cause`이고, 문항마다 웹북 장 링크(`chapter`)를 답니다. |
2828
| `data/daily.json` | 오늘의 한 문제 문항을 더하거나 고칠 때. 형식은 `game.json`과 같고, 날짜마다 순서대로 돌아갑니다. 인과와 상관 문항을 비슷한 수로 맞춥니다. |
2929
| `data/stats.json` | 직접 고치지 않습니다. 매주 GitHub Actions가 스타 추이와 기여자 수를 갱신합니다. |
@@ -62,9 +62,26 @@ pip install playwright && python -m playwright install chromium
6262
python3 scripts/builder_cards.py
6363
```
6464

65-
## 학습 여권과 실험실
65+
## 연재 쓰기
6666

67-
스탬프 정의는 `assets/js/passport.js`의 `STAMPS`에 있습니다. 다른 페이지에서는 `window.hubStamp("lab")`처럼 부르면 되고, 이미 받은 스탬프는 다시 주지 않습니다. 기록은 `localStorage`에만 남습니다. 교란 실험실(`lab.html`, `assets/js/lab.js`)의 데이터는 페이지에서 만드는 가상 사용자입니다.
67+
허브의 ‘연재’ 섹션은 팀원이 쓰는 글을 모읍니다. 매주 월요일 ‘이번 주 포스트’가 바뀌고, 글쓴이는 작가 카드로 소개됩니다.
68+
69+
1. `articles/<slug>.md`에 본문을 씁니다. `slug`는 영문 소문자·숫자·하이픈입니다.
70+
2. `data/articles.json`에 한 줄을 더합니다.
71+
72+
```json
73+
{ "slug": "did-in-practice-01", "title": "이중차분법을 실무에 쓸 때", "summary": "한 줄 소개", "date": "2026-11-02",
74+
"author": "Builder 이름", "series": "연재 이름", "episode": 1, "weekOf": "2026-11-02" }
75+
```
76+
77+
- `author`가 `data/builders.json`의 이름과 같으면 작가 카드에 사진, 메달, Builder 페이지가 붙습니다.
78+
- `series`와 `episode`를 넣으면 같은 연재의 글이 순서대로 묶이고, 글 아래에 이전 편·다음 편이 생깁니다.
79+
- `weekOf`(그 주 월요일)를 넣으면 그 주의 ‘이번 주 포스트’로 고정됩니다. 없으면 일주일 안에 올라온 새 글, 그다음은 돌아가며 보여 줍니다.
80+
- 다른 블로그에 올린 글은 `"url": "https://..."`를 넣으면 그 주소로 연결됩니다(본문 파일은 필요 없습니다).
81+
82+
## 활동 여권과 실험실
83+
84+
스탬프 정의는 `assets/js/passport.js`의 `STAMPS`에 있습니다. `kind: "auto"`는 허브가 알아서 찍고(`window.hubStamp("post")`), `kind: "self"`는 행사 후기, 강의 후기, 레포 댓글처럼 허브 밖에서 하는 일이라 방문자가 ‘했어요’를 눌러 찍습니다. 이미 받은 스탬프는 다시 주지 않고, 기록은 `localStorage`에만 남습니다. 교란 실험실(`lab.html`, `assets/js/lab.js`)의 데이터는 페이지에서 만드는 가상 사용자입니다.
6885

6986
## 이벤트 측정
7087

‎README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141

4242
- **오늘의 한 문제:** 첫 화면 아래에 매일 한 문제가 바뀝니다. 사흘 연속으로 풀면 스탬프를 받습니다.
4343
- **교란 실험실:** 가상 사용자 800명으로 교란이 단순 비교를 얼마나 속이는지 슬라이더로 직접 움직여 봅니다. [실험실 열기](https://causalinferencelab.github.io/lab.html)
44-
- **학습 여권:** 자료 열기, 진단, 게임, 실험실, 완주 같은 행동마다 스탬프가 쌓입니다. 기록은 내 브라우저에만 남습니다.
44+
- **연재:** 팀원이 쓰는 글을 모읍니다. 매주 월요일 ‘이번 주 포스트’가 바뀌고, 글쓴이를 작가 카드로 소개합니다.
45+
- **활동 여권:** 자료 읽기 같은 배우기 스탬프와 함께, 행사 사진 후기, 강의·책 후기, 레포 댓글, 러너 참여, 첫 기여, Builder 되기 스탬프를 모읍니다. 기록은 내 브라우저에만 남습니다.
4546
- **3문항으로 시작점 찾기:** 경험, 하는 일, 원하는 것을 고르면 볼 순서와 첫 자료를 추천합니다. [바로 해 보기](https://causalinferencelab.github.io/?quiz=1)
4647
- **상관일까, 인과일까?:** 데이터 상황 10개를 보고 상관인지 인과인지 고르는 2분짜리 게임입니다. 답마다 관련 웹북 장으로 이어집니다. [게임 하기](https://causalinferencelab.github.io/game.html)
4748
- **완주 카드:** 한 단계의 자료를 모두 학습 완료로 표시하면, 공유할 수 있는 완주 카드 이미지를 만들 수 있습니다.

‎article.html‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,21 @@
2121
<span class="brand-text"><span class="brand-name">Causal Inference Hub</span><span class="brand-sub">가짜연구소 인과추론팀</span></span>
2222
</a>
2323
<nav class="site-nav" aria-label="주요 메뉴"><a href="./#curriculum">커리큘럼</a><a href="game.html">게임</a><a href="lab.html">실험실</a><a href="builders/">Builder</a><a href="./#join">참여하기</a></nav>
24-
<button type="button" class="pass-btn" data-passport aria-label="학습 여권 열기">여권 <b data-passport-count>0/9</b></button>
24+
<button type="button" class="pass-btn" data-passport aria-label="활동 여권 열기">여권 <b data-passport-count>0/9</b></button>
2525
</div>
2626
</header>
2727

2828
<main id="main" class="reader">
2929
<div class="wrap reader-grid">
3030
<article>
31-
<a class="back" href="./#reading">읽을거리 목록</a>
31+
<a class="back" href="./#posts">연재 목록</a>
3232
<h1 id="article-title">글을 불러오는 중입니다</h1>
3333
<p class="meta" id="article-meta"></p>
3434
<div class="prose" id="article-body"></div>
35+
<div class="post-after" id="article-after"></div>
3536
</article>
3637
<aside aria-labelledby="more-title">
37-
<h2 id="more-title">다른 글</h2>
38+
<h2 id="more-title">다른 연재</h2>
3839
<ul id="article-more"></ul>
3940
</aside>
4041
</div>

‎assets/css/hub.css‎

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,3 +1199,136 @@ button.btn.sm { font-size: 14px; }
11991199
.goal-row .route-chips::-webkit-scrollbar { display: none; }
12001200
.goal-row .route-chips .chip { flex-shrink: 0; }
12011201
}
1202+
1203+
/* ==========================================================================
1204+
Curriculum as steps: one block per level, materials in a grid, makers first
1205+
========================================================================== */
1206+
.shelf-bar { position: sticky; top: var(--header-h, 64px); z-index: 6; margin: 0 0 18px; padding: 10px 0; background: var(--paper); }
1207+
.chapters { gap: 6px; overflow-x: auto; scrollbar-width: none; }
1208+
.chapters::-webkit-scrollbar { display: none; }
1209+
.chapters button { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 600; }
1210+
.chapters button b { font-size: 14px; margin-right: 2px; }
1211+
.chapters button[aria-current="true"] { background: var(--ink); color: var(--surface); }
1212+
.chapters button[aria-current="true"] b { color: inherit; }
1213+
.chapters .bar { display: none; }
1214+
.chapters .nm { display: inline !important; }
1215+
.shelf-wrap.fade-r .shelf, .shelf-wrap.fade-l .shelf { -webkit-mask-image: none; mask-image: none; }
1216+
#shelf { display: grid; gap: 14px; overflow: visible; padding: 0; scroll-snap-type: none; }
1217+
#shelf > li { scroll-snap-align: none; }
1218+
/* the page already keeps 84px clear for the header; add the level bar under it */
1219+
.lv { list-style: none; padding: 24px; border-radius: 22px; background: var(--surface); scroll-margin-top: calc(var(--header-h, 64px) - 84px + 66px); }
1220+
.lv-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 18px; align-items: start; }
1221+
.lv-id { font-family: var(--f-display); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -.03em; color: var(--accent); min-width: 64px; }
1222+
.lv.build .lv-id { color: var(--l-ai); }
1223+
.lv-t h3 { font-size: 20px; letter-spacing: -.01em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
1224+
.lv-t h3 span { font-size: 15px; font-weight: 600; color: var(--muted); }
1225+
.lv-t p { font-size: 15px; color: var(--muted); margin-top: 4px; max-width: 48em; }
1226+
.lv-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
1227+
.lv-n { font-weight: 700; color: var(--ink); }
1228+
.lv-makers { display: inline-flex; align-items: center; gap: 6px; }
1229+
.lv-makers .avatar.sm { width: 26px; height: 26px; font-size: 12px; margin-left: -8px; box-shadow: 0 0 0 2px var(--surface); }
1230+
.lv-makers .avatar.sm:first-child { margin-left: 0; }
1231+
.lv-items { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 10px; }
1232+
#shelf .ep { width: auto; }
1233+
#shelf .ep > button { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 16px 18px; border-radius: 16px; border: 0; background: var(--surface-2); overflow: visible; }
1234+
#shelf .ep > button:hover { transform: none; box-shadow: none; background: color-mix(in srgb, var(--c) 8%, var(--surface-2)); }
1235+
#shelf .ep > button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
1236+
.ep-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
1237+
#shelf .ep-track { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--c); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1238+
#shelf .ep-track i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
1239+
#shelf .ep-badges { position: static; margin-left: auto; display: flex; gap: 4px; flex-shrink: 0; }
1240+
#shelf .ep-step { font-family: var(--f-display); font-weight: 800; font-size: 22px; line-height: 1; color: var(--c); position: static; }
1241+
.ep-main { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
1242+
.ep-thumb { width: 44px; height: 58px; object-fit: cover; border-radius: 4px; flex-shrink: 0; box-shadow: 0 3px 8px rgba(20, 22, 43, .18); }
1243+
#shelf .ep h4 { font-size: 16.5px; line-height: 1.4; letter-spacing: -.01em; }
1244+
#shelf .ep .sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; color: var(--muted); margin-top: 4px; }
1245+
#shelf .ep-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--rule); }
1246+
#shelf .who { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; }
1247+
#shelf .who .k { color: var(--muted); font-size: 12px; margin-right: 2px; flex-shrink: 0; }
1248+
#shelf .who .nm { font-weight: 700; color: var(--ink); white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
1249+
#shelf .who .avatar.sm { width: 24px; height: 24px; font-size: 11px; }
1250+
.mini-medal { display: inline-flex; }
1251+
.mini-medal .medal { height: 15px; width: auto; }
1252+
.ep-end { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 13px; color: var(--muted); }
1253+
.ep-end .star { display: inline-flex; align-items: center; gap: 3px; }
1254+
.ep-end .star svg { width: 13px; height: 13px; color: #E0A800; }
1255+
#shelf .ep-done { position: static; width: auto; height: auto; border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 700; background: color-mix(in srgb, var(--live) 14%, var(--surface)); color: var(--live); }
1256+
#shelf .ep.paid > button { background: color-mix(in srgb, var(--l-main) 6%, var(--surface-2)); }
1257+
/* a goal's route: numbered stops in order */
1258+
.lv.route { padding: 18px; }
1259+
#shelf.routing .lv-items { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); margin-top: 0; }
1260+
#shelf.routing .ep::after { display: none; }
1261+
#shelf .ep.picked > button { box-shadow: 0 0 0 3px var(--c); }
1262+
@media (max-width: 720px) {
1263+
.lv { padding: 18px 16px; border-radius: 18px; }
1264+
.lv-head { grid-template-columns: auto minmax(0, 1fr); }
1265+
.lv-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
1266+
.lv-id { font-size: 32px; min-width: 48px; }
1267+
.lv-t h3 { font-size: 18px; }
1268+
.shelf-bar { margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); padding-inline: var(--gutter-l) var(--gutter-r); }
1269+
}
1270+
1271+
/* ==========================================================================
1272+
연재: this week's post, the writer, other posts
1273+
========================================================================== */
1274+
.post-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; }
1275+
.post-feature, .author-card { background: var(--surface); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
1276+
.post-k { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 13px; color: var(--muted); }
1277+
.post-k b { color: var(--accent); font-weight: 800; }
1278+
.post-feature h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; letter-spacing: -.02em; }
1279+
.post-feature h3 a { color: var(--ink); text-decoration: none; }
1280+
.post-feature h3 a:hover { text-decoration: underline; }
1281+
.post-sum { font-size: 16px; color: var(--muted); max-width: 40em; }
1282+
.post-meta { font-size: 13.5px; color: var(--muted); }
1283+
.post-feature .btn { margin-top: auto; }
1284+
.au-head { display: flex; align-items: center; gap: 14px; }
1285+
.au-head .avatar.lg { width: 60px; height: 60px; font-size: 24px; }
1286+
.au-name { display: block; font-size: 19px; font-weight: 800; }
1287+
.au-tier { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 2px; }
1288+
.au-tier .medal { height: 22px; width: auto; }
1289+
.au-about { font-size: 14.5px; color: var(--muted); }
1290+
.au-series { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
1291+
.au-series a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14px; }
1292+
.au-series a:hover { background: var(--surface-2); }
1293+
.au-series .n { flex-shrink: 0; width: 34px; font-weight: 800; color: var(--muted); }
1294+
.au-series li[aria-current="true"] a { background: var(--accent-soft); }
1295+
.au-series li[aria-current="true"] .n { color: var(--accent); }
1296+
.au-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
1297+
.au-links .btn { margin-top: 0; }
1298+
.post-list { list-style: none; margin: 12px 0 0; padding: 4px 24px; border-radius: 22px; background: var(--surface); }
1299+
.post-list li + li { border-top: 1px solid var(--rule); }
1300+
.post-list a { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; padding: 16px 0; color: var(--ink); text-decoration: none; }
1301+
.post-list a:hover .pl-t { text-decoration: underline; }
1302+
.pl-t { font-size: 16px; font-weight: 700; }
1303+
.pl-m { font-size: 13.5px; color: var(--muted); }
1304+
.post-cta { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
1305+
.post-cta b { color: var(--ink); }
1306+
@media (max-width: 860px) { .post-grid { grid-template-columns: minmax(0, 1fr); } .post-feature, .author-card { padding: 22px; } .post-list { padding: 4px 18px; } }
1307+
1308+
/* article page: writer and series navigation */
1309+
.post-after { margin-top: 40px; display: grid; gap: 14px; }
1310+
.writer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 16px 18px; border-radius: 16px; background: var(--surface); font-size: 15px; }
1311+
.writer .k { font-size: 13px; color: var(--muted); }
1312+
.series-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
1313+
.series-nav a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
1314+
.series-nav a span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
1315+
.series-nav a.next { text-align: right; }
1316+
.series-nav a:hover { box-shadow: 0 6px 20px rgba(20, 22, 43, .08); }
1317+
1318+
/* activity passport: three groups of rows, each with a way to do it */
1319+
.pp-group { margin-top: 6px; }
1320+
.pp-group h3 { font-size: 13px; font-weight: 800; color: var(--muted); margin: 8px 0 6px; }
1321+
.pp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
1322+
.pp-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
1323+
.pp-list li.on { background: var(--accent-soft); }
1324+
.pp-list .stamp { width: 40px; height: 40px; font-size: 15px; }
1325+
.pp-t { display: flex; flex-direction: column; min-width: 0; }
1326+
.pp-t b { font-size: 15px; }
1327+
.pp-t span { font-size: 13px; color: var(--muted); line-height: 1.45; }
1328+
.pp-act { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
1329+
.pp-go, .pp-claim { font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; padding: 6px 10px; border-radius: 999px; text-decoration: none; cursor: pointer; }
1330+
.pp-go { color: var(--accent); background: var(--surface); }
1331+
.pp-claim { border: 0; background: var(--ink); color: var(--surface); }
1332+
.pp-go:focus-visible, .pp-claim:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
1333+
@media (max-width: 520px) { .pp-list li { grid-template-columns: auto minmax(0, 1fr); } .pp-act { grid-column: 1 / -1; justify-content: flex-start; } }
1334+
#shelf .ep-track { color: color-mix(in srgb, var(--c) 70%, var(--ink)); }

0 commit comments

Comments
 (0)