diff --git a/src/app/about/team/page.tsx b/src/app/about/team/page.tsx index be0aecf..edfe7bd 100644 --- a/src/app/about/team/page.tsx +++ b/src/app/about/team/page.tsx @@ -2,6 +2,7 @@ import { createClient } from "@supabase/supabase-js"; import Header from "@/components/Header"; import Footer from "@/components/Footer"; import SidebarAdStack from "@/components/SidebarAdStack"; +import ObfuscatedEmail from "@/components/ObfuscatedEmail"; export const dynamic = "force-dynamic"; export const revalidate = 600; @@ -75,6 +76,19 @@ export default async function TeamPage() { .map((w) => w.charAt(0).toUpperCase()) .join(""); + // Derive @broadcastbeat.com email from the persona slug. Real mailboxes + // are set up centrally; this is the authoring address surfaced to readers. + const editorialEmail = (p: Persona): { user: string; domain: string } | null => { + if (!p.slug) return null; + return { user: p.slug, domain: "broadcastbeat.com" }; + }; + + const splitEmail = (email: string): { user: string; domain: string } | null => { + const at = email.indexOf("@"); + if (at <= 0) return null; + return { user: email.slice(0, at), domain: email.slice(at + 1) }; + }; + return (
{p.bio}
} + {(() => { + const e = editorialEmail(p); + if (!e) return null; + return ( +
+