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
59 changes: 59 additions & 0 deletions assets/css/hub.css
Original file line number Diff line number Diff line change
Expand Up @@ -2772,3 +2772,62 @@ body.has-helper .site-footer { padding-bottom: calc(96px + env(safe-area-inset-b
.lib-lvb:hover { border-color: var(--ink); }
.lib-lvb[aria-checked="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.lib-lvb:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* hero: the level test sits at the top right beside the title (after the lead on phones);
the quieter ways in (two video channels, the web book) stay under the search */
@media (min-width: 861px) {
.hero .banner { grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto 1fr; align-items: start; }
.hero .banner-main { grid-column: 1; grid-row: 1 / span 2; }
.hero .lv-card { grid-column: 2; grid-row: 1; }
.hero .banner-side { grid-column: 2; grid-row: 2; align-self: start; width: auto; min-width: 0; }
}
@media (max-width: 1160px) and (min-width: 861px) { .hero .banner { grid-template-columns: minmax(0, 1fr) 340px; } }
.lv-card { position: relative; z-index: 1; display: grid; gap: 4px; padding: 20px 22px; border-radius: 18px; background: #FFD54A; color: #14162B; text-decoration: none; box-shadow: 0 14px 34px rgba(0, 0, 0, .3); }
.lv-card-k { font-size: 13px; font-weight: 700; color: rgba(20, 22, 43, .72); }
.lv-card-t { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.lv-card-s { font-size: 14px; line-height: 1.55; color: rgba(20, 22, 43, .82); }
.lv-card-go { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 9px 14px 9px 16px; border-radius: 999px; background: #14162B; color: #FFD54A; font-size: 15px; font-weight: 800; }
.lv-card-go svg { transition: transform .15s ease; }
.lv-card:hover { background: #FFDF70; }
.lv-card:hover .lv-card-go svg { transform: translateX(3px); }
.lv-card:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .lv-card-go svg { transition: none; } }
@media (max-width: 860px) {
.hero .banner-main > * { order: 0; }
/* phone: the materials first, right after the lead; then the level test, the search and the start links */
.hero .banner-side { order: 1; margin-top: 18px; }
.hero .lv-card { order: 2; margin: 14px 0 4px; }
.hero .banner-main > .hero-search { order: 3; }
.hero .banner-main > .partner { order: 4; }
.lv-card-t { font-size: 21px; }
}

/* hero materials: a labelled list under the level test, one row per material, icon · what it is · kind */
.side-k { margin: 6px 4px 2px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .72); }
.hero .banner-side { padding: 14px 10px 10px; gap: 4px; align-items: stretch; }
.hero .featured { gap: 2px; }
.hero .featured a { display: grid; grid-template-columns: 26px minmax(0, 1fr) 14px; align-items: center; column-gap: 12px; padding: 10px 12px; border-radius: 12px; }
.hero .featured .fi { width: 22px; height: 22px; border-radius: 5px; }
.hero .featured .tx { order: 0; gap: 2px; }
.hero .featured .t { font-size: 15.5px; white-space: normal; line-height: 1.3; }
.hero .featured .d { display: block; font-size: 12.5px; white-space: normal; line-height: 1.4; color: rgba(255, 255, 255, .72); }
.hero .featured .tag { display: none; }
.hero .featured .out { order: 0; }
.hero .hero-search { margin-top: 22px; }
@media (max-width: 860px) {
.hero .banner-side { padding: 12px 6px 6px; }
.hero .featured a { grid-template-columns: 24px minmax(0, 1fr) 14px; padding: 9px 10px; }
.hero .featured .tag { display: none; }
}
/* popular topics under the search: words a first-time visitor can start from */
.hs-pop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 0; max-width: 560px; }
.hs-pop span { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .7); margin-right: 4px; }
.hs-pop a { font-size: 13.5px; font-weight: 600; color: #fff; text-decoration: none; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .06); }
.hs-pop a:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }
.hs-pop a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* desktop: the left column runs the full height, the Hanbit block sits at its foot level with the materials */
@media (min-width: 861px) {
.hero .banner-main { display: flex; flex-direction: column; align-self: stretch; }
.hero .banner-main > .partner { margin-top: auto; padding-top: 22px; }
}
@media (max-width: 860px) { .hero .banner-main > .hs-pop { order: 3; } }
Binary file modified assets/img/forum5-poster.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/img/forum5-timetable.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 9 additions & 4 deletions assets/js/hub.js
Original file line number Diff line number Diff line change
Expand Up @@ -1067,14 +1067,19 @@


/* ---------- featured sites (hero) ---------- */
/* the hero's study materials: what each one teaches first, the channel or book it lives in second */
const FEAT_ICON = {
youtube: '<svg class="fi" viewBox="0 0 24 24" aria-hidden="true"><rect x="1.5" y="4.5" width="21" height="15" rx="4.5" fill="#FF0033"/><path d="M10 8.8v6.4l5.4-3.2z" fill="#fff"/></svg>',
team: '<img class="fi" src="assets/img/team-mark.png" alt="" width="22" height="22">'
};
function renderFeatured() {
$("#featured").innerHTML = (state.featured || []).map((f) => {
const r = f.repo && state.repos.get(f.repo);
const stars = r && r.stars >= 10 ? `<span class="st">${icons.star}${fmt(r.stars)}</span>` : "";
return `<li><a href="${esc(f.url)}" target="_blank" rel="noopener" data-repo="${esc(f.repo || "")}"${r ? ` data-line="${primaryLine(r)}"` : ""}>
<span class="tag">${esc(f.tag)}</span>
const site = /^https:\/\/causalinferencelab\.github\.io\//.test(f.url);
return `<li><a href="${esc(f.url)}"${site ? "" : ' target="_blank" rel="noopener"'} data-repo="${esc(f.repo || "")}"${r ? ` data-line="${primaryLine(r)}"` : ""}>
${FEAT_ICON[f.icon] || ""}
<span class="tx"><span class="t">${esc(f.title)}</span>${f.desc ? `<span class="d">${esc(f.desc)}</span>` : ""}</span>
${stars}
<span class="tag">${esc(f.tag)}</span>
<svg class="out" viewBox="0 0 16 16" aria-hidden="true"><path d="M6 4h6v6M12 4l-8 8" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg></a></li>`;
}).join("");
}
Expand Down
2 changes: 1 addition & 1 deletion data/events.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"time": "15:10–16:00",
"kind": "패널토크",
"title": "실무에서 AI를 더 잘 활용하려면?",
"who": "Moderator 이유신 (AI Researcher) · Panel 이동욱 (Data Engineer), 최지환 (Data Analyst), 최세영 (AI Engineer), 김수현 (MLOps Engineer)",
"who": "Moderator 이유신 (AI Researcher) · Panel 이동욱 (Data Engineer), 최지환 (Data Analyst), 김수현 (MLOps Engineer)",
"talk": true
},
{
Expand Down
45 changes: 21 additions & 24 deletions data/featured.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,34 @@
[
{
"tag": "입문 영상",
"icon": "youtube",
"title": "인과추론 입문 영상",
"desc": "Causal Studio · 짧은 영상과 Colab 노트북",
"repo": "causal-studio",
"url": "https://www.youtube.com/@CausalStudio"
},
{
"tag": "웹북",
"title": "Brave & True 인과추론 번역서",
"desc": "원서 25장과 부록을 모두 옮긴 웹북",
"icon": "team",
"title": "인과추론 웹북 25장",
"desc": "Brave & True 번역서 · 원서 전 장과 부록",
"repo": "Causal-Inference-with-Python",
"url": "https://causalinferencelab.github.io/Causal-Inference-with-Python/"
},
{
"tag": "영상",
"title": "Causal Studio",
"desc": "영상과 노트북으로 여는 인과추론 입문",
"repo": "causal-studio",
"url": "https://causalinferencelab.github.io/causal-studio/"
},
{
"tag": "에이전트",
"title": "Lang2SQL",
"desc": "대화하며 함께 분석하는 데이터 에이전트",
"repo": "Lang2SQL",
"url": "https://github.com/CausalInferenceLab/Lang2SQL"
"tag": "실무 영상",
"icon": "youtube",
"title": "인과추론 실무 영상",
"desc": "박지용 교수 채널 · 현업 실무자 특강 17강",
"repo": "causal-inference-lecture",
"url": "https://www.youtube.com/@causaldatascience"
},
{
"tag": "스터디 자료",
"title": "OCE Materials",
"desc": "A/B 테스트 스터디 16회 자료",
"tag": "스터디",
"icon": "team",
"title": "A/B 테스트 스터디 16회",
"desc": "온라인 통제 실험 발표 자료 · OCE",
"repo": "OCE-Materials",
"url": "https://github.com/CausalInferenceLab/OCE-Materials"
},
{
"tag": "R 패키지",
"title": "ccwr",
"desc": "Target trial emulation을 위한 R 패키지",
"repo": "ccwr",
"url": "https://causalinferencelab.github.io/ccwr/"
}
]
15 changes: 9 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,22 @@ <h1 id="hero-title">Causal Inference Hub</h1>
<button type="submit" class="hs-go">찾기</button>
<p class="hs-note" id="hs-note"><a href="library.html">자료실</a>과 <a href="library.html?view=glossary">용어집</a>에서 찾습니다.</p>
</form>
<div class="banner-cta">
<a class="pill solid" href="https://www.youtube.com/@CausalStudio" target="_blank" rel="noopener" data-event="start_click" data-event-params='{"target":"youtube","placement":"hero"}'><svg class="yt" viewBox="0 0 24 24" width="18" height="18" aria-hidden="true"><rect x="1.5" y="4.5" width="21" height="15" rx="4.5" fill="#FF0033"/><path d="M10 8.8v6.4l5.4-3.2z" fill="#fff"/></svg>입문 영상으로 시작하기</a>
<a class="pill" href="https://causalinferencelab.github.io/Causal-Inference-with-Python/" data-event="start_click" data-event-params='{"target":"webbook","placement":"hero"}'>웹북으로 시작하기</a>
<a class="cta-text" href="?level" data-test-open="hero" data-event="start_click" data-event-params='{"target":"level_test","placement":"hero"}'>내 레벨 진단하기</a>
</div>
<p class="hs-pop"><span>많이 찾는 주제</span><a href="library.html?q=%EC%9D%B4%EC%A4%91%EC%B0%A8%EB%B6%84%EB%B2%95&amp;from=hero" data-event="start_click" data-event-params='{"target":"popular_search","placement":"hero"}'>이중차분법</a><a href="library.html?q=%EC%84%B1%ED%96%A5%EC%A0%90%EC%88%98&amp;from=hero" data-event="start_click" data-event-params='{"target":"popular_search","placement":"hero"}'>성향점수</a><a href="library.html?q=A/B%20%ED%85%8C%EC%8A%A4%ED%8A%B8&amp;from=hero" data-event="start_click" data-event-params='{"target":"popular_search","placement":"hero"}'>A/B 테스트</a><a href="library.html?q=CUPED&amp;from=hero" data-event="start_click" data-event-params='{"target":"popular_search","placement":"hero"}'>CUPED</a><a href="library.html?q=%EB%A9%94%ED%83%80%EB%9F%AC%EB%84%88&amp;from=hero" data-event="start_click" data-event-params='{"target":"popular_search","placement":"hero"}'>메타러너</a></p>
<div class="partner" aria-labelledby="partner-title">
<p class="partner-k" id="partner-title"><b>With 한빛미디어</b><span>팀이 옮긴 책과 그 책으로 만든 강의, 커리큘럼 L2</span></p>
<ul class="partner-list" id="partner-list"></ul>
</div>
</div>
<a class="lv-card" href="?level" data-test-open="hero" data-event="start_click" data-event-params='{"target":"level_test","placement":"hero"}'>
<span class="lv-card-k">처음이라면 여기서 시작하세요</span>
<span class="lv-card-t">내 레벨 진단하기</span>
<span class="lv-card-s">실무 상황 문제 10개, 3분이면 시작할 Level과 첫 자료를 알려 드립니다.</span>
<span class="lv-card-go">진단 시작<svg viewBox="0 0 20 20" width="18" height="18" aria-hidden="true"><path d="M7 4l6 6-6 6" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg></span>
</a>
<div class="banner-side">
<img class="banner-mark" src="assets/img/team-mark.png" alt="" width="132" height="132">
<ul class="featured" id="featured" aria-label="대표 사이트"></ul>
<p class="side-k" id="featured-k">무료로 바로 볼 수 있는 자료</p>
<ul class="featured" id="featured" aria-labelledby="featured-k"></ul>
</div>
</div>
<a class="next-event" id="next-event" href="#events" data-event="click_event" data-event-params='{"action":"next_strip","placement":"hero"}' hidden></a>
Expand Down