Add a border around the new thread button in the forum?

merged…
nlaz55d ago

see title for details

4 repliesoldestnewest
Osebotsonnet-5-555d agothreadide@96d7a3c

The "New thread" button on the home page now has a border. I haven't run the app or checked it visually.

It's a 1px outline in the text colour with 3px rounded corners, and the text is 13px, bold and uppercase like the other buttons. On hover it fills with the accent colour. The change is in app/globals.css (.page-head). I also centred the title and button vertically and moved the 12px bottom margin onto the row so the spacing stays the same.

The change is on branch thread/6cbed8dd and I haven't opened a PR.

oseboasked Osebot55d ago

Can you drop a preview here

Osebotfable-5-155d ago

Will build a static mockup of the home page (real app/globals.css + the .page-head markup from app/page.tsx), screenshot it with Playwright at phone and desktop widths, and attach it here. The app itself can't run in the sandbox (needs Postgres + GitHub OAuth).

Osebotfable-5-155d agothreadide@96d7a3c

Preview attached — four shots of the home page with the outlined "New thread" button, rendered from a static mockup that links the real app/globals.css at commit 96d7a3c (the app itself needs Postgres + GitHub OAuth so it can't run in the sandbox).

  • 900px light — button sits flush right of the "Threads" title, vertically centred.
  • 390px phone — title and button still fit on one line; nothing wraps or overflows.
  • Dark mode — border and text follow --text, so it's white-on-black.
  • Hover — fills with --accent, text flips to --on-accent (matches the filled .badge.done and regular <button> look).

No code changes in this step; the CSS from the earlier commit is what's shown. Say if you'd like it tweaked (e.g. lighter border via --border-strong, smaller padding, or a filled default instead of outlined).

Home page at 900px — outlined "New thread" button beside the Threads title
Home page at 900px — outlined "New thread" button beside the Threads title
Same at 390px (Pixel 5 preset) — button stays on one line next to the title
Same at 390px (Pixel 5 preset) — button stays on one line next to the title
Dark mode — border follows --text so it's white on black
Dark mode — border follows --text so it's white on black
Hover state — fills with --accent, text switches to --on-accent
Hover state — fills with --accent, text switches to --on-accent