Skip to content

Commit 8e6da00

Browse files
committed
Shorten the first screen so the curriculum starts inside the first view
At 1440x900 the hero, the event strip and four tall KPI cards filled the whole first view and the curriculum began at 1,013px; on a phone it began at 2,038px. - The banner is tighter: smaller title, one-line lede, shorter buttons and open-source rows, and a one-line Hanbit label. - The KPI cards become one slim row: value and label beside a small trend line, top-starred repos in the stars card. Phones show the numbers only. - The conference line leaves the banner; the events section already lists the conferences. - On phones the banner keeps three open-source links. The curriculum now starts at 668px on desktop and 1,310px on a phone.
1 parent f9da6ab commit 8e6da00

2 files changed

Lines changed: 49 additions & 3 deletions

File tree

‎assets/css/hub.css‎

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2177,3 +2177,50 @@ dialog.sheet .toast:not(.show) { transition: opacity .25s ease, visibility 0s li
21772177
.bp-own { margin-top: 12px; font-size: 14px; color: var(--muted); }
21782178
.bp-own a { font-weight: 700; color: var(--accent); }
21792179
@media (max-width: 760px) { .contrib-cta { align-items: stretch; } .contrib-form { text-align: center; } }
2180+
2181+
/* ---------- first screen: who we are, where to start, and the curriculum begins inside the first view ---------- */
2182+
.hero .banner { padding: 34px 44px; gap: 20px 48px; align-items: start; }
2183+
.hero .banner h1 { font-size: clamp(32px, 3.6vw, 48px); }
2184+
.hero .banner-kicker { margin-bottom: 10px; }
2185+
.hero .banner-lede { margin-top: 10px; font-size: 16.5px; line-height: 1.55; }
2186+
.hero .banner-cta { margin-top: 20px; }
2187+
.hero .banner-cta .pill { min-height: 46px; padding: 0 20px; font-size: 15px; }
2188+
.hero .partner { margin-top: 18px; padding-top: 12px; }
2189+
.hero .partner-k { margin-bottom: 6px; }
2190+
.hero .banner-side { width: 380px; }
2191+
.hero .featured { gap: 0; }
2192+
.hero .featured a { padding: 7px 12px; }
2193+
.hero .featured .t { font-size: 14.5px; }
2194+
/* the team's numbers sit in one slim row: value and label beside a small trend line */
2195+
.hero .hero-grid { grid-template-columns: minmax(0, 1fr); margin-top: 10px; }
2196+
.hero .growth { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; gap: 10px; }
2197+
.hero .tile { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 14px; row-gap: 0; align-items: center; padding: 12px 16px; min-height: 0; }
2198+
.hero .tile > :not(.spark):not(.mini-bars):not(.spark-empty):not(.tile-link) { grid-column: 1; }
2199+
.hero .tile-label { font-size: 13px; }
2200+
.hero .tile-value { font-size: 28px; }
2201+
.hero .tile-value small { font-size: 14px; }
2202+
.hero .tile-delta { font-size: 12.5px; }
2203+
.hero .tile .spark { grid-column: 2; grid-row: 1 / -1; margin: 0; padding: 0; min-height: 0; height: 56px; }
2204+
.hero .tile .spark svg { min-height: 0; height: 52px; max-height: 52px; }
2205+
.hero .tile .spark-axis { display: none; }
2206+
.hero .tile .spark-empty { display: none; }
2207+
.hero .tile .mini-bars { grid-column: 2; grid-row: 1 / -1; margin: 0; padding: 0; gap: 3px; font-size: 11.5px; }
2208+
.hero .tile .mini-bars .tr { height: 4px; margin-top: -1px; }
2209+
/* the curriculum starts right under the numbers */
2210+
#curriculum.band { padding-top: 40px; }
2211+
@media (max-width: 1160px) { .hero .growth { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
2212+
@media (max-width: 860px) {
2213+
.hero .banner { padding: 24px 20px; align-items: stretch; }
2214+
.hero .banner-side { width: 100%; margin-top: 16px; }
2215+
/* on a phone the hero keeps three open-source links; the rest are one tap away in the curriculum */
2216+
.hero .featured li:nth-child(n+4) { display: none; }
2217+
.hero .featured .d { display: none; }
2218+
.hero .banner-cta .pill { min-height: 44px; }
2219+
}
2220+
@media (max-width: 520px) {
2221+
.hero .growth { gap: 8px; }
2222+
.hero .tile { grid-template-columns: minmax(0, 1fr); padding: 10px 12px; }
2223+
.hero .tile .spark, .hero .tile .mini-bars { display: none; }
2224+
.hero .tile-value { font-size: 24px; }
2225+
}
2226+

‎index.html‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,16 @@
5050
<div class="banner-main">
5151
<p class="banner-kicker"><span>Pseudo-Lab</span><span class="sep" aria-hidden="true"></span>인과추론팀 <b>Causal-Lab</b></p>
5252
<h1 id="hero-title">Causal Inference Hub</h1>
53-
<p class="banner-lede">인과추론에서 시작해 AI 시대의 데이터 리터러시까지. <br>2022년부터 함께 만든 오픈소스와 자료를 Level 0–4 커리큘럼으로 엮었습니다.</p>
53+
<p class="banner-lede">2022년부터 함께 만든 인과추론 오픈소스와 자료를 Level 0–4 커리큘럼으로 엮었습니다.</p>
5454
<div class="banner-cta">
5555
<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>YouTube 영상으로 시작하기</a>
5656
<a class="pill" href="https://causalinferencelab.github.io/Causal-Inference-with-Python/" data-event="start_click" data-event-params='{"target":"webbook","placement":"hero"}'>웹북으로 시작하기</a>
5757
<a class="cta-text" href="?level" data-test-open="hero" data-event="start_click" data-event-params='{"target":"level_test","placement":"hero"}'>내 레벨 진단하기</a>
5858
</div>
5959
<div class="partner" aria-labelledby="partner-title">
60-
<p class="partner-k" id="partner-title"><b>With 한빛미디어 · 팀이 옮긴 책과 그 책으로 만든 강의</b><span>팀이 옮긴 책과 그 내용을 실무로 잇는 강의입니다. 둘 다 커리큘럼 L2에 들어 있습니다.</span></p>
60+
<p class="partner-k" id="partner-title"><b>With 한빛미디어</b><span>팀이 옮긴 책과 그 책으로 만든 강의, 커리큘럼 L2</span></p>
6161
<ul class="partner-list" id="partner-list"></ul>
6262
</div>
63-
<p class="academy" id="academy"></p>
6463
</div>
6564
<div class="banner-side">
6665
<img class="banner-mark" src="assets/img/team-mark.png" alt="" width="132" height="132">

0 commit comments

Comments
 (0)