Skip to content

Commit f59a8f4

Browse files
p4gsclaudehappy-otter
committed
Improve nthpartyfinder mobile responsiveness
Fix install code blocks overflowing on mobile with pre-wrap and word-break. Add overflow-x:hidden on html/body. Scale down title, terminal, badges, crasher tags, and section titles at mobile breakpoints. Tighten padding and font sizes for small screens. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
1 parent 0d71e0d commit f59a8f4

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

docs/projects/nthpartyfinder/index.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,15 +565,45 @@
565565
.footer a { color: var(--neon-pink); }
566566

567567
/* ── RESPONSIVE ── */
568+
html, body { overflow-x: hidden; }
569+
570+
.install-card pre {
571+
max-width: 100%;
572+
word-wrap: break-word;
573+
}
574+
.install-card pre code {
575+
white-space: pre-wrap;
576+
word-break: break-all;
577+
}
578+
.terminal-body {
579+
word-break: break-word;
580+
overflow-wrap: break-word;
581+
}
582+
568583
@media (max-width: 768px) {
569584
.hero { padding: 80px 0 60px; }
585+
.hero-title { font-size: clamp(2.4rem, 9vw, 4rem); letter-spacing: 3px; }
570586
.nav-links { gap: 16px; }
571587
.features-grid { grid-template-columns: 1fr; }
572588
.install-grid { grid-template-columns: 1fr; }
589+
.install-card { padding: 20px; }
590+
.install-card pre { padding: 12px; }
591+
.install-card pre code { font-size: 0.72rem; }
592+
.terminal { max-width: 100%; }
593+
.terminal-body { font-size: 0.72rem; padding: 16px; }
594+
.steps { max-width: 100%; }
595+
.section-title { font-size: clamp(1.2rem, 4vw, 1.8rem); }
596+
.crasher-tags { gap: 8px; }
597+
.crasher-tag { font-size: 0.72rem; padding: 6px 14px; }
598+
.hero-badges { gap: 6px; }
599+
.badge { font-size: 0.62rem; padding: 4px 10px; }
600+
.bottom-cta { padding: 60px 0 50px; }
573601
}
574602
@media (max-width: 520px) {
575603
.nav-links { display: none; }
576604
.hero-ctas { flex-direction: column; align-items: center; }
605+
.hero-title { font-size: clamp(2rem, 8vw, 3rem); letter-spacing: 2px; }
606+
.container { padding: 0 16px; }
577607
}
578608
</style>
579609
</head>

0 commit comments

Comments
 (0)