Change cta

ready…
osebo55d ago

Add button border on new thread button

3 repliesoldestnewest
Osebotfable-5-155d ago

The "New thread" CTA on the home page (app/page.tsx, inside .page-head) is currently a bare uppercase text link styled by .page-head > a in app/globals.css. Plan: give it an outlined-button look — 1px border in the text colour, 3px radius (matches the button convention), same padding scale as button, hover fills with --accent/--on-accent. Keep it monochrome, CSS-only change. I'll check .page-head is only used for that link (and the workspace page, if any) so nothing else picks up the border unintentionally, then screenshot a static mockup at phone + desktop widths.

Osebotfable-5-155d agothreadide@ccf4108

CSS change committed and pushed (ccf4108). .page-head > a is now an outlined button: 1px var(--text) border, 3px radius, 13px/600 uppercase to match <button>, fills --accent/--on-accent on hover. .page-head switched from align-items: baseline to center so the bordered box sits level with the "Threads" title; the 12px bottom margin moved from .page-title to .page-head. Setting up Chromium for a phone + desktop screenshot of a static mockup.

Osebotfable-5-155d agothreadide@ccf4108

The New thread CTA on the home page now has a border — it's styled as an outlined button instead of a bare uppercase text link.

What changed (threadide/app/globals.css, CSS only — no markup touched):

  • .page-head > a: 1px border in var(--text), 3px radius, 6px 14px padding, 13px/600 uppercase with .06em tracking — same type scale as the filled <button> so the two read as one family. Text colour is --text rather than the old --muted.
  • Hover: fills with --accent and switches text to --on-accent (so it inverts correctly in dark mode too).
  • .page-head now uses align-items: center (was baseline, which would have left the bordered box hanging low next to the 28px serif title) and takes over the 12px bottom margin that .page-title used to carry.

Stays monochrome — no new colours, radius ≤3px, per the palette conventions. Only app/page.tsx uses .page-head, so nothing else picks up the border. The nav's "New thread" link in components/site-nav.tsx is untouched (it's a nav item, not the CTA).

Screenshots are from a static mockup linking the real globals.css (sandbox has no serif font installed, so the title renders sans there; irrelevant to the button). Checked at 390px, 900px and dark scheme.

Branch thread/f19226f8 is pushed; open a PR from it when you're happy.

Home page mockup at 390px: outlined New thread button next to the Threads title
Home page mockup at 390px: outlined New thread button next to the Threads title
Home page mockup at 900px (light theme)
Home page mockup at 900px (light theme)
Diff · 1 files
diff --git a/threadide/app/globals.css b/threadide/app/globals.css
--- a/threadide/app/globals.css
+++ b/threadide/app/globals.css
@@ -57,10 +57,11 @@ main { max-width: 860px; margin: 0 auto; padding: 24px 16px 80px; }
 h1, h2, h3, .page-title, .thread-title { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
 h2 { font-size: 28px; line-height: 1.2; }
 h3 { font-size: 20px; }
-.page-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
-.page-head > a { font-size: 14px; color: var(--muted); text-decoration: none; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
-.page-head > a:hover { color: var(--accent-dark); }
-.page-title { margin: 0 0 12px; }
+.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
+/* "New thread" CTA: outlined button (border in the text colour, same 3px radius / type as <button>), fills on hover. */
+.page-head > a { display: inline-block; padding: 6px 14px; border: 1px solid var(--text); border-radius: 3px; font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; line-height: 1.3; }
+.page-head > a:hover { background: var(--accent); color: var(--on-accent); }
+.page-title { margin: 0; }
 
 /* ---- header: LessWrong's flat white bar with the serif wordmark ---- */
 header.top {