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>
This commit is contained in:
2026-09-02 23:00:44 +05:00
co-authored by Claude Sonnet 5
parent 5b966688e9
commit c00ce6a58d
7 changed files with 2674 additions and 4 deletions
+27
View File
@@ -553,6 +553,33 @@ textarea {
background: #071318;
box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
/* The Guardian explorer widget is a wide, multi-tab section rather than a
phone-shaped hero visual — break it out of the 2-col hero grid to full
width instead of squeezing it into the narrow phone-sized slot above. */
#pg-p2 .bd-hero-sh .bd-hero-in {
grid-template-columns: 1fr;
height: auto;
padding-bottom: 40px;
}
/* Grid items default to min-width:auto, which lets the tabstrip's
unwrapped flex content (9 tabs) blow out the track instead of
scrolling internally — force the mount's grid cell back down to the
column width so it scrolls internally instead of widening the page. */
#pg-p2 .bd-hero-sh .bd-hero-in > div:last-child {
min-width: 0;
width: 100%;
}
#pg-p2 .bd-mobile-demo-mount {
height: auto;
max-height: none;
border: none;
background: transparent;
box-shadow: none;
border-radius: 0;
overflow: visible;
margin-top: 32px;
min-width: 0;
}
.bd-phone-cta {
display: flex;
align-items: center;