Forum: the "Alapító tag" badge for the first hundred members
The first hundred members (in the order they chose a nickname) keep it for good; joining is serialised so there are never more than a hundred. Shown next to the nickname in posts, author lines and profiles; the privacy notice mentions it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -103,6 +103,7 @@ export function AuthorLine({
|
||||
{author.online && <span className="sr-only">(online)</span>}
|
||||
<RankBadge rank={author.rank} name={author.rank_name} />
|
||||
{author.moderator && <Badge kind="mod" />}
|
||||
{author.founder && <Badge kind="founder" />}
|
||||
{author.listener && <Badge kind="listener" />}
|
||||
{author.supporter && <Badge kind="supporter" />}
|
||||
{badges}
|
||||
|
||||
@@ -43,7 +43,7 @@ const RANK_ICONS: Record<Rank, React.ReactNode> = {
|
||||
),
|
||||
};
|
||||
|
||||
export type BadgeKind = "mod" | "listener" | "supporter" | "starter" | "sky";
|
||||
export type BadgeKind = "mod" | "founder" | "listener" | "supporter" | "starter" | "sky";
|
||||
|
||||
const BADGES: Record<BadgeKind, { label: string; title: string; icon: React.ReactNode }> = {
|
||||
// A shield with a tick.
|
||||
@@ -57,6 +57,19 @@ const BADGES: Record<BadgeKind, { label: string; title: string; icon: React.Reac
|
||||
</>
|
||||
),
|
||||
},
|
||||
// A sprout: there from the beginning.
|
||||
founder: {
|
||||
label: "Alapító tag",
|
||||
title: "A fórum első száz tagja közül való",
|
||||
icon: (
|
||||
<>
|
||||
<path d="M12 20.5V11" />
|
||||
<path d="M12 12.5c0-4 2.8-6.5 7-6.5 0 4-2.8 6.5-7 6.5z" />
|
||||
<path d="M12 14.5c0-3.2-2.4-5.5-6-5.5 0 3.2 2.4 5.5 6 5.5z" />
|
||||
<path d="M8 20.5h8" />
|
||||
</>
|
||||
),
|
||||
},
|
||||
// Two walking side by side.
|
||||
listener: {
|
||||
label: "Kísérő",
|
||||
@@ -118,7 +131,7 @@ export function RankBadge({ rank, name }: { rank: Rank; name: string }) {
|
||||
);
|
||||
}
|
||||
|
||||
/** A badge (Moderátor, Kísérő, Támogató, Szálindító, napi égbolt), with its icon. */
|
||||
/** A badge (Moderátor, Alapító tag, Kísérő, Támogató, Szálindító, napi égbolt), with its icon. */
|
||||
export function Badge({ kind }: { kind: BadgeKind }) {
|
||||
const b = BADGES[kind];
|
||||
return (
|
||||
|
||||
@@ -285,6 +285,7 @@ function PostCard({
|
||||
{author && <RankBadge rank={author.rank} name={author.rank_name} />}
|
||||
{post.system && <Badge kind="sky" />}
|
||||
{author?.moderator && <Badge kind="mod" />}
|
||||
{author?.founder && !nested && <Badge kind="founder" />}
|
||||
{author?.listener && <Badge kind="listener" />}
|
||||
{author?.supporter && <Badge kind="supporter" />}
|
||||
{starter && !post.is_opening && <Badge kind="starter" />}
|
||||
|
||||
Reference in New Issue
Block a user