Commit Graph
19 Commits
Author SHA1 Message Date
MehboobKandClaude Sonnet 5 6d89264265 Fix Mobile SDK hero layout: restore demo into hero, lay out as a row
CI / build (push) Canceled after 0s
The hero's live phone demo had been split into a separate section below
the hero in an earlier commit, leaving the heading stranded in an
oversized, mostly-empty hero and the demo adrift further down the page.
Moves the demo mount back inside .bd-hero-top as originally intended,
lays the heading and demo out side by side in a row (falling back to a
stacked column below 1480px where the demo's fixed-width block would
otherwise clip), compacts the tile grid to two columns, and widens the
text column so copy wraps more naturally.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-27 19:03:46 +05:00
MehboobKandClaude Sonnet 5 ca838ba287 Gate the ROI calculator behind a registration form, add strategy deck
CI / build (push) Canceled after 0s
Replaces the open calculator with the intended flow: visitors register
(name, company, title, business email, region, device count) to unlock
a 15-slide Strategy Deck viewer and the ROI Calculator. Both the deck
and a personalised ROI report now download as real PowerPoint files,
built client-side with JSZip by patching the deck template's XML.
Registration and report downloads are captured as enquiries via the
existing /api/leads endpoint. Drops the old PNG results-slide export
(html2canvas) in favour of the PPTX report.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-26 14:34:13 +05:00
MehboobKandClaude Sonnet 5 5232e6bd64 Add download button to the ROI slide card
CI / build (push) Canceled after 0s
Lazy-loads html2canvas (separate chunk, only fetched on click) to export
the card as a PNG. The button floats on the card's top-right corner,
outside the captured element, so it never ends up in the exported image.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-19 17:32:18 +05:00
MehboobKandClaude Sonnet 5 d4acaaa222 Promote ROI calculator on homepage, tighten nav, fix broken blog hero
CI / build (push) Canceled after 0s
- Homepage hero CTA now reads "ROI Calculator" and links straight to
  /roi-calculator; dropped the second "Explore platform" button.
- Tightened nav link/dropdown/CTA padding; fixed .bd-hero padding on
  mobile (was inheriting 90px from desktop, now 15px).
- ROI calculator page hero: added a live-badge next to the eyebrow
  (matching the homepage's "NETWORK INTELLIGENCE LIVE" styling) and
  renamed it from "FOR OPERATORS" to "ROI CALCULATOR"; tidied the hero
  subcopy punctuation.
- Cleared the dead wp-content hero image on the South-east Asia blog
  post (the old WordPress asset no longer exists) so it degrades
  gracefully instead of showing a broken image icon.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-19 17:19:36 +05:00
MehboobKandClaude Sonnet 5 2b32e26e05 Capture ROI calculator submissions as enquiries for admin review
CI / build (push) Canceled after 0s
Visitors can now send their ROI results with name/email/company, which
records the full inputs and savings breakdown through the existing leads
API so admins can review them in the Enquiries tab.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-19 16:22:56 +05:00
MehboobKandClaude Sonnet 5 3a209bd79a Add ROI Calculator page, polish Mobile SDK explorer tabs and hero layout
CI / build (push) Canceled after 0s
Wires a new /roi-calculator route into nav, routing, sitemap and SEO
metadata, and enlarges the Mobile SDK explorer's tab tiles and phone
stage for better readability.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-13 16:17:24 +05:00
MehboobKandClaude Sonnet 5 81ffaa85c3 Rework Mobile SDK explorer into module tile grid, polish nav styling
CI / build (push) Canceled after 0s
Replace the tab/scrubber UI with a module tile grid, drop the leaked
real phone number from the call-scam demo script, and simplify nav
scroll background handling.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-24 18:16:57 +05:00
MehboobKandClaude Sonnet 5 7ed6a51d9f Rewrite page copy across the site, fix nav/blog polish, resize SDK explorer
Restores and rewrites content on Home, Mobile SDK, DNS Protect, Halo CPE,
For Operators, Financial Services, Why BlackDice, Investors and Contact to
match the approved source copy, removing stray dashes site-wide in favour
of plain punctuation. Removes an unreachable duplicate Contact page block
that left a stray unclosed <div> in the markup. Shrinks and repads the
Guardian Mobile SDK explorer widget so it fits without excess scrolling.
Also includes in-progress nav, blog seed and demo scenario tweaks.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-11 05:31:37 +05:00
MehboobKandClaude Sonnet 5 25423c15d1 Trim home page sections, fill in APP fraud stat, cap content width
Removes the Retina Dashboard and Stats sections from the home page,
repositions the newsroom section after the CTA cards, and fills in
the blank "£bn" APP-fraud stat with "£3.3bn". Caps .bd-hero-in and
.bd-si at 1120px max-width so content stops stretching edge to edge
on wide viewports.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-07 22:46:27 +05:00
MehboobKandClaude Sonnet 5 065847e67a Remove voiceover from the Mobile SDK explorer
Drops speechSynthesis narration, the per-module mute toggle, and the
spoken tab-click announcement. Each module's timing reverts to its
original snappy pace (e.g. Location zones: 32s -> 11s), since the
longer durations were only there to give the voice room to finish.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-03 21:15:32 +05:00
MehboobKandClaude Sonnet 5 c00ce6a58d Replace Mobile SDK hero demo with the Guardian explorer widget
Ports the 9-tab Guardian Mobile SDK phone-demo mockup (mobile-sdk.html)
into a React component and swaps it into #mobile-sdk-demo-mount in
place of ThreatDemosSlider, keeping the site's real header/nav/footer
around it.

- Adds voiceover per module, spoken via speechSynthesis and paced to
  the actual speech (each step waits for its utterance to finish
  before advancing, instead of a fixed guess at timing), plus a
  per-module mute toggle and a spoken announcement on tab click.
- Never autoplays — playback only starts on an explicit tap, matching
  the rest of the embedded demos on the site.
- Enhances the Location safety zones module with a full create-a-
  boundary -> leave-the-zone -> notified-of-the-alert flow (banner,
  breach-colored geofence, updated activity feed).
- Layout polish: floating/glow phone, centred max-width content,
  fading tab-strip edges; fixes a CSS grid min-width bug that blew the
  hero out to ~1450px on narrow viewports.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-02 23:00:44 +05:00
MehboobKandClaude Sonnet 5 041a53417a Shrink Halo CPE product screenshots ~25%
The Retina and Angel dashboard images ran full-bleed edge to edge.
Cap them at 75% width and centre, scoped to the Halo CPE page only
(home page keeps its full-width dash-frame). Reverts to 100% under
900px so mobile isn't cramped.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-02 19:59:21 +05:00
MehboobKandClaude Sonnet 5 490b5fe55f Update contact page company name to Cyber Intelligence Group Ltd
The registered-office block and the "Company" details line on the contact
page still read "BlackDice Cyber Ltd" — updated both, plus their cached CMS
field previews.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-02 16:53:04 +05:00
MehboobKandClaude Sonnet 5 a10305f5a5 Update footer copyright to Cyber Intelligence Group Ltd
All 11 page footers carried "© 2026 BLACKDICE CYBER LTD." — updated the
copyright line and its cached CMS field preview to match.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-01 21:15:43 +05:00
MehboobKandClaude Sonnet 5 11a709744e Enforce CSP without unsafe-inline, and close out the remaining retest items
CI / build (push) Has been cancelled
F-03: the legacy markup's 77 onclick="" attributes were the reason script-src
still needed 'unsafe-inline', which let injected inline script/handlers run
right past the policy. Migrated them to data-page/data-action markers handled
by a single delegated click listener in siteController.js, dropped
'unsafe-inline' from script-src, and switched both server/index.mjs and
vercel.json from Content-Security-Policy-Report-Only to enforcing. style-src
keeps 'unsafe-inline' — that governs inline style="" attributes used
throughout, a separate CSS-injection concern out of scope here.

Verified against the built site with a real headless-Chromium run: nav,
company dropdown, mobile menu, the demo modal (open/close/overlay-click/
inner-click), the modal's contact-page link, and the scroll-hint all still
work, with zero console errors.

F-10: confirmed via npm audit fix --dry-run that no non-breaking update
remains (vite and react-router-dom both need a major bump, left deferred).
Added npm audit to CI — full report for visibility, gated on critical only
so it doesn't block on the already-tracked moderate/high advisories.

F-11: uploaded PDFs now serve with Content-Disposition: attachment instead
of rendering inline from the site's own origin.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-20 21:02:53 +05:00
MehboobKandClaude Sonnet 5 764f5c8761 Remove the demos-p2-mount DemoSection portal from the Mobile SDK page
CI / build (push) Has been cancelled
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-19 18:12:04 +05:00
MehboobKandClaude Sonnet 5 f02461b456 Harden CMS security, fix SEO/a11y gaps, and fill in missing article images
CI / build (push) Has been cancelled
Server: refuse to start in production with the default admin password,
drop SVG from the upload allow-list (stored-XSS risk), add baseline
security headers, make the login rate limiter proxy-aware via TRUST_PROXY,
and auto-load .env.local/.env in dev.

Admin: sanitise post bodies on content import/snapshot restore (previously
bypassed sanitiseBody), confirm before discarding a draft, drop back to the
login screen on a mid-session 401 instead of a stuck error, add hero-image
alt text and a title/excerpt search to the articles panel.

Site: replace the soft-404-to-homepage fallback with a real noindex 404
page, add a focus trap/Escape handling/aria-modal to the enquiry modal,
aria-expanded on the mobile nav toggle, ItemList/breadcrumb structured data
for the newsroom and articles, and wire sitemap generation into the build
so it can't go stale. Extract the duplicated NewsGrid/ArticlePage card
markup into a shared PostCard component.

Content: 13 of 18 seed articles shipped with no hero image (one pointed at
a dead WordPress URL); the live blackdice.ai site turned out to still be
the old blackdice-studio.html export, so recovering the originals wasn't
feasible. Filled the gap with freely-licensed Unsplash placeholders,
credited in the author field, until real photography is ready.

Also adds a Gitea Actions CI workflow (typecheck + build).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-13 13:54:38 +05:00
MehboobKandClaude Sonnet 5 410463e0ed Fix admin studio article preview always showing "moved" error
ArticlePage and NewsGrid called useContent() directly, bypassing the
draft content SiteApp resolves for admin previews. Since /admin is
rendered outside ContentProvider, this always returned an empty post
list, so every article in the studio looked unpublished.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-13 12:18:13 +05:00
MehboobKandClaude Sonnet 5 63a36e0dca 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>
2026-08-12 23:52:44 +05:00