import type { DemoSlot, PageSeo } from './types' // ── Pages ────────────────────────────────────────────────────────────────────── // Single source of truth for the site's real URLs, shared by the router, the // admin page-picker and the sitemap generator. The pN ids are the ones baked into // the markup (id="pg-p2", data-page="p2") and into every CMS field key. export interface PageDef { id: string path: string name: string /** Include in sitemap.xml. */ indexable: boolean priority: string } export const PAGES: PageDef[] = [ { id: 'p1', path: '/', name: 'Home', indexable: true, priority: '1.0' }, { id: 'p2', path: '/mobile-sdk', name: 'Mobile SDK', indexable: true, priority: '0.9' }, { id: 'p10', path: '/dns-protect', name: 'DNS Protect', indexable: true, priority: '0.9' }, { id: 'p3', path: '/halo-cpe', name: 'Halo CPE', indexable: true, priority: '0.9' }, { id: 'p4', path: '/for-operators', name: 'For Operators', indexable: true, priority: '0.8' }, { id: 'p13', path: '/roi-calculator', name: 'ROI Calculator', indexable: true, priority: '0.7' }, { id: 'p5', path: '/financial-services', name: 'Financial Services', indexable: true, priority: '0.8' }, { id: 'p6', path: '/why-blackdice', name: 'Why BlackDice?', indexable: true, priority: '0.7' }, { id: 'p7', path: '/news', name: 'News', indexable: true, priority: '0.8' }, { id: 'p8', path: '/investors', name: 'Investors', indexable: true, priority: '0.6' }, { id: 'p9', path: '/contact', name: 'Contact', indexable: true, priority: '0.7' }, { id: 'p11', path: '/cookie-policy', name: 'Cookie Policy', indexable: false, priority: '0.2' }, { id: 'p12', path: '/privacy-policy', name: 'Privacy Policy', indexable: false, priority: '0.2' }, ] export const pageById = (id: string) => PAGES.find((p) => p.id === id) export const pageByPath = (path: string) => { const clean = path.replace(/\/+$/, '') || '/' return PAGES.find((p) => p.path === clean) } /** Default per-page meta, carried over from the SEO pass on the legacy site. */ export const DEFAULT_SEO: Record = { p1: { title: 'BlackDice | AI-Powered Cyber Defence', description: 'BlackDice Cyber delivers AI-powered network protection for telecoms operators and financial institutions — confidence while connected, security of experience, security of economics.', }, p2: { title: 'Mobile SDK | BlackDice Cyber', description: 'BlackDice Mobile SDK: real-time fraud signals embedded directly in your application, giving subscribers confidence while connected.', }, p3: { title: 'Halo CPE | BlackDice Cyber', description: 'BlackDice Halo CPE: industrial-grade cyber defence with zero hardware changes — security of economics for telecoms operators.', }, p4: { title: 'For Operators | BlackDice Cyber', description: 'AI-powered cybersecurity for telecoms operators and their subscribers — trusted connectivity as a competitive edge.', }, p5: { title: 'Financial Services | BlackDice Cyber', description: 'AI-powered fraud prevention for financial services institutions, stopping fraud before the transaction begins.', }, p6: { title: 'Why BlackDice? | BlackDice Cyber', description: 'Why BlackDice: a world where being connected means being protected, built on three pillars of network security.', }, p7: { title: 'News & Insights | BlackDice Cyber', description: 'The latest news, announcements and insights from BlackDice Cyber.', }, p8: { title: 'Investors | BlackDice Cyber', description: 'Investor information for BlackDice Cyber, part of Cyber Intelligence Group Ltd.', }, p9: { title: 'Contact | BlackDice Cyber', description: 'Get in touch with BlackDice Cyber to safeguard your digital world.', }, p10: { title: 'DNS Protect | BlackDice Cyber', description: 'BlackDice DNS Protect: DNS-layer protection for every subscriber, live in days — security of experience.', }, p13: { title: 'ROI Calculator | BlackDice Cyber', description: 'Free interactive ROI calculator for telecoms operators — quantify bandwidth, support call, churn and DDoS savings from network protection.', }, p11: { title: 'Cookie Policy | BlackDice Cyber', description: 'BlackDice Cyber cookie policy.' }, p12: { title: 'Privacy Policy | BlackDice Cyber', description: 'BlackDice Cyber privacy policy.' }, } // ── Demo slots ───────────────────────────────────────────────────────────────── // Declared in code (so the pages have somewhere to render), configured in the CMS. // `scenario` links a slot to the interactive React demo that plays when no clip // has been uploaded yet; `poster` is the still shown for video-only slots. export interface DemoSlotDef { key: string page: string /** Interactive threat-demo scenario id, when one exists. */ scenario?: string defaults: DemoSlot } export const DEMO_SLOTS: DemoSlotDef[] = [ { key: 'sdk-callscam', page: 'p2', scenario: 'callscam', defaults: { title: 'Scam call detection — Voice / VOIP', caption: 'A spoofed caller ID during an active banking session. The SDK correlates call, device and session signals and recommends blocking before the subscriber engages.', video: '', poster: '', enabled: true, }, }, { key: 'sdk-smsscam', page: 'p2', scenario: 'smsscam', defaults: { title: 'Scam SMS detection', caption: 'A smishing message carrying a lookalike banking domain is flagged and the link neutralised at the point of delivery.', video: '', poster: '', enabled: true, }, }, { key: 'sdk-simswap', page: 'p2', scenario: 'simswap', defaults: { title: 'SIM swap detection', caption: 'A SIM change on a trusted number raises the account risk score and forces identity re-verification before any transaction completes.', video: '', poster: '', enabled: true, }, }, { key: 'sdk-dns', page: 'p2', scenario: 'dns', defaults: { title: 'Per-device DNS analytics — iOS and Android', caption: 'Device-level DNS visibility on both platforms: malicious lookups blocked in-line, with the per-device analytics behind the decision.', video: '', poster: '', enabled: true, }, }, { key: 'sdk-appperms', page: 'p2', scenario: 'appperms', defaults: { title: 'Permissions checking', caption: 'An app requesting accessibility and SMS permissions it has no reason to hold — surfaced to the subscriber before install, with the risk explained in plain language.', video: '', poster: '', enabled: true, }, }, { key: 'halo-retina', page: 'p3', defaults: { title: 'BlackDice Retina™ — operator dashboard walkthrough', caption: 'Estate-wide visibility: network health, live threat activity and account status in one carrier-grade console.', video: '', poster: '/BLACKDICE-RETINA.png', enabled: true, }, }, { key: 'halo-angel', page: 'p3', defaults: { title: 'BlackDice Angel™ — subscriber web UI walkthrough', caption: 'The white-labelled subscriber experience: devices, blocked threats and household controls in one place.', video: '', poster: '/BLACKDICE-UI.png', enabled: true, }, }, ] export const demoSlotsForPage = (page: string) => DEMO_SLOTS.filter((s) => s.page === page) export const DEFAULT_DEMOS: Record = Object.fromEntries( DEMO_SLOTS.map((s) => [s.key, s.defaults]), )