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 CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +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자)로만 남고 저장하지 않습니다. |
| `assets/js/helper.js` | 자료실 도우미의 답과 추천 질문, 마스코트가 먼저 거는 말(`LINES`: 페이지마다 첫 인사와 특정 섹션·스크롤 위치에서 한 번씩, 방문당 한 번, 닫으면 그 방문 동안 조용히)을 고칠 때. 도우미는 `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
42 changes: 37 additions & 5 deletions assets/css/hub.css
Original file line number Diff line number Diff line change
Expand Up @@ -2527,12 +2527,8 @@ dialog.sheet .toast:not(.show) { transition: opacity .25s ease, visibility 0s li
.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; }
Expand Down Expand Up @@ -2571,10 +2567,46 @@ dialog.sheet .toast:not(.show) { transition: opacity .25s ease, visibility 0s li
.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, .hp-mascot { 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)); }

/* the mascot: a blank laptop image with its screen drawn on top, so the screen can be typed */
.hp-mascot { position: relative; display: block; width: 84px; transform-origin: 50% 90%; }
.hp-mascot img { width: 100%; height: auto; display: block; }
.hp-screen { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hp-caret { opacity: 0; }
.hp.typing .hp-caret { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
.hp.typing .hp-mascot { animation: hp-bob .26s ease-in-out infinite alternate; }
.hp.typing .hp-k1 { animation: hp-key1 1.5s steps(1, end) infinite; }
.hp.typing .hp-k2 { animation: hp-key2 1.5s steps(1, end) infinite; }
.hp.typing .hp-k3 { animation: hp-key3 1.5s steps(1, end) infinite; }
.hp.typing .hp-caret { animation: hp-caret 1.5s steps(1, end) infinite; }
}
@keyframes hp-bob { from { transform: translateY(0) rotate(0); } to { transform: translateY(-2px) rotate(-1.2deg); } }
@keyframes hp-key1 { 0% { opacity: 0; } 12% { opacity: 1; } }
@keyframes hp-key2 { 0% { opacity: 0; } 30% { opacity: 1; } }
@keyframes hp-key3 { 0% { opacity: 0; } 48% { opacity: 1; } }
/* the caret walks with the keys: after <, after /, after >, then blinks */
@keyframes hp-caret { 0% { transform: translateX(-150px); opacity: 1; } 12% { transform: translateX(-104px); } 30% { transform: translateX(-68px); } 48% { transform: translateX(0); } 64% { opacity: 0; } 78% { opacity: 1; } 92% { opacity: 0; } }
.hp-open:hover .hp-mascot { filter: brightness(1.03); }

/* what the mascot says on its own: a bubble above it, typed out, with one or two ways to answer */
.hp-say { position: relative; width: min(290px, calc(100vw - 32px)); margin-right: 8px; padding: 12px 36px 12px 14px; border-radius: 16px 16px 4px 16px; background: var(--surface); color: var(--ink); border: 1px solid var(--rule); box-shadow: 0 12px 30px rgba(20, 22, 43, .18); }
.hp-say[hidden] { display: none; }
.hp-say::after { content: ""; position: absolute; right: 18px; bottom: -7px; width: 12px; height: 12px; background: var(--surface); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); transform: rotate(45deg); }
.hp-say-t { margin: 0; font-size: 14.5px; line-height: 1.6; font-weight: 600; min-height: 1.6em; }
.hp-say-acts { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hp-say-acts:empty { display: none; }
.hp-say-acts button { font: inherit; font-size: 13px; font-weight: 700; padding: 6px 10px; min-height: 34px; border-radius: 999px; border: 1.5px solid var(--rule); background: var(--surface-2); color: var(--ink); cursor: pointer; }
.hp-say-acts button:hover { border-color: var(--l-behavior); }
.hp-say-x { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.hp-say-x svg { width: 14px; height: 14px; }
.hp-say-x:hover { background: var(--surface-2); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .hp-say:not([hidden]) { animation: hp-in .3s ease-out both; } }
.hp-msg.typing-now .hp-links, .hp-msg.typing-now .hp-ai { visibility: hidden; }
Binary file added assets/img/mascot-blank.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading