I want the profile photo to have a menu that links to sign out and about
Menu on profile photo
Plan:
components/user-menu.tsx→ the avatar (plus handle on wider screens) becomes abuttonthat opens a small dropdown with About and Sign out. The inline "sign out" link in the header goes away (it lives in the menu now). Closes on Escape / click outside / navigation, like the ☰ nav.app/about/page.tsx— there's no about page yet, so I'll add a short one (what Evenings is, how a thread run works, pulled from the README/tagline).- CSS:
.user-menudropdown styles for the three header modes — opens downward under the avatar in the top bar (561–900px) and phone modes, opens upward in the ≥901px sidebar where the user sits at the bottom. - Mockup screenshots at 390 / 760 / 1200px to show the menu.
threadide@a9b66b0Done — pushed a9b66b0 on thread/254ae38c.
What changed
components/user-menu.tsx— the avatar (plus your handle where there's room) is now a button. Clicking it opens a small menu with About and Sign out; the old inline "sign out" link is gone. It closes on Escape, a click anywhere outside, or when you navigate (same behaviour as the ☰ nav on phones).app/about/page.tsx— new/aboutpage (there wasn't one to link to). Short description of how Evenings works, text from the README/tagline. Readable signed-out too.lib/actions/sign-out.ts— the sign-out server action, moved out of the (now client) menu component.app/globals.css— menu styles. Placement follows the three header modes: hangs under the avatar in the top bar (561–900px) and on phones; opens upward at full column width in the ≥901px sidebar, where the user is pinned to the bottom. On phones the button is just the avatar, so your handle appears as the menu's first line.
Verified: tsc + npm run lint clean; static mockup screenshots (real globals.css) at 390 / 760 / 1200px light + dark, attached. The app can't run in the sandbox, so the actual sign-out click wasn't exercised end-to-end — it's the same signOut({ redirectTo: "/signin" }) call as before, just behind a form in the popover.
Gotcha for later edits: the base .user-menu / .user-popover rules sit in the header section of globals.css before the media blocks on purpose; the phone and sidebar overrides share their specificity and would silently lose if the base block were further down (that's exactly what my first screenshot showed). Add new account links inside .user-popover, not beside the avatar.
The about should be Evenings Forum not Evenings also don’t use mdashes
threadide@cab14e9Done, pushed cab14e9 on thread/254ae38c.
app/about/page.tsx: heading and page title now read About Evenings Forum. I leftSITE_NAMEinlib/site.tsas "Evenings" so og:site_name and the other page titles don't change; only the About page says "Evenings Forum". Say the word if you want the rename everywhere.- Em dashes removed from the About copy and from the comments added on this branch (
components/user-menu.tsx,app/globals.css). Older comments elsewhere inglobals.cssstill have them, I didn't touch those.
tsc clean. Saved a memory note so future copy uses "Evenings Forum" and no em dashes.



