Skip to content

Commit e88ea1f

Browse files
fix(web): r3 final tightening — hero eyebrow pipe via CSS pseudo
The hero eyebrow rendered the JP yūhō phrase prefixed with a literal " | " (full-width spaces around a pipe). On mobile (<=600 px) the .hero-eyebrow wraps to a second line and the literal pipe-with-spaces landed at the start of the wrapped JP run, reading as awkward leading punctuation rather than a separator. Fix: drop the inline separator from the JSX text content; render it via .hero-eyebrow .jp::before with a dimmed mono pipe + 10 px margin-right. Hidden at <=600 px so the wrap reads cleanly. Typecheck clean, vitest 41/41.
1 parent 092d8a4 commit e88ea1f

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

web/app/globals.css

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,23 @@ section[data-paper-hide] {
13291329
margin-bottom: 22px;
13301330
}
13311331
.hero-eyebrow .sq { width: 6px; height: 6px; background: var(--vermilion); }
1332-
.hero-eyebrow .jp { font-family: var(--f-jp); letter-spacing: 0.04em; color: var(--paper-aged); font-size: 13px; text-transform: none; }
1332+
.hero-eyebrow .jp { font-family: var(--f-jp); letter-spacing: 0.04em; color: var(--paper-aged); font-size: 13px; text-transform: none; position: relative; }
1333+
/* CSS pseudo-separator instead of an inline `|` glyph: the desktop
1334+
eyebrow gets a clean mono pipe between the two spans, mobile drops
1335+
it (the spans wrap to two lines and the gap reads as separation). */
1336+
.hero-eyebrow .jp::before {
1337+
content: "|";
1338+
display: inline-block;
1339+
margin-right: 10px;
1340+
font-family: var(--f-mono);
1341+
font-size: 11px;
1342+
color: var(--type-faint);
1343+
letter-spacing: 0;
1344+
vertical-align: 1px;
1345+
}
1346+
@media (max-width: 600px) {
1347+
.hero-eyebrow .jp::before { display: none; }
1348+
}
13331349
h1.hero-title {
13341350
font-family: var(--f-display);
13351351
font-weight: 500;

web/components/sections/hero.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function Hero() {
2424
<div className="hero-eyebrow paper-orbit">
2525
<span className="sq" />
2626
<span>Vol. II — Edition 047</span>
27-
<span className="jp"> | 有価証券報告書、英訳。</span>
27+
<span className="jp" lang="ja">有価証券報告書、英訳。</span>
2828
</div>
2929
<h1 className="hero-title">
3030
<span className="line"><span className="inner">Every Japanese</span></span>

0 commit comments

Comments
 (0)