ux: dark-theme conversion + forum hero + ticker cleanup

- /manufacturers index + DirectoryClient: convert white/light-ink theme
  to BB dark theme so it stops standing out against the rest of the site
- /manufacturers/[slug]: same conversion, includes the new executives
  card grid and Headquarters block
- /nab-2026: same conversion, including hero gradient and sponsor tile
  borders (amber on dark instead of amber on white)
- Forum: remove "Top Performing Threads" widget from both /forum and
  /forum/[slug] (display only — TopThreadsWidget component preserved
  in case admins want to re-enable later)
- Forum hero: vertical padding py-10 → py-5, tagline reduced from
  three sentences to one. Adds a "Sign in to post" or "Start a thread"
  CTA in the hero's top-right depending on auth state.
- Recent Forum Posts ticker: drop replies entirely, surface only thread
  titles so breadth of conversation shows instead of the loudest
  threads dominating with reply chatter.
This commit is contained in:
Ryan Salazar
2026-05-27 14:52:08 +00:00
parent 52a6792c9e
commit 3460baa8b9
7 changed files with 147 additions and 159 deletions

View File

@@ -128,21 +128,21 @@ export default async function ManufacturerProfile({
};
return (
<div className="min-h-screen bg-white">
<div className="min-h-screen bg-[#0d0d0d]">
<Header />
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
/>
<article className="max-w-4xl mx-auto px-4 py-10">
<nav className="text-xs text-ink/55 mb-6">
<Link href="/manufacturers" className="hover:text-brand-primary">
<nav className="text-xs text-[#888] mb-6">
<Link href="/manufacturers" className="hover:text-[#3b82f6]">
Manufacturer Directory
</Link>
</nav>
<header className="flex flex-col sm:flex-row gap-6 mb-8 pb-8 border-b border-ink/10">
<div className="w-24 h-24 rounded-xl bg-ink/5 flex items-center justify-center overflow-hidden flex-shrink-0">
<header className="flex flex-col sm:flex-row gap-6 mb-8 pb-8 border-b border-[#252525]">
<div className="w-24 h-24 rounded-xl bg-[#1a1a1a] flex items-center justify-center overflow-hidden flex-shrink-0">
{company.logo_url ? (
/* eslint-disable-next-line @next/next/no-img-element */
<img
@@ -151,33 +151,33 @@ export default async function ManufacturerProfile({
className="w-full h-full object-contain"
/>
) : (
<span className="text-ink/40 text-3xl font-bold">
<span className="text-[#666] text-3xl font-bold">
{(company.company_name || "?").trim().charAt(0).toUpperCase()}
</span>
)}
</div>
<div className="min-w-0 flex-1">
<h1 className="text-3xl md:text-4xl font-display font-bold text-ink mb-1">
<h1 className="text-3xl md:text-4xl font-display font-bold text-[#e0e0e0] mb-1">
{company.company_name}
</h1>
<div className="flex items-center gap-2 flex-wrap text-xs">
{company.exhibits_nab && (
<span className="bg-amber-50 text-amber-700 px-2 py-0.5 rounded font-semibold uppercase tracking-wider">
<span className="bg-amber-500/15 text-amber-300 px-2 py-0.5 rounded font-semibold uppercase tracking-wider">
NAB Show 2026
</span>
)}
{company.exhibits_ibc && (
<span className="bg-blue-50 text-blue-700 px-2 py-0.5 rounded font-semibold uppercase tracking-wider">
<span className="bg-blue-500/15 text-blue-300 px-2 py-0.5 rounded font-semibold uppercase tracking-wider">
IBC
</span>
)}
{(company.hq_city || company.hq_country) && (
<span className="text-ink/60">
<span className="text-[#888]">
{[company.hq_city, company.hq_country].filter(Boolean).join(", ")}
</span>
)}
{company.phone && (
<a href={`tel:${company.phone.replace(/[^\d+]/g, '')}`} className="text-ink/60 hover:text-brand-primary">
<a href={`tel:${company.phone.replace(/[^\d+]/g, '')}`} className="text-[#888] hover:text-[#3b82f6]">
{company.phone}
</a>
)}
@@ -188,7 +188,7 @@ export default async function ManufacturerProfile({
href={company.company_website}
target="_blank"
rel="noopener noreferrer"
className="text-brand-primary hover:underline"
className="text-[#3b82f6] hover:underline"
>
Website
</a>
@@ -198,7 +198,7 @@ export default async function ManufacturerProfile({
href={company.press_url}
target="_blank"
rel="noopener noreferrer"
className="text-brand-primary hover:underline"
className="text-[#3b82f6] hover:underline"
>
Newsroom
</a>
@@ -208,7 +208,7 @@ export default async function ManufacturerProfile({
href={company.contact_url}
target="_blank"
rel="noopener noreferrer"
className="text-brand-primary hover:underline"
className="text-[#3b82f6] hover:underline"
>
Contact
</a>
@@ -218,7 +218,7 @@ export default async function ManufacturerProfile({
href={company.linkedin_url}
target="_blank"
rel="noopener noreferrer"
className="text-ink/60 hover:text-brand-primary"
className="text-[#888] hover:text-[#3b82f6]"
>
LinkedIn
</a>
@@ -228,7 +228,7 @@ export default async function ManufacturerProfile({
href={`https://twitter.com/${company.twitter_handle}`}
target="_blank"
rel="noopener noreferrer"
className="text-ink/60 hover:text-brand-primary"
className="text-[#888] hover:text-[#3b82f6]"
>
X / Twitter
</a>
@@ -239,10 +239,10 @@ export default async function ManufacturerProfile({
{company.bio && (
<section className="mb-10">
<h2 className="text-lg font-display font-bold text-ink mb-2">About</h2>
<div className="text-ink/80 leading-relaxed space-y-4 whitespace-pre-line">{company.bio}</div>
<h2 className="text-lg font-display font-bold text-[#e0e0e0] mb-2">About</h2>
<div className="text-[#ccc] leading-relaxed space-y-4 whitespace-pre-line">{company.bio}</div>
{company.bio_source && (
<p className="text-xs text-ink/40 mt-2">
<p className="text-xs text-[#666] mt-2">
Source: {company.bio_source}
</p>
)}
@@ -251,33 +251,33 @@ export default async function ManufacturerProfile({
{executives.length > 0 && (
<section className="mb-10">
<h2 className="text-lg font-display font-bold text-ink mb-4">Executive leadership</h2>
<h2 className="text-lg font-display font-bold text-[#e0e0e0] mb-4">Executive leadership</h2>
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4">
{executives.map((e: any) => (
<div key={e.id} className="bg-surface-soft border border-ink/10 rounded-lg p-4 flex gap-3">
<div key={e.id} className="bg-[#111] border border-[#252525] rounded-lg p-4 flex gap-3">
{e.photo_url ? (
/* eslint-disable-next-line @next/next/no-img-element */
<img
src={e.photo_url}
alt={e.name}
className="w-16 h-16 rounded-full object-cover bg-ink/5 flex-shrink-0"
className="w-16 h-16 rounded-full object-cover bg-[#1a1a1a] flex-shrink-0"
loading="lazy"
/>
) : (
<div className="w-16 h-16 rounded-full bg-ink/5 flex items-center justify-center text-ink/40 font-bold flex-shrink-0">
<div className="w-16 h-16 rounded-full bg-[#1a1a1a] flex items-center justify-center text-[#666] font-bold flex-shrink-0">
{(e.name || "?").trim().charAt(0).toUpperCase()}
</div>
)}
<div className="min-w-0">
<div className="font-semibold text-ink truncate">{e.name}</div>
{e.title && <div className="text-xs text-ink/60 mb-1">{e.title}</div>}
{e.bio && <p className="text-xs text-ink/70 line-clamp-3 mb-1">{e.bio}</p>}
<div className="font-semibold text-[#e0e0e0] truncate">{e.name}</div>
{e.title && <div className="text-xs text-[#888] mb-1">{e.title}</div>}
{e.bio && <p className="text-xs text-[#aaa] line-clamp-3 mb-1">{e.bio}</p>}
{e.linkedin_url && (
<a
href={e.linkedin_url}
target="_blank"
rel="noopener noreferrer"
className="text-[11px] text-brand-primary hover:underline"
className="text-[11px] text-[#3b82f6] hover:underline"
>
LinkedIn
</a>
@@ -291,22 +291,22 @@ export default async function ManufacturerProfile({
{(company.hq_address || company.phone || company.contact_email) && (
<section className="mb-10">
<h2 className="text-lg font-display font-bold text-ink mb-2">Headquarters</h2>
<address className="not-italic text-ink/80 text-sm leading-relaxed">
<h2 className="text-lg font-display font-bold text-[#e0e0e0] mb-2">Headquarters</h2>
<address className="not-italic text-[#ccc] text-sm leading-relaxed">
{company.hq_address && <div>{company.hq_address}</div>}
{(company.hq_city || company.hq_country) && (
<div>{[company.hq_city, company.hq_country].filter(Boolean).join(", ")}</div>
)}
{company.phone && (
<div className="mt-1">
<a href={`tel:${company.phone.replace(/[^\d+]/g, '')}`} className="text-brand-primary hover:underline">
<a href={`tel:${company.phone.replace(/[^\d+]/g, '')}`} className="text-[#3b82f6] hover:underline">
{company.phone}
</a>
</div>
)}
{company.contact_email && (
<div>
<a href={`mailto:${company.contact_email}`} className="text-brand-primary hover:underline">
<a href={`mailto:${company.contact_email}`} className="text-[#3b82f6] hover:underline">
{company.contact_email}
</a>
</div>
@@ -317,12 +317,12 @@ export default async function ManufacturerProfile({
{company.categories && company.categories.length > 0 && (
<section className="mb-10">
<h2 className="text-lg font-display font-bold text-ink mb-2">Categories</h2>
<h2 className="text-lg font-display font-bold text-[#e0e0e0] mb-2">Categories</h2>
<div className="flex flex-wrap gap-2">
{company.categories.map((c: string) => (
<span
key={c}
className="text-xs bg-ink/5 text-ink/70 px-2.5 py-1 rounded-full"
className="text-xs bg-[#1a1a1a] text-[#aaa] px-2.5 py-1 rounded-full"
>
{c}
</span>
@@ -333,21 +333,21 @@ export default async function ManufacturerProfile({
{shows.length > 0 && (
<section className="mb-10">
<h2 className="text-lg font-display font-bold text-ink mb-3">
<h2 className="text-lg font-display font-bold text-[#e0e0e0] mb-3">
Trade-show appearances
</h2>
<ul className="space-y-2">
{shows.map((s) => (
<li
key={`${s.show}-${s.show_year}-${s.booth || "?"}`}
className="bg-surface-soft border border-ink/10 rounded-md px-4 py-3 flex items-center justify-between gap-4"
className="bg-[#111] border border-[#252525] rounded-md px-4 py-3 flex items-center justify-between gap-4"
>
<div className="min-w-0">
<span className="font-semibold text-ink">
<span className="font-semibold text-[#e0e0e0]">
{s.show} {s.show_year}
</span>
{s.booth && (
<span className="ml-3 text-sm text-ink/60">Booth {s.booth}</span>
<span className="ml-3 text-sm text-[#888]">Booth {s.booth}</span>
)}
</div>
</li>
@@ -359,8 +359,8 @@ export default async function ManufacturerProfile({
{recentStories.length > 0 && (
<section className="mb-10">
<header className="flex items-baseline justify-between mb-3">
<h2 className="text-lg font-display font-bold text-ink">Recent coverage</h2>
<Link href={`/news?search=${encodeURIComponent(company.company_name)}`} className="text-xs text-brand-primary hover:underline">
<h2 className="text-lg font-display font-bold text-[#e0e0e0]">Recent coverage</h2>
<Link href={`/news?search=${encodeURIComponent(company.company_name)}`} className="text-xs text-[#3b82f6] hover:underline">
All stories
</Link>
</header>
@@ -369,20 +369,20 @@ export default async function ManufacturerProfile({
<Link
key={r.wp_slug}
href={`/news/${r.wp_slug}`}
className="group bg-white border border-ink/10 rounded-md p-3 hover:border-brand-primary hover:shadow-sm transition-all flex gap-3"
className="group bg-[#0d0d0d] border border-[#252525] rounded-md p-3 hover:border-[#3b82f6] hover:shadow-sm transition-all flex gap-3"
>
{r.featured_image ? (
/* eslint-disable-next-line @next/next/no-img-element */
<img src={r.featured_image} alt="" className="w-20 h-14 rounded object-cover bg-ink/5 flex-shrink-0" loading="lazy" />
<img src={r.featured_image} alt="" className="w-20 h-14 rounded object-cover bg-[#1a1a1a] flex-shrink-0" loading="lazy" />
) : (
<div className="w-20 h-14 rounded bg-ink/5 flex-shrink-0" />
<div className="w-20 h-14 rounded bg-[#1a1a1a] flex-shrink-0" />
)}
<div className="min-w-0">
<h3 className="text-xs font-semibold text-ink leading-snug group-hover:text-brand-primary line-clamp-3">
<h3 className="text-xs font-semibold text-[#e0e0e0] leading-snug group-hover:text-[#3b82f6] line-clamp-3">
{r.title}
</h3>
{r.wp_published_at && (
<p className="text-[10px] text-ink/50 mt-1">
<p className="text-[10px] text-[#888] mt-1">
{new Date(r.wp_published_at).toLocaleDateString("en-US", { month: "short", day: "numeric", year: "numeric" })}
</p>
)}
@@ -395,14 +395,14 @@ export default async function ManufacturerProfile({
{pressReleases.length > 0 && (
<section className="mb-10">
<h2 className="text-lg font-display font-bold text-ink mb-3">Press releases</h2>
<h2 className="text-lg font-display font-bold text-[#e0e0e0] mb-3">Press releases</h2>
<ul className="space-y-2">
{pressReleases.map((p) => (
<li key={p.slug || p.source_url} className="text-sm">
{p.slug ? (
<Link
href={`/news/${p.slug}`}
className="text-brand-primary hover:underline"
className="text-[#3b82f6] hover:underline"
>
{p.title}
</Link>
@@ -410,7 +410,7 @@ export default async function ManufacturerProfile({
<span>{p.title}</span>
)}
{p.published_at && (
<span className="text-ink/50 text-xs ml-2">
<span className="text-[#888] text-xs ml-2">
{new Date(p.published_at).toISOString().slice(0, 10)}
</span>
)}
@@ -420,7 +420,7 @@ export default async function ManufacturerProfile({
</section>
)}
<footer className="text-xs text-ink/40 mt-12 pt-6 border-t border-ink/10">
<footer className="text-xs text-[#666] mt-12 pt-6 border-t border-[#252525]">
Listing maintained by Broadcast Beat editorial.
{company.last_mentioned && (
<> Last mentioned in coverage on {new Date(company.last_mentioned).toISOString().slice(0, 10)}.</>