Skip to content

Commit efeb8b3

Browse files
committed
style(site): put card name and description on one line
The Social Cards and Built with Kami cards stacked the name over a short description, leaving a mostly empty second line. They now share one baseline-aligned line (flex, 8px gap, wraps only if ever too long); the Showcase cards keep two lines because their descriptions do not fit. To fit every locale at 360 to 1440px, the English social descriptions drop "paper" (as ja/ko/de/fr already did) and MiaoYan's becomes "Screen, char"; Japanese shortens 画面、char and the three landing descriptions. Measured on all five homepages at 360, 393, 744, 768, 820, 999, 1024, 1366 and 1440: every card on one line, no horizontal overflow. test_package, build --check and build_metadata --check pass.
1 parent 4adcb51 commit efeb8b3

6 files changed

Lines changed: 23 additions & 13 deletions

File tree

‎site/index-ja.html‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ <h2 class="section-title">出力サンプル</h2>
237237
<h2 class="section-title">SNS 画像</h2>
238238
<p class="section-lede">X と Instagram 向けの画像カードで、背景は 8 色から選べます。下の 4 枚は自分のプロダクトについて投稿した原文で作りました。カードをクリックすると大きく表示されます。</p>
239239
</div>
240-
<div class="demo-grid">
240+
<div class="demo-grid one-line">
241241
<div class="demo-card">
242242
<a href="assets/demos/demo-social-cards-mole-en.jpg" target="_blank"><img src="assets/demos/demo-social-cards-mole-en.jpg" alt="Mole 表紙カード" loading="lazy" decoding="async"></a>
243243
<p class="demo-title">Mole</p>
@@ -256,7 +256,7 @@ <h2 class="section-title">SNS 画像</h2>
256256
<div class="demo-card">
257257
<a href="assets/demos/demo-social-cards-miaoyan-en.jpg" target="_blank"><img src="assets/demos/demo-social-cards-miaoyan-en.jpg" alt="MiaoYan スクリーンショットカード" loading="lazy" decoding="async"></a>
258258
<p class="demo-title">MiaoYan</p>
259-
<p class="demo-desc">スクリーンショット、char</p>
259+
<p class="demo-desc">画面、char</p>
260260
</div>
261261
</div>
262262
</section>
@@ -271,17 +271,17 @@ <h2 class="section-title">Kami で構築</h2>
271271
<div class="landing-card">
272272
<a href="https://kami.tw93.fun" target="_blank" rel="noopener"><img src="assets/showcase/kami-landing.png" alt="Kami ランディングページ" loading="lazy" decoding="async"></a>
273273
<p class="demo-title">Kami</p>
274-
<p class="demo-desc">デザインシステム ホームページ</p>
274+
<p class="demo-desc">デザインシステム</p>
275275
</div>
276276
<div class="landing-card">
277277
<a href="https://luo.tw93.fun" target="_blank" rel="noopener"><img src="assets/showcase/luo-landing.png" alt="Luo ランディングページ" loading="lazy" decoding="async"></a>
278278
<p class="demo-title">Luo 落文</p>
279-
<p class="demo-desc">CJK リーディングフォント</p>
279+
<p class="demo-desc">CJK 読書フォント</p>
280280
</div>
281281
<div class="landing-card">
282282
<a href="https://mole.fit" target="_blank" rel="noopener"><img src="assets/showcase/mole-landing.png" alt="Mole ランディングページ" loading="lazy" decoding="async"></a>
283283
<p class="demo-title">Mole 鼹</p>
284-
<p class="demo-desc">macOS システムユーティリティ</p>
284+
<p class="demo-desc">macOS ユーティリティ</p>
285285
</div>
286286
</div>
287287
</section>

‎site/index-ko.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ <h2 class="section-title">출력 샘플</h2>
248248
<h2 class="section-title">소셜 카드</h2>
249249
<p class="section-lede">인스타그램과 스레드용 이미지 카드이고, 배경은 8가지 색에서 고를 수 있습니다. 아래 네 장은 제 제품에 대해 올린 글을 그대로 썼습니다. 카드를 클릭하면 크게 볼 수 있습니다.</p>
250250
</div>
251-
<div class="demo-grid">
251+
<div class="demo-grid one-line">
252252
<div class="demo-card">
253253
<a href="assets/demos/demo-social-cards-mole-en.jpg" target="_blank"><img src="assets/demos/demo-social-cards-mole-en.jpg" alt="Mole 표지 카드" loading="lazy" decoding="async"></a>
254254
<p class="demo-title">Mole</p>

‎site/index-tw.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ <h2 class="section-title">輸出樣本</h2>
236236
<h2 class="section-title">社群分享圖</h2>
237237
<p class="section-lede">Instagram 和 Threads 的配圖,有八種底色可選,下面四張用的是我幾個產品發過的原話,點開可以看大圖。</p>
238238
</div>
239-
<div class="demo-grid">
239+
<div class="demo-grid one-line">
240240
<div class="demo-card">
241241
<a href="assets/demos/demo-social-cards-mole-zh.jpg" target="_blank"><img src="assets/demos/demo-social-cards-mole-zh.jpg" alt="Mole 封面卡" loading="lazy" decoding="async"></a>
242242
<p class="demo-title">Mole</p>

‎site/index-zh.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ <h2 class="section-title">输出样本</h2>
236236
<h2 class="section-title">社交图分享</h2>
237237
<p class="section-lede">小红书和 X 的配图,有八种底色可选,下面四张用的是我几个产品发过的原话,点开可以看大图。</p>
238238
</div>
239-
<div class="demo-grid">
239+
<div class="demo-grid one-line">
240240
<div class="demo-card">
241241
<a href="assets/demos/demo-social-cards-mole-zh.jpg" target="_blank"><img src="assets/demos/demo-social-cards-mole-zh.jpg" alt="Mole 封面卡" loading="lazy" decoding="async"></a>
242242
<p class="demo-title">Mole</p>

‎site/index.html‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,26 +262,26 @@ <h2 class="section-title">Output Samples</h2>
262262
<h2 class="section-title">Social Cards</h2>
263263
<p class="section-lede">Image cards for Instagram and X, in eight paper colors. The four below use what I posted about my own products. Click any card to see it full size.</p>
264264
</div>
265-
<div class="demo-grid">
265+
<div class="demo-grid one-line">
266266
<div class="demo-card">
267267
<a href="assets/demos/demo-social-cards-mole-en.jpg" target="_blank"><img src="assets/demos/demo-social-cards-mole-en.jpg" alt="Mole cover card" loading="lazy" decoding="async"></a>
268268
<p class="demo-title">Mole</p>
269-
<p class="demo-desc">Cover, ink paper</p>
269+
<p class="demo-desc">Cover, ink</p>
270270
</div>
271271
<div class="demo-card">
272272
<a href="assets/demos/demo-social-cards-kaku-en.jpg" target="_blank"><img src="assets/demos/demo-social-cards-kaku-en.jpg" alt="Kaku list card" loading="lazy" decoding="async"></a>
273273
<p class="demo-title">Kaku</p>
274-
<p class="demo-desc">List, pine paper</p>
274+
<p class="demo-desc">List, pine</p>
275275
</div>
276276
<div class="demo-card">
277277
<a href="assets/demos/demo-social-cards-pake-en.jpg" target="_blank"><img src="assets/demos/demo-social-cards-pake-en.jpg" alt="Pake text card" loading="lazy" decoding="async"></a>
278278
<p class="demo-title">Pake</p>
279-
<p class="demo-desc">Text, crimson paper</p>
279+
<p class="demo-desc">Text, crimson</p>
280280
</div>
281281
<div class="demo-card">
282282
<a href="assets/demos/demo-social-cards-miaoyan-en.jpg" target="_blank"><img src="assets/demos/demo-social-cards-miaoyan-en.jpg" alt="MiaoYan screenshot card" loading="lazy" decoding="async"></a>
283283
<p class="demo-title">MiaoYan</p>
284-
<p class="demo-desc">Screenshot, char paper</p>
284+
<p class="demo-desc">Screen, char</p>
285285
</div>
286286
</div>
287287
</section>

‎site/styles.css‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -887,6 +887,16 @@
887887
color: var(--olive);
888888
margin: 2px 0 0;
889889
}
890+
/* Social and landing cards: the name and its description share one line */
891+
.landing-card,
892+
.demo-grid.one-line .demo-card {
893+
display: flex;
894+
flex-wrap: wrap;
895+
align-items: baseline;
896+
column-gap: 8px;
897+
}
898+
.landing-card > a,
899+
.demo-grid.one-line .demo-card > a { flex: 0 0 100%; }
890900

891901
/* ---------- Prose pages: developers, about, contact, privacy ---------- */
892902
.hero.doc h1 {

0 commit comments

Comments
 (0)