Skip to content

Commit 609afa3

Browse files
committed
design(web): replace mobile header nav with a big journal CTA button in desktop note
1 parent 83cd4fd commit 609afa3

3 files changed

Lines changed: 33 additions & 30 deletions

File tree

web/src/app/globals.css

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2481,39 +2481,16 @@
24812481
}
24822482
}
24832483

2484-
/* ───── Mobile-only: Hero nav & desktop note ───── */
2485-
.mobile-hero-nav {
2486-
display: none;
2487-
}
2484+
/* ───── Mobile-only: Desktop note ───── */
24882485
.mobile-desktop-note {
24892486
display: none;
24902487
}
24912488

24922489
@media (max-width: 900px) {
2493-
.mobile-hero-nav {
2490+
.mobile-desktop-note {
24942491
display: flex;
2495-
justify-content: flex-end;
2492+
flex-direction: column;
24962493
align-items: center;
2497-
padding: 0 0 20px;
2498-
}
2499-
.mobile-hero-nav .mobile-journal-link {
2500-
font-family: var(--mono);
2501-
font-size: 12px;
2502-
font-weight: 500;
2503-
letter-spacing: 0.08em;
2504-
text-transform: uppercase;
2505-
color: var(--ink);
2506-
text-decoration: none;
2507-
padding: 8px 14px;
2508-
border: 1px solid var(--ink);
2509-
transition: background 0.15s ease, color 0.15s ease;
2510-
}
2511-
.mobile-hero-nav .mobile-journal-link:hover {
2512-
background: var(--ink);
2513-
color: var(--cream);
2514-
}
2515-
.mobile-desktop-note {
2516-
display: block;
25172494
text-align: center;
25182495
padding: 40px 24px;
25192496
font-family: var(--sans);
@@ -2530,4 +2507,27 @@
25302507
text-underline-offset: 3px;
25312508
font-weight: 500;
25322509
}
2510+
.mobile-desktop-note .mobile-note-journal-btn {
2511+
display: inline-flex;
2512+
align-items: center;
2513+
justify-content: center;
2514+
padding: 14px 24px 13px;
2515+
font-family: var(--mono);
2516+
font-size: 12px;
2517+
font-weight: 500;
2518+
letter-spacing: 0.1em;
2519+
text-transform: uppercase;
2520+
background: var(--ink);
2521+
color: var(--cream);
2522+
border: 1px solid var(--ink);
2523+
text-decoration: none;
2524+
transition: background-color 0.15s ease, color 0.15s ease;
2525+
width: 100%;
2526+
max-width: 280px;
2527+
margin-top: 8px;
2528+
}
2529+
.mobile-desktop-note .mobile-note-journal-btn:hover {
2530+
background: transparent;
2531+
color: var(--ink);
2532+
}
25332533
}

web/src/components/sections/Hero.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ export default function Hero() {
2727

2828
return (
2929
<section className="hero">
30-
<div className="mobile-hero-nav">
31-
<Link href="/journal" className="mobile-journal-link">Journal</Link>
32-
</div>
3330
<HeroJournalLink />
3431
<div className="hero-copy">
3532
<h1>

web/src/components/sections/RightPanel.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use client';
22

33
import { useState, useRef, useEffect } from 'react';
4+
import Link from 'next/link';
45
import Hero from './Hero';
56
import Sponsor from './Sponsor';
67
import BuildPanel from './BuildPanel';
@@ -142,7 +143,12 @@ export default function RightPanel({ initialTab = 'hero', buildContent, patternC
142143
<Hero />
143144
<Sponsor />
144145
<div className="mobile-desktop-note">
145-
For the full experience — build guide, interactive patterns, and 3D preview — visit <a href="https://patternflow.work">patternflow.work</a> on desktop.
146+
<p style={{ marginBottom: '16px' }}>
147+
For the full experience — build guide, interactive patterns, and 3D preview — visit <a href="https://patternflow.work">patternflow.work</a> on desktop.
148+
</p>
149+
<Link href="/journal" className="mobile-note-journal-btn">
150+
Read Journal
151+
</Link>
146152
</div>
147153
<Footer />
148154
</div>

0 commit comments

Comments
 (0)