Forum: a lighter new thread form

The topic is a row of small labels with the topic icons (its description
and who sees it below), the wish a three-way switch (Meghallgatásra,
Véleményekre, Beszélgetésre; two in a listening topic) with its meaning
below, and the title and the text are one writing surface with the send
button at its foot.

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 17:09:10 +00:00
co-authored by Claude Opus 5.5
parent 67cb3c6b8c
commit c07c7b68bf
4 changed files with 195 additions and 85 deletions
+1 -34
View File
@@ -4,6 +4,7 @@ import { notFound } from "next/navigation";
import { Avatar } from "@/components/forum/Avatar";
import { RankBadge } from "@/components/forum/Badges";
import { JoinTopic } from "@/components/forum/JoinTopic";
import { TopicIcon } from "@/components/forum/TopicIcon";
import { ThreadList, WaitingCard } from "@/components/forum/ThreadList";
import { MoonPhaseIcon } from "@/components/MoonChip";
import { MOON_PHASES, SIGNS } from "@/lib/astro";
@@ -15,40 +16,6 @@ import type { SkyNow } from "@/lib/types";
export const metadata = { title: { absolute: "Fórum · Sorsfonalak" } };
function TopicIcon({ slug }: { slug: string }) {
return (
<svg viewBox="0 0 24 24" aria-hidden="true" className="topic-icon">
{slug === "ami-a-szivemen-van" && (
<path d="M12 20s-7.5-4.6-7.5-10.2A4.2 4.2 0 0 1 12 7.3a4.2 4.2 0 0 1 7.5 2.5C19.5 15.4 12 20 12 20z" />
)}
{slug === "belso-utak" && (
<>
<path d="M12 12a1.2 1.2 0 1 0 1.2-1.2" />
<path d="M13.2 10.8A3.4 3.4 0 1 0 15.4 14" />
<path d="M15.4 14A5.6 5.6 0 1 1 12 6.4" />
<path d="M12 6.4a7.8 7.8 0 1 1-7.6 9.4" />
</>
)}
{slug === "egbolt-es-kepletek" && (
<>
<circle cx="12" cy="12" r="8.5" />
<path d="M12 7.5l1.2 3.3 3.3 1.2-3.3 1.2L12 16.5l-1.2-3.3L7.5 12l3.3-1.2z" />
</>
)}
{slug === "torzsasztal" && (
<>
<path d="M4.5 10h11v4.5a5 5 0 0 1-5 5h-1a5 5 0 0 1-5-5z" />
<path d="M15.5 11.5h1.3a2.4 2.4 0 0 1 0 4.8h-1.6" />
<path d="M8.5 3.5c0 1.4 1 1.6 1 3M12 3.5c0 1.4 1 1.6 1 3" />
</>
)}
{!["ami-a-szivemen-van", "belso-utak", "egbolt-es-kepletek", "torzsasztal"].includes(slug) && (
<circle cx="12" cy="12" r="8.5" />
)}
</svg>
);
}
/** "Mai égbolt": the Moon today, the same for everyone; never empty. */
function SkyCard({ sky }: { sky: SkyNow }) {
const moon = sky.moon;