Forum design: own reaction marks, compact posts, avatars for the light theme

As on the approved canvas: reactions are the forum's own line marks
(heart, lotus, two circles, star) with a count, the viewer's own filled;
the big 2x2 boxes under the opening post are gone and the names live in
the + menu and tooltips. A post's head is one line (avatar, name, rank,
Sun/Moon/Ascendant as glyphs, time), on wide screens the text lines up
under the name instead of the tall author column. "Válasz" is a small
button; edit, delete, report and moderation sit in a ⋯ menu. The
listening wish is a thin line under the title. In the light theme the
avatars get a pale tint and a darker glyph (the night circle read as a
black blot).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-26 12:20:17 +00:00
co-authored by Claude Opus 5.5
parent 7c3c9e5565
commit 0a2308c491
6 changed files with 436 additions and 287 deletions
@@ -17,6 +17,28 @@ export function signsText(signs: Record<string, string> | null | undefined): str
return parts.length ? parts.join(" · ") : null;
}
/**
* The short form next to a post: Sun, Moon and Ascendant as glyphs
* ("☉♓ ☽♋ ↑♍"), with the names in `title`. Every planet only on the profile.
*/
export function signGlyphs(signs: Record<string, string> | null | undefined): { text: string; title: string } | null {
if (!signs) return null;
const parts: string[] = [];
const names: string[] = [];
for (const [point, label] of [
["sun", "Nap"],
["moon", "Hold"],
["ascendant", "Aszcendens"],
] as const) {
const sign = signs[point];
if (!sign) continue;
const mark = point === "ascendant" ? "↑" : (POINTS[point]?.glyph ?? "");
parts.push(`${mark}${SIGNS[sign]?.glyph ?? ""}`);
names.push(`${label}: ${SIGNS[sign]?.hu ?? sign}`);
}
return parts.length ? { text: parts.join(" "), title: names.join(", ") } : null;
}
const ORDER = [
"sun",
"moon",
@@ -65,7 +87,8 @@ export function AuthorLine({
</div>
);
}
const shown = signs ? signsText(author.signs) : null;
const glyphs = signs ? signGlyphs(author.signs) : null;
const shown = glyphs?.text ?? null;
return (
<div className="fa-line">
<Link href={memberHref(author.nickname)} className="fa-avatar" tabIndex={-1} aria-hidden="true">
@@ -83,7 +106,11 @@ export function AuthorLine({
</span>
{(shown || time) && (
<span className="fa-sub">
{shown && <span className="sym">{shown}</span>}
{shown && (
<span className="sym" title={glyphs?.title}>
{shown}
</span>
)}
{shown && time && " · "}
{time && (
<time