Initial commit: BlackDice site rebuild with integrated CMS

Rebuilds content management around a single admin route (/admin —
"BlackDice Studio"), replacing blackdice-studio.html. Publishing writes
one JSON content document instead of regenerating HTML files, so it can
no longer overwrite hand-made site changes the way the old tool did.

- /admin: click-to-edit copy/images, article CRUD with a Word-safe rich
  text editor, demo clip management, per-page SEO, enquiry log, publish
  history with rollback
- Real per-page URLs for all pages and articles, each with its own
  meta/canonical/OG/JSON-LD
- Newsroom + article pages driven by the CMS post library, seeded from
  the old studio's export (17 articles) plus a drafted GSMA Open Gateway
  press release awaiting approval
- Demo sections on Mobile SDK and Halo CPE, interactive by default and
  upgradable to an uploaded clip per slot
- Dependency-free Node API server (auth, publish, uploads, snapshots,
  leads, live sitemap)
- Deployment configs for Node/nginx/IIS, Vercel and Netlify

See docs/ARCHITECTURE.md, docs/PROJECT-STRUCTURE.md, docs/CMS-GUIDE.md
and docs/DEPLOYMENT.md.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-12 23:52:44 +05:00
co-authored by Claude Sonnet 5
commit 63a36e0dca
77 changed files with 19487 additions and 0 deletions
+66
View File
@@ -0,0 +1,66 @@
import React, { Suspense } from 'react'
import ReactDOM from 'react-dom/client'
import { BrowserRouter, Routes, Route, useParams } from 'react-router-dom'
import { ContentProvider } from './cms/store'
import { PAGES } from './cms/pages'
// Lazy-loaded so each area's CSS stays isolated:
// the site's global stylesheet only loads on site routes, never on the demo pages.
const SiteApp = React.lazy(() => import('./site/SiteApp'))
const DemoScreen = React.lazy(() => import('./demo/DemoScreen'))
const DemoVideoPage = React.lazy(() => import('./demo/DemoVideoPage'))
const ThreatDemosSlider = React.lazy(() => import('./demo/threats/ThreatDemosSlider'))
const ThreatDemoPlayerPage = React.lazy(() => import('./demo/threats/ThreatDemoPlayerPage'))
const AdminApp = React.lazy(() => import('./cms/admin/AdminApp'))
function ArticleRoute() {
const { slug } = useParams()
return <SiteApp articleSlug={slug} />
}
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<BrowserRouter>
<Suspense fallback={<div style={{ minHeight: '100vh', background: '#013B49' }} />}>
<Routes>
{/* Threat-detection demo slider + per-scenario players */}
<Route path="/threat-demos" element={<ThreatDemosSlider />} />
<Route path="/threat-demo/:id" element={<ThreatDemoPlayerPage />} />
{/* Cinematic product video — its own page */}
<Route path="/demo-video" element={<DemoVideoPage />} />
{/* Full interactive demo player (Flows A–D, ?mode=video) */}
<Route path="/demo" element={<DemoScreen />} />
{/* The CMS. Content is fetched inside, so it sits outside ContentProvider. */}
<Route
path="/admin/*"
element={
<Suspense fallback={<div style={{ minHeight: '100vh', background: '#0b1418' }} />}>
<AdminApp />
</Suspense>
}
/>
{/* The marketing site: one real URL per page, plus one per article. */}
<Route
path="*"
element={
<ContentProvider>
<Routes>
{PAGES.map((page) => (
<Route key={page.id} path={page.path} element={<SiteApp pageId={page.id} />} />
))}
<Route path="/blog/:slug" element={<ArticleRoute />} />
{/* Legacy hash-era and mistyped URLs still land on a working page. */}
<Route path="/blog" element={<SiteApp pageId="p7" />} />
<Route path="/blog.html" element={<SiteApp pageId="p7" />} />
<Route path="*" element={<SiteApp pageId="p1" />} />
</Routes>
</ContentProvider>
}
/>
</Routes>
</Suspense>
</BrowserRouter>
</React.StrictMode>,
)