Replace the four accent-family hex codes site-wide with the teal palette (keeps the dark theme; only swaps the accent family, not the dark base): #3b82f6 (accent primary CTA) → #5B7C8D (teal) [839×] #2563eb (accent-dark / hover) → #4A6473 (darker teal) [44×] #60a5fa (info link, lighter) → #8FB0C3 (mid teal) [68×] #1e3a5f (accent-muted bg) → #2F4F5F (navy) [44×] tailwind.config.js tokens updated to match (accent/accent-dark/accent-muted). Sweep also covers tailwind.css. 108 files touched. The dark base (#0d0d0d, #111, #161616, #1a1a1a etc.) is intentionally untouched. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
123 lines
4.0 KiB
TypeScript
123 lines
4.0 KiB
TypeScript
import React, { Suspense } from 'react';
|
|
import type { Metadata, Viewport } from 'next';
|
|
import '../styles/tailwind.css';
|
|
import SystemStatusBar from '@/components/SystemStatusBar';
|
|
import AskBBAI from '@/components/AskBBAI';
|
|
import GoogleAnalytics from '@/components/GoogleAnalytics';
|
|
import CookieConsent from '@/components/CookieConsent';
|
|
|
|
export const viewport: Viewport = {
|
|
width: 'device-width',
|
|
initialScale: 1
|
|
};
|
|
|
|
export const metadata: Metadata = {
|
|
metadataBase: new URL(process.env.NEXT_PUBLIC_SITE_URL || 'http://localhost:3000'),
|
|
title: 'BroadcastBeat — Broadcast Engineering News & Insights',
|
|
description: 'The digital platform for broadcast engineering professionals. Breaking news, deep-dive features, and industry spotlights from NAB to IBC and beyond.',
|
|
icons: {
|
|
icon: [
|
|
{ url: '/favicon.ico', type: 'image/x-icon' }]
|
|
|
|
},
|
|
alternates: {
|
|
canonical: '/',
|
|
// hreflang entries removed — we don't currently serve translated content,
|
|
// and pointing Google at /en, /es, /pt, etc. (which 404) was poisoning
|
|
// the SEO signal. Re-add when the i18n routes actually exist.
|
|
},
|
|
openGraph: {
|
|
type: 'website',
|
|
locale: 'en_US',
|
|
url: '/',
|
|
siteName: 'BroadcastBeat',
|
|
title: 'BroadcastBeat — Broadcast News',
|
|
description: 'Breaking news and insights for broadcast engineering professionals.',
|
|
images: [
|
|
{
|
|
url: '/assets/images/og-image.png',
|
|
width: 1200,
|
|
height: 630,
|
|
alt: 'BroadcastBeat — Broadcast Engineering News & Insights',
|
|
type: 'image/png'
|
|
}]
|
|
|
|
},
|
|
twitter: {
|
|
card: 'summary_large_image',
|
|
site: '@BroadcastBeat',
|
|
creator: '@BroadcastBeat',
|
|
title: 'BroadcastBeat — Broadcast News',
|
|
description: 'Breaking news and insights for broadcast engineering professionals.',
|
|
images: ['/assets/images/og-image.png']
|
|
},
|
|
robots: {
|
|
// noindex while Phase B (PR rewrite) and Phase D (i18n routes) land.
|
|
// Flip both to true once Google Rich Results Test passes on a sample
|
|
// NewsArticle and the news sitemap is wired up (Phase C).
|
|
index: false,
|
|
follow: false,
|
|
googleBot: {
|
|
index: false,
|
|
follow: false,
|
|
'max-video-preview': -1,
|
|
'max-image-preview': 'large',
|
|
'max-snippet': -1
|
|
}
|
|
}
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children
|
|
|
|
}: Readonly<{children: React.ReactNode;}>) {
|
|
return (
|
|
<html lang="en">
|
|
<head>
|
|
{/* hreflang entries removed pending real i18n routes (Phase D). */}
|
|
|
|
<script
|
|
type="application/ld+json"
|
|
dangerouslySetInnerHTML={{
|
|
__html: JSON.stringify({
|
|
'@context': 'https://schema.org',
|
|
'@type': 'Organization',
|
|
name: 'BroadcastBeat',
|
|
url: 'https://broadcastbeat.com',
|
|
logo: "https://img.rocket.new/generatedImages/rocket_gen_img_1ab0c6b82-1768715893826.png",
|
|
description: 'The digital platform for broadcast engineering professionals. Breaking news, deep-dive features, and industry spotlights from NAB to IBC and beyond.',
|
|
sameAs: [
|
|
'https://linkedin.com',
|
|
'https://twitter.com',
|
|
'https://facebook.com',
|
|
'https://instagram.com'],
|
|
|
|
contactPoint: {
|
|
'@type': 'ContactPoint',
|
|
contactType: 'Editorial',
|
|
url: 'https://broadcastbeat.com'
|
|
}
|
|
})
|
|
}} />
|
|
</head>
|
|
<body>
|
|
{/* Skip to main content — WCAG 2.4.1 */}
|
|
<a
|
|
href="#main-content"
|
|
className="sr-only focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:z-[10000] focus:px-4 focus:py-2 focus:bg-[#5B7C8D] focus:text-white focus:rounded focus:font-bold focus:text-sm focus:outline-none"
|
|
>
|
|
Skip to main content
|
|
</a>
|
|
<Suspense fallback={null}>
|
|
<GoogleAnalytics />
|
|
</Suspense>
|
|
<SystemStatusBar />
|
|
<div className="page-transition" id="main-content">
|
|
{children}
|
|
</div>
|
|
<CookieConsent />
|
|
<AskBBAI />
|
|
</body>
|
|
</html>);
|
|
|
|
} |