Skip to content

Commit 201ce14

Browse files
committed
fix: v1.6.1 — responsive back-link copy and 404 page spacing on mobile
1 parent fd11ca1 commit 201ce14

4 files changed

Lines changed: 31 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,23 @@ InfraLens's history as a standalone product (2026-01-06 to 2026-08-10) is
99
frozen in [`docs/infralens/CHANGELOG.md`](docs/infralens/CHANGELOG.md).
1010
InfraLens changes since its native migration are recorded here.
1111

12+
## [1.6.1] — 2026-08-18
13+
14+
### Fixed
15+
16+
- **"Retour à la carte" back-link was misleading on mobile** — the
17+
homepage's `WorldMap` only renders at `md:` and up; below that it falls
18+
back to a plain zone list, so the label referenced something that
19+
wasn't there. Now reads "Retour à l'accueil" on mobile, on both
20+
`PageShell` (`/tools`, `/about`, `/projects`, `/lab`, `/contact`) and
21+
the standalone 404 page. Desktop keeps "Retour à la carte" — the map is
22+
real there.
23+
- **404 page content crowded against the header and footer on mobile**
24+
used `flex-1` to center within whatever space was left after the site
25+
header/footer, which on a page with this many footer nav columns left
26+
almost no room. Switched to `min-h-screen`, matching the same fix
27+
already used by InfraLens's own 404 page.
28+
1229
## [1.6.0] — 2026-08-18
1330

1431
### Added

app/not-found.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ import Link from "next/link";
44

55
export default function NotFound() {
66
return (
7-
<main className="flex flex-1 flex-col items-center justify-center px-6">
7+
// min-h-screen, not flex-1 — this sits between SiteHeader/SiteFooter in
8+
// the root layout, and flex-1 only gets whatever height is left over
9+
// after those, which on a page with this many footer nav columns left
10+
// almost nothing to center within (content hugging the header on top,
11+
// footer on the bottom). min-h-screen is the same fix already used by
12+
// InfraLens's own not-found.tsx, confirmed clean there.
13+
<main className="flex min-h-screen flex-col items-center justify-center px-6">
814
<div className="text-center">
915
<p
1016
className="mb-4 font-mono text-7xl font-bold"
@@ -25,7 +31,9 @@ export default function NotFound() {
2531
}}
2632
>
2733
<ArrowLeft size={14} />
28-
Retour à la carte
34+
{/* WorldMap only renders md:block+ (src/components/map/world-map.tsx) — see the same fix in page-shell.tsx. */}
35+
<span className="hidden md:inline">Retour à la carte</span>
36+
<span className="md:hidden">Retour à l&apos;accueil</span>
2937
</Link>
3038
</div>
3139
</main>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "randy-code",
3-
"version": "1.6.0",
3+
"version": "1.6.1",
44
"private": true,
55
"packageManager": "pnpm@10.7.0",
66
"scripts": {

src/components/layout/page-shell.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ export function PageShell({
5656
className="inline-flex items-center gap-1.5 text-xs text-zinc-400 transition-colors hover:text-zinc-300"
5757
>
5858
<ArrowLeft size={12} />
59-
Retour à la carte
59+
{/* WorldMap itself only renders md:block+ (src/components/map/world-map.tsx) — below that breakpoint there's no map to go "back" to, just its own zone-list fallback. */}
60+
<span className="hidden md:inline">Retour à la carte</span>
61+
<span className="md:hidden">Retour à l&apos;accueil</span>
6062
</Link>
6163
</motion.div>
6264

0 commit comments

Comments
 (0)