Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="ko">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' https://www.googletagmanager.com; style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net https://fonts.googleapis.com; font-src 'self' data: https://cdn.jsdelivr.net https://fonts.gstatic.com; img-src 'self' data: blob: https://github.com https://avatars.githubusercontent.com https://*.google-analytics.com https://*.googletagmanager.com; connect-src 'self' https://api.github.com https://*.google-analytics.com https://*.analytics.google.com https://*.googletagmanager.com; object-src 'none'; base-uri 'self'; form-action 'self'">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' https://www.googletagmanager.com; style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net https://fonts.googleapis.com; font-src 'self' data: https://cdn.jsdelivr.net https://fonts.gstatic.com; img-src 'self' data: blob: https://github.com https://avatars.githubusercontent.com https://*.google-analytics.com https://*.googletagmanager.com https://www.google.com; connect-src 'self' https://api.github.com https://*.google-analytics.com https://*.analytics.google.com https://*.googletagmanager.com https://www.google.com; object-src 'none'; base-uri 'self'; form-action 'self'">
<script src="/assets/js/ga.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>페이지를 찾을 수 없습니다 | Causal Inference Hub</title>
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ PR을 올리기 전에 `python3 scripts/check_data.py`를 실행해 주세요.
| `data/growth.json` | 기수별 누적 러너 수. 프로젝트 시트를 xlsx로 내려받아 `python scripts/runners_from_sheet.py 파일.xlsx > data/growth.json`으로 만듭니다. 이름은 파일에 남지 않습니다. |
| `data/events.json` | Data Forum 같은 행사를 추가할 때. 다가오는 행사에는 `tagline`, `time`, `venue`, `address`, `signupStart`·`signupEnd`(신청 기간), `capacity`(정원), `code`(추천 코드 안내), `timetable`, `poster`·`timetableImage`(`assets/img/`의 이미지)를 적을 수 있습니다. 신청 기간에 따라 첫 화면 띠와 카드의 문구가 ‘신청 예정 · 받는 중 · 마감’으로 바뀝니다. 행사 전에는 `date`·`time`으로 캘린더 추가 링크(Google, .ics)를, `address`(없으면 `venue`)로 네이버 지도·카카오맵 링크를 카드에 만듭니다. `time`은 `13:30–17:30`처럼 한국 시간으로 적습니다. 행사 다음 날부터 6주 동안은 큰 카드가 ‘지난 행사’로 남고, `participants`(참가 인원)와 `recap`(`{"label": "후기 보기", "url": "https://..."}`)을 넣으면 카드에 함께 보입니다. |
| `data/topics.json` | 자료실의 주제와 자료를 고칠 때. 주제마다 `shelf`(`causal` 인과추론, `exp` 온라인 실험), `name`, `about`, 검색어 `keys`, 자료 `items`를 적습니다. 자료는 `kind`(`video`·`read`·`code`·`slides`·`case`), `repo`(`repos.json`의 레포), `title`, `url`이고, 영상에 딸린 노트북은 `notebook`, 발표 자료 PDF는 `slides`로 붙입니다. 연재 글은 `articles.json`에 `topics`(주제 id 목록)를 적으면 공개일부터 그 주제에 함께 나옵니다. |
| `assets/js/helper.js` | 자료실 도우미의 답과 추천 질문을 고칠 때. 도우미는 `topics.json`의 이름·`keys`와 `glossary.json`의 용어로 답을 찾으므로, 잘 못 찾는 질문이 있으면 먼저 해당 주제의 `keys`를 늘려 보세요. 질문 내용은 `helper_ask` 이벤트(앞 100자)로만 남고 저장하지 않습니다. |
| `data/glossary.json` | 직접 고치지 않습니다. 배포할 때 `scripts/build_glossary.py`가 웹북 용어집 페이지를 읽어 새로 만듭니다. 용어를 고치려면 Causal-Inference-with-Python의 `TRANSLATION_GUIDE.md` 용어표를 고치세요. 웹북이 다시 배포된 다음 허브 배포 때 반영됩니다. |
| `data/repos.json` | 레포를 추가하거나 설명·단계·트랙·상태를 바꿀 때 |
| `data/map.json` | 트랙 지도에서 레포의 위치를 정할 때. 책과 강의(`paid`)의 표지와 소개도 여기서 고칩니다. |
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
| 기능 | 하는 일 |
| --- | --- |
| [자료실](https://causalinferencelab.github.io/library.html) | 인과추론 13개, 온라인 실험 10개 주제로 웹북 장, 영상, 책 코드, 발표 자료, 실험 플랫폼 사례를 찾습니다. 웹북 용어집 183개도 함께 있어 이중차분, CUPED, 실험군처럼 방법이나 용어 이름으로 찾을 수 있습니다 |
| 자료실 도우미 | 허브, 자료실, 연재 글 오른쪽 아래의 마스코트입니다. 공부하고 싶은 주제나 모르는 용어를 적으면 자료실에서 맞는 자료를 세 개까지 골라 주고, 그 자료를 담은 프롬프트로 Claude에게 이어서 물어볼 수 있습니다 |
| [레벨 진단](https://causalinferencelab.github.io/?level) | 문제 10개로 시작할 Level, 첫 자료, 다시 볼 웹북 장을 알려 줍니다. 결과를 동료에게 보낼 수 있습니다 |
| [상관일까, 인과일까?](https://causalinferencelab.github.io/game.html) | 데이터 상황 10개를 보고 고르는 2분 게임 |
| [교란 실험실](https://causalinferencelab.github.io/lab.html) | 가상 사용자 800명으로 교란이 단순 비교를 얼마나 속이는지 직접 움직여 봅니다 |
Expand Down
3 changes: 2 additions & 1 deletion article.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="ko">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' https://www.googletagmanager.com; style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net https://fonts.googleapis.com; font-src 'self' data: https://cdn.jsdelivr.net https://fonts.gstatic.com; img-src 'self' data: blob: https://github.com https://avatars.githubusercontent.com https://*.google-analytics.com https://*.googletagmanager.com; connect-src 'self' https://api.github.com https://*.google-analytics.com https://*.analytics.google.com https://*.googletagmanager.com; object-src 'none'; base-uri 'self'; form-action 'self'">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' https://www.googletagmanager.com; style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net https://fonts.googleapis.com; font-src 'self' data: https://cdn.jsdelivr.net https://fonts.gstatic.com; img-src 'self' data: blob: https://github.com https://avatars.githubusercontent.com https://*.google-analytics.com https://*.googletagmanager.com https://www.google.com; connect-src 'self' https://api.github.com https://*.google-analytics.com https://*.analytics.google.com https://*.googletagmanager.com https://www.google.com; object-src 'none'; base-uri 'self'; form-action 'self'">
<script src="assets/js/ga.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>연재 | Causal Inference Hub</title>
Expand Down Expand Up @@ -62,5 +62,6 @@ <h2 id="more-title">다른 연재</h2>
<script src="assets/js/article.js" defer></script>
<script src="assets/js/track.js" defer></script>
<script src="assets/js/passport.js" defer></script>
<script src="assets/js/helper.js" defer></script>
</body>
</html>
59 changes: 58 additions & 1 deletion assets/css/hub.css
Original file line number Diff line number Diff line change
Expand Up @@ -1746,7 +1746,7 @@ a.ac-title:hover { text-decoration: underline; }
.site-nav { position: relative; gap: 22px; padding: 0 6px; overflow: visible; }
.site-nav::before, .site-nav::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 9px; height: 3px; border-radius: 2px; pointer-events: none; }
.site-nav::before { background: var(--rule); }
.site-nav::after { right: auto; width: calc((100% - 28px) * var(--p, 0)); background: linear-gradient(90deg, var(--l-ai), var(--l-main), var(--l-ml), var(--l-exp), var(--l-behavior), var(--l-research)); transition: width .25s ease-out; }
.site-nav::after { right: auto; width: calc((100% - 28px) * var(--p, 0)); background: linear-gradient(90deg, var(--l-main), var(--l-ai), var(--l-ml), var(--l-exp), var(--l-behavior), var(--l-research)); transition: width .25s ease-out; }
.site-nav a.stn { position: relative; z-index: 1; padding: 16px 2px 22px; border-radius: 0; background: none; font-size: 14.5px; }
.site-nav a.stn::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--sec); box-sizing: border-box; transition: transform .2s ease, background .2s ease; }
.site-nav a.stn:hover { background: none; color: var(--ink); }
Expand Down Expand Up @@ -2521,3 +2521,60 @@ dialog.sheet .toast:not(.show) { transition: opacity .25s ease, visibility 0s li
.lib-srcb span { display: none; }
.lib-srcb b { font-size: 13.5px; }
}
.tp-shelf a.tp-more { border-style: dashed; color: var(--muted); }

/* ---------- library helper: the mascot in the corner and its question box ---------- */
.hp { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.hp > * { pointer-events: auto; }
.hp-open { width: 84px; height: 76px; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 6px 14px rgba(20, 22, 43, .22)); transition: transform .2s ease; border-radius: 20px; }
.hp-open img { width: 84px; height: auto; display: block; }
.hp-open:hover { transform: translateY(-2px) rotate(-3deg); }
.hp-open:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hp.open .hp-open { transform: scale(.86); }
.hp-bubble { margin: 0 6px -4px 0; padding: 8px 12px; border-radius: 12px 12px 4px 12px; background: var(--ink); color: var(--surface); font-size: 13.5px; font-weight: 700; box-shadow: 0 8px 20px rgba(20, 22, 43, .2); }
@media (prefers-reduced-motion: no-preference) { .hp-bubble { animation: hp-in .4s ease-out 1.2s both; } }
@keyframes hp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hp-panel { width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100dvh - 140px)); display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: 18px; box-shadow: 0 18px 48px rgba(20, 22, 43, .22); overflow: hidden; }
.hp-panel[hidden] { display: none; }
.hp-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--rule); }
.hp-head img { width: 40px; height: auto; }
.hp-head h2 { font-size: 16px; font-weight: 800; flex: 1; }
.hp-x { width: 40px; height: 40px; border: 0; background: none; color: var(--muted); border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.hp-x svg { width: 16px; height: 16px; }
.hp-x:hover { background: var(--surface-2); color: var(--ink); }
.hp-log { list-style: none; margin: 0; padding: 14px; overflow-y: auto; display: grid; gap: 10px; align-content: start; flex: 1; min-height: 120px; overscroll-behavior: contain; }
.hp-msg { font-size: 14.5px; line-height: 1.6; max-width: 92%; }
.hp-msg.me { justify-self: end; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--ink); color: var(--surface); white-space: pre-wrap; overflow-wrap: anywhere; }
.hp-msg.bot { justify-self: start; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: var(--surface-2); display: grid; gap: 8px; }
.hp-msg.bot p { margin: 0; }
.hp-sug { display: grid; gap: 6px; }
.hp-sug button { font: inherit; font-size: 13.5px; font-weight: 600; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--rule); background: var(--surface); color: var(--ink); cursor: pointer; }
.hp-sug button:hover { border-color: var(--l-behavior); }
.hp-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hp-links li { display: grid; gap: 1px; padding: 8px 10px; border-radius: 10px; background: var(--surface); }
.hp-links a { font-weight: 700; color: var(--ink); text-decoration: none; }
.hp-links a:hover { color: var(--l-behavior); text-decoration: underline; text-underline-offset: 3px; }
.hp-links span { font-size: 12.5px; color: var(--muted); }
.hp-ai { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13.5px; }
.hp-claude { font-weight: 700; color: var(--accent); text-underline-offset: 3px; }
.hp-copy { font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hp-copy:hover { color: var(--ink); }
.hp-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.hp-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: .5; }
@media (prefers-reduced-motion: no-preference) { .hp-dots i { animation: hp-dot 1s infinite ease-in-out; } .hp-dots i:nth-child(2) { animation-delay: .15s; } .hp-dots i:nth-child(3) { animation-delay: .3s; } }
@keyframes hp-dot { 50% { opacity: 1; transform: translateY(-2px); } }
.hp-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--rule); }
.hp-form textarea { flex: 1; min-width: 0; resize: none; font: inherit; font-size: 15px; line-height: 1.5; padding: 9px 12px; border: 1.5px solid var(--rule); border-radius: 12px; background: var(--paper); color: var(--ink); max-height: 120px; }
.hp-form textarea:focus { outline: none; border-color: var(--ink); }
.hp-send { width: 42px; height: 42px; flex: none; border: 0; border-radius: 12px; background: var(--ink); color: var(--surface); cursor: pointer; display: grid; place-items: center; }
.hp-send svg { width: 18px; height: 18px; }
.hp-note { margin: 0; padding: 0 12px 10px; font-size: 11.5px; color: var(--muted); }
@media (max-width: 560px) {
.hp { right: max(10px, env(safe-area-inset-right, 0px)); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
.hp-open, .hp-open img { width: 66px; }
.hp-open { height: 60px; }
.hp-panel { width: calc(100vw - 20px); max-height: calc(100dvh - 120px); }
}
@media print { .hp { display: none; } }
/* room under the last links so the mascot never sits on them */
body.has-helper .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
Binary file added assets/img/mascot.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading