Skip to content

Commit cfcc6e5

Browse files
feat: display three lines in page header instead of four
1 parent c5fc3ad commit cfcc6e5

2 files changed

Lines changed: 18 additions & 3 deletions

File tree

static/css/v3/learn-page.css

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
grid-area: e;
8888
}
8989

90-
@media (max-width: 1280px) {
90+
@media (max-width: 1279px) {
9191
/* Narrower layouts keep the original grid; the column wrappers dissolve so
9292
the cards are grid items again. */
9393
.card-masonry {
@@ -112,7 +112,7 @@
112112
}
113113
}
114114

115-
@media (max-width: 768px) {
115+
@media (max-width: 767px) {
116116
.card-row {
117117
grid-template-columns: repeat(1, 1fr);
118118
}
@@ -135,3 +135,18 @@
135135
max-width: none;
136136
}
137137
}
138+
139+
/* Tablet only: the design stacks the three sentences one per line, but the
140+
header's 50% cap swings from 361px to 616px across this range, so no font
141+
size makes natural wrapping land on the sentence breaks. Force the breaks and
142+
step the size down to fit the narrowest column. Desktop and mobile keep their
143+
natural wrapping. */
144+
@media (min-width: 768px) and (max-width: 1279px) {
145+
.learn-page-header h1 {
146+
font-size: var(--font-size-2xl);
147+
}
148+
149+
.learn-page-header h1 span {
150+
display: block;
151+
}
152+
}

templates/v3/learn_page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
{% block content %}
1515
<div class="learn-page-container">
1616
<div class="learn-page-header py-large">
17-
<h1>Start anywhere. Learn everything. Build anything.</h1>
17+
<h1><span>Start anywhere.</span> <span>Learn everything.</span> <span>Build anything.</span></h1>
1818
<p>A complete, well-documented ecosystem of modern libraries-designed to grow with you.</p>
1919
</div>
2020
<div class="card-row py-large">

0 commit comments

Comments
 (0)