Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
96772b1480 | ||
|
|
0a83577312 | ||
|
|
6d89264265 | ||
|
|
ca838ba287 | ||
|
|
5232e6bd64 | ||
|
|
6d1ad44e6d | ||
|
|
d4acaaa222 | ||
|
|
2b32e26e05 | ||
|
|
3a209bd79a | ||
|
|
81ffaa85c3 | ||
|
|
7ed6a51d9f | ||
|
|
25423c15d1 | ||
|
|
065847e67a | ||
|
|
c00ce6a58d | ||
|
|
5b966688e9 | ||
|
|
041a53417a | ||
|
|
7024269bf6 | ||
|
|
84605dcf1a | ||
|
|
490b5fe55f | ||
|
|
9bc2a49f7c | ||
|
|
a10305f5a5 |
@@ -27,6 +27,12 @@
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
|
||||
<link rel="stylesheet"
|
||||
href="https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&family=Ubuntu+Mono:wght@400;500;700&display=swap">
|
||||
<!-- Route CSS (src/site/styles.css etc.) is code-split and loads with each
|
||||
lazy route, so without this the default browser body margin shows as a
|
||||
white ring around the dark Suspense fallback on first paint. -->
|
||||
<style>
|
||||
html, body { margin: 0; padding: 0; }
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
"framer-motion": "^11.18.2",
|
||||
"jszip": "^3.10.2",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
"react-router-dom": "^6.26.2",
|
||||
@@ -1326,6 +1327,12 @@
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/core-util-is": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz",
|
||||
"integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/csstype": {
|
||||
"version": "3.2.3",
|
||||
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",
|
||||
@@ -1587,6 +1594,18 @@
|
||||
"node": ">=20.19.0"
|
||||
}
|
||||
},
|
||||
"node_modules/immediate": {
|
||||
"version": "3.0.6",
|
||||
"resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz",
|
||||
"integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/inherits": {
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
||||
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
|
||||
"license": "ISC"
|
||||
},
|
||||
"node_modules/is-plain-object": {
|
||||
"version": "5.0.0",
|
||||
"resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz",
|
||||
@@ -1596,6 +1615,12 @@
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/isarray": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
|
||||
"integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/js-tokens": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
|
||||
@@ -1628,6 +1653,18 @@
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/jszip": {
|
||||
"version": "3.10.2",
|
||||
"resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.2.tgz",
|
||||
"integrity": "sha512-3l+rb15IOWtUhU0H5MFqES/T6Kh7abYwjosBey/vD6hDt8zoEffkSC5Ws5SGtgVw3gBx2NEbhTeSW1+kWkpyTQ==",
|
||||
"license": "(MIT OR GPL-3.0-or-later)",
|
||||
"dependencies": {
|
||||
"lie": "~3.3.0",
|
||||
"pako": "~1.0.2",
|
||||
"readable-stream": "~2.3.6",
|
||||
"setimmediate": "^1.0.5"
|
||||
}
|
||||
},
|
||||
"node_modules/launder": {
|
||||
"version": "1.7.1",
|
||||
"resolved": "https://registry.npmjs.org/launder/-/launder-1.7.1.tgz",
|
||||
@@ -1637,6 +1674,15 @@
|
||||
"dayjs": "^1.11.7"
|
||||
}
|
||||
},
|
||||
"node_modules/lie": {
|
||||
"version": "3.3.0",
|
||||
"resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz",
|
||||
"integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"immediate": "~3.0.5"
|
||||
}
|
||||
},
|
||||
"node_modules/loose-envify": {
|
||||
"version": "1.4.0",
|
||||
"resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
|
||||
@@ -1709,6 +1755,12 @@
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/pako": {
|
||||
"version": "1.0.11",
|
||||
"resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz",
|
||||
"integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==",
|
||||
"license": "(MIT AND Zlib)"
|
||||
},
|
||||
"node_modules/parse-srcset": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/parse-srcset/-/parse-srcset-1.0.2.tgz",
|
||||
@@ -1749,6 +1801,12 @@
|
||||
"node": "^10 || ^12 || >=14"
|
||||
}
|
||||
},
|
||||
"node_modules/process-nextick-args": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
|
||||
"integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/react": {
|
||||
"version": "18.3.1",
|
||||
"resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",
|
||||
@@ -1816,6 +1874,21 @@
|
||||
"react-dom": ">=16.8"
|
||||
}
|
||||
},
|
||||
"node_modules/readable-stream": {
|
||||
"version": "2.3.8",
|
||||
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz",
|
||||
"integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"core-util-is": "~1.0.0",
|
||||
"inherits": "~2.0.3",
|
||||
"isarray": "~1.0.0",
|
||||
"process-nextick-args": "~2.0.0",
|
||||
"safe-buffer": "~5.1.1",
|
||||
"string_decoder": "~1.1.1",
|
||||
"util-deprecate": "~1.0.1"
|
||||
}
|
||||
},
|
||||
"node_modules/rollup": {
|
||||
"version": "4.62.2",
|
||||
"resolved": "https://registry.npmjs.org/rollup/-/rollup-4.62.2.tgz",
|
||||
@@ -1861,6 +1934,12 @@
|
||||
"fsevents": "~2.3.2"
|
||||
}
|
||||
},
|
||||
"node_modules/safe-buffer": {
|
||||
"version": "5.1.2",
|
||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
||||
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/sanitize-html": {
|
||||
"version": "2.17.7",
|
||||
"resolved": "https://registry.npmjs.org/sanitize-html/-/sanitize-html-2.17.7.tgz",
|
||||
@@ -1898,6 +1977,12 @@
|
||||
"semver": "bin/semver.js"
|
||||
}
|
||||
},
|
||||
"node_modules/setimmediate": {
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz",
|
||||
"integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/source-map-js": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
|
||||
@@ -1907,6 +1992,15 @@
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/string_decoder": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
|
||||
"integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"safe-buffer": "~5.1.0"
|
||||
}
|
||||
},
|
||||
"node_modules/tslib": {
|
||||
"version": "2.8.1",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
|
||||
@@ -1958,6 +2052,12 @@
|
||||
"browserslist": ">= 4.21.0"
|
||||
}
|
||||
},
|
||||
"node_modules/util-deprecate": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
|
||||
"integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/vite": {
|
||||
"version": "5.4.21",
|
||||
"resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz",
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"framer-motion": "^11.18.2",
|
||||
"jszip": "^3.10.2",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
"react-router-dom": "^6.26.2",
|
||||
|
||||
|
After Width: | Height: | Size: 110 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 45 KiB |
@@ -1,4 +1,4 @@
|
||||
<svg width="417" height="71" viewBox="0 0 417 71" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="280" height="71" viewBox="0 0 280 71" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<mask id="mask0_3925_2297" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="280" height="71">
|
||||
<path d="M0.666504 0.338379H279.333V70.3384H0.666504V0.338379Z" fill="white"/>
|
||||
</mask>
|
||||
@@ -10,21 +10,6 @@
|
||||
<path d="M279.527 0.335938H0.526855V70.336H279.527V0.335938Z" fill="url(#pattern1_3925_2297)"/>
|
||||
</g>
|
||||
</g>
|
||||
<mask id="mask2_3925_2297" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="290" y="9" width="127" height="53">
|
||||
<path d="M416.667 9.6665H290V61.6665H416.667V9.6665Z" fill="white"/>
|
||||
</mask>
|
||||
<g mask="url(#mask2_3925_2297)">
|
||||
<mask id="mask3_3925_2297" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="290" y="20" width="32" height="33">
|
||||
<path d="M290.641 20.333H322V52.333H290.641V20.333Z" fill="white"/>
|
||||
</mask>
|
||||
<g mask="url(#mask3_3925_2297)">
|
||||
<path d="M314.53 51.6104C314.207 50.5583 313.853 49.4801 313.467 48.3812C313.077 47.2718 312.686 46.1624 312.301 45.0479H300.488C300.113 46.1624 299.723 47.2718 299.322 48.3812C298.931 49.4801 298.577 50.5583 298.259 51.6104H291.176C292.311 48.3499 293.389 45.3343 294.405 42.5687C295.431 39.7926 296.431 37.1833 297.405 34.7354C298.389 32.277 299.353 29.9541 300.301 27.7562C301.243 25.5479 302.228 23.3968 303.259 21.2979H309.78C310.764 23.3968 311.738 25.5479 312.697 27.7562C313.665 29.9541 314.639 32.277 315.613 34.7354C316.582 37.1833 317.577 39.7926 318.592 42.5687C319.618 45.3343 320.702 48.3499 321.842 51.6104H314.53ZM306.363 28.152C306.207 28.5999 305.988 29.2041 305.697 29.9645C305.405 30.7145 305.072 31.5895 304.697 32.5895C304.322 33.5791 303.905 34.6676 303.447 35.8604C302.999 37.0583 302.54 38.3135 302.072 39.6312H310.697C310.223 38.3135 309.764 37.0583 309.322 35.8604C308.889 34.6676 308.473 33.5791 308.072 32.5895C307.681 31.5895 307.342 30.7145 307.051 29.9645C306.759 29.2041 306.53 28.5999 306.363 28.152Z" fill="#53B798"/>
|
||||
</g>
|
||||
<path d="M325.331 29.3809C326.44 29.0632 327.872 28.7663 329.622 28.485C331.372 28.209 333.206 28.0684 335.122 28.0684C337.081 28.0684 338.706 28.3288 339.997 28.8392C341.299 29.3548 342.331 30.0788 343.081 31.0059C343.841 31.9382 344.383 33.0475 344.706 34.3392C345.023 35.6204 345.185 37.0423 345.185 38.61V51.61H338.685V39.4017C338.685 37.3079 338.403 35.8184 337.851 34.9434C337.294 34.0684 336.258 33.6309 334.747 33.6309C334.273 33.6309 333.773 33.6517 333.247 33.6934C332.716 33.735 332.252 33.7871 331.851 33.8392V51.61H325.331V29.3809Z" fill="#53B798"/>
|
||||
<path d="M356.65 39.36C356.65 43.0007 358.119 44.8184 361.067 44.8184C361.734 44.8184 362.359 44.735 362.942 44.5684C363.525 44.3913 364.025 44.1829 364.442 43.9434V33.5475C364.109 33.4798 363.718 33.4225 363.275 33.3809C362.843 33.3392 362.338 33.3184 361.754 33.3184C360.046 33.3184 358.765 33.8913 357.921 35.0267C357.072 36.1673 356.65 37.61 356.65 39.36ZM370.942 48.7142C370.942 52.4746 369.984 55.2663 368.067 57.0892C366.161 58.9225 363.218 59.8392 359.234 59.8392C357.827 59.8392 356.426 59.7142 355.025 59.4642C353.619 59.2142 352.322 58.8861 351.129 58.485L352.275 53.0059C353.286 53.4225 354.359 53.7402 355.484 53.9642C356.609 54.1986 357.885 54.3184 359.317 54.3184C361.176 54.3184 362.494 53.9069 363.275 53.0892C364.051 52.2819 364.442 51.235 364.442 49.9434V49.11C363.734 49.4329 363.004 49.6725 362.254 49.8392C361.515 49.9954 360.713 50.0684 359.838 50.0684C356.655 50.0684 354.218 49.1309 352.525 47.2559C350.843 45.3809 350.004 42.7507 350.004 39.36C350.004 37.6673 350.26 36.1309 350.775 34.7559C351.301 33.3704 352.067 32.1829 353.067 31.1934C354.077 30.1934 355.317 29.4225 356.775 28.8809C358.234 28.3392 359.879 28.0684 361.713 28.0684C362.504 28.0684 363.317 28.11 364.15 28.1934C364.984 28.2663 365.801 28.3548 366.609 28.4642C367.426 28.5788 368.202 28.7142 368.942 28.8809C369.692 29.0475 370.359 29.2142 370.942 29.3809V48.7142Z" fill="#53B798"/>
|
||||
<path d="M375.98 40.277C375.98 38.2354 376.293 36.4541 376.918 34.9229C377.543 33.3968 378.361 32.126 379.376 31.1104C380.402 30.0843 381.574 29.3083 382.897 28.777C384.23 28.251 385.595 27.9854 387.001 27.9854C390.262 27.9854 392.84 28.9854 394.73 30.9854C396.632 32.9854 397.585 35.9229 397.585 39.7979C397.585 40.1729 397.569 40.5895 397.543 41.0479C397.512 41.4958 397.486 41.8968 397.46 42.2562H382.668C382.803 43.5895 383.428 44.652 384.543 45.4437C385.652 46.2354 387.137 46.6312 389.001 46.6312C390.194 46.6312 391.366 46.5218 392.522 46.2979C393.673 46.0791 394.616 45.8083 395.355 45.4854L396.23 50.777C395.882 50.9593 395.418 51.1416 394.835 51.3187C394.251 51.4854 393.595 51.6312 392.876 51.7562C392.168 51.8916 391.402 52.0062 390.585 52.0895C389.762 52.1729 388.944 52.2145 388.126 52.2145C386.053 52.2145 384.257 51.9072 382.73 51.2979C381.199 50.6885 379.928 49.8551 378.918 48.7979C377.918 47.7301 377.173 46.4645 376.689 45.0062C376.215 43.5479 375.98 41.9749 375.98 40.277ZM391.293 37.777C391.251 37.2249 391.147 36.6885 390.98 36.1729C390.824 35.6468 390.585 35.1833 390.251 34.777C389.918 34.3604 389.491 34.0218 388.98 33.7562C388.48 33.4958 387.845 33.3604 387.085 33.3604C386.345 33.3604 385.715 33.4854 385.189 33.7354C384.673 33.9854 384.236 34.3187 383.876 34.7354C383.527 35.1416 383.257 35.6104 383.064 36.152C382.882 36.6833 382.751 37.2249 382.668 37.777H391.293Z" fill="#53B798"/>
|
||||
<path d="M411.79 52.0477C409.899 52.0164 408.357 51.8185 407.165 51.4435C405.982 51.0581 405.05 50.5216 404.373 49.8394C403.691 49.1623 403.227 48.3341 402.977 47.3602C402.727 46.3758 402.602 45.2716 402.602 44.0477V18.7144L409.123 17.6519V42.7352C409.123 43.3185 409.165 43.8498 409.248 44.3185C409.342 44.7769 409.508 45.1675 409.748 45.4852C409.998 45.8081 410.352 46.0685 410.81 46.2769C411.279 46.4748 411.915 46.605 412.706 46.6727L411.79 52.0477Z" fill="#53B798"/>
|
||||
</g>
|
||||
<defs>
|
||||
<pattern id="pattern0_3925_2297" patternContentUnits="objectBoundingBox" width="1" height="1">
|
||||
<use xlink:href="#image0_3925_2297" transform="scale(0.00121951 0.00487805)"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 392 KiB |
|
After Width: | Height: | Size: 64 KiB |
|
After Width: | Height: | Size: 50 KiB |
|
After Width: | Height: | Size: 92 KiB |
|
After Width: | Height: | Size: 99 KiB |
|
After Width: | Height: | Size: 68 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 64 KiB |
|
After Width: | Height: | Size: 70 KiB |
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 76 KiB |
|
After Width: | Height: | Size: 52 KiB |
|
After Width: | Height: | Size: 93 KiB |
|
After Width: | Height: | Size: 77 KiB |
|
After Width: | Height: | Size: 110 KiB |
|
After Width: | Height: | Size: 27 KiB |
@@ -2,52 +2,57 @@
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<url>
|
||||
<loc>https://www.blackdice.ai/</loc>
|
||||
<lastmod>2026-08-14</lastmod>
|
||||
<lastmod>2026-10-28</lastmod>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://www.blackdice.ai/mobile-sdk</loc>
|
||||
<lastmod>2026-08-14</lastmod>
|
||||
<lastmod>2026-10-28</lastmod>
|
||||
<priority>0.9</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://www.blackdice.ai/dns-protect</loc>
|
||||
<lastmod>2026-08-14</lastmod>
|
||||
<lastmod>2026-10-28</lastmod>
|
||||
<priority>0.9</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://www.blackdice.ai/halo-cpe</loc>
|
||||
<lastmod>2026-08-14</lastmod>
|
||||
<lastmod>2026-10-28</lastmod>
|
||||
<priority>0.9</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://www.blackdice.ai/for-operators</loc>
|
||||
<lastmod>2026-08-14</lastmod>
|
||||
<lastmod>2026-10-28</lastmod>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://www.blackdice.ai/roi-calculator</loc>
|
||||
<lastmod>2026-10-28</lastmod>
|
||||
<priority>0.7</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://www.blackdice.ai/financial-services</loc>
|
||||
<lastmod>2026-08-14</lastmod>
|
||||
<lastmod>2026-10-28</lastmod>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://www.blackdice.ai/why-blackdice</loc>
|
||||
<lastmod>2026-08-14</lastmod>
|
||||
<lastmod>2026-10-28</lastmod>
|
||||
<priority>0.7</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://www.blackdice.ai/news</loc>
|
||||
<lastmod>2026-08-14</lastmod>
|
||||
<lastmod>2026-10-28</lastmod>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://www.blackdice.ai/investors</loc>
|
||||
<lastmod>2026-08-14</lastmod>
|
||||
<lastmod>2026-10-28</lastmod>
|
||||
<priority>0.6</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://www.blackdice.ai/contact</loc>
|
||||
<lastmod>2026-08-14</lastmod>
|
||||
<lastmod>2026-10-28</lastmod>
|
||||
<priority>0.7</priority>
|
||||
</url>
|
||||
<url>
|
||||
|
||||
@@ -14,7 +14,7 @@ const SITE_URL = (process.argv[2] || process.env.SITE_URL || 'https://www.blackd
|
||||
|
||||
const PATHS = [
|
||||
['/', '1.0'], ['/mobile-sdk', '0.9'], ['/dns-protect', '0.9'], ['/halo-cpe', '0.9'],
|
||||
['/for-operators', '0.8'], ['/financial-services', '0.8'], ['/why-blackdice', '0.7'],
|
||||
['/for-operators', '0.8'], ['/roi-calculator', '0.7'], ['/financial-services', '0.8'], ['/why-blackdice', '0.7'],
|
||||
['/news', '0.8'], ['/investors', '0.6'], ['/contact', '0.7'],
|
||||
]
|
||||
|
||||
|
||||
@@ -70,11 +70,16 @@ function sanitiseBody(html) {
|
||||
}
|
||||
s = s.replace(/(<br\s*\/?>\s*){3,}/gi, '<br /><br />')
|
||||
s = s.replace(/[ \t]+/g, ' ').replace(/\s*\n\s*/g, '\n').trim()
|
||||
return s
|
||||
return normaliseDashes(s)
|
||||
}
|
||||
|
||||
// House style reads as British English — em dashes read as American, so every
|
||||
// import normalises them to a spaced en dash rather than relying on the studio
|
||||
// draft (or a future re-import) to get it right.
|
||||
const normaliseDashes = (text) => String(text || '').replace(/\s*—\s*/g, ' – ')
|
||||
|
||||
const excerptOf = (post) =>
|
||||
(post.excerpt || sanitiseBody(post.body).replace(/<[^>]*>/g, ' ').replace(/\s+/g, ' ').trim().slice(0, 260)).trim()
|
||||
normaliseDashes((post.excerpt || sanitiseBody(post.body).replace(/<[^>]*>/g, ' ').replace(/\s+/g, ' ').trim().slice(0, 260)).trim())
|
||||
|
||||
// ── Hero extraction ────────────────────────────────────────────────────────────
|
||||
const EXT = { 'image/jpeg': 'jpg', 'image/png': 'png', 'image/webp': 'webp', 'image/gif': 'gif', 'image/svg+xml': 'svg' }
|
||||
@@ -119,7 +124,7 @@ const extraPosts = fs.existsSync(EXTRA) ? JSON.parse(fs.readFileSync(EXTRA, 'utf
|
||||
const posts = (draft.posts || []).map((p) => ({
|
||||
id: p.slug,
|
||||
slug: p.slug,
|
||||
title: p.title || 'Untitled',
|
||||
title: normaliseDashes(p.title || 'Untitled'),
|
||||
category: ['insights', 'news', 'press', 'events'].includes(p.category) ? p.category : 'insights',
|
||||
date: (p.date || '').slice(0, 10),
|
||||
author: p.author || 'BlackDice Cyber',
|
||||
@@ -138,11 +143,15 @@ for (const extra of extraPosts) {
|
||||
}
|
||||
posts.sort((a, b) => (a.date < b.date ? 1 : -1))
|
||||
|
||||
const normalisedContent = Object.fromEntries(
|
||||
Object.entries(draft.content || {}).map(([id, text]) => [id, normaliseDashes(text)]),
|
||||
)
|
||||
|
||||
const seed = {
|
||||
format: 'blackdice-react-content',
|
||||
version: 1,
|
||||
savedAt: draft.savedAt || new Date().toISOString(),
|
||||
content: draft.content || {},
|
||||
content: normalisedContent,
|
||||
images: draft.images || {},
|
||||
numbers: {},
|
||||
posts,
|
||||
|
||||
@@ -477,7 +477,7 @@ async function handleApi(req, res, url) {
|
||||
// ── sitemap / robots ───────────────────────────────────────────────────────────
|
||||
const SITE_PATHS = [
|
||||
['/', '1.0'], ['/mobile-sdk', '0.9'], ['/dns-protect', '0.9'], ['/halo-cpe', '0.9'],
|
||||
['/for-operators', '0.8'], ['/financial-services', '0.8'], ['/why-blackdice', '0.7'],
|
||||
['/for-operators', '0.8'], ['/roi-calculator', '0.7'], ['/financial-services', '0.8'], ['/why-blackdice', '0.7'],
|
||||
['/news', '0.8'], ['/investors', '0.6'], ['/contact', '0.7'],
|
||||
]
|
||||
|
||||
|
||||
@@ -64,7 +64,9 @@ export default function LeadsPanel() {
|
||||
{lead.phone ? ` · ${lead.phone}` : ''}
|
||||
</span>
|
||||
{lead.message ? (
|
||||
<span style={{ display: 'block', marginTop: 6, fontSize: 12, color: 'var(--cms-mut)', lineHeight: 1.6 }}>
|
||||
<span
|
||||
style={{ display: 'block', marginTop: 6, fontSize: 12, color: 'var(--cms-mut)', lineHeight: 1.6, whiteSpace: 'pre-line' }}
|
||||
>
|
||||
{lead.message}
|
||||
</span>
|
||||
) : null}
|
||||
|
||||
@@ -20,6 +20,7 @@ export const PAGES: PageDef[] = [
|
||||
{ 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' },
|
||||
@@ -84,6 +85,11 @@ export const DEFAULT_SEO: Record<string, PageSeo> = {
|
||||
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.' },
|
||||
}
|
||||
|
||||
@@ -515,7 +515,7 @@ function SceneIsolateModal() {
|
||||
</PrimaryBtn>
|
||||
<motion.div whileTap={{ scale: .97 }}
|
||||
style={{ textAlign: 'center', fontSize: 11, color: T.muted, cursor: 'pointer', padding: '3px 0' }}>
|
||||
Cancel — stay connected
|
||||
Cancel – stay connected
|
||||
</motion.div>
|
||||
</div>
|
||||
</motion.div>
|
||||
@@ -658,7 +658,7 @@ function SceneNotifPanel() {
|
||||
{/* Critical group */}
|
||||
<div style={{ fontSize: 9, fontWeight: 700, color: T.danger, letterSpacing: '.5px', textTransform: 'uppercase', padding: '0 2px' }}>Critical</div>
|
||||
{([
|
||||
{ Icon: IconAlert, title: "Suspicious login — Emma's account", body: 'Instagram · Moscow 🇷🇺 · 02:31 AM', t: '8m ago', variant: 'danger' as const },
|
||||
{ Icon: IconAlert, title: "Suspicious login – Emma's account", body: 'Instagram · Moscow 🇷🇺 · 02:31 AM', t: '8m ago', variant: 'danger' as const },
|
||||
{ Icon: IconShield, title: 'Malware blocked · PS5', body: 'Trojan.GenericKD.71234 · Stopped', t: '6m ago', variant: 'danger' as const },
|
||||
] as const).map((n, i) => {
|
||||
const c = T.danger
|
||||
@@ -682,7 +682,7 @@ function SceneNotifPanel() {
|
||||
<div style={{ fontSize: 9, fontWeight: 700, color: T.muted, letterSpacing: '.5px', textTransform: 'uppercase', padding: '0 2px', marginTop: 4 }}>Earlier</div>
|
||||
{([
|
||||
{ Icon: IconPin, title: 'Emma arrived at School', body: '8:42 AM · geofence enter', t: '2h ago', variant: 'ok' as const },
|
||||
{ Icon: IconLock, title: 'Unsafe WiFi — VPN on', body: "Starbucks_Free · Sarah's iPhone", t: '4h ago', variant: 'warn' as const },
|
||||
{ Icon: IconLock, title: 'Unsafe WiFi – VPN on', body: "Starbucks_Free · Sarah's iPhone", t: '4h ago', variant: 'warn' as const },
|
||||
] as const).map((n, i) => {
|
||||
const vc = { ok: T.success, warn: T.warn }
|
||||
const c = vc[n.variant]
|
||||
@@ -861,7 +861,7 @@ function SceneIPDetail() {
|
||||
|
||||
<motion.div style={{ ...cardStyle, fontSize: 11, color: T.text2, lineHeight: 1.6 }}
|
||||
initial={{ opacity: 0 }} animate={{ opacity: 1 }} transition={{ delay: .35 }}>
|
||||
<span style={{ color: T.danger, fontWeight: 600 }}>Linked to:</span> Instagram credential stuffing campaign — 3,400+ victims globally, ongoing since Nov 2024.
|
||||
<span style={{ color: T.danger, fontWeight: 600 }}>Linked to:</span> Instagram credential stuffing campaign – 3,400+ victims globally, ongoing since Nov 2024.
|
||||
</motion.div>
|
||||
|
||||
<PrimaryBtn color={T.danger}>Block this IP across all devices →</PrimaryBtn>
|
||||
@@ -1448,7 +1448,7 @@ type VideoItem = { id: string; scene: string | null; ms: number; caption: string
|
||||
// Sequence: title + 7 Flow-A scenes + end card ≈ 52s
|
||||
const VIDEO_SEQUENCE: VideoItem[] = [
|
||||
{ id: 'title', scene: null, ms: 4000, caption: 'Welcome', vo: 'Your family’s digital life. One screen.', tilt: { rotateY: -4, rotateX: 2, scale: 0.97 } },
|
||||
{ id: 'home', scene: 'home', ms: 5400, caption: 'Home Dashboard', vo: 'Everything you need to protect your family — in one place.', tilt: { rotateY: -2, rotateX: 2, scale: 1.00 } },
|
||||
{ id: 'home', scene: 'home', ms: 5400, caption: 'Home Dashboard', vo: 'Everything you need to protect your family – in one place.', tilt: { rotateY: -2, rotateX: 2, scale: 1.00 } },
|
||||
{ id: 'toast', scene: 'alert-toast', ms: 6000, caption: 'Real-time Alert', vo: 'Real-time threats, delivered exactly when they happen.', tilt: { rotateY: 3, rotateX: 1, scale: 1.01 } },
|
||||
{ id: 'detail', scene: 'alert-detail', ms: 6400, caption: 'Threat Intelligence', vo: 'We don’t just say something’s wrong. We show you what it is.', tilt: { rotateY: 0, rotateX: 0, scale: 1.00 } },
|
||||
{ id: 'ps5', scene: 'device-ps5', ms: 6000, caption: 'Live Traffic', vo: 'Watch threats in real time. See what’s leaving your home.', tilt: { rotateY: -3, rotateX: 2, scale: 1.01 } },
|
||||
|
||||
@@ -35,7 +35,7 @@ const FLOWS: Record<FlowId, DemoFlow> = {
|
||||
A: {
|
||||
id: 'A',
|
||||
title: 'Critical Alert → Resolution',
|
||||
subtitle: 'Malware detected — PS5 isolated in one tap',
|
||||
subtitle: 'Malware detected – PS5 isolated in one tap',
|
||||
durationSec: 60,
|
||||
color: '#ef4444',
|
||||
steps: [
|
||||
@@ -65,7 +65,7 @@ const FLOWS: Record<FlowId, DemoFlow> = {
|
||||
},
|
||||
{
|
||||
id: 'A4',
|
||||
label: 'Device Detail — PS5',
|
||||
label: 'Device Detail – PS5',
|
||||
screen: 'device-ps5',
|
||||
caption: 'PlayStation 5 · THREAT DETECTED · Unusual traffic spike',
|
||||
camera: 'Slide right. Zoom on threat badge.',
|
||||
@@ -100,7 +100,7 @@ const FLOWS: Record<FlowId, DemoFlow> = {
|
||||
B: {
|
||||
id: 'B',
|
||||
title: 'Incident Investigation',
|
||||
subtitle: 'Suspicious login from Moscow — traced and blocked',
|
||||
subtitle: 'Suspicious login from Moscow – traced and blocked',
|
||||
durationSec: 45,
|
||||
color: '#f59e0b',
|
||||
steps: [
|
||||
@@ -124,7 +124,7 @@ const FLOWS: Record<FlowId, DemoFlow> = {
|
||||
id: 'B3',
|
||||
label: 'Event Timeline',
|
||||
screen: 'timeline',
|
||||
caption: '02:31 — Login from Moscow 🇷🇺 · 02:32 — Password change blocked',
|
||||
caption: '02:31 – Login from Moscow 🇷🇺 · 02:32 – Password change blocked',
|
||||
camera: 'Scroll timeline top-to-bottom.',
|
||||
durationMs: 12000,
|
||||
},
|
||||
@@ -173,7 +173,7 @@ const FLOWS: Record<FlowId, DemoFlow> = {
|
||||
id: 'C3',
|
||||
label: 'Full Network Scan',
|
||||
screen: 'scan-running',
|
||||
caption: 'Scanning 12 devices… ✅ × 11 · ⚠️ Printer — 1 issue',
|
||||
caption: 'Scanning 12 devices… ✅ × 11 · ⚠️ Printer – 1 issue',
|
||||
camera: 'Static. Devices check one by one.',
|
||||
durationMs: 10000,
|
||||
},
|
||||
@@ -187,7 +187,7 @@ const FLOWS: Record<FlowId, DemoFlow> = {
|
||||
},
|
||||
{
|
||||
id: 'C5',
|
||||
label: 'Verified — All Clear',
|
||||
label: 'Verified – All Clear',
|
||||
screen: 'verified',
|
||||
caption: '✅ HP Printer · Patched · All 12 devices secure · Score 95 ▲',
|
||||
camera: 'Zoom out. Green sweep.',
|
||||
|
||||
@@ -479,7 +479,7 @@ export const NOTIFICATIONS: Notification[] = [
|
||||
{
|
||||
id: 'n2',
|
||||
icon: 'alert',
|
||||
title: '⚠️ Suspicious login — Emma',
|
||||
title: '⚠️ Suspicious login – Emma',
|
||||
body: 'Instagram login from Moscow 🇷🇺 at 02:31. Access blocked.',
|
||||
time: '7 hr ago',
|
||||
read: false,
|
||||
@@ -498,7 +498,7 @@ export const NOTIFICATIONS: Notification[] = [
|
||||
id: 'n4',
|
||||
icon: 'shield',
|
||||
title: 'Unsafe WiFi auto-secured',
|
||||
body: 'Emma joined Starbucks_Free_WiFi — VPN activated automatically.',
|
||||
body: 'Emma joined Starbucks_Free_WiFi – VPN activated automatically.',
|
||||
time: 'Yesterday',
|
||||
read: true,
|
||||
severity: 'warn',
|
||||
@@ -582,7 +582,7 @@ export const SECURITY_ALERTS: SecurityAlert[] = [
|
||||
id: 'alert-002',
|
||||
severity: 'critical',
|
||||
type: 'suspicious_login',
|
||||
title: "Suspicious Login — Emma's Account",
|
||||
title: "Suspicious Login – Emma's Account",
|
||||
body: "Login attempt on Emma's Instagram from an unrecognised device in Moscow. Password change was blocked.",
|
||||
deviceId: 'd3',
|
||||
deviceName: "Emma's iPhone 14",
|
||||
@@ -637,7 +637,7 @@ export const SECURITY_ALERTS: SecurityAlert[] = [
|
||||
id: 'alert-006',
|
||||
severity: 'high',
|
||||
type: 'vulnerability',
|
||||
title: 'Firmware Vulnerability — HP Printer',
|
||||
title: 'Firmware Vulnerability – HP Printer',
|
||||
body: 'CVE-2024-8471 (CVSS 7.8): Remote code execution via port 9100. Firmware update available.',
|
||||
deviceId: 'd10',
|
||||
deviceName: 'HP LaserJet Pro',
|
||||
@@ -655,7 +655,7 @@ export const EMMA_INCIDENT_TIMELINE: TimelineEvent[] = [
|
||||
{
|
||||
id: 't1',
|
||||
time: '21:04',
|
||||
label: 'Normal login — Instagram',
|
||||
label: 'Normal login – Instagram',
|
||||
detail: 'Emma signed in from her iPhone 14 · London 🇬🇧 · known device',
|
||||
kind: 'normal',
|
||||
},
|
||||
|
||||
@@ -0,0 +1,562 @@
|
||||
import { useEffect, useRef, useState } from 'react'
|
||||
import { useNavigate } from 'react-router-dom'
|
||||
import { AnimatePresence, motion } from 'framer-motion'
|
||||
import {
|
||||
IconHome, IconUsers, IconApps, IconSliders, IconBell,
|
||||
IconPin, IconSchool, IconChild, IconCheck, IconAlert, IconPlus, IconMap,
|
||||
} from '../components/Icons'
|
||||
import '../demo.css'
|
||||
|
||||
const EASE_OUT = [0.23, 1, 0.32, 1] as const
|
||||
const SPRING = { type: 'spring', stiffness: 340, damping: 28 } as const
|
||||
const PHONE_SCALE = 0.88
|
||||
|
||||
const T = {
|
||||
bg: '#013B49',
|
||||
bgGrad: 'radial-gradient(140% 90% at 50% 0%, #075466 0%, #013B49 55%, #01303b 100%)',
|
||||
surface2: 'rgba(255,255,255,0.07)',
|
||||
surface3: 'rgba(255,255,255,0.10)',
|
||||
surfaceStr: '#0a4856',
|
||||
border: 'rgba(255,255,255,0.09)',
|
||||
text: '#e8f4f3',
|
||||
text2: '#b9cdd1',
|
||||
muted: '#8aa5ab',
|
||||
dim: '#5a7a82',
|
||||
accent: '#3BB586',
|
||||
accentSoft: 'rgba(59,181,134,0.16)',
|
||||
accentGlow: 'rgba(59,181,134,0.30)',
|
||||
danger: '#ff6b6b',
|
||||
dangerSoft: 'rgba(255,107,107,0.16)',
|
||||
warn: '#ffb56b',
|
||||
warnSoft: 'rgba(255,181,107,0.16)',
|
||||
success: '#4ec99a',
|
||||
successSoft: 'rgba(78,201,154,0.16)',
|
||||
}
|
||||
|
||||
// ── Timeline (30s total) ─────────────────────────────────────────────────────
|
||||
// P1 Live map (calm) → P2 Draw a safe zone → P3 Zone saved → P4 Jack leaves the
|
||||
// zone → P5 Alert detail → P6 Resolution → P7 Book-a-demo end card
|
||||
const PHASES = {
|
||||
p1: 3500,
|
||||
p2: 8500,
|
||||
p3: 11500,
|
||||
p4: 18500,
|
||||
p5: 23500,
|
||||
p6: 27000,
|
||||
total: 30000,
|
||||
}
|
||||
|
||||
function phaseOf(elapsed: number): number {
|
||||
if (elapsed < PHASES.p1) return 1
|
||||
if (elapsed < PHASES.p2) return 2
|
||||
if (elapsed < PHASES.p3) return 3
|
||||
if (elapsed < PHASES.p4) return 4
|
||||
if (elapsed < PHASES.p5) return 5
|
||||
if (elapsed < PHASES.p6) return 6
|
||||
return 7
|
||||
}
|
||||
|
||||
const PHASE_LABEL = ['', 'Live Map', 'Safe Zone', 'Zone Saved', 'Leaving Zone', 'Alert', 'Resolved', 'Book a Demo']
|
||||
|
||||
const VO_CUES = [
|
||||
{ at: 300, text: 'Parents can see exactly where their family is, right from the app.' },
|
||||
{ at: 3800, text: 'Creating a safe zone takes seconds – drop a pin, and draw the boundary.' },
|
||||
{ at: 8800, text: 'Once it’s saved, we keep watch over that boundary, day and night.' },
|
||||
{ at: 11800, text: 'The moment Jack leaves the Park zone, we notify the parent immediately.' },
|
||||
{ at: 23800, text: 'One tap shows exactly where he is – peace of mind, one message away. Book a demo today.' },
|
||||
]
|
||||
|
||||
const TABS = [
|
||||
{ Icon: IconHome, label: 'Home' },
|
||||
{ Icon: IconUsers, label: 'Family' },
|
||||
{ Icon: IconMap, label: 'Map' },
|
||||
{ Icon: IconSliders, label: 'Controls' },
|
||||
{ Icon: IconBell, label: 'Alerts' },
|
||||
] as const
|
||||
|
||||
function HexLogo({ size = 52 }: { size?: number }) {
|
||||
return (
|
||||
<svg width={size} height={size} viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" style={{ color: T.accent, flexShrink: 0 }}>
|
||||
<g fill="none" stroke="currentColor" strokeWidth="3" strokeLinejoin="round" strokeLinecap="round">
|
||||
<path d="M32 6 L56 20 L56 46 L32 60 L8 46 L8 20 Z" />
|
||||
<path d="M32 6 L32 32 M8 20 L32 32 M56 20 L32 32" />
|
||||
</g>
|
||||
<g fill="currentColor">
|
||||
<circle cx="20" cy="26" r="2.4" /><circle cx="20" cy="34" r="2.4" /><circle cx="44" cy="34" r="2.4" />
|
||||
</g>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
function EndCard() {
|
||||
return (
|
||||
<motion.div initial={{ opacity: 0 }} animate={{ opacity: 1 }} transition={{ duration: 0.5 }}
|
||||
style={{ position: 'absolute', inset: 0, zIndex: 60, background: T.bg, backgroundImage: T.bgGrad, display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', gap: 16, padding: '0 24px', textAlign: 'center' }}>
|
||||
<motion.div initial={{ scale: 0.6, opacity: 0 }} animate={{ scale: 1, opacity: 1 }} transition={SPRING} style={{ position: 'relative' }}>
|
||||
<motion.div animate={{ scale: [1, 1.3, 1], opacity: [0.25, 0.05, 0.25] }} transition={{ duration: 3, repeat: Infinity }}
|
||||
style={{ position: 'absolute', inset: -16, borderRadius: '50%', background: T.accent, filter: 'blur(12px)' }} />
|
||||
<div style={{ position: 'relative' }}><HexLogo size={52} /></div>
|
||||
</motion.div>
|
||||
<div>
|
||||
<div style={{ fontSize: 20, fontWeight: 700, color: T.text, letterSpacing: '-.4px' }}>BlackDice</div>
|
||||
<div style={{ fontSize: 11, color: T.muted, marginTop: 4, letterSpacing: '.3px' }}>Powered by BlackDice</div>
|
||||
</div>
|
||||
<motion.div initial={{ opacity: 0, y: 8 }} animate={{ opacity: 1, y: 0 }} transition={{ delay: 0.35 }}
|
||||
style={{ background: T.accent, color: '#fff', fontSize: 13, fontWeight: 600, padding: '11px 28px', borderRadius: 100, boxShadow: `0 10px 28px ${T.accent}55` }}>
|
||||
Book a Demo
|
||||
</motion.div>
|
||||
<motion.div initial={{ opacity: 0 }} animate={{ opacity: 1 }} transition={{ delay: 0.6 }}
|
||||
style={{ fontSize: 10.5, color: T.muted, letterSpacing: '.4px' }}>blackdice.com</motion.div>
|
||||
</motion.div>
|
||||
)
|
||||
}
|
||||
|
||||
// ── Map scene (phases 1–4) ───────────────────────────────────────────────────
|
||||
function MapScene({ elapsed, phase }: { elapsed: number; phase: number }) {
|
||||
const drawing = phase === 2
|
||||
const pinDropped = elapsed >= 4100
|
||||
const circleOut = elapsed >= 4900
|
||||
const labelTyped = elapsed >= 6300
|
||||
const saveShown = elapsed >= 7500
|
||||
const saveTapped = elapsed >= 8000
|
||||
const zoneSaved = elapsed >= PHASES.p2
|
||||
const walking = elapsed >= 11800
|
||||
const breached = elapsed >= 14800
|
||||
const alerted = elapsed >= 15200
|
||||
|
||||
const dotLeft = walking ? '61%' : '60%'
|
||||
const dotTop = walking ? '75%' : '57%'
|
||||
|
||||
const zoneName = 'Park'
|
||||
|
||||
return (
|
||||
<div style={{ position: 'absolute', inset: 0, overflow: 'hidden' }}>
|
||||
{/* stylised map base */}
|
||||
<svg viewBox="0 0 275 600" width="100%" height="100%" style={{ position: 'absolute', inset: 0 }}>
|
||||
<rect width="275" height="600" fill={T.bg} />
|
||||
<path d="M-10 90 C 70 40, 140 55, 275 130" stroke="rgba(111,169,247,.20)" strokeWidth="16" fill="none" />
|
||||
<g stroke="rgba(255,255,255,.05)" strokeWidth="1">
|
||||
<line x1="0" y1="220" x2="275" y2="230" />
|
||||
<line x1="0" y1="470" x2="275" y2="460" />
|
||||
<line x1="60" y1="0" x2="70" y2="600" />
|
||||
<line x1="205" y1="0" x2="195" y2="600" />
|
||||
</g>
|
||||
<g fill="rgba(255,255,255,.035)">
|
||||
<rect x="18" y="240" width="34" height="26" rx="3" />
|
||||
<rect x="90" y="255" width="40" height="30" rx="3" />
|
||||
<rect x="210" y="200" width="30" height="40" rx="3" />
|
||||
<rect x="30" y="490" width="46" height="28" rx="3" />
|
||||
</g>
|
||||
<ellipse cx="165" cy="340" rx="98" ry="82" fill="rgba(78,201,154,0.09)" />
|
||||
|
||||
{/* safe-zone boundary */}
|
||||
<motion.circle
|
||||
cx="165" cy="340"
|
||||
initial={{ r: 0, opacity: 0 }}
|
||||
animate={{ r: circleOut || zoneSaved ? 55 : 0, opacity: circleOut || zoneSaved ? 1 : 0 }}
|
||||
transition={{ duration: 1.1, ease: EASE_OUT }}
|
||||
fill={T.accentSoft}
|
||||
stroke={breached ? T.warn : T.accent}
|
||||
strokeWidth={2}
|
||||
strokeDasharray={zoneSaved && !drawing ? undefined : '5 4'}
|
||||
/>
|
||||
</svg>
|
||||
|
||||
{/* Home pin */}
|
||||
<motion.div initial={{ opacity: 0, y: -6 }} animate={{ opacity: 1, y: 0 }} transition={{ delay: 0.2 }}
|
||||
style={{ position: 'absolute', left: '25%', top: '25%', transform: 'translate(-50%,-100%)', display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 2 }}>
|
||||
<div style={{ width: 26, height: 26, borderRadius: '50%', background: T.surfaceStr, border: `1.5px solid ${T.accent}`, display: 'flex', alignItems: 'center', justifyContent: 'center', boxShadow: '0 4px 12px rgba(0,0,0,.4)' }}>
|
||||
<IconHome size={13} style={{ color: T.accent }} />
|
||||
</div>
|
||||
<span style={{ fontSize: 8.5, color: T.text2, background: 'rgba(0,0,0,.4)', borderRadius: 5, padding: '1px 5px' }}>Home</span>
|
||||
</motion.div>
|
||||
|
||||
{/* School pin */}
|
||||
<motion.div initial={{ opacity: 0, y: -6 }} animate={{ opacity: 1, y: 0 }} transition={{ delay: 0.3 }}
|
||||
style={{ position: 'absolute', left: '73%', top: '18%', transform: 'translate(-50%,-100%)', display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 2 }}>
|
||||
<div style={{ width: 24, height: 24, borderRadius: '50%', background: T.surfaceStr, border: `1.5px solid ${T.dim}`, display: 'flex', alignItems: 'center', justifyContent: 'center', boxShadow: '0 4px 12px rgba(0,0,0,.4)' }}>
|
||||
<IconSchool size={12} style={{ color: T.text2 }} />
|
||||
</div>
|
||||
<span style={{ fontSize: 8.5, color: T.muted, background: 'rgba(0,0,0,.4)', borderRadius: 5, padding: '1px 5px' }}>School</span>
|
||||
</motion.div>
|
||||
|
||||
{/* drop-pin during drawing */}
|
||||
<AnimatePresence>
|
||||
{drawing && pinDropped && (
|
||||
<motion.div key="drop" initial={{ opacity: 0, y: -18, scale: 0.6 }} animate={{ opacity: 1, y: 0, scale: 1 }} transition={SPRING}
|
||||
style={{ position: 'absolute', left: '60%', top: '57%', transform: 'translate(-50%,-100%)', zIndex: 5 }}>
|
||||
<IconPin size={26} style={{ color: T.accent, filter: `drop-shadow(0 4px 8px ${T.accentGlow})` }} />
|
||||
</motion.div>
|
||||
)}
|
||||
</AnimatePresence>
|
||||
|
||||
{/* Jack (family member) dot */}
|
||||
{(phase >= 3) && (
|
||||
<motion.div
|
||||
animate={{ left: dotLeft, top: dotTop }}
|
||||
transition={{ duration: 3, ease: 'easeInOut' }}
|
||||
style={{ position: 'absolute', transform: 'translate(-50%,-50%)', zIndex: 6 }}>
|
||||
<motion.div animate={breached ? { scale: [1, 1.35, 1] } : {}} transition={{ duration: 0.9, repeat: breached ? Infinity : 0 }}
|
||||
style={{ width: 22, height: 22, borderRadius: '50%', background: breached ? T.warn : T.accent, display: 'flex', alignItems: 'center', justifyContent: 'center', boxShadow: `0 0 0 4px ${breached ? T.warnSoft : T.accentSoft}` }}>
|
||||
<IconChild size={12} style={{ color: '#fff' }} />
|
||||
</motion.div>
|
||||
</motion.div>
|
||||
)}
|
||||
|
||||
{/* Header chip */}
|
||||
<div style={{ position: 'absolute', top: 46, left: 14, right: 14, display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
|
||||
<span style={{ fontSize: 13, fontWeight: 700, color: T.text, background: 'rgba(0,0,0,.32)', backdropFilter: 'blur(8px)', borderRadius: 10, padding: '5px 10px' }}>
|
||||
{drawing ? 'Add a safe zone' : 'Family · Live map'}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{/* Zone label input while drawing */}
|
||||
<AnimatePresence>
|
||||
{drawing && circleOut && (
|
||||
<motion.div key="label" initial={{ opacity: 0, y: 8 }} animate={{ opacity: 1, y: 0 }} exit={{ opacity: 0 }}
|
||||
style={{ position: 'absolute', left: '50%', top: '78%', transform: 'translateX(-50%)', background: T.surfaceStr, border: `1px solid ${T.border}`, borderRadius: 10, padding: '7px 12px', display: 'flex', alignItems: 'center', gap: 6, minWidth: 120 }}>
|
||||
<IconPin size={12} style={{ color: T.accent, flexShrink: 0 }} />
|
||||
<span style={{ fontSize: 12, color: T.text }}>
|
||||
{labelTyped
|
||||
? zoneName.split('').map((c, i) => (
|
||||
<motion.span key={i} initial={{ opacity: 0 }} animate={{ opacity: 1 }} transition={{ delay: i * 0.06 }}>{c}</motion.span>
|
||||
))
|
||||
: <span style={{ color: T.dim }}>Zone name…</span>}
|
||||
</span>
|
||||
</motion.div>
|
||||
)}
|
||||
</AnimatePresence>
|
||||
|
||||
{/* Save button while drawing */}
|
||||
<AnimatePresence>
|
||||
{drawing && saveShown && (
|
||||
<motion.div key="save" initial={{ opacity: 0, y: 10 }} animate={{ opacity: 1, y: 0 }} exit={{ opacity: 0, y: -6 }}
|
||||
transition={{ ease: EASE_OUT }}
|
||||
style={{ position: 'absolute', left: 14, right: 14, bottom: 72, zIndex: 15 }}>
|
||||
<motion.div animate={saveTapped ? { scale: [1, 0.94, 1] } : {}} transition={{ duration: 0.4 }}
|
||||
style={{ background: T.accent, color: '#fff', fontSize: 13, fontWeight: 600, borderRadius: 12, padding: '11px 0', textAlign: 'center', boxShadow: `0 8px 22px ${T.accent}55` }}>
|
||||
Save safe zone
|
||||
</motion.div>
|
||||
</motion.div>
|
||||
)}
|
||||
</AnimatePresence>
|
||||
|
||||
{/* Saved confirmation card (phase 3) */}
|
||||
<AnimatePresence>
|
||||
{phase === 3 && (
|
||||
<motion.div key="saved" initial={{ opacity: 0, y: 14 }} animate={{ opacity: 1, y: 0 }} exit={{ opacity: 0 }} transition={{ ease: EASE_OUT }}
|
||||
style={{ position: 'absolute', left: 14, right: 14, bottom: 72, zIndex: 15, background: T.surfaceStr, border: `1px solid ${T.border}`, borderRadius: 14, padding: '11px 13px', boxShadow: '0 8px 26px rgba(0,0,0,.4)' }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 8, marginBottom: 4 }}>
|
||||
<div style={{ width: 22, height: 22, borderRadius: '50%', background: T.success, display: 'flex', alignItems: 'center', justifyContent: 'center', flexShrink: 0 }}>
|
||||
<IconCheck size={12} style={{ color: '#fff' }} />
|
||||
</div>
|
||||
<span style={{ fontSize: 12.5, fontWeight: 600, color: T.text }}>Park · 200m radius</span>
|
||||
</div>
|
||||
<div style={{ fontSize: 10.5, color: T.muted, paddingLeft: 30 }}>Monitoring on · Arrive & leave alerts</div>
|
||||
</motion.div>
|
||||
)}
|
||||
</AnimatePresence>
|
||||
|
||||
{/* Time chip during the leaving-zone phase */}
|
||||
<AnimatePresence>
|
||||
{phase === 4 && (
|
||||
<motion.div key="time" initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }}
|
||||
style={{ position: 'absolute', top: 78, left: 14, fontSize: 10, color: T.muted, background: 'rgba(0,0,0,.32)', borderRadius: 8, padding: '3px 8px' }}>
|
||||
Later · 2:47 PM
|
||||
</motion.div>
|
||||
)}
|
||||
</AnimatePresence>
|
||||
|
||||
{/* Notification banner */}
|
||||
<AnimatePresence>
|
||||
{alerted && phase === 4 && (
|
||||
<motion.div key="notif" initial={{ y: -18, opacity: 0, scale: 0.97 }} animate={{ y: 0, opacity: 1, scale: 1 }} transition={SPRING}
|
||||
style={{ position: 'absolute', top: 78, left: 14, right: 14, background: T.warnSoft, border: `1px solid ${T.warn}55`, borderRadius: 12, padding: '11px 12px', display: 'flex', alignItems: 'flex-start', gap: 10, boxShadow: '0 6px 22px rgba(0,0,0,.35)' }}>
|
||||
<motion.div animate={{ scale: [1, 1.08, 1] }} transition={{ duration: 1.4, repeat: Infinity }}
|
||||
style={{ width: 32, height: 32, borderRadius: 9, background: T.warn, display: 'flex', alignItems: 'center', justifyContent: 'center', flexShrink: 0 }}>
|
||||
<IconPin size={17} style={{ color: '#fff' }} />
|
||||
</motion.div>
|
||||
<div style={{ flex: 1, fontSize: 12, lineHeight: 1.45 }}>
|
||||
<strong style={{ color: T.text, display: 'block', marginBottom: 1 }}>Jack left Park</strong>
|
||||
<span style={{ color: T.text2 }}>202 Meadow Rd · 2:47 PM</span>
|
||||
</div>
|
||||
</motion.div>
|
||||
)}
|
||||
</AnimatePresence>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
function DetailContent({ tapped }: { tapped: boolean }) {
|
||||
return (
|
||||
<motion.div initial={{ opacity: 0, x: 14 }} animate={{ opacity: 1, x: 0 }} transition={{ ease: EASE_OUT }} style={{ padding: '52px 13px 0' }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 8, marginBottom: 14 }}>
|
||||
<span style={{ fontSize: 18, color: T.muted }}>‹</span>
|
||||
<span style={{ fontSize: 15, fontWeight: 600, color: T.text }}>Alert details</span>
|
||||
</div>
|
||||
|
||||
<div style={{ background: T.warnSoft, borderRadius: 14, padding: '16px 14px', textAlign: 'center', marginBottom: 12 }}>
|
||||
<div style={{ width: 48, height: 48, borderRadius: 13, background: T.warn, display: 'flex', alignItems: 'center', justifyContent: 'center', margin: '0 auto 10px' }}>
|
||||
<IconPin size={24} style={{ color: '#fff' }} />
|
||||
</div>
|
||||
<div style={{ fontSize: 14, fontWeight: 700, color: T.text }}>Jack left Park</div>
|
||||
<div style={{ fontSize: 11, color: T.warn, marginTop: 3 }}>2:47 PM · 0.4 mi from zone centre</div>
|
||||
</div>
|
||||
|
||||
<div style={{ background: T.surface2, border: `1px solid ${T.border}`, borderRadius: 14, padding: '4px 14px', marginBottom: 12 }}>
|
||||
{[
|
||||
'Left the Park safe-zone boundary',
|
||||
'Live location updating every 30 seconds',
|
||||
'You’ll be notified again if he returns',
|
||||
].map((line, i) => (
|
||||
<motion.div key={line} initial={{ opacity: 0, x: -6 }} animate={{ opacity: 1, x: 0 }} transition={{ delay: 0.15 + i * 0.1 }}
|
||||
style={{ display: 'flex', alignItems: 'flex-start', gap: 9, padding: '9px 0', borderTop: i === 0 ? 'none' : `1px solid ${T.border}`, fontSize: 11.5, color: T.text2, lineHeight: 1.4 }}>
|
||||
<span style={{ width: 5, height: 5, borderRadius: '50%', background: T.warn, marginTop: 5, flexShrink: 0 }} />{line}
|
||||
</motion.div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
<div style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>
|
||||
<motion.div animate={tapped ? { scale: [1, 0.96, 1] } : {}} transition={{ duration: 0.4 }}
|
||||
style={{ fontSize: 13, fontWeight: 600, borderRadius: 12, padding: '11px 14px', border: 'none', background: T.warn, color: '#fff', display: 'flex', alignItems: 'center', justifyContent: 'center', gap: 7, boxShadow: `0 6px 20px ${T.warn}55` }}>
|
||||
💬 Message Jack
|
||||
</motion.div>
|
||||
<div style={{ fontSize: 13, fontWeight: 600, borderRadius: 12, padding: '11px 14px', border: `1px solid ${T.border}`, color: T.text2, display: 'flex', alignItems: 'center', justifyContent: 'center', gap: 7 }}>
|
||||
📍 View live location
|
||||
</div>
|
||||
</div>
|
||||
</motion.div>
|
||||
)
|
||||
}
|
||||
|
||||
function ResolutionContent() {
|
||||
return (
|
||||
<motion.div initial={{ opacity: 0 }} animate={{ opacity: 1 }} style={{ paddingTop: 58, padding: '58px 13px 0' }}>
|
||||
<motion.div initial={{ scale: 0.94 }} animate={{ scale: 1 }} transition={SPRING}
|
||||
style={{ background: T.successSoft, borderRadius: 16, padding: '20px 14px', textAlign: 'center', marginBottom: 12 }}>
|
||||
<motion.div initial={{ scale: 0, rotate: -20 }} animate={{ scale: 1, rotate: 0 }} transition={{ ...SPRING, delay: 0.1 }}
|
||||
style={{ width: 54, height: 54, borderRadius: '50%', background: T.success, display: 'flex', alignItems: 'center', justifyContent: 'center', margin: '0 auto 12px' }}>
|
||||
<IconCheck size={26} style={{ color: '#fff' }} />
|
||||
</motion.div>
|
||||
<div style={{ fontSize: 15, fontWeight: 700, color: T.text }}>Message sent</div>
|
||||
<div style={{ fontSize: 11.5, color: T.success, marginTop: 4 }}>Jack confirmed he’s walking home</div>
|
||||
</motion.div>
|
||||
|
||||
<motion.div initial={{ opacity: 0, y: 6 }} animate={{ opacity: 1, y: 0 }} transition={{ delay: 0.2 }}
|
||||
style={{ background: T.surface2, border: `1px solid ${T.border}`, borderRadius: 14, padding: '12px 14px', fontSize: 12, color: T.text2, display: 'flex', alignItems: 'center', gap: 9 }}>
|
||||
<span style={{ color: T.success }}>›</span>Jack · 🟢 will re-enter Home zone in 8 min
|
||||
</motion.div>
|
||||
</motion.div>
|
||||
)
|
||||
}
|
||||
|
||||
function LocationPhone({ elapsed, phase }: { elapsed: number; phase: number }) {
|
||||
const tapped = elapsed >= PHASES.p4 + 2600
|
||||
return (
|
||||
<div style={{
|
||||
width: 275, height: 600, flexShrink: 0, position: 'relative',
|
||||
borderRadius: 50, padding: 4,
|
||||
background: 'linear-gradient(150deg, #2c3a42 0%, #0c1418 45%, #1a262d 100%)',
|
||||
boxShadow: `0 50px 100px rgba(0,0,0,.75), 0 8px 30px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.06)`,
|
||||
}}>
|
||||
<div style={{ width: '100%', height: '100%', borderRadius: 46, overflow: 'hidden', position: 'relative', background: T.bg, backgroundImage: T.bgGrad, boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.6)' }}>
|
||||
{phase <= 4 && <MapScene elapsed={elapsed} phase={phase} />}
|
||||
{phase === 5 && <div style={{ position: 'absolute', inset: 0, overflowY: 'auto' }}><DetailContent tapped={tapped} /></div>}
|
||||
{phase >= 6 && phase < 7 && <div style={{ position: 'absolute', inset: 0, overflowY: 'auto' }}><ResolutionContent /></div>}
|
||||
|
||||
{/* status bar */}
|
||||
<div style={{ position: 'absolute', top: 0, left: 0, right: 0, display: 'flex', justifyContent: 'space-between', alignItems: 'center', padding: '16px 26px 8px', fontSize: 11, color: T.text, fontWeight: 600, zIndex: 20 }}>
|
||||
<span>9:41</span><span style={{ fontSize: 10, color: T.muted }}>5G ▲ 100%</span>
|
||||
</div>
|
||||
{/* dynamic island */}
|
||||
<div style={{ position: 'absolute', top: 12, left: '50%', transform: 'translateX(-50%)', width: 92, height: 26, borderRadius: 14, background: '#000', zIndex: 30 }} />
|
||||
|
||||
{phase <= 4 && (
|
||||
<div style={{ position: 'absolute', left: 0, right: 0, bottom: 0, height: 58, background: 'rgba(10,72,86,.72)', backdropFilter: 'blur(10px)', borderTop: `1px solid ${T.border}`, display: 'flex', alignItems: 'center', justifyContent: 'space-around', paddingBottom: 6, zIndex: 20 }}>
|
||||
{TABS.map((t, i) => (
|
||||
<div key={t.label} style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 2, fontSize: 9, color: i === 2 ? T.accent : T.dim }}>
|
||||
<t.Icon size={18} style={{ color: i === 2 ? T.accent : T.dim }} />{t.label}
|
||||
</div>
|
||||
))}
|
||||
{phase === 1 && (
|
||||
<motion.div initial={{ scale: 0, opacity: 0 }} animate={{ scale: 1, opacity: 1 }} transition={{ delay: 2.6, ...SPRING }}
|
||||
style={{ position: 'absolute', right: 14, bottom: 70, width: 40, height: 40, borderRadius: '50%', background: T.accent, display: 'flex', alignItems: 'center', justifyContent: 'center', boxShadow: `0 8px 20px ${T.accent}66` }}>
|
||||
<IconPlus size={18} style={{ color: '#fff' }} />
|
||||
</motion.div>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
{phase >= 7 && <EndCard />}
|
||||
|
||||
<div style={{ position: 'absolute', inset: 0, borderRadius: 46, pointerEvents: 'none', background: 'linear-gradient(135deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 32%)', zIndex: 40 }} />
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
// ── Cinematic player ─────────────────────────────────────────────────────────
|
||||
export function LocationCinematic({ autoPlay = false, chrome = true, bare = false }: {
|
||||
autoPlay?: boolean; chrome?: boolean; bare?: boolean
|
||||
}) {
|
||||
const [elapsed, setElapsed] = useState(0)
|
||||
const [started, setStarted] = useState(false)
|
||||
const [muted, setMuted] = useState(false)
|
||||
const rafRef = useRef(0)
|
||||
const t0Ref = useRef(0)
|
||||
const spokenIdx = useRef(0)
|
||||
|
||||
const phase = phaseOf(elapsed)
|
||||
const cancelSpeech = () => { try { window.speechSynthesis && window.speechSynthesis.cancel() } catch { /* noop */ } }
|
||||
|
||||
function start() {
|
||||
setStarted(true)
|
||||
t0Ref.current = performance.now() - elapsed
|
||||
const tick = () => {
|
||||
const now = performance.now() - t0Ref.current
|
||||
setElapsed(now)
|
||||
if (now < PHASES.total) rafRef.current = requestAnimationFrame(tick)
|
||||
else setStarted(false)
|
||||
}
|
||||
rafRef.current = requestAnimationFrame(tick)
|
||||
}
|
||||
function pause() { setStarted(false); cancelAnimationFrame(rafRef.current); cancelSpeech() }
|
||||
|
||||
useEffect(() => {
|
||||
if (!autoPlay) return
|
||||
const id = setTimeout(() => start(), 450)
|
||||
return () => clearTimeout(id)
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [])
|
||||
|
||||
useEffect(() => () => { cancelAnimationFrame(rafRef.current); cancelSpeech() }, [])
|
||||
|
||||
useEffect(() => {
|
||||
if (muted) cancelSpeech()
|
||||
}, [muted])
|
||||
|
||||
// Voiceover — fires each cue once elapsed crosses its `at` threshold
|
||||
useEffect(() => {
|
||||
if (!started || muted) return
|
||||
if (spokenIdx.current >= VO_CUES.length) return
|
||||
const cue = VO_CUES[spokenIdx.current]
|
||||
if (elapsed < cue.at) return
|
||||
spokenIdx.current += 1
|
||||
const synth = window.speechSynthesis
|
||||
if (!synth) return
|
||||
|
||||
const speakNow = () => {
|
||||
synth.cancel()
|
||||
const u = new SpeechSynthesisUtterance(cue.text)
|
||||
u.lang = 'en-GB'; u.rate = 0.82; u.pitch = 0.84; u.volume = 0.75
|
||||
u.onerror = () => {}
|
||||
const vs = synth.getVoices()
|
||||
const v = vs.find((x) => /en-GB/i.test(x.lang) && /natural|neural|online/i.test(x.name) && /libby|sonia|hazel|serena/i.test(x.name))
|
||||
|| vs.find((x) => /en-GB/i.test(x.lang) && /natural|neural|online/i.test(x.name))
|
||||
|| vs.find((x) => /en-GB/i.test(x.lang) && /libby|sonia|hazel|serena/i.test(x.name))
|
||||
|| vs.find((x) => /en-GB/i.test(x.lang) && /female|google uk english female|samantha/i.test(x.name))
|
||||
|| vs.find((x) => /en-GB/i.test(x.lang))
|
||||
|| vs.find((x) => /^en/i.test(x.lang))
|
||||
if (v) u.voice = v
|
||||
synth.speak(u)
|
||||
}
|
||||
|
||||
if (synth.getVoices().length === 0) {
|
||||
const onReady = () => { synth.removeEventListener('voiceschanged', onReady); speakNow() }
|
||||
synth.addEventListener('voiceschanged', onReady)
|
||||
} else {
|
||||
speakNow()
|
||||
}
|
||||
}, [elapsed, started, muted])
|
||||
|
||||
const curVo = VO_CUES.slice().reverse().find((c) => elapsed >= c.at)
|
||||
|
||||
return (
|
||||
<div className="bd-demo-root" style={{
|
||||
position: 'absolute', inset: 0, overflow: 'hidden',
|
||||
background: bare ? 'transparent' : 'radial-gradient(130% 90% at 50% 0%, #075466 0%, #013B49 38%, #021b22 72%, #0a1a22 100%)',
|
||||
fontFamily: "'Ubuntu', -apple-system, system-ui, sans-serif", WebkitFontSmoothing: 'antialiased',
|
||||
display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center',
|
||||
}}>
|
||||
{!bare && (
|
||||
<div style={{ position: 'absolute', inset: 0, pointerEvents: 'none', background: 'radial-gradient(120% 80% at 50% 45%, transparent 50%, rgba(0,0,0,.5) 100%)' }} />
|
||||
)}
|
||||
|
||||
{chrome && (
|
||||
<div style={{ position: 'absolute', top: 20, left: 24, display: 'flex', alignItems: 'center', gap: 8, zIndex: 50 }}>
|
||||
<span style={{ fontSize: 9, fontWeight: 700, letterSpacing: '1.5px', textTransform: 'uppercase', color: T.accent }}>SDK · LOCATION</span>
|
||||
<span style={{ width: 14, height: 1, background: 'rgba(255,255,255,.2)' }} />
|
||||
<span style={{ fontSize: 11, color: 'rgba(255,255,255,.65)' }}>{PHASE_LABEL[phase]}</span>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{started && chrome && (
|
||||
<div style={{ position: 'absolute', top: 18, right: 22, display: 'flex', alignItems: 'center', gap: 6, background: 'rgba(0,0,0,.5)', border: '1px solid rgba(255,255,255,.1)', borderRadius: 100, padding: '6px 12px', zIndex: 60 }}>
|
||||
<motion.span animate={{ opacity: [1, 0, 1] }} transition={{ duration: 1.2, repeat: Infinity }} style={{ width: 8, height: 8, borderRadius: '50%', background: '#ef4444', display: 'inline-block' }} />
|
||||
<span style={{ fontSize: 10, fontWeight: 700, color: '#fff' }}>REC</span>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div style={{ flex: 1, minHeight: 0, display: 'flex', alignItems: 'center', justifyContent: 'center', zIndex: 1, padding: '8px 0' }}>
|
||||
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 14 }}>
|
||||
<motion.div style={{ perspective: 1300 }}>
|
||||
<motion.div animate={{ rotateY: -3, rotateX: 2 }} transition={{ duration: 1.1, ease: EASE_OUT }} style={{ transformStyle: 'preserve-3d' }}>
|
||||
<motion.div animate={{ y: [0, -7, 0] }} transition={{ duration: 5, repeat: Infinity, ease: 'easeInOut' }}
|
||||
onClick={() => (started ? pause() : start())}
|
||||
style={{ position: 'relative', width: 275 * PHONE_SCALE, height: 600 * PHONE_SCALE, cursor: 'pointer' }}>
|
||||
<div style={{ position: 'absolute', inset: '8% 14%', borderRadius: '50%', background: T.accent, opacity: 0.16, filter: 'blur(55px)', zIndex: 0 }} />
|
||||
<div style={{ transform: `scale(${PHONE_SCALE})`, transformOrigin: 'top left' }}>
|
||||
<LocationPhone elapsed={elapsed} phase={phase} />
|
||||
</div>
|
||||
<motion.button whileTap={{ scale: 0.92 }}
|
||||
onClick={(e) => { e.stopPropagation(); setMuted((m) => !m) }}
|
||||
title={muted ? 'Unmute' : 'Mute'}
|
||||
style={{
|
||||
position: 'absolute', top: 16, right: 16, zIndex: 55,
|
||||
width: 32, height: 32, borderRadius: '50%',
|
||||
background: 'rgba(0,0,0,.45)', backdropFilter: 'blur(10px)',
|
||||
border: `1px solid ${muted ? 'rgba(255,255,255,.16)' : T.accentGlow}`,
|
||||
color: muted ? 'rgba(255,255,255,.7)' : T.accent, fontSize: 13,
|
||||
cursor: 'pointer', fontFamily: 'inherit',
|
||||
display: 'flex', alignItems: 'center', justifyContent: 'center',
|
||||
}}>
|
||||
{muted ? '🔇' : '🔊'}
|
||||
</motion.button>
|
||||
</motion.div>
|
||||
</motion.div>
|
||||
</motion.div>
|
||||
|
||||
<div style={{ position: 'relative', width: 320, maxWidth: '86vw', height: 46 }}>
|
||||
<AnimatePresence mode="wait">
|
||||
<motion.div key={phase} initial={{ opacity: 0, y: 6 }} animate={{ opacity: 1, y: 0 }} exit={{ opacity: 0, y: -4 }} transition={{ duration: 0.5, ease: EASE_OUT }}
|
||||
style={{ position: 'absolute', inset: 0, display: 'flex', alignItems: 'flex-start', justifyContent: 'center', textAlign: 'center' }}>
|
||||
<span style={{ fontSize: 14.5, color: 'rgba(255,255,255,.9)', lineHeight: 1.5 }}>{curVo?.text}</span>
|
||||
</motion.div>
|
||||
</AnimatePresence>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
// Default export: full-screen single player (mirrors /threat-demo/:id)
|
||||
export default function LocationDemo() {
|
||||
const navigate = useNavigate()
|
||||
return (
|
||||
<div style={{ position: 'relative', height: '100vh' }}>
|
||||
<button
|
||||
onClick={() => navigate('/')}
|
||||
style={{
|
||||
position: 'fixed', top: 18, left: 24, zIndex: 80,
|
||||
display: 'inline-flex', alignItems: 'center', gap: 7,
|
||||
fontFamily: "'Ubuntu', system-ui, sans-serif", fontSize: 13, fontWeight: 500,
|
||||
color: 'rgba(255,255,255,.75)', background: 'rgba(0,0,0,.45)', backdropFilter: 'blur(10px)',
|
||||
border: '1px solid rgba(255,255,255,.12)', borderRadius: 100, padding: '7px 14px', cursor: 'pointer',
|
||||
}}>
|
||||
← Back to site
|
||||
</button>
|
||||
<LocationCinematic />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -1,12 +1,34 @@
|
||||
import { useState } from 'react'
|
||||
import { useNavigate } from 'react-router-dom'
|
||||
import { AnimatePresence, motion } from 'framer-motion'
|
||||
import { THREAT_SCENARIOS } from './scenarios'
|
||||
import { THREAT_SCENARIOS, type ThreatScenario } from './scenarios'
|
||||
import { ThreatCinematic } from './ThreatDemo'
|
||||
import { LocationCinematic } from '../location/LocationDemo'
|
||||
import '../demo.css'
|
||||
|
||||
const ACCENT = '#3BB586'
|
||||
|
||||
// The slider mixes the threat-detection scenarios with the location/geofencing
|
||||
// demo, which has its own timeline and player rather than a ThreatScenario shape.
|
||||
type DemoSlide =
|
||||
| { kind: 'threat'; scenario: ThreatScenario }
|
||||
| { kind: 'location' }
|
||||
|
||||
const DEMO_SLIDES: DemoSlide[] = [
|
||||
...THREAT_SCENARIOS.map((scenario) => ({ kind: 'threat' as const, scenario })),
|
||||
{ kind: 'location' },
|
||||
]
|
||||
|
||||
function slideId(s: DemoSlide): string {
|
||||
return s.kind === 'threat' ? s.scenario.id : 'location'
|
||||
}
|
||||
function slideTitle(s: DemoSlide): string {
|
||||
return s.kind === 'threat' ? s.scenario.title : 'Family Safe Zones'
|
||||
}
|
||||
function slideProduct(s: DemoSlide): string {
|
||||
return s.kind === 'threat' ? s.scenario.product : 'Mobile SDK'
|
||||
}
|
||||
|
||||
// Isolated so useNavigate() is only ever invoked when this is actually mounted
|
||||
// under a <Router> — the embedded (no-router) instance never renders it.
|
||||
function BackToSiteButton() {
|
||||
@@ -19,8 +41,8 @@ function BackToSiteButton() {
|
||||
export default function ThreatDemosSlider({ embedded = false }: { embedded?: boolean } = {}) {
|
||||
const [idx, setIdx] = useState(0)
|
||||
const [dir, setDir] = useState(1)
|
||||
const scenario = THREAT_SCENARIOS[idx]
|
||||
const n = THREAT_SCENARIOS.length
|
||||
const slide = DEMO_SLIDES[idx]
|
||||
const n = DEMO_SLIDES.length
|
||||
|
||||
const go = (next: number) => {
|
||||
setDir(next > idx ? 1 : -1)
|
||||
@@ -35,8 +57,8 @@ export default function ThreatDemosSlider({ embedded = false }: { embedded?: boo
|
||||
<div style={{ flexShrink: 0, height: 60, display: 'flex', alignItems: 'center', justifyContent: 'space-between', padding: '0 20px', borderBottom: '1px solid rgba(255,255,255,.06)', background: 'rgba(1,14,20,.7)', backdropFilter: 'blur(10px)', zIndex: 80 }}>
|
||||
<BackToSiteButton />
|
||||
<div style={{ textAlign: 'center', color: '#e8f4f3', minWidth: 0 }}>
|
||||
<div style={{ fontSize: 14, fontWeight: 600, whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>{scenario.title}</div>
|
||||
<div style={{ fontSize: 10.5, color: '#8aa5ab' }}>{idx + 1} / {n} · {scenario.product}</div>
|
||||
<div style={{ fontSize: 14, fontWeight: 600, whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>{slideTitle(slide)}</div>
|
||||
<div style={{ fontSize: 10.5, color: '#8aa5ab' }}>{idx + 1} / {n} · {slideProduct(slide)}</div>
|
||||
</div>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 6, background: 'rgba(0,0,0,.4)', border: '1px solid rgba(255,255,255,.1)', borderRadius: 100, padding: '5px 11px', flexShrink: 0 }}>
|
||||
<motion.span animate={{ opacity: [1, 0, 1] }} transition={{ duration: 1.2, repeat: Infinity }} style={{ width: 7, height: 7, borderRadius: '50%', background: '#ef4444', display: 'inline-block' }} />
|
||||
@@ -49,14 +71,16 @@ export default function ThreatDemosSlider({ embedded = false }: { embedded?: boo
|
||||
<div style={{ position: 'relative', flex: 1, minHeight: 0, overflow: 'hidden' }}>
|
||||
<AnimatePresence initial={false} custom={dir} mode="popLayout">
|
||||
<motion.div
|
||||
key={scenario.id}
|
||||
key={slideId(slide)}
|
||||
custom={dir}
|
||||
initial={{ x: dir > 0 ? '100%' : '-100%' }}
|
||||
animate={{ x: 0 }}
|
||||
exit={{ x: dir > 0 ? '-100%' : '100%' }}
|
||||
transition={{ type: 'spring', stiffness: 260, damping: 30 }}
|
||||
style={{ position: 'absolute', inset: 0 }}>
|
||||
<ThreatCinematic scenario={scenario} autoPlay={!embedded} chrome={false} />
|
||||
{slide.kind === 'threat'
|
||||
? <ThreatCinematic scenario={slide.scenario} autoPlay={!embedded} chrome={false} />
|
||||
: <LocationCinematic autoPlay={!embedded} chrome={false} />}
|
||||
</motion.div>
|
||||
</AnimatePresence>
|
||||
|
||||
@@ -67,8 +91,8 @@ export default function ThreatDemosSlider({ embedded = false }: { embedded?: boo
|
||||
|
||||
{/* ── Bottom: scenario tabs (reserved) — moves above the stage on mobile via .bd-demo-tabs media query ── */}
|
||||
<div className="bd-demo-tabs" style={{ flexShrink: 0, minHeight: 56, display: 'flex', alignItems: 'center', justifyContent: 'center', gap: 8, flexWrap: 'wrap', padding: '10px 16px', borderTop: '1px solid rgba(255,255,255,.06)', background: 'rgba(1,14,20,.7)', backdropFilter: 'blur(10px)', zIndex: 80 }}>
|
||||
{THREAT_SCENARIOS.map((s, i) => (
|
||||
<button key={s.id} onClick={() => go(i)}
|
||||
{DEMO_SLIDES.map((s, i) => (
|
||||
<button key={slideId(s)} onClick={() => go(i)}
|
||||
style={{
|
||||
fontFamily: 'inherit', fontSize: 11, fontWeight: 500, cursor: 'pointer',
|
||||
padding: '6px 12px', borderRadius: 100,
|
||||
@@ -76,7 +100,7 @@ export default function ThreatDemosSlider({ embedded = false }: { embedded?: boo
|
||||
background: i === idx ? 'rgba(59,181,134,0.18)' : 'rgba(255,255,255,.03)',
|
||||
color: i === idx ? ACCENT : 'rgba(255,255,255,.6)', whiteSpace: 'nowrap',
|
||||
}}>
|
||||
{s.title}
|
||||
{slideTitle(s)}
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
|
||||
@@ -173,7 +173,7 @@ export const THREAT_SCENARIOS: ThreatScenario[] = [
|
||||
tag: 'dns',
|
||||
tagLabel: 'DNS · BLOCK',
|
||||
title: 'Malicious DNS Block',
|
||||
blurb: 'Request to a malicious domain blocked. BlackDice Angel risk stays low at 45 — prevention in action.',
|
||||
blurb: 'Request to a malicious domain blocked. BlackDice Angel risk stays low at 45 – prevention in action.',
|
||||
icon: '🌐',
|
||||
context: 'DNS Shield active',
|
||||
initialScore: 35,
|
||||
@@ -183,7 +183,7 @@ export const THREAT_SCENARIOS: ThreatScenario[] = [
|
||||
threatBody: 'Blocked request to phishing-domain.com',
|
||||
detailHeadline: 'Threat blocked before it could load',
|
||||
detailLines: [
|
||||
'phishing-domain.com — known malicious domain',
|
||||
'phishing-domain.com – known malicious domain',
|
||||
'Request intercepted at the DNS layer',
|
||||
'12 malicious domains blocked this week',
|
||||
],
|
||||
@@ -197,7 +197,7 @@ export const THREAT_SCENARIOS: ThreatScenario[] = [
|
||||
voCues: [
|
||||
{ at: 300, text: 'Our DNS Shield filters every domain request.' },
|
||||
{ at: 4300, text: 'A device tries to reach a known malicious domain.' },
|
||||
{ at: 9400, text: 'We block it instantly — our risk score stays low at 45.' },
|
||||
{ at: 9400, text: 'We block it instantly – our risk score stays low at 45.' },
|
||||
{ at: 15500, text: 'The threat is stopped before any damage, and logged in the dashboard.' },
|
||||
{ at: 30300, text: 'We deliver prevention that just works. Book a demo today.' },
|
||||
],
|
||||
@@ -233,7 +233,7 @@ export const THREAT_SCENARIOS: ThreatScenario[] = [
|
||||
statusChange: 'PhotoEditor · request reviewed',
|
||||
voCues: [
|
||||
{ at: 300, text: 'We review every app your child wants to install.' },
|
||||
{ at: 4300, text: 'PhotoEditor asks for more than it needs — contacts and location.' },
|
||||
{ at: 4300, text: 'PhotoEditor asks for more than it needs – contacts and location.' },
|
||||
{ at: 9400, text: 'We flag the risk and raise our BlackDice Angel score to 66.' },
|
||||
{ at: 15500, text: 'The parent can review the permissions and decline the install.' },
|
||||
{ at: 30300, text: 'We make apps safer for younger users. Book a demo today.' },
|
||||
|
||||
@@ -11,6 +11,7 @@ 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 LocationDemo = React.lazy(() => import('./demo/location/LocationDemo'))
|
||||
const AdminApp = React.lazy(() => import('./cms/admin/AdminApp'))
|
||||
|
||||
function ArticleRoute() {
|
||||
@@ -26,6 +27,8 @@ ReactDOM.createRoot(document.getElementById('root')!).render(
|
||||
{/* Threat-detection demo slider + per-scenario players */}
|
||||
<Route path="/threat-demos" element={<ThreatDemosSlider />} />
|
||||
<Route path="/threat-demo/:id" element={<ThreatDemoPlayerPage />} />
|
||||
{/* Location / geofencing demo — safe-zone creation + leave-zone alert */}
|
||||
<Route path="/location-demo" element={<LocationDemo />} />
|
||||
{/* Cinematic product video — its own page */}
|
||||
<Route path="/demo-video" element={<DemoVideoPage />} />
|
||||
{/* Full interactive demo player (Flows A–D, ?mode=video) */}
|
||||
|
||||
@@ -7,9 +7,10 @@ import './styles.css'
|
||||
import siteHtml from './siteMarkup.txt?raw'
|
||||
// Ported vanilla controller (navigation, modal, live feed, count-up).
|
||||
import { configureForms, initSite, setSiteNavigator, showPage, teardownSite } from './siteController'
|
||||
// Live threat-detection demos, embedded in the Mobile SDK hero (same slider
|
||||
// — all scenarios, autoplaying with tabs/arrows — used at /threat-demos).
|
||||
import ThreatDemosSlider from '../demo/threats/ThreatDemosSlider'
|
||||
// Guardian Mobile SDK explorer — the 9-tab interactive phone-demo widget
|
||||
// embedded in the Mobile SDK hero's #mobile-sdk-demo-mount.
|
||||
import MobileSdkExplorer from './demos/MobileSdkExplorer'
|
||||
import RoiCalculator from './roi/RoiCalculator'
|
||||
import NewsGrid from './blog/NewsGrid'
|
||||
import ArticlePage from './blog/ArticlePage'
|
||||
import NotFoundPage from './NotFoundPage'
|
||||
@@ -30,6 +31,7 @@ const ISLANDS = [
|
||||
'demos-p2-mount',
|
||||
'demo-halo-retina-mount',
|
||||
'demo-halo-angel-mount',
|
||||
'roi-calc-mount',
|
||||
'pg-article',
|
||||
] as const
|
||||
|
||||
@@ -184,7 +186,7 @@ export default function SiteApp({
|
||||
<>
|
||||
<div ref={wrapRef} dangerouslySetInnerHTML={{ __html: siteHtml }} />
|
||||
|
||||
{mounts['mobile-sdk-demo-mount'] && createPortal(<ThreatDemosSlider embedded />, mounts['mobile-sdk-demo-mount'])}
|
||||
{mounts['mobile-sdk-demo-mount'] && createPortal(<MobileSdkExplorer />, mounts['mobile-sdk-demo-mount'])}
|
||||
|
||||
{mounts['news-grid-mount'] && createPortal(<NewsGrid content={content} />, mounts['news-grid-mount'])}
|
||||
|
||||
@@ -202,6 +204,8 @@ export default function SiteApp({
|
||||
{mounts['demo-halo-angel-mount'] &&
|
||||
createPortal(<DemoPlayer slot={content.demos['halo-angel']} />, mounts['demo-halo-angel-mount'])}
|
||||
|
||||
{mounts['roi-calc-mount'] && createPortal(<RoiCalculator />, mounts['roi-calc-mount'])}
|
||||
|
||||
{articleSlug &&
|
||||
mounts['pg-article'] &&
|
||||
createPortal(
|
||||
|
||||
@@ -0,0 +1,317 @@
|
||||
import { useEffect, useRef } from 'react'
|
||||
import explorerHtml from './mobileSdkExplorer.html?raw'
|
||||
import './mobileSdkExplorer.css'
|
||||
|
||||
// ── Reel scripts — one per module tab, ported verbatim from mobile-sdk.html ──
|
||||
// `s` sets the .ap[data-stage] value (drives the CSS reveal system), `cap` is
|
||||
// the caption line, and the rest are small DOM ops the Reel engine below
|
||||
// applies at time `t` (ms) into the reel.
|
||||
const C = 326.73
|
||||
const off = (v: number) => C * (1 - v / 100)
|
||||
|
||||
type Step = {
|
||||
t: number
|
||||
s?: number
|
||||
cap?: string
|
||||
set?: [string, string][]
|
||||
add?: [string, string][]
|
||||
rm?: [string, string][]
|
||||
flash?: [string, string, number?][]
|
||||
num?: [string, number, number, number][]
|
||||
ring?: [string, number, number, number][]
|
||||
type?: [string, string, number][]
|
||||
}
|
||||
type Spec = { dur: number; steps: Step[] }
|
||||
|
||||
const SCRIPTS: Record<string, Spec> = {
|
||||
score: {
|
||||
dur: 7200,
|
||||
steps: [
|
||||
{ t: 0, s: 0, cap: 'Guardian opens with the score from the last check – <b>81</b>.' },
|
||||
{ t: 800, s: 1, cap: 'Re-scanning all nine protection modules on device.', add: [['.js-ring', 'scanning']] },
|
||||
{ t: 2200, s: 2, cap: '<b>Device trust</b> – verified, patch level current.' },
|
||||
{ t: 3200, s: 3, cap: '<b>Apps & permissions</b> – no risky grants detected.' },
|
||||
{ t: 4200, s: 4, cap: '<b>Wi-Fi security</b> – BT-T5F97X assessed as low risk.' },
|
||||
{ t: 5000, s: 5, cap: 'Score recomputed and the delta shown: <b>81 → 93</b>.', rm: [['.js-ring', 'scanning']], num: [['.js-score', 81, 93, 900]], ring: [['.js-arc', 81, 93, 900]] },
|
||||
{ t: 6300, cap: 'Ranked remediation sits behind one tap – no dead ends.', flash: [['.js-improve', 'glow', 900]] },
|
||||
],
|
||||
},
|
||||
protection: {
|
||||
dur: 6800,
|
||||
steps: [
|
||||
{ t: 0, s: 0, cap: 'The Protection tab covers the connection itself.' },
|
||||
{ t: 700, s: 1, cap: "DNS filter reports the day's blocks.", num: [['.js-n', 0, 40, 1100]] },
|
||||
{ t: 2500, s: 2, cap: 'Call screening – <b>no scam calls today</b>.' },
|
||||
{ t: 3700, s: 3, cap: 'SIM integrity – no carrier or slot change detected.' },
|
||||
{ t: 5000, cap: 'Any card taps through to its full timestamped event log.', flash: [['.js-sb', 'tap', 1300]] },
|
||||
],
|
||||
},
|
||||
dns: {
|
||||
dur: 8600,
|
||||
steps: [
|
||||
{ t: 0, s: 0, cap: '285 blocked of 1,116 lookups so far today.' },
|
||||
{ t: 900, s: 1, cap: 'User taps a link in a WhatsApp group message.', set: [['.js-chip', 'Resolving…']], add: [['.js-chip', 'wait'], ['.js-chip', 'pulse']] },
|
||||
{ t: 2300, s: 2, cap: '<b>whtaspp-group.pages.dev</b> – typosquat, matched in 40 ms.', set: [['.js-chip', 'Blocked']], rm: [['.js-chip', 'wait'], ['.js-chip', 'pulse']] },
|
||||
{ t: 3100, s: 3, cap: 'Connection never opens. The block is logged and shown to the user.', add: [['.js-newrow', 'in'], ['.js-newrow', 'hot']], num: [['.js-blocked', 285, 288, 800], ['.js-req', 1116, 1119, 800]] },
|
||||
{ t: 5000, s: 4, cap: 'Counts refresh on demand.', flash: [['.js-refresh', 'press', 300]], rm: [['.js-newrow', 'hot']] },
|
||||
{ t: 6400, cap: 'Every verdict is also available to your fraud platform by webhook.' },
|
||||
],
|
||||
},
|
||||
calls: {
|
||||
dur: 9200,
|
||||
steps: [
|
||||
{ t: 0, s: 0, cap: 'Home screen. An unknown number starts ringing.' },
|
||||
{ t: 700, s: 1, cap: 'Inbound call from <b>0123456789</b> – reputation lookup fires.', add: [['.js-verdict', 'pulse']] },
|
||||
{ t: 2100, s: 2, cap: 'Verdict returned <i>before answer</i>: likely scam, confidence 91.', set: [['.js-verdict', 'Likely scam · 91']], add: [['.js-verdict', 'bad']], rm: [['.js-verdict', 'pulse']] },
|
||||
{ t: 3700, s: 3, cap: 'Call ends. Guardian asks how it went.' },
|
||||
{ t: 5300, s: 4, cap: 'One tap: the user labels it <b>Scam</b>.', flash: [['.js-scam', 'hit', 1400]] },
|
||||
{ t: 6500, s: 5, cap: 'Report accepted and folded into the shared reputation graph.' },
|
||||
{ t: 7700, s: 6, cap: 'Detection sharpens for every other subscriber on your network.' },
|
||||
],
|
||||
},
|
||||
sim: {
|
||||
dur: 6600,
|
||||
steps: [
|
||||
{ t: 0, s: 0, cap: 'Screen opens and reads phone state.', add: [['.js-simh', 'pulse']] },
|
||||
{ t: 1500, s: 1, cap: 'Read completes – <b>no SIM changes detected</b>.', set: [['.js-simh', 'No SIM changes detected'], ['.js-simp', 'No SIM changes detected.']], rm: [['.js-simh', 'pulse']], flash: [['.js-simh', 'swap', 600]] },
|
||||
{ t: 2500, s: 2, cap: 'Carrier recorded: <b>EE</b>.' },
|
||||
{ t: 3300, s: 3, cap: 'Slot configuration: single SIM.' },
|
||||
{ t: 4100, s: 4, cap: 'Change history: none on record.' },
|
||||
{ t: 5200, cap: 'Had this changed, the alert would go to the recovery email – not this screen.' },
|
||||
],
|
||||
},
|
||||
perms: {
|
||||
dur: 8400,
|
||||
steps: [
|
||||
{ t: 0, s: 0, cap: 'User taps <b>Scan again</b>.', flash: [['.js-scan', 'press', 300]] },
|
||||
{ t: 900, s: 1, cap: 'Scanning installed apps for the grants fraudsters abuse.' },
|
||||
{ t: 2400, s: 2, cap: '<b>Microphone</b> – high risk. 1 app holds it, 1 to review.' },
|
||||
{ t: 3400, s: 3, cap: '<b>Phone state</b> – medium. Can read your number and call state.' },
|
||||
{ t: 4400, s: 4, cap: '<b>Contacts</b> – medium, and 1 app still to review.' },
|
||||
{ t: 5400, s: 5, cap: '<b>Post notifications</b> – low risk, already accepted.' },
|
||||
{ t: 6600, cap: 'Ranked by how fraud actually works, not alphabetically.' },
|
||||
],
|
||||
},
|
||||
zones: {
|
||||
dur: 11200,
|
||||
steps: [
|
||||
{ t: 0, s: 0, cap: 'Empty map. No zones configured yet.' },
|
||||
{ t: 800, s: 1, cap: "User drops a pin and draws the boundary – <b>Jakarta Town Hall</b>." },
|
||||
{ t: 2000, s: 2, cap: 'Radius set to <b>200 m</b>. The geofence is armed.', num: [['.js-rad', 0, 200, 700]] },
|
||||
{ t: 3300, s: 3, cap: "Zone saved. It now appears in the user's list." },
|
||||
{ t: 4700, s: 4, cap: 'They arrive – an enter event is logged, timestamped.', add: [['.js-noev', 'gone']] },
|
||||
{ t: 6800, s: 5, cap: 'Later, they cross back out of the boundary.' },
|
||||
{ t: 8300, s: 6, cap: 'Guardian notifies the parent the moment they leave the zone.' },
|
||||
{ t: 10100, cap: 'The same signal drives impossible-travel checks for your fraud engine.' },
|
||||
],
|
||||
},
|
||||
identity: {
|
||||
dur: 7400,
|
||||
steps: [
|
||||
{ t: 0, s: 0, cap: 'Both identity checks are long-running and start on open.', add: [['.js-locb', 'pulse'], ['.js-idb', 'pulse']] },
|
||||
{ t: 1100, s: 1, cap: 'Location analysis resolves – <b>no unusual travel detected</b>.', set: [['.js-locb', 'Good'], ['.js-locp', 'No unusual travel detected.']], add: [['.js-locb', 'good']], rm: [['.js-locb', 'pulse'], ['.js-locb', 'wait']], flash: [['.js-locb', 'swap', 600]] },
|
||||
{ t: 3000, s: 2, cap: 'Breach monitoring resolves – <b>1 monitored identity, no breaches</b>.', set: [['.js-idb', 'Good'], ['.js-idp', '1 monitored identity – no breaches found.']], add: [['.js-idb', 'good']], rm: [['.js-idb', 'pulse'], ['.js-idb', 'wait']], flash: [['.js-idb', 'swap', 600]] },
|
||||
{ t: 4700, cap: 'Re-checked continuously as new breach corpora land.' },
|
||||
{ t: 6000, cap: 'A positive finding escalates by webhook – not just an on-device toast.' },
|
||||
],
|
||||
},
|
||||
settings: {
|
||||
dur: 9400,
|
||||
steps: [
|
||||
{ t: 0, s: 0, cap: 'Every module is opt-in and starts off.' },
|
||||
{ t: 800, s: 1, cap: '<b>Safe browsing</b> on – DNS-level phishing protection.', add: [['.js-sw1', 'on']] },
|
||||
{ t: 2000, s: 2, cap: '<b>Scam call warnings</b> on.', add: [['.js-sw2', 'on']] },
|
||||
{ t: 3200, s: 3, cap: '<b>SIM & carrier</b> on – and the reason for phone-state access is stated.', add: [['.js-sw3', 'on']] },
|
||||
{ t: 4500, s: 4, cap: "A stolen phone can't warn you on its own screen – so alerts go out-of-band.", type: [['.js-email', 'jason.reid@icloud.com', 1500]], add: [['.js-email', 'filled']] },
|
||||
{ t: 6800, s: 5, cap: 'Address verified by code. That channel now carries SIM and location alerts.', flash: [['.js-send', 'press', 300]] },
|
||||
{ t: 7900, cap: 'Consent is revocable per module, and every string is localisable.' },
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
// Order mirrors the panel/tile order in mobileSdkExplorer.html — drives
|
||||
// keyboard left/right navigation across the module grid.
|
||||
const MODULES: { key: string }[] = [
|
||||
{ key: 'score' },
|
||||
{ key: 'protection' },
|
||||
{ key: 'dns' },
|
||||
{ key: 'calls' },
|
||||
{ key: 'sim' },
|
||||
{ key: 'perms' },
|
||||
{ key: 'zones' },
|
||||
{ key: 'identity' },
|
||||
{ key: 'settings' },
|
||||
]
|
||||
|
||||
class Reel {
|
||||
root: ParentNode
|
||||
p: HTMLElement
|
||||
ap: HTMLElement
|
||||
spec: Spec
|
||||
cap: HTMLElement
|
||||
pp: HTMLButtonElement
|
||||
applied: [Element, string][] = []
|
||||
timers: ReturnType<typeof setTimeout>[] = []
|
||||
tweens: number[] = []
|
||||
base = new Map<Element, string>()
|
||||
t = 0
|
||||
i = 0
|
||||
playing = false
|
||||
raf = 0
|
||||
reduced: boolean
|
||||
|
||||
constructor(panel: HTMLElement, spec: Spec, reduced: boolean) {
|
||||
this.root = panel
|
||||
this.p = panel
|
||||
this.ap = panel.querySelector('.ap')!
|
||||
this.spec = spec
|
||||
this.reduced = reduced
|
||||
this.cap = panel.querySelector('.reel-cap')!
|
||||
this.pp = panel.querySelector('.js-pp')!
|
||||
this.pp.onclick = () => this.toggle()
|
||||
this.reset()
|
||||
}
|
||||
q(sel: string) { return this.ap.querySelector<HTMLElement>(sel) }
|
||||
remember(elx: Element) { if (!this.base.has(elx)) this.base.set(elx, elx.textContent || '') }
|
||||
clear() {
|
||||
cancelAnimationFrame(this.raf)
|
||||
this.timers.forEach(clearTimeout); this.timers = []
|
||||
this.tweens.forEach((id) => cancelAnimationFrame(id)); this.tweens = []
|
||||
this.applied.forEach(([elx, c]) => elx.classList.remove(c)); this.applied = []
|
||||
this.base.forEach((txt, elx) => { elx.textContent = txt })
|
||||
}
|
||||
reset() {
|
||||
this.clear(); this.t = 0; this.i = 0; this.playing = false
|
||||
this.pp.textContent = '▶'
|
||||
this.cap.innerHTML = this.spec.steps[0]?.cap || ''
|
||||
this.stage(0)
|
||||
if (this.reduced) { this.seek(this.spec.dur - 1); this.pause() }
|
||||
}
|
||||
stage(n: number) {
|
||||
this.ap.dataset.stage = String(n)
|
||||
this.ap.querySelectorAll<HTMLElement>('[data-at]').forEach((elx) => elx.classList.toggle('in', n >= Number(elx.dataset.at)))
|
||||
}
|
||||
apply(st: Step) {
|
||||
if (st.s !== undefined) this.stage(st.s)
|
||||
if (st.cap) this.cap.innerHTML = st.cap
|
||||
;(st.set || []).forEach(([s, v]) => { const elx = this.q(s); if (elx) { this.remember(elx); elx.textContent = v } })
|
||||
;(st.add || []).forEach(([s, c]) => { const elx = this.q(s); if (elx) { elx.classList.add(c); this.applied.push([elx, c]) } })
|
||||
;(st.rm || []).forEach(([s, c]) => { const elx = this.q(s); if (elx) elx.classList.remove(c) })
|
||||
;(st.flash || []).forEach(([s, c, d]) => {
|
||||
const elx = this.q(s); if (!elx) return
|
||||
elx.classList.add(c); this.applied.push([elx, c])
|
||||
this.timers.push(setTimeout(() => elx.classList.remove(c), d || 300))
|
||||
})
|
||||
;(st.num || []).forEach(([s, a, b, d]) => { const elx = this.q(s); if (elx) { this.remember(elx); this.tween(a, b, d, (v) => { elx.textContent = String(Math.round(v)) }) } })
|
||||
;(st.ring || []).forEach(([s, a, b, d]) => { const elx = this.q(s); if (elx) this.tween(a, b, d, (v) => elx.setAttribute('stroke-dashoffset', off(v).toFixed(2))) })
|
||||
;(st.type || []).forEach(([s, txt, d]) => { const elx = this.q(s); if (elx) { this.remember(elx); this.tween(0, txt.length, d, (v) => { elx.textContent = txt.slice(0, Math.round(v)) }) } })
|
||||
}
|
||||
tween(a: number, b: number, d: number, fn: (v: number) => void) {
|
||||
const t0 = performance.now()
|
||||
const step = (now: number) => {
|
||||
const k = Math.min(1, (now - t0) / d), e = 1 - Math.pow(1 - k, 3)
|
||||
fn(a + (b - a) * e)
|
||||
if (k < 1) this.tweens.push(requestAnimationFrame(step))
|
||||
}
|
||||
this.tweens.push(requestAnimationFrame(step))
|
||||
}
|
||||
seek(ms: number) {
|
||||
this.clear(); this.t = ms; this.i = 0
|
||||
const steps = this.spec.steps
|
||||
let last: Step | null = null
|
||||
for (const st of steps) { if (st.t <= ms) { this.apply({ ...st, num: undefined, ring: undefined, type: undefined, flash: undefined }); last = st; this.i++ } }
|
||||
steps.filter((s) => s.t <= ms).forEach((st) => {
|
||||
;(st.num || []).forEach(([s, , b]) => { const elx = this.q(s); if (elx) { this.remember(elx); elx.textContent = String(b) } })
|
||||
;(st.ring || []).forEach(([s, , b]) => { const elx = this.q(s); if (elx) elx.setAttribute('stroke-dashoffset', off(b).toFixed(2)) })
|
||||
;(st.type || []).forEach(([s, txt]) => { const elx = this.q(s); if (elx) { this.remember(elx); elx.textContent = txt } })
|
||||
})
|
||||
if (last && last.cap) this.cap.innerHTML = last.cap
|
||||
}
|
||||
play() {
|
||||
if (this.playing) return
|
||||
if (this.t >= this.spec.dur) this.reset()
|
||||
this.playing = true; this.pp.textContent = '▮▮'
|
||||
let prev = performance.now()
|
||||
const loop = (now: number) => {
|
||||
if (!this.playing) return
|
||||
this.t += now - prev; prev = now
|
||||
const steps = this.spec.steps
|
||||
while (this.i < steps.length && steps[this.i].t <= this.t) { this.apply(steps[this.i]); this.i++ }
|
||||
if (this.t >= this.spec.dur) {
|
||||
this.playing = false; this.pp.textContent = '↻'
|
||||
this.timers.push(setTimeout(() => { this.reset(); this.play() }, 1100))
|
||||
return
|
||||
}
|
||||
this.raf = requestAnimationFrame(loop)
|
||||
}
|
||||
this.raf = requestAnimationFrame(loop)
|
||||
}
|
||||
pause() { this.playing = false; this.pp.textContent = '▶'; cancelAnimationFrame(this.raf) }
|
||||
toggle() { this.playing ? this.pause() : this.play() }
|
||||
destroy() { this.clear() }
|
||||
}
|
||||
|
||||
/** Guardian Mobile SDK "explorer" — nine tabbed phone-demo reels, ported
|
||||
* from the standalone mobile-sdk.html mockup and scoped to this container
|
||||
* so it can drop into any page without touching global DOM/CSS. */
|
||||
export default function MobileSdkExplorer() {
|
||||
const rootRef = useRef<HTMLDivElement>(null)
|
||||
|
||||
useEffect(() => {
|
||||
const root = rootRef.current
|
||||
if (!root) return
|
||||
|
||||
const reduced = matchMedia('(prefers-reduced-motion:reduce)').matches
|
||||
const reels: Record<string, Reel> = {}
|
||||
root.querySelectorAll<HTMLElement>('.panel').forEach((p) => {
|
||||
const k = p.dataset.p
|
||||
if (k && SCRIPTS[k]) reels[k] = new Reel(p, SCRIPTS[k], reduced)
|
||||
})
|
||||
|
||||
const panels = [...root.querySelectorAll<HTMLElement>('.panel')]
|
||||
const tiles = [...root.querySelectorAll<HTMLButtonElement>('.tab-tile')]
|
||||
let cur = 'score'
|
||||
function show(k: string) {
|
||||
const idx = MODULES.findIndex((m) => m.key === k)
|
||||
if (idx === -1) return
|
||||
panels.forEach((p) => p.classList.toggle('on', p.dataset.p === k))
|
||||
tiles.forEach((t) => t.classList.toggle('on', t.dataset.p === k))
|
||||
Object.entries(reels).forEach(([n, r]) => { if (n !== k) { r.pause(); r.reset() } })
|
||||
cur = k
|
||||
// Switching modules only stages the reel — playback waits for an
|
||||
// explicit tap on that reel's own play button.
|
||||
reels[k]?.reset()
|
||||
}
|
||||
show(cur)
|
||||
const onTileClick = (t: HTMLButtonElement) => () => { if (t.dataset.p) show(t.dataset.p) }
|
||||
tiles.forEach((t) => { t.onclick = onTileClick(t) })
|
||||
|
||||
function step(dir: 1 | -1) {
|
||||
const i = MODULES.findIndex((m) => m.key === cur)
|
||||
show(MODULES[(i + dir + MODULES.length) % MODULES.length].key)
|
||||
}
|
||||
const tabsEl = root.querySelector<HTMLElement>('#tabs')
|
||||
const onKeydown = (e: KeyboardEvent) => {
|
||||
if (e.key !== 'ArrowRight' && e.key !== 'ArrowLeft') return
|
||||
e.preventDefault()
|
||||
step(e.key === 'ArrowRight' ? 1 : -1)
|
||||
}
|
||||
tabsEl?.addEventListener('keydown', onKeydown)
|
||||
|
||||
// Never autoplay — only pause if the user scrolls away mid-playback.
|
||||
const io = new IntersectionObserver((es) => es.forEach((e) => {
|
||||
if (e.isIntersecting) return
|
||||
reels[cur]?.pause()
|
||||
}), { threshold: .12 })
|
||||
io.observe(root)
|
||||
|
||||
return () => {
|
||||
io.disconnect()
|
||||
tabsEl?.removeEventListener('keydown', onKeydown)
|
||||
tiles.forEach((t) => { t.onclick = null })
|
||||
Object.values(reels).forEach((r) => r.destroy())
|
||||
}
|
||||
}, [])
|
||||
|
||||
return <div ref={rootRef} className="bd-mse" dangerouslySetInnerHTML={{ __html: explorerHtml }} />
|
||||
}
|
||||
@@ -0,0 +1,310 @@
|
||||
/* Guardian Mobile SDK explorer — ported from the standalone mobile-sdk.html
|
||||
mockup. Everything is scoped under .bd-mse so it can drop into any page
|
||||
without touching global element styles or colliding with site CSS vars. */
|
||||
.bd-mse, .bd-mse * { box-sizing: border-box; }
|
||||
.bd-mse h3, .bd-mse h4, .bd-mse h5 { margin: 0; font-weight: 700; letter-spacing: -.5px; line-height: 1.18; }
|
||||
.bd-mse p, .bd-mse ul { margin: 0; padding: 0; }
|
||||
.bd-mse a { color: var(--mse-accent); text-decoration: none; }
|
||||
.bd-mse {
|
||||
--mse-accent: #3BB586; --mse-accent-2: #6bd6ad;
|
||||
--mse-accent-soft: rgba(59,181,134,.16); --mse-accent-glow: rgba(59,181,134,.30);
|
||||
--mse-surface: #0f5a66; --mse-surface-2: #126777;
|
||||
--mse-border: rgba(255,255,255,.08); --mse-border-strong: rgba(255,255,255,.14);
|
||||
--mse-text: #e8f4f3; --mse-text-2: #a8b9ba; --mse-text-mute: #6d7f80;
|
||||
--mse-shadow-lg: 0 8px 32px rgba(0,0,0,.40); --mse-shadow-xl: 0 24px 70px rgba(0,0,0,.55);
|
||||
font-family: 'Ubuntu', -apple-system, system-ui, sans-serif;
|
||||
color: var(--mse-text);
|
||||
padding: 0 0 8px;
|
||||
display: grid;
|
||||
grid-template-columns: 268px minmax(0, 420px);
|
||||
column-gap: 32px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
EXPLORER + MODULE GRID
|
||||
============================================================ */
|
||||
.bd-mse .mse-grid {
|
||||
grid-column: 1;
|
||||
grid-row: 1;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 8px;
|
||||
align-content: start;
|
||||
}
|
||||
.bd-mse .tab-tile {
|
||||
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
|
||||
padding: 10px 6px; border: none; border-radius: 15px;
|
||||
background: var(--mse-surface); color: var(--mse-text-2);
|
||||
font-family: inherit; font-size: .74rem; font-weight: 600; line-height: 1.2; text-align: center;
|
||||
cursor: pointer; transition: .2s; width: 84px; height: 84px;
|
||||
}
|
||||
.bd-mse .tab-tile svg { width: 20px; height: 20px; flex-shrink: 0; }
|
||||
.bd-mse .tab-tile:hover { background: var(--mse-surface-2); color: var(--mse-text); }
|
||||
.bd-mse .tab-tile.on { background: var(--mse-accent); color: #fff; box-shadow: 0 6px 18px var(--mse-accent-glow); }
|
||||
|
||||
.bd-mse .panel { grid-column: 2; grid-row: 1; display: none; justify-content: center; max-width: 1180px; margin: 0 auto; }
|
||||
.bd-mse .panel.on { display: flex; animation: mse-fade .45s ease; }
|
||||
@keyframes mse-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
|
||||
|
||||
/* ============================================================
|
||||
PHONE + REEL CHROME
|
||||
============================================================ */
|
||||
.bd-mse .stage { width: 340px; zoom: .82; }
|
||||
.bd-mse .phone {
|
||||
position: relative; width: 340px; padding: 11px; border-radius: 46px;
|
||||
background: linear-gradient(160deg,#3a3f45,#191c20 45%,#2c3137);
|
||||
box-shadow: var(--mse-shadow-xl), 0 0 0 1px rgba(255,255,255,.07) inset;
|
||||
animation: mse-float 5s ease-in-out infinite;
|
||||
}
|
||||
.bd-mse .phone::before {
|
||||
content: ''; position: absolute; inset: -8% -16%; z-index: -1; border-radius: 50%;
|
||||
background: var(--mse-accent); opacity: .16; filter: blur(60px); pointer-events: none;
|
||||
}
|
||||
@keyframes mse-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
|
||||
.bd-mse .phone-inner { position: relative; border-radius: 36px; overflow: hidden; background: #141218; aspect-ratio: 318/672; }
|
||||
.bd-mse .demo-badge { position: absolute; top: 20px; right: -9px; z-index: 20; display: flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; background: #e03a2f; color: #fff; border-radius: 100px; font-size: 9.6px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; box-shadow: 0 4px 14px rgba(224,58,47,.5); }
|
||||
.bd-mse .demo-badge i { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: mse-rec 1.4s ease-in-out infinite; }
|
||||
@keyframes mse-rec { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
|
||||
|
||||
/* On-screen play/pause overlay — replaces the old reel-bar transport. */
|
||||
.bd-mse .phone-pp {
|
||||
position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 25;
|
||||
width: 52px; height: 52px; border-radius: 50%; font-size: 15px;
|
||||
background: rgba(10, 12, 16, .55); border: 1px solid rgba(255,255,255,.25);
|
||||
backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
|
||||
color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .2s;
|
||||
}
|
||||
.bd-mse .phone-pp:hover { background: var(--mse-accent); border-color: var(--mse-accent); }
|
||||
|
||||
.bd-mse .reel-cap { margin-top: .6rem; min-height: 2.2rem; font-size: .87rem; color: var(--mse-text-2); line-height: 1.5; border-left: 2px solid var(--mse-accent); padding-left: .7rem; transition: opacity .3s; }
|
||||
.bd-mse .reel-cap b { color: var(--mse-text); font-weight: 600; }
|
||||
|
||||
/* ============================================================
|
||||
APP TOKENS (the phone-screen UI itself)
|
||||
============================================================ */
|
||||
.bd-mse .ap {
|
||||
--a-bg: #141218; --a-card: #221f28; --a-card-2: #1c1a21;
|
||||
--a-line: rgba(255,255,255,.055);
|
||||
--a-tx: #f3f0f6; --a-tx2: #9c96a6; --a-tx3: #736d7e;
|
||||
--a-purple: #8b7ef0; --a-purple-on: #3a1f7a;
|
||||
--a-lav: #e9e4f7; --a-lav-on: #4a2d9c;
|
||||
--a-green: #82c99a; --a-green-bg: #1b3526;
|
||||
--a-coral: #e8765c; --a-coral-bg: #3b2320;
|
||||
--a-amber: #e0b355; --a-amber-bg: #3a2f1c;
|
||||
--a-blue: #7ab8e8; --a-blue-bg: #1e2c3a;
|
||||
position: absolute; inset: 0; background: var(--a-bg); color: var(--a-tx);
|
||||
font-size: 11.6px; line-height: 1.42; display: flex; flex-direction: column; overflow: hidden;
|
||||
}
|
||||
.bd-mse .ap [data-at] { opacity: 0; transform: translateY(9px); transition: opacity .48s ease, transform .48s cubic-bezier(.22,.85,.28,1); }
|
||||
.bd-mse .ap [data-at].in { opacity: 1; transform: none; }
|
||||
.bd-mse .ap .swap { animation: mse-swap .5s ease; }
|
||||
@keyframes mse-swap { 0% { opacity: 0; transform: translateY(-4px); } 100% { opacity: 1; transform: none; } }
|
||||
.bd-mse .ap .pulse { animation: mse-pulse 1.05s ease-in-out infinite; }
|
||||
@keyframes mse-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .42; } }
|
||||
.bd-mse .ap .press { transform: scale(.955) !important; filter: brightness(.88); }
|
||||
.bd-mse .ap-btn, .bd-mse .ap-card { transition: transform .18s ease, filter .18s ease, box-shadow .25s ease, outline-color .25s ease; }
|
||||
.bd-mse .ap .tap { outline: 1.6px solid var(--a-purple); outline-offset: -1px; box-shadow: 0 0 0 5px rgba(139,126,240,.14); }
|
||||
|
||||
.bd-mse .ap-status { display: flex; align-items: center; justify-content: space-between; padding: 11px 17px 4px; flex-shrink: 0; }
|
||||
.bd-mse .ap-status .t { font-size: 13px; font-weight: 500; }
|
||||
.bd-mse .ap-status .l, .bd-mse .ap-status .r { display: flex; align-items: center; gap: 5px; }
|
||||
.bd-mse .ap-status svg { width: 11px; height: 11px; fill: #fff; opacity: .92; }
|
||||
.bd-mse .ap-status .dot { width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .75; }
|
||||
.bd-mse .ap-batt { width: 17px; height: 9px; border: 1.1px solid rgba(255,255,255,.55); border-radius: 2.6px; position: relative; display: flex; align-items: center; padding: 1px; }
|
||||
.bd-mse .ap-batt::after { content: ''; width: 100%; height: 100%; background: #31d158; border-radius: 1.4px; }
|
||||
.bd-mse .ap-batt::before { content: ''; position: absolute; right: -3px; width: 1.6px; height: 4px; background: rgba(255,255,255,.55); border-radius: 0 1px 1px 0; }
|
||||
|
||||
.bd-mse .ap-top { display: flex; align-items: center; gap: 11px; padding: 16px 17px 10px; flex-shrink: 0; }
|
||||
.bd-mse .ap-top .back { width: 17px; height: 17px; stroke: var(--a-tx); stroke-width: 2; fill: none; flex-shrink: 0; }
|
||||
.bd-mse .ap-top h4 { font-size: 17px; font-weight: 700; letter-spacing: -.3px; }
|
||||
.bd-mse .ap-greet { padding: 14px 17px 2px; flex-shrink: 0; }
|
||||
.bd-mse .ap-greet .hi { display: flex; align-items: center; justify-content: space-between; }
|
||||
.bd-mse .ap-greet .hi-l { display: flex; align-items: center; gap: 8px; }
|
||||
.bd-mse .ap-greet .hi-l svg { width: 16px; height: 16px; }
|
||||
.bd-mse .ap-greet h4 { font-size: 17px; font-weight: 700; }
|
||||
.bd-mse .ap-greet .sub { color: var(--a-tx2); font-size: 11.4px; margin-top: 1px; }
|
||||
.bd-mse .ap-bell { width: 15px; height: 15px; stroke: var(--a-tx); stroke-width: 1.7; fill: none; }
|
||||
.bd-mse .ap-body { flex: 1; overflow: hidden; padding: 0 17px 8px; display: flex; flex-direction: column; }
|
||||
.bd-mse .ap-body.pt { padding-top: 12px; }
|
||||
|
||||
.bd-mse .ap-score { display: flex; flex-direction: column; align-items: center; padding: 14px 0 4px; flex-shrink: 0; }
|
||||
.bd-mse .ap-ring { position: relative; width: 118px; height: 118px; }
|
||||
.bd-mse .ap-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
|
||||
.bd-mse .ap-ring .arc { transition: stroke .5s ease; }
|
||||
.bd-mse .ap-ring .val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
|
||||
.bd-mse .ap-ring .val b { font-size: 26px; font-weight: 700; letter-spacing: -.5px; }
|
||||
.bd-mse .ap-ring .val b i { font-size: 14px; font-style: normal; font-weight: 400; color: var(--a-tx2); }
|
||||
.bd-mse .ap-ring .val span { font-size: 10.6px; color: var(--a-tx2); margin-top: -2px; }
|
||||
.bd-mse .ap-ring.scanning::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--a-purple); animation: mse-spin .95s linear infinite; }
|
||||
@keyframes mse-spin { to { transform: rotate(360deg); } }
|
||||
.bd-mse .ap-delta { color: var(--a-green); font-size: 12.6px; font-weight: 600; margin-top: 11px; }
|
||||
.bd-mse .ap-lastchk { color: var(--a-tx2); font-size: 11.2px; }
|
||||
|
||||
.bd-mse .ap-btn { display: block; width: 100%; text-align: center; border: none; border-radius: 100px; font-family: inherit; font-weight: 600; font-size: 13px; padding: 11px; margin: 13px 0 4px; }
|
||||
.bd-mse .ap-btn.purple { background: var(--a-purple); color: var(--a-purple-on); }
|
||||
.bd-mse .ap-btn.lav { background: var(--a-lav); color: var(--a-lav-on); }
|
||||
.bd-mse .ap-btn.glow { box-shadow: 0 0 0 6px rgba(139,126,240,.16); }
|
||||
|
||||
.bd-mse .ap-card { background: var(--a-card); border-radius: 17px; padding: 13px 14px; margin-top: 10px; }
|
||||
.bd-mse .ap-card h5 { font-size: 13.4px; font-weight: 700; letter-spacing: -.2px; }
|
||||
.bd-mse .ap-card p { color: var(--a-tx2); font-size: 11.4px; margin-top: 2px; }
|
||||
.bd-mse .ap-cardhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
|
||||
.bd-mse .ap-badge { flex-shrink: 0; padding: 3px 9px; border-radius: 100px; font-size: 10.4px; font-weight: 700; }
|
||||
.bd-mse .ap-badge.good { background: var(--a-green-bg); color: var(--a-green); }
|
||||
.bd-mse .ap-badge.high, .bd-mse .ap-badge.blocked { background: var(--a-coral-bg); color: var(--a-coral); }
|
||||
.bd-mse .ap-badge.med { background: var(--a-amber-bg); color: var(--a-amber); }
|
||||
.bd-mse .ap-badge.low { background: var(--a-blue-bg); color: var(--a-blue); }
|
||||
.bd-mse .ap-badge.active { background: #2a2440; color: var(--a-purple); }
|
||||
.bd-mse .ap-badge.wait { background: #2b2833; color: var(--a-tx3); }
|
||||
|
||||
.bd-mse .ap-stats { display: flex; gap: 6px; margin-top: 12px; }
|
||||
.bd-mse .ap-stats div { flex: 1; text-align: center; }
|
||||
.bd-mse .ap-stats b { display: block; font-size: 23px; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
|
||||
.bd-mse .ap-stats b.bad { color: var(--a-coral); }
|
||||
.bd-mse .ap-stats span { font-size: 10.6px; color: var(--a-tx2); }
|
||||
|
||||
.bd-mse .ap-h6 { font-size: 13.4px; font-weight: 700; margin: 16px 0 8px; }
|
||||
.bd-mse .ap-h6.spread { display: flex; align-items: center; justify-content: space-between; }
|
||||
.bd-mse .ap-h6.spread a { color: var(--a-purple); font-size: 12px; font-weight: 600; }
|
||||
.bd-mse .ap-caps { font-size: 10px; font-weight: 700; letter-spacing: 1.1px; color: var(--a-tx3); margin: 16px 0 7px; }
|
||||
|
||||
.bd-mse .ap-list { background: var(--a-card); border-radius: 17px; overflow: hidden; }
|
||||
.bd-mse .ap-li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; border-top: 1px solid var(--a-line); }
|
||||
.bd-mse .ap-li:first-child { border-top: none; }
|
||||
.bd-mse .ap-li .dom { font-size: 12.2px; font-weight: 600; word-break: break-all; line-height: 1.28; }
|
||||
.bd-mse .ap-li .when { font-size: 10.8px; color: var(--a-tx2); margin-top: 1px; }
|
||||
.bd-mse .ap-li.fresh { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; overflow: hidden; border-top: none; transition: max-height .5s cubic-bezier(.22,.85,.28,1), padding .5s, opacity .4s .1s; }
|
||||
.bd-mse .ap-li.fresh.in { max-height: 52px; padding-top: 11px; padding-bottom: 11px; opacity: 1; }
|
||||
.bd-mse .ap-li.fresh.in.hot { background: rgba(232,118,92,.1); }
|
||||
.bd-mse .ap-kv { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 12px; }
|
||||
.bd-mse .ap-kv .k { color: var(--a-tx2); }
|
||||
.bd-mse .ap-kv .v { font-weight: 700; }
|
||||
|
||||
.bd-mse .ap-perm { background: var(--a-card); border-radius: 15px; padding: 11px 13px; margin-top: 9px; }
|
||||
.bd-mse .ap-perm .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
||||
.bd-mse .ap-perm .nm { font-size: 13px; font-weight: 700; }
|
||||
.bd-mse .ap-perm .ds { color: var(--a-tx2); font-size: 11px; margin-top: 1px; }
|
||||
.bd-mse .ap-perm .mt { font-size: 11px; margin-top: 4px; font-weight: 600; }
|
||||
.bd-mse .ap-perm .mt.warn { color: var(--a-coral); }
|
||||
.bd-mse .ap-perm .mt.ok { color: var(--a-purple); }
|
||||
.bd-mse .ap-sk { background: var(--a-card); border-radius: 15px; padding: 13px; margin-top: 9px; display: grid; gap: 7px; }
|
||||
.bd-mse .ap-sk i { display: block; height: 8px; border-radius: 100px; background: linear-gradient(90deg,#26232c,#37333f,#26232c); background-size: 220% 100%; animation: mse-sk 1.2s linear infinite; }
|
||||
.bd-mse .ap-sk i:nth-child(1) { width: 46%; } .bd-mse .ap-sk i:nth-child(2) { width: 78%; } .bd-mse .ap-sk i:nth-child(3) { width: 34%; }
|
||||
@keyframes mse-sk { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
|
||||
|
||||
.bd-mse .ap-tog { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-top: 1px solid var(--a-line); }
|
||||
.bd-mse .ap-tog:first-child { border-top: none; }
|
||||
.bd-mse .ap-tog .ic { width: 29px; height: 29px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
|
||||
.bd-mse .ap-tog .ic svg { width: 15px; height: 15px; }
|
||||
.bd-mse .ap-tog .tx { flex: 1; min-width: 0; }
|
||||
.bd-mse .ap-tog .tx b { display: block; font-size: 12.6px; font-weight: 700; }
|
||||
.bd-mse .ap-tog .tx span { font-size: 10.8px; color: var(--a-tx2); display: block; line-height: 1.3; }
|
||||
.bd-mse .ap-sw { width: 38px; height: 22px; border-radius: 100px; background: #3a3646; position: relative; flex-shrink: 0; transition: background .35s ease; }
|
||||
.bd-mse .ap-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #6d6779; transition: left .35s cubic-bezier(.3,1.5,.5,1), background .35s; }
|
||||
.bd-mse .ap-sw.on { background: var(--a-purple); }
|
||||
.bd-mse .ap-sw.on::after { left: 19px; background: var(--a-purple-on); }
|
||||
.bd-mse .ap-input { border: 1px solid rgba(255,255,255,.28); border-radius: 9px; padding: 10px 12px; color: var(--a-tx3); font-size: 12px; margin-top: 11px; transition: border-color .3s, color .3s; }
|
||||
.bd-mse .ap-input.filled { color: var(--a-tx); border-color: var(--a-purple); }
|
||||
.bd-mse .ap-input.filled::after { content: ''; display: inline-block; width: 1.2px; height: 12px; background: var(--a-purple); margin-left: 1px; vertical-align: -2px; animation: mse-caret .85s step-end infinite; }
|
||||
@keyframes mse-caret { 50% { opacity: 0; } }
|
||||
|
||||
.bd-mse .ap-map { border-radius: 15px; overflow: hidden; height: 112px; position: relative; background: #b9b6bf; }
|
||||
.bd-mse .ap-map svg { width: 100%; height: 100%; display: block; }
|
||||
.bd-mse .ap-map .gl { position: absolute; left: 8px; bottom: 6px; font-size: 9.5px; font-weight: 700; color: #5b5b60; }
|
||||
.bd-mse .js-pin { opacity: 0; transform: translateY(-26px); transition: opacity .3s, transform .6s cubic-bezier(.3,1.7,.5,1); }
|
||||
.bd-mse .ap[data-stage="1"] .js-pin, .bd-mse .ap[data-stage="2"] .js-pin, .bd-mse .ap[data-stage="3"] .js-pin, .bd-mse .ap[data-stage="4"] .js-pin, .bd-mse .ap[data-stage="5"] .js-pin, .bd-mse .ap[data-stage="6"] .js-pin { opacity: 1; transform: none; }
|
||||
.bd-mse .js-fence { opacity: 0; transform: scale(.2); transform-origin: 150px 50px; transition: opacity .5s, transform .85s cubic-bezier(.22,.9,.25,1), stroke .3s ease; }
|
||||
.bd-mse .ap[data-stage="2"] .js-fence, .bd-mse .ap[data-stage="3"] .js-fence, .bd-mse .ap[data-stage="4"] .js-fence, .bd-mse .ap[data-stage="5"] .js-fence, .bd-mse .ap[data-stage="6"] .js-fence { opacity: 1; transform: scale(1); }
|
||||
.bd-mse .ap[data-stage="6"] .js-fence { stroke: #e8765c; }
|
||||
.bd-mse .js-trav { opacity: 0; }
|
||||
.bd-mse .ap[data-stage="4"] .js-trav, .bd-mse .ap[data-stage="5"] .js-trav { opacity: 1; animation: mse-trav 2.6s cubic-bezier(.4,0,.5,1) forwards; }
|
||||
.bd-mse .js-trav-out { opacity: 0; }
|
||||
.bd-mse .ap[data-stage="6"] .js-trav-out { opacity: 1; animation: mse-trav-out 1.5s cubic-bezier(.4,0,.5,1) forwards; }
|
||||
@keyframes mse-trav-out { 0% { transform: translate(0,0); } 100% { transform: translate(56px,-40px); } }
|
||||
.bd-mse .ap-zalert {
|
||||
background: #2b2833; border-radius: 19px; padding: 11px 12px; margin: 8px 12px 0;
|
||||
box-shadow: 0 10px 26px rgba(0,0,0,.5); display: flex; align-items: center; gap: 10px;
|
||||
opacity: 0; transform: translateY(-70px); transition: opacity .35s, transform .55s cubic-bezier(.22,.9,.28,1);
|
||||
}
|
||||
.bd-mse .ap[data-stage="6"] .ap-zalert { opacity: 1; transform: none; }
|
||||
.bd-mse .ap-zalert .nh { display: flex; align-items: flex-start; gap: 9px; width: 100%; }
|
||||
.bd-mse .ap-zalert .av { width: 29px; height: 29px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
|
||||
.bd-mse .ap-zalert .av svg { width: 17px; height: 17px; }
|
||||
.bd-mse .ap-zalert .nt { flex: 1; min-width: 0; }
|
||||
.bd-mse .ap-zalert .nt .l1 { display: flex; align-items: center; gap: 6px; font-size: 12.4px; font-weight: 700; }
|
||||
.bd-mse .ap-zalert .nt .l1 .ago { font-weight: 400; color: var(--a-tx2); }
|
||||
.bd-mse .ap-zalert .nt .l2 { font-size: 11.4px; color: var(--a-coral); margin-top: 1px; }
|
||||
@keyframes mse-trav { 0% { transform: translate(-96px,44px); } 100% { transform: translate(0,0); } }
|
||||
.bd-mse .ap-zone { display: flex; align-items: center; gap: 10px; background: var(--a-card); border-radius: 15px; padding: 11px 13px; margin-top: 10px; }
|
||||
.bd-mse .ap-zone .pin { width: 28px; height: 28px; border-radius: 9px; background: #2a2440; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; }
|
||||
.bd-mse .ap-zone .zt { flex: 1; min-width: 0; }
|
||||
.bd-mse .ap-zone .zt b { display: block; font-size: 12.6px; font-weight: 700; line-height: 1.25; }
|
||||
.bd-mse .ap-zone .zt span { font-size: 10.8px; color: var(--a-tx2); }
|
||||
.bd-mse .ap-zone .x { color: var(--a-coral); font-size: 14px; flex-shrink: 0; }
|
||||
.bd-mse .ap-empty { background: var(--a-card-2); border-radius: 15px; padding: 14px; color: var(--a-tx3); font-size: 11.4px; margin-top: 9px; transition: max-height .45s ease, opacity .3s, padding .45s; max-height: 60px; overflow: hidden; }
|
||||
.bd-mse .ap-empty.gone { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; margin-top: 0; }
|
||||
|
||||
.bd-mse .ap-incoming { background: #2b2833; border-radius: 19px; padding: 11px 12px; margin: 8px 12px 0; box-shadow: 0 10px 26px rgba(0,0,0,.5); display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(-70px); transition: opacity .35s, transform .55s cubic-bezier(.22,.9,.28,1); }
|
||||
.bd-mse .ap[data-stage="1"] .ap-incoming, .bd-mse .ap[data-stage="2"] .ap-incoming { opacity: 1; transform: none; }
|
||||
.bd-mse .ap-incoming .rings { width: 31px; height: 31px; border-radius: 50%; background: #3d3947; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
|
||||
.bd-mse .ap-incoming .rings svg { width: 16px; height: 16px; fill: #b9aef7; animation: mse-shake .9s ease-in-out infinite; }
|
||||
@keyframes mse-shake { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
|
||||
.bd-mse .ap-incoming .ct { flex: 1; min-width: 0; }
|
||||
.bd-mse .ap-incoming .ct b { display: block; font-size: 13px; font-weight: 700; }
|
||||
.bd-mse .ap-incoming .ct span { font-size: 10.8px; color: var(--a-tx2); }
|
||||
.bd-mse .ap-verdict { flex-shrink: 0; padding: 4px 9px; border-radius: 100px; font-size: 10px; font-weight: 700; background: #3d3947; color: var(--a-tx2); transition: background .35s, color .35s; }
|
||||
.bd-mse .ap-verdict.bad { background: var(--a-coral-bg); color: var(--a-coral); }
|
||||
|
||||
.bd-mse .ap-notif { background: #2b2833; border-radius: 19px; padding: 11px 12px; margin: 8px 12px 0; box-shadow: 0 10px 26px rgba(0,0,0,.5); opacity: 0; transform: translateY(-70px); transition: opacity .35s, transform .55s cubic-bezier(.22,.9,.28,1); }
|
||||
.bd-mse .ap[data-stage="3"] .ap-notif, .bd-mse .ap[data-stage="4"] .ap-notif, .bd-mse .ap[data-stage="5"] .ap-notif, .bd-mse .ap[data-stage="6"] .ap-notif { opacity: 1; transform: none; }
|
||||
.bd-mse .ap-notif .nh { display: flex; align-items: flex-start; gap: 9px; }
|
||||
.bd-mse .ap-notif .av { width: 29px; height: 29px; border-radius: 50%; background: #0d3b45; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
|
||||
.bd-mse .ap-notif .av svg { width: 19px; height: 19px; }
|
||||
.bd-mse .ap-notif .nt { flex: 1; min-width: 0; }
|
||||
.bd-mse .ap-notif .nt .l1 { display: flex; align-items: center; gap: 6px; font-size: 12.4px; font-weight: 700; }
|
||||
.bd-mse .ap-notif .nt .l1 .ago { font-weight: 400; color: var(--a-tx2); }
|
||||
.bd-mse .ap-notif .nt .l2 { font-size: 13px; font-weight: 500; margin-top: 1px; }
|
||||
.bd-mse .ap-notif .chev { background: #3d3947; border-radius: 100px; padding: 3px 9px; font-size: 10px; flex-shrink: 0; }
|
||||
.bd-mse .ap-notif .acts { display: flex; gap: 24px; padding: 9px 4px 2px; margin-top: 6px; }
|
||||
.bd-mse .ap-notif .acts span { color: #b9aef7; font-size: 13px; font-weight: 600; padding: 2px 6px; border-radius: 8px; transition: background .25s, color .25s; }
|
||||
.bd-mse .ap-notif .acts span.hit { background: var(--a-coral-bg); color: var(--a-coral); }
|
||||
.bd-mse .ap-thanks { display: none; align-items: center; gap: 7px; padding: 3px 4px 1px; margin-top: 6px; font-size: 12px; color: var(--a-green); font-weight: 600; }
|
||||
.bd-mse .ap[data-stage="5"] .ap-thanks, .bd-mse .ap[data-stage="6"] .ap-thanks { display: flex; }
|
||||
.bd-mse .ap[data-stage="5"] .acts, .bd-mse .ap[data-stage="6"] .acts { display: none; }
|
||||
|
||||
.bd-mse .ap-tabbar { display: flex; align-items: center; justify-content: space-around; padding: 7px 6px 4px; background: #1e1b24; border-top: 1px solid var(--a-line); flex-shrink: 0; }
|
||||
.bd-mse .ap-tabbar .it { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 12px; border-radius: 12px; color: var(--a-tx3); }
|
||||
.bd-mse .ap-tabbar .it svg { width: 17px; height: 17px; }
|
||||
.bd-mse .ap-tabbar .it span { font-size: 9.6px; font-weight: 600; }
|
||||
.bd-mse .ap-tabbar .it.on { background: #2a2440; color: var(--a-purple); }
|
||||
.bd-mse .ap-home-ind { height: 14px; display: flex; align-items: center; justify-content: center; background: #1e1b24; flex-shrink: 0; }
|
||||
.bd-mse .ap-home-ind::after { content: ''; width: 96px; height: 3.4px; border-radius: 100px; background: rgba(255,255,255,.5); }
|
||||
.bd-mse .ap-body-fade { position: absolute; left: 0; right: 0; background: linear-gradient(transparent, var(--a-bg)); pointer-events: none; }
|
||||
|
||||
/* ============================================================
|
||||
RESPONSIVE
|
||||
============================================================ */
|
||||
@media (max-width: 680px) {
|
||||
/* Not enough room for the module grid beside the phone — move it to a
|
||||
horizontally-scrollable row above the phone instead. */
|
||||
.bd-mse { grid-template-columns: 1fr; row-gap: 12px; }
|
||||
.bd-mse .mse-grid {
|
||||
grid-column: 1; grid-row: 1;
|
||||
grid-template-columns: none;
|
||||
grid-auto-flow: column;
|
||||
grid-auto-columns: minmax(92px, 1fr);
|
||||
overflow-x: auto;
|
||||
padding-bottom: 2px;
|
||||
-webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
|
||||
mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
|
||||
}
|
||||
.bd-mse .panel { grid-column: 1; grid-row: 2; max-width: 100%; }
|
||||
}
|
||||
@media (max-width: 420px) {
|
||||
.bd-mse .stage, .bd-mse .phone { width: 100%; max-width: 332px; }
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.bd-mse .ap [data-at] { transition: none; }
|
||||
.bd-mse .demo-badge i, .bd-mse .ap-sk i, .bd-mse .ap .pulse, .bd-mse .phone { animation: none; }
|
||||
}
|
||||
@@ -0,0 +1,391 @@
|
||||
<div class="mse-grid" id="tabs" tabindex="0">
|
||||
<button class="tab-tile on" data-p="score" type="button"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg><span>Safety score</span></button>
|
||||
<button class="tab-tile" data-p="protection" type="button"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 3l8 4v6c0 4.5-3.2 7.6-8 8.9C7.2 20.6 4 17.5 4 13V7z"/></svg><span>Protection</span></button>
|
||||
<button class="tab-tile" data-p="dns" type="button"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="9"/><path d="M3 12h18M12 3c2.5 3 2.5 15 0 18M12 3c-2.5 3-2.5 15 0 18"/></svg><span>Malicious DNS</span></button>
|
||||
<button class="tab-tile" data-p="calls" type="button"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M5 4h4l2 5-2.5 1.5a11 11 0 005 5L15 13l5 2v4a15 15 0 01-15-15z"/></svg><span>Scam calls</span></button>
|
||||
<button class="tab-tile" data-p="sim" type="button"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M6 3h8l4 4v14H6z"/><rect x="9" y="12" width="6" height="5" rx="1"/></svg><span>SIM & carrier</span></button>
|
||||
<button class="tab-tile" data-p="perms" type="button"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="4" y="4" width="7" height="7" rx="2"/><rect x="13" y="4" width="7" height="7" rx="2"/><rect x="4" y="13" width="7" height="7" rx="2"/><rect x="13" y="13" width="7" height="7" rx="2"/></svg><span>Apps & permissions</span></button>
|
||||
<button class="tab-tile" data-p="zones" type="button"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 21s7-5.5 7-11a7 7 0 10-14 0c0 5.5 7 11 7 11z"/><circle cx="12" cy="10" r="2.5"/></svg><span>Location zones</span></button>
|
||||
<button class="tab-tile" data-p="identity" type="button"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="8" r="4"/><path d="M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7"/></svg><span>Identity</span></button>
|
||||
<button class="tab-tile" data-p="settings" type="button"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="3"/><path d="M12 2v3M12 19v3M4.2 4.2l2.1 2.1M17.7 17.7l2.1 2.1M2 12h3M19 12h3M4.2 19.8l2.1-2.1M17.7 6.3l2.1-2.1"/></svg><span>Consent & settings</span></button>
|
||||
</div>
|
||||
|
||||
<!-- ================= 1 · SAFETY SCORE ================= -->
|
||||
<div class="panel on" data-p="score">
|
||||
<div class="stage">
|
||||
<div class="phone">
|
||||
<span class="demo-badge"><i></i>Demo</span>
|
||||
<div class="phone-inner"><div class="ap" data-stage="0">
|
||||
<div class="ap-status"><div class="l"><span class="t">14:54</span><span class="dot"></span></div>
|
||||
<div class="r"><svg viewBox="0 0 24 24"><rect x="3" y="14" width="3" height="7"/><rect x="8" y="10" width="3" height="11"/><rect x="13" y="6" width="3" height="15" opacity=".4"/></svg><div class="ap-batt"></div></div></div>
|
||||
<div class="ap-greet"><div class="hi"><div class="hi-l">
|
||||
<svg viewBox="0 0 64 64"><g fill="none" stroke="#e8f4f3" stroke-width="4" stroke-linejoin="round"><path d="M32 6 L56 20 L56 46 L32 60 L8 46 L8 20 Z"/><path d="M32 6 L32 32 M8 20 L32 32 M56 20 L32 32"/></g><circle cx="42" cy="16" r="5" fill="#3BB586"/></svg>
|
||||
<h4>Hi, Jason</h4></div>
|
||||
<svg class="ap-bell" viewBox="0 0 24 24"><path d="M18 15V10a6 6 0 10-12 0v5l-2 3h16zM10 21h4"/></svg></div>
|
||||
<div class="sub">Here's how you're protected today.</div></div>
|
||||
<div class="ap-body">
|
||||
<div class="ap-score">
|
||||
<div class="ap-ring js-ring">
|
||||
<svg viewBox="0 0 120 120">
|
||||
<circle cx="60" cy="60" r="52" fill="none" stroke="#2b2733" stroke-width="9"/>
|
||||
<circle class="arc js-arc" cx="60" cy="60" r="52" fill="none" stroke="#82c99a" stroke-width="9" stroke-linecap="round" stroke-dasharray="326.73" stroke-dashoffset="62.08"/>
|
||||
</svg>
|
||||
<div class="val"><b><span class="js-score">81</span><i>/100</i></b><span>Safety score</span></div>
|
||||
</div>
|
||||
<div class="ap-delta" data-at="5">▲ 12 since last check ›</div>
|
||||
<div class="ap-lastchk" data-at="5">Last check you were at 81.</div>
|
||||
</div>
|
||||
<div class="ap-btn purple js-improve">How to improve</div>
|
||||
<div class="ap-card" data-at="2"><div class="ap-cardhead"><h5>Device trust</h5><span class="ap-badge good">Good</span></div><p>Your device is verified and up to date.</p></div>
|
||||
<div class="ap-card" data-at="3"><div class="ap-cardhead"><h5>Apps & permissions</h5><span class="ap-badge good">Good</span></div><p>No risky app permissions detected.</p></div>
|
||||
<div class="ap-card" data-at="4"><div class="ap-cardhead"><h5>Wi-Fi security</h5><span class="ap-badge good">Good</span></div><p>BT-T5F97X – Low risk.</p></div>
|
||||
</div>
|
||||
<div class="ap-body-fade"></div>
|
||||
<div class="ap-tabbar">
|
||||
<div class="it on"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 3l9 8h-3v9h-4v-6h-4v6H6v-9H3z"/></svg><span>Home</span></div>
|
||||
<div class="it"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M17 9V7a5 5 0 00-10 0v2H5v12h14V9zm-8-2a3 3 0 016 0v2H9z"/></svg><span>Protection</span></div>
|
||||
<div class="it"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2a7 7 0 00-7 7c0 5.3 7 13 7 13s7-7.7 7-13a7 7 0 00-7-7zm0 9.5A2.5 2.5 0 1112 6.5a2.5 2.5 0 010 5z"/></svg><span>Identity</span></div>
|
||||
<div class="it"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 8a4 4 0 100 8 4 4 0 000-8zm9.4 4l-.1 1.3 2 1.6-1.9 3.3-2.4-.8-1.1.8-.3 2.6h-3.8l-.4-2.6-1.1-.8-2.4.8-1.9-3.3 2-1.6L10 12l-.1-1.3-2-1.6 1.9-3.3 2.4.8 1.1-.8L13.7 3h3.8l.4 2.6 1.1.8 2.4-.8 1.9 3.3-2 1.6z"/></svg><span>Settings</span></div>
|
||||
</div>
|
||||
<div class="ap-home-ind"></div>
|
||||
</div></div><button class="reel-btn js-pp phone-pp" type="button" aria-label="Play">▶</button>
|
||||
</div>
|
||||
<p class="reel-cap"></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ================= 2 · PROTECTION ================= -->
|
||||
<div class="panel" data-p="protection">
|
||||
<div class="stage">
|
||||
<div class="phone">
|
||||
<span class="demo-badge"><i></i>Demo</span>
|
||||
<div class="phone-inner"><div class="ap" data-stage="0">
|
||||
<div class="ap-status"><div class="l"><span class="t">14:47</span><span class="dot"></span></div>
|
||||
<div class="r"><svg viewBox="0 0 24 24"><rect x="3" y="14" width="3" height="7"/><rect x="8" y="10" width="3" height="11"/><rect x="13" y="6" width="3" height="15" opacity=".4"/></svg><div class="ap-batt"></div></div></div>
|
||||
<div class="ap-greet"><div class="hi"><div class="hi-l">
|
||||
<svg viewBox="0 0 64 64"><g fill="none" stroke="#e8f4f3" stroke-width="4" stroke-linejoin="round"><path d="M32 6 L56 20 L56 46 L32 60 L8 46 L8 20 Z"/><path d="M32 6 L32 32 M8 20 L32 32 M56 20 L32 32"/></g><circle cx="42" cy="16" r="5" fill="#3BB586"/></svg>
|
||||
<h4>Hi, Jason</h4></div>
|
||||
<svg class="ap-bell" viewBox="0 0 24 24"><path d="M18 15V10a6 6 0 10-12 0v5l-2 3h16zM10 21h4"/></svg></div>
|
||||
<div class="sub">Here's how you're protected today.</div></div>
|
||||
<div class="ap-body">
|
||||
<div class="ap-score">
|
||||
<div class="ap-ring"><svg viewBox="0 0 120 120">
|
||||
<circle cx="60" cy="60" r="52" fill="none" stroke="#2b2733" stroke-width="9"/>
|
||||
<circle cx="60" cy="60" r="52" fill="none" stroke="#82c99a" stroke-width="9" stroke-linecap="round" stroke-dasharray="326.73" stroke-dashoffset="22.87"/></svg>
|
||||
<div class="val"><b>93<i>/100</i></b><span>Safety score</span></div></div>
|
||||
<div class="ap-delta">▲ 12 since last check ›</div>
|
||||
<div class="ap-lastchk">Last check you were at 81.</div>
|
||||
</div>
|
||||
<div class="ap-btn purple">How to improve</div>
|
||||
<div class="ap-card js-sb" data-at="1"><div class="ap-cardhead"><h5>Safe browsing</h5><span class="ap-badge good">Good</span></div><p>Safe browsing is on – <span class="js-n">0</span> unsafe requests blocked today.</p></div>
|
||||
<div class="ap-card" data-at="2"><div class="ap-cardhead"><h5>Calls</h5><span class="ap-badge good">Good</span></div><p>No scam calls today.</p></div>
|
||||
<div class="ap-card" data-at="3"><div class="ap-cardhead"><h5>SIM & carrier</h5><span class="ap-badge good">Good</span></div></div>
|
||||
</div>
|
||||
<div class="ap-body-fade"></div>
|
||||
<div class="ap-tabbar">
|
||||
<div class="it"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 3l9 8h-3v9h-4v-6h-4v6H6v-9H3z"/></svg><span>Home</span></div>
|
||||
<div class="it on"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M17 9V7a5 5 0 00-10 0v2H5v12h14V9zm-8-2a3 3 0 016 0v2H9z"/></svg><span>Protection</span></div>
|
||||
<div class="it"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2a7 7 0 00-7 7c0 5.3 7 13 7 13s7-7.7 7-13a7 7 0 00-7-7zm0 9.5A2.5 2.5 0 1112 6.5a2.5 2.5 0 010 5z"/></svg><span>Identity</span></div>
|
||||
<div class="it"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 8a4 4 0 100 8 4 4 0 000-8zm9.4 4l-.1 1.3 2 1.6-1.9 3.3-2.4-.8-1.1.8-.3 2.6h-3.8l-.4-2.6-1.1-.8-2.4.8-1.9-3.3 2-1.6L10 12l-.1-1.3-2-1.6 1.9-3.3 2.4.8 1.1-.8L13.7 3h3.8l.4 2.6 1.1.8 2.4-.8 1.9 3.3-2 1.6z"/></svg><span>Settings</span></div>
|
||||
</div>
|
||||
<div class="ap-home-ind"></div>
|
||||
</div></div><button class="reel-btn js-pp phone-pp" type="button" aria-label="Play">▶</button>
|
||||
</div>
|
||||
<p class="reel-cap"></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ================= 3 · MALICIOUS DNS ================= -->
|
||||
<div class="panel" data-p="dns">
|
||||
<div class="stage">
|
||||
<div class="phone">
|
||||
<span class="demo-badge"><i></i>Demo</span>
|
||||
<div class="phone-inner"><div class="ap" data-stage="0">
|
||||
<div class="ap-status"><div class="l"><span class="t">14:52</span><span class="dot"></span></div>
|
||||
<div class="r"><svg viewBox="0 0 24 24"><rect x="3" y="14" width="3" height="7"/><rect x="8" y="10" width="3" height="11"/><rect x="13" y="6" width="3" height="15" opacity=".4"/></svg><div class="ap-batt"></div></div></div>
|
||||
<div class="ap-top"><svg class="back" viewBox="0 0 24 24"><path d="M15 5l-7 7 7 7"/></svg><h4>Safe browsing</h4></div>
|
||||
<div class="ap-body">
|
||||
<div class="ap-card" style="padding:15px 15px 16px">
|
||||
<h5 style="font-size:15.5px;line-height:1.25">DNS-level phishing<br>protection</h5>
|
||||
<div class="ap-stats">
|
||||
<div><b class="bad js-blocked">285</b><span>Blocked today</span></div>
|
||||
<div><b class="js-req">1116</b><span>Requests today</span></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ap-btn lav js-refresh">Refresh</div>
|
||||
<div class="ap-h6">Blocked today</div>
|
||||
<div class="ap-list">
|
||||
<div class="ap-li fresh js-newrow">
|
||||
<div><div class="dom">whtaspp-group.pages.dev</div><div class="when">2 Sep, 14:51</div></div>
|
||||
<span class="ap-badge blocked js-chip">Blocked</span>
|
||||
</div>
|
||||
<div class="ap-li"><div><div class="dom">fxjn-web-whatsapp.hk.cn</div><div class="when">2 Sep, 14:50</div></div><span class="ap-badge blocked">Blocked</span></div>
|
||||
<div class="ap-li"><div><div class="dom">malicious.com</div><div class="when">2 Sep, 12:31</div></div><span class="ap-badge blocked">Blocked</span></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ap-home-ind" style="background:transparent"></div>
|
||||
</div></div><button class="reel-btn js-pp phone-pp" type="button" aria-label="Play">▶</button>
|
||||
</div>
|
||||
<p class="reel-cap"></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ================= 4 · SCAM CALLS ================= -->
|
||||
<div class="panel" data-p="calls">
|
||||
<div class="stage">
|
||||
<div class="phone">
|
||||
<span class="demo-badge"><i></i>Demo</span>
|
||||
<div class="phone-inner"><div class="ap" data-stage="0">
|
||||
<div class="ap-status"><div class="l"><span class="t">15:05</span><span class="dot"></span></div>
|
||||
<div class="r"><svg viewBox="0 0 24 24"><rect x="3" y="14" width="3" height="7"/><rect x="8" y="10" width="3" height="11"/><rect x="13" y="6" width="3" height="15" opacity=".4"/></svg><div class="ap-batt"></div></div></div>
|
||||
|
||||
<div class="ap-incoming">
|
||||
<div class="rings"><svg viewBox="0 0 24 24"><path d="M5 4h4l2 5-2.5 1.5a11 11 0 005 5L15 13l5 2v4a15 15 0 01-15-15z"/></svg></div>
|
||||
<div class="ct"><b>0123456789</b><span>Incoming call · unknown number</span></div>
|
||||
<span class="ap-verdict js-verdict">Checking…</span>
|
||||
</div>
|
||||
|
||||
<div class="ap-notif">
|
||||
<div class="nh">
|
||||
<div class="av"><svg viewBox="0 0 64 64"><g fill="none" stroke="#e8f4f3" stroke-width="4" stroke-linejoin="round"><path d="M32 6 L56 20 L56 46 L32 60 L8 46 L8 20 Z"/><path d="M32 6 L32 32 M8 20 L32 32 M56 20 L32 32"/></g><circle cx="42" cy="16" r="6" fill="#3BB586"/></svg></div>
|
||||
<div class="nt"><div class="l1">How was that… <span class="ago">• now</span>
|
||||
<svg style="width:11px;height:11px;stroke:#f3f0f6;stroke-width:1.7;fill:none" viewBox="0 0 24 24"><path d="M18 15V10a6 6 0 10-12 0v5l-2 3h16zM10 21h4"/></svg></div>
|
||||
<div class="l2">0123456789</div></div>
|
||||
<span class="chev">⌄</span>
|
||||
</div>
|
||||
<div class="acts"><span>Spam</span><span class="js-scam">Scam</span><span>OK</span></div>
|
||||
<div class="ap-thanks">✓ Reported – thanks, that helps everyone</div>
|
||||
</div>
|
||||
|
||||
<div class="ap-body pt">
|
||||
<div class="ap-score" style="padding-top:4px">
|
||||
<div class="ap-ring"><svg viewBox="0 0 120 120">
|
||||
<circle cx="60" cy="60" r="52" fill="none" stroke="#2b2733" stroke-width="9"/>
|
||||
<circle cx="60" cy="60" r="52" fill="none" stroke="#82c99a" stroke-width="9" stroke-linecap="round" stroke-dasharray="326.73" stroke-dashoffset="22.87"/></svg>
|
||||
<div class="val"><b>93<i>/100</i></b><span>Safety score</span></div></div>
|
||||
<div class="ap-delta">▲ 12 since last check ›</div>
|
||||
<div class="ap-lastchk">Last check you were at 81.</div>
|
||||
</div>
|
||||
<div class="ap-btn purple">How to improve</div>
|
||||
<div class="ap-card"><div class="ap-cardhead"><h5>Safe browsing</h5><span class="ap-badge good">Good</span></div><p>Safe browsing is on – 288 unsafe requests blocked today.</p></div>
|
||||
</div>
|
||||
<div class="ap-body-fade" style="bottom:0"></div>
|
||||
</div></div><button class="reel-btn js-pp phone-pp" type="button" aria-label="Play">▶</button>
|
||||
</div>
|
||||
<p class="reel-cap"></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ================= 5 · SIM ================= -->
|
||||
<div class="panel" data-p="sim">
|
||||
<div class="stage">
|
||||
<div class="phone">
|
||||
<span class="demo-badge"><i></i>Demo</span>
|
||||
<div class="phone-inner"><div class="ap" data-stage="0">
|
||||
<div class="ap-status"><div class="l"><span class="t">15:09</span><span class="dot"></span></div>
|
||||
<div class="r"><svg viewBox="0 0 24 24"><rect x="3" y="14" width="3" height="7"/><rect x="8" y="10" width="3" height="11"/><rect x="13" y="6" width="3" height="15" opacity=".4"/></svg><div class="ap-batt"></div></div></div>
|
||||
<div class="ap-top"><svg class="back" viewBox="0 0 24 24"><path d="M15 5l-7 7 7 7"/></svg><h4>SIM & carrier</h4></div>
|
||||
<div class="ap-body">
|
||||
<div class="ap-card" style="padding:14px 15px 15px">
|
||||
<h5 class="js-simh" style="font-size:14.6px">Checking SIM status…</h5>
|
||||
<p class="js-simp">Reading phone state.</p>
|
||||
</div>
|
||||
<div class="ap-card" style="margin-top:16px;padding:14px 15px">
|
||||
<div class="ap-caps" style="margin:0 0 6px">DETAILS</div>
|
||||
<div class="ap-kv" data-at="2"><span class="k">Carrier</span><span class="v">EE</span></div>
|
||||
<div class="ap-kv" data-at="3"><span class="k">SIM slots</span><span class="v">Single SIM</span></div>
|
||||
<div class="ap-kv" data-at="4"><span class="k">Previous change</span><span class="v">None on record</span></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ap-home-ind" style="background:transparent"></div>
|
||||
</div></div><button class="reel-btn js-pp phone-pp" type="button" aria-label="Play">▶</button>
|
||||
</div>
|
||||
<p class="reel-cap"></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ================= 6 · PERMISSIONS ================= -->
|
||||
<div class="panel" data-p="perms">
|
||||
<div class="stage">
|
||||
<div class="phone">
|
||||
<span class="demo-badge"><i></i>Demo</span>
|
||||
<div class="phone-inner"><div class="ap" data-stage="0">
|
||||
<div class="ap-status"><div class="l"><span class="t">15:11</span><span class="dot"></span></div>
|
||||
<div class="r"><svg viewBox="0 0 24 24"><rect x="3" y="14" width="3" height="7"/><rect x="8" y="10" width="3" height="11"/><rect x="13" y="6" width="3" height="15" opacity=".4"/></svg><div class="ap-batt"></div></div></div>
|
||||
<div class="ap-top"><svg class="back" viewBox="0 0 24 24"><path d="M15 5l-7 7 7 7"/></svg><h4>Apps & permissions</h4></div>
|
||||
<div class="ap-body">
|
||||
<p style="color:var(--a-tx2);font-size:11.4px;margin-bottom:2px">We scan installed apps for permissions fraudsters commonly abuse. Tap a card to see which apps hold it.</p>
|
||||
<div class="ap-sk js-sk"><i></i><i></i><i></i></div>
|
||||
<div class="ap-perm" data-at="2"><div class="top"><span class="nm">Microphone</span><span class="ap-badge high">High</span></div><div class="ds">Can turn on your microphone.</div><div class="mt warn">1 app · 1 to review</div></div>
|
||||
<div class="ap-perm" data-at="3"><div class="top"><span class="nm">Phone state</span><span class="ap-badge med">Medium</span></div><div class="ds">Can read your phone number and call state.</div><div class="mt ok">1 app · all accepted</div></div>
|
||||
<div class="ap-perm" data-at="4"><div class="top"><span class="nm">Contacts</span><span class="ap-badge med">Medium</span></div><div class="ds">Can read your contacts list.</div><div class="mt warn">1 app · 1 to review</div></div>
|
||||
<div class="ap-perm" data-at="5"><div class="top"><span class="nm">Post notifications</span><span class="ap-badge low">Low</span></div><div class="ds">Can post notifications to your device.</div><div class="mt ok">1 app · all accepted</div></div>
|
||||
<div class="ap-btn lav js-scan" style="margin-top:14px">Scan again</div>
|
||||
</div>
|
||||
<div class="ap-home-ind" style="background:transparent"></div>
|
||||
</div></div><button class="reel-btn js-pp phone-pp" type="button" aria-label="Play">▶</button>
|
||||
</div>
|
||||
<p class="reel-cap"></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ================= 7 · ZONES ================= -->
|
||||
<div class="panel" data-p="zones">
|
||||
<div class="stage">
|
||||
<div class="phone">
|
||||
<span class="demo-badge"><i></i>Demo</span>
|
||||
<div class="phone-inner"><div class="ap" data-stage="0">
|
||||
<div class="ap-status"><div class="l"><span class="t">14:55</span><span class="dot"></span></div>
|
||||
<div class="r"><svg viewBox="0 0 24 24"><rect x="3" y="14" width="3" height="7"/><rect x="8" y="10" width="3" height="11"/><rect x="13" y="6" width="3" height="15" opacity=".4"/></svg><div class="ap-batt"></div></div></div>
|
||||
<div class="ap-top"><svg class="back" viewBox="0 0 24 24"><path d="M15 5l-7 7 7 7"/></svg><h4>Location safety zones</h4></div>
|
||||
<div class="ap-zalert">
|
||||
<div class="nh">
|
||||
<div class="av" style="background:var(--a-coral-bg)"><svg viewBox="0 0 24 24" fill="none" stroke="#e8765c" stroke-width="2"><path d="M12 21s7-5.5 7-11a7 7 0 10-14 0c0 5.5 7 11 7 11z"/><circle cx="12" cy="10" r="2.5"/></svg></div>
|
||||
<div class="nt"><div class="l1">Left Jakarta Town Hall <span class="ago">• now</span></div>
|
||||
<div class="l2">0.4 km outside the 200m boundary</div></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ap-body">
|
||||
<div class="ap-map">
|
||||
<svg viewBox="0 0 300 112" preserveAspectRatio="xMidYMid slice">
|
||||
<rect width="300" height="112" fill="#b9b6bf"/>
|
||||
<path d="M0 44 H140 V0" stroke="#a8a5af" stroke-width="2.5" fill="none"/>
|
||||
<path d="M140 44 H300" stroke="#a8a5af" stroke-width="2.5" fill="none"/>
|
||||
<path d="M175 44 V112" stroke="#aeabb5" stroke-width="2" fill="none"/>
|
||||
<path d="M60 44 V112" stroke="#aeabb5" stroke-width="1.6" fill="none"/>
|
||||
<rect x="196" y="52" width="52" height="20" rx="4" fill="#adaab4"/>
|
||||
<circle class="js-fence" cx="150" cy="50" r="34" fill="rgba(139,126,240,.2)" stroke="#8b7ef0" stroke-width="1.6" stroke-dasharray="4 3"/>
|
||||
<g class="js-trav"><circle cx="150" cy="50" r="4.6" fill="#3b7ae0" stroke="#fff" stroke-width="1.6"/></g>
|
||||
<g class="js-trav-out"><circle cx="150" cy="50" r="4.6" fill="#e8765c" stroke="#fff" stroke-width="1.6"/></g>
|
||||
<g class="js-pin" transform="translate(150 56)">
|
||||
<path d="M0 -18a11.5 11.5 0 00-11.5 11.5C-11.5 1 0 14 0 14S11.5 1 11.5 -6.5A11.5 11.5 0 000 -18z" fill="#e03a2f"/>
|
||||
<circle cx="0" cy="-6.5" r="4.4" fill="#8f1c14"/>
|
||||
</g>
|
||||
<g transform="translate(258 66)"><circle r="9" fill="#3f7a86"/><circle r="3.4" fill="#fff"/></g>
|
||||
<text x="196" y="66" font-family="Ubuntu,sans-serif" font-size="8.4" font-weight="600" fill="#3a4a4f">Pos Penitipan</text>
|
||||
<text x="196" y="76" font-family="Ubuntu,sans-serif" font-size="8.4" font-weight="600" fill="#3a4a4f">Paket Balaikota</text>
|
||||
</svg>
|
||||
<span class="gl">Google</span>
|
||||
</div>
|
||||
<div class="ap-zone" data-at="3" style="margin-top:11px">
|
||||
<div class="pin">📍</div><div class="zt"><b>1 zone configured</b><span>1 active</span></div>
|
||||
</div>
|
||||
<div class="ap-h6 spread"><span>Zones</span><a>+ Add</a></div>
|
||||
<div class="ap-zone" data-at="3" style="margin-top:0">
|
||||
<div class="pin">📍</div>
|
||||
<div class="zt"><b>Jakarta Town Hall</b><span><span class="js-rad">200</span>m radius</span></div>
|
||||
<span class="ap-badge active">Active</span><span class="x">✕</span>
|
||||
</div>
|
||||
<div class="ap-h6">Recent activity</div>
|
||||
<div class="ap-empty js-noev" style="margin-top:0">No recent events</div>
|
||||
<div class="ap-zone" data-at="6" style="margin-top:0">
|
||||
<div class="pin" style="background:var(--a-coral-bg)">←</div>
|
||||
<div class="zt"><b>Left Jakarta Town Hall</b><span>2 Sep, 15:42</span></div>
|
||||
</div>
|
||||
<div class="ap-zone js-ev" data-at="4" style="margin-top:0">
|
||||
<div class="pin" style="background:var(--a-green-bg)">→</div>
|
||||
<div class="zt"><b>Entered Jakarta Town Hall</b><span>2 Sep, 14:58</span></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ap-home-ind" style="background:transparent"></div>
|
||||
</div></div><button class="reel-btn js-pp phone-pp" type="button" aria-label="Play">▶</button>
|
||||
</div>
|
||||
<p class="reel-cap"></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ================= 8 · IDENTITY ================= -->
|
||||
<div class="panel" data-p="identity">
|
||||
<div class="stage">
|
||||
<div class="phone">
|
||||
<span class="demo-badge"><i></i>Demo</span>
|
||||
<div class="phone-inner"><div class="ap" data-stage="0">
|
||||
<div class="ap-status"><div class="l"><span class="t">14:54</span><span class="dot"></span></div>
|
||||
<div class="r"><svg viewBox="0 0 24 24"><rect x="3" y="14" width="3" height="7"/><rect x="8" y="10" width="3" height="11"/><rect x="13" y="6" width="3" height="15" opacity=".4"/></svg><div class="ap-batt"></div></div></div>
|
||||
<div class="ap-greet"><div class="hi"><div class="hi-l">
|
||||
<svg viewBox="0 0 64 64"><g fill="none" stroke="#e8f4f3" stroke-width="4" stroke-linejoin="round"><path d="M32 6 L56 20 L56 46 L32 60 L8 46 L8 20 Z"/><path d="M32 6 L32 32 M8 20 L32 32 M56 20 L32 32"/></g><circle cx="42" cy="16" r="5" fill="#3BB586"/></svg>
|
||||
<h4>Hi, Jason</h4></div>
|
||||
<svg class="ap-bell" viewBox="0 0 24 24"><path d="M18 15V10a6 6 0 10-12 0v5l-2 3h16zM10 21h4"/></svg></div>
|
||||
<div class="sub">Here's how you're protected today.</div></div>
|
||||
<div class="ap-body">
|
||||
<div class="ap-score">
|
||||
<div class="ap-ring"><svg viewBox="0 0 120 120">
|
||||
<circle cx="60" cy="60" r="52" fill="none" stroke="#2b2733" stroke-width="9"/>
|
||||
<circle cx="60" cy="60" r="52" fill="none" stroke="#82c99a" stroke-width="9" stroke-linecap="round" stroke-dasharray="326.73" stroke-dashoffset="22.87"/></svg>
|
||||
<div class="val"><b>93<i>/100</i></b><span>Safety score</span></div></div>
|
||||
<div class="ap-delta">▲ 12 since last check ›</div>
|
||||
<div class="ap-lastchk">Last check you were at 81.</div>
|
||||
</div>
|
||||
<div class="ap-btn purple">How to improve</div>
|
||||
<div class="ap-card">
|
||||
<div class="ap-cardhead"><h5>Location</h5><span class="ap-badge wait js-locb">Checking…</span></div>
|
||||
<p class="js-locp">Comparing against travel history.</p>
|
||||
</div>
|
||||
<div class="ap-card">
|
||||
<div class="ap-cardhead"><h5>Identity monitoring</h5><span class="ap-badge wait js-idb">Checking…</span></div>
|
||||
<p class="js-idp">Querying breach corpora.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ap-tabbar">
|
||||
<div class="it"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 3l9 8h-3v9h-4v-6h-4v6H6v-9H3z"/></svg><span>Home</span></div>
|
||||
<div class="it"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M17 9V7a5 5 0 00-10 0v2H5v12h14V9zm-8-2a3 3 0 016 0v2H9z"/></svg><span>Protection</span></div>
|
||||
<div class="it on"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2a7 7 0 00-7 7c0 5.3 7 13 7 13s7-7.7 7-13a7 7 0 00-7-7zm0 9.5A2.5 2.5 0 1112 6.5a2.5 2.5 0 010 5z"/></svg><span>Identity</span></div>
|
||||
<div class="it"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 8a4 4 0 100 8 4 4 0 000-8zm9.4 4l-.1 1.3 2 1.6-1.9 3.3-2.4-.8-1.1.8-.3 2.6h-3.8l-.4-2.6-1.1-.8-2.4.8-1.9-3.3 2-1.6L10 12l-.1-1.3-2-1.6 1.9-3.3 2.4.8 1.1-.8L13.7 3h3.8l.4 2.6 1.1.8 2.4-.8 1.9 3.3-2 1.6z"/></svg><span>Settings</span></div>
|
||||
</div>
|
||||
<div class="ap-home-ind"></div>
|
||||
</div></div><button class="reel-btn js-pp phone-pp" type="button" aria-label="Play">▶</button>
|
||||
</div>
|
||||
<p class="reel-cap"></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ================= 9 · SETTINGS ================= -->
|
||||
<div class="panel" data-p="settings">
|
||||
<div class="stage">
|
||||
<div class="phone">
|
||||
<span class="demo-badge"><i></i>Demo</span>
|
||||
<div class="phone-inner"><div class="ap" data-stage="0">
|
||||
<div class="ap-status"><div class="l"><span class="t">14:55</span><span class="dot"></span></div>
|
||||
<div class="r"><svg viewBox="0 0 24 24"><rect x="3" y="14" width="3" height="7"/><rect x="8" y="10" width="3" height="11"/><rect x="13" y="6" width="3" height="15" opacity=".4"/></svg><div class="ap-batt"></div></div></div>
|
||||
<div class="ap-top" style="padding-bottom:4px"><h4 style="font-size:21px">Settings</h4></div>
|
||||
<div class="ap-body">
|
||||
<div class="ap-caps" style="margin-top:6px">PROTECTION</div>
|
||||
<div class="ap-card" style="margin-top:0;padding:6px 14px">
|
||||
<div class="ap-tog">
|
||||
<div class="ic" style="background:#2a2440"><svg viewBox="0 0 24 24" fill="#8b7ef0"><path d="M12 2l8 4v6c0 4.6-3.3 7.8-8 9-4.7-1.2-8-4.4-8-9V6z"/></svg></div>
|
||||
<div class="tx"><b>Safe browsing</b><span>DNS-level phishing protection.</span></div>
|
||||
<div class="ap-sw js-sw1"></div>
|
||||
</div>
|
||||
<div class="ap-tog">
|
||||
<div class="ic" style="background:#3a2a16"><svg viewBox="0 0 24 24" fill="#e0a355"><path d="M5 4h4l2 5-2.5 1.5a11 11 0 005 5L15 13l5 2v4a15 15 0 01-15-15z"/></svg></div>
|
||||
<div class="tx"><b>Scam call warnings</b><span>No scam calls today.</span></div>
|
||||
<div class="ap-sw js-sw2"></div>
|
||||
</div>
|
||||
<div class="ap-tog">
|
||||
<div class="ic" style="background:#16303a"><svg viewBox="0 0 24 24" fill="#7ab8e8"><path d="M6 2h8l4 4v16H6z"/><rect x="9" y="12" width="6" height="6" rx="1" fill="#16303a"/></svg></div>
|
||||
<div class="tx"><b>SIM & carrier</b><span>Phone-state access on – checking for SIM swaps.</span></div>
|
||||
<div class="ap-sw js-sw3"></div>
|
||||
</div>
|
||||
</div>
|
||||
<p style="color:var(--a-tx2);font-size:11.2px;margin-top:11px">Your protection runs out on 31 Oct 2026</p>
|
||||
<div class="ap-caps">RECOVERY EMAIL</div>
|
||||
<div class="ap-card" style="margin-top:0">
|
||||
<p style="font-size:11.2px;margin:0">If this phone is stolen, a notification shown on it won't help. We'll email this address instead when we detect a location or SIM-card change.</p>
|
||||
<div class="ap-input js-email">Recovery email address</div>
|
||||
<div class="ap-btn purple js-send" style="margin:11px 0 2px">Send code</div>
|
||||
</div>
|
||||
<div class="ap-caps" style="opacity:.6">LANGUAGE</div>
|
||||
</div>
|
||||
<div class="ap-body-fade"></div>
|
||||
<div class="ap-tabbar">
|
||||
<div class="it"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 3l9 8h-3v9h-4v-6h-4v6H6v-9H3z"/></svg><span>Home</span></div>
|
||||
<div class="it"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M17 9V7a5 5 0 00-10 0v2H5v12h14V9zm-8-2a3 3 0 016 0v2H9z"/></svg><span>Protection</span></div>
|
||||
<div class="it"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2a7 7 0 00-7 7c0 5.3 7 13 7 13s7-7.7 7-13a7 7 0 00-7-7zm0 9.5A2.5 2.5 0 1112 6.5a2.5 2.5 0 010 5z"/></svg><span>Identity</span></div>
|
||||
<div class="it on"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 8a4 4 0 100 8 4 4 0 000-8zm9.4 4l-.1 1.3 2 1.6-1.9 3.3-2.4-.8-1.1.8-.3 2.6h-3.8l-.4-2.6-1.1-.8-2.4.8-1.9-3.3 2-1.6L10 12l-.1-1.3-2-1.6 1.9-3.3 2.4.8 1.1-.8L13.7 3h3.8l.4 2.6 1.1.8 2.4-.8 1.9 3.3-2 1.6z"/></svg><span>Settings</span></div>
|
||||
</div>
|
||||
<div class="ap-home-ind"></div>
|
||||
</div></div><button class="reel-btn js-pp phone-pp" type="button" aria-label="Play">▶</button>
|
||||
</div>
|
||||
<p class="reel-cap"></p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,57 @@
|
||||
import { useState } from 'react'
|
||||
import './roiCalculator.css'
|
||||
import { INPUTS_KEY } from './calc.js'
|
||||
import RoiLanding, { type Registrant } from './RoiLanding'
|
||||
import RoiToolkit from './RoiToolkit'
|
||||
import { submitLead } from '../../cms/api'
|
||||
|
||||
const REG_KEY = 'bd_roi_registrant'
|
||||
|
||||
function loadRegistrant(): Registrant | null {
|
||||
try {
|
||||
return JSON.parse(localStorage.getItem(REG_KEY) || 'null')
|
||||
} catch {
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
export default function RoiCalculator() {
|
||||
const [registrant, setRegistrant] = useState<Registrant | null>(loadRegistrant)
|
||||
|
||||
async function handleRegister(reg: Registrant) {
|
||||
submitLead({
|
||||
form: 'roi-toolkit-registration',
|
||||
name: `${reg.first} ${reg.last}`.trim(),
|
||||
email: reg.email,
|
||||
company: reg.company,
|
||||
page: '/roi-calculator',
|
||||
message: [
|
||||
`Job title: ${reg.title}`,
|
||||
reg.region && `Region: ${reg.region}`,
|
||||
reg.subscribers && `Active subscribers: ${Number(reg.subscribers).toLocaleString('en-US')}`,
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join('\n'),
|
||||
}).catch(() => {})
|
||||
try {
|
||||
localStorage.setItem(REG_KEY, JSON.stringify(reg))
|
||||
} catch {
|
||||
/* storage unavailable */
|
||||
}
|
||||
setRegistrant(reg)
|
||||
window.scrollTo({ top: 0, behavior: 'smooth' })
|
||||
}
|
||||
|
||||
function handleReset() {
|
||||
try {
|
||||
localStorage.removeItem(REG_KEY)
|
||||
localStorage.removeItem(INPUTS_KEY)
|
||||
} catch {
|
||||
/* ignore */
|
||||
}
|
||||
setRegistrant(null)
|
||||
window.scrollTo({ top: 0 })
|
||||
}
|
||||
|
||||
return <div className="roi-calc">{registrant ? <RoiToolkit registrant={registrant} onReset={handleReset} /> : <RoiLanding onRegister={handleRegister} />}</div>
|
||||
}
|
||||
@@ -0,0 +1,493 @@
|
||||
import { useEffect, useMemo, useState } from 'react'
|
||||
import {
|
||||
calculate,
|
||||
ddosCostFromSlider,
|
||||
fmt,
|
||||
fmtRange,
|
||||
formatForDeck,
|
||||
INPUTS_KEY,
|
||||
loadInputs,
|
||||
REGIONS,
|
||||
regionLabel,
|
||||
} from './calc.js'
|
||||
import { buildPersonalisedDeck, prefetchTemplate, triggerDownload } from './pptxReport.js'
|
||||
import { submitLead } from '../../cms/api'
|
||||
import type { Registrant } from './RoiLanding'
|
||||
|
||||
const Icon = {
|
||||
globe: (
|
||||
<svg viewBox="0 0 24 24">
|
||||
<circle cx="12" cy="12" r="10" />
|
||||
<path d="M2 12h20M12 2a15.3 15.3 0 010 20M12 2a15.3 15.3 0 000 20" />
|
||||
</svg>
|
||||
),
|
||||
phone: (
|
||||
<svg viewBox="0 0 24 24">
|
||||
<path d="M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07A19.5 19.5 0 013.09 10.8a19.79 19.79 0 01-3.07-8.63A2 2 0 012 0h3a2 2 0 012 1.72c.127.96.361 1.903.7 2.81a2 2 0 01-.45 2.11L6.09 7.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0122 14.92z" />
|
||||
</svg>
|
||||
),
|
||||
users: (
|
||||
<svg viewBox="0 0 24 24">
|
||||
<path d="M17 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2" />
|
||||
<circle cx="9" cy="7" r="4" />
|
||||
<path d="M23 21v-2a4 4 0 00-3-3.87M16 3.13a4 4 0 010 7.75" />
|
||||
</svg>
|
||||
),
|
||||
server: (
|
||||
<svg viewBox="0 0 24 24">
|
||||
<rect x="2" y="2" width="20" height="8" rx="2" ry="2" />
|
||||
<rect x="2" y="14" width="20" height="8" rx="2" ry="2" />
|
||||
<line x1="6" y1="6" x2="6.01" y2="6" />
|
||||
<line x1="6" y1="18" x2="6.01" y2="18" />
|
||||
</svg>
|
||||
),
|
||||
shield: (
|
||||
<svg viewBox="0 0 24 24">
|
||||
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" />
|
||||
</svg>
|
||||
),
|
||||
download: (
|
||||
<svg viewBox="0 0 24 24">
|
||||
<path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4" />
|
||||
<polyline points="7 10 12 15 17 10" />
|
||||
<line x1="12" y1="15" x2="12" y2="3" />
|
||||
</svg>
|
||||
),
|
||||
}
|
||||
|
||||
function CardHeader({
|
||||
icon,
|
||||
green,
|
||||
num,
|
||||
title,
|
||||
subtitle,
|
||||
}: {
|
||||
icon: React.ReactNode
|
||||
green?: boolean
|
||||
num: string
|
||||
title: string
|
||||
subtitle: string
|
||||
}) {
|
||||
return (
|
||||
<div className="card-header">
|
||||
<div className={`card-icon${green ? ' green' : ''}`}>{icon}</div>
|
||||
<div>
|
||||
<div className="card-num">{num}</div>
|
||||
<div className="card-title">{title}</div>
|
||||
<div className="card-subtitle">{subtitle}</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
const rangePct = (val: number, min: number, max: number) => `${(((val - min) / (max - min)) * 100).toFixed(1)}%`
|
||||
|
||||
/** Plain-text summary of a visitor's inputs and results, stored as the enquiry's message. */
|
||||
function buildRoiSummary(i: Record<string, any>, r: ReturnType<typeof calculate>) {
|
||||
return [
|
||||
`Active subscribers: ${i.subs ? Number(i.subs).toLocaleString('en-US') : '—'}`,
|
||||
`Region: ${i.region === 'custom' ? `Custom ($${i.customPrice || 0}/GB)` : regionLabel(i.region)}`,
|
||||
`Bandwidth scenario: ${i.scenario}`,
|
||||
`Support calls per 1,000 subs/month: ${i.callsPer1000}`,
|
||||
`Average cost per call: $${i.callCost}`,
|
||||
`Security-related calls: ${i.securityPct}%`,
|
||||
`Monthly ARPU: ${i.arpu ? `$${i.arpu}` : '—'}`,
|
||||
`Annual churn rate: ${i.churn ? `${i.churn}%` : '—'}`,
|
||||
`Annual network infrastructure OpEx: ${i.netOpex ? `$${Number(i.netOpex).toLocaleString('en-US')}` : '—'}`,
|
||||
`DDoS incidents per year: ${i.ddos || 0}`,
|
||||
'',
|
||||
`Total estimated annual savings: ${fmtRange(r.total.lo, r.total.hi) || '—'}`,
|
||||
` Bandwidth savings: ${fmtRange(r.bw.lo, r.bw.hi) || '—'}`,
|
||||
` Support call reduction: ${fmtRange(r.calls.lo, r.calls.hi) || '—'}`,
|
||||
` Churn reduction: ${fmtRange(r.churn.lo, r.churn.hi) || '—'}`,
|
||||
` Network equipment: ${fmtRange(r.equip.lo, r.equip.hi) || '—'}`,
|
||||
` DDoS avoided costs: ${fmtRange(r.ddos.lo, r.ddos.hi) || '—'}`,
|
||||
].join('\n')
|
||||
}
|
||||
|
||||
export default function RoiCalculatorTab({ registrant, active }: { registrant: Registrant; active: boolean }) {
|
||||
const [i, setI] = useState<any>(() => loadInputs(registrant))
|
||||
const [showAssump, setShowAssump] = useState(false)
|
||||
const [report, setReport] = useState<{ state: 'idle' | 'busy' | 'done' | 'error'; msg: string }>({ state: 'idle', msg: '' })
|
||||
|
||||
const update = (patch: Record<string, unknown>) => {
|
||||
setI((s: typeof i) => ({ ...s, ...patch, touched: true }))
|
||||
setReport((s) => (s.state === 'busy' ? s : { state: 'idle', msg: '' }))
|
||||
}
|
||||
const set = (k: string) => (e: React.ChangeEvent<HTMLInputElement | HTMLSelectElement>) => update({ [k]: e.target.value })
|
||||
|
||||
const r = useMemo(() => calculate(i), [i])
|
||||
|
||||
// Remember inputs for this visitor (survives refresh)
|
||||
useEffect(() => {
|
||||
try {
|
||||
localStorage.setItem(INPUTS_KEY, JSON.stringify(i))
|
||||
} catch {
|
||||
/* storage unavailable */
|
||||
}
|
||||
}, [i])
|
||||
|
||||
// Warm the template cache while the user fills in the calculator
|
||||
useEffect(() => {
|
||||
if (active) prefetchTemplate().catch(() => {})
|
||||
}, [active])
|
||||
|
||||
const rows: [string, string, string, string][] = [
|
||||
['bw', 'dot-grey', '① Bandwidth savings', 'Enter subscriber count and region'],
|
||||
['calls', 'dot-green', '② Support call reduction', 'Enter subscriber count and call volume'],
|
||||
['churn', 'dot-teal', '③ Churn reduction', 'Enter ARPU and churn rate'],
|
||||
['equip', 'dot-blue', '④ Network equipment', 'Enter infrastructure OpEx (optional)'],
|
||||
['ddos', 'dot-orange', '⑤ DDoS avoided costs', 'No incidents entered'],
|
||||
]
|
||||
|
||||
async function downloadReport() {
|
||||
if (!r.complete || report.state === 'busy') return
|
||||
setReport({ state: 'busy', msg: 'Building your personalised deck…' })
|
||||
|
||||
const formatted = formatForDeck(i, r, registrant)
|
||||
const company = registrant?.company || 'Your Company'
|
||||
|
||||
submitLead({
|
||||
form: 'roi-toolkit-report',
|
||||
name: `${registrant.first} ${registrant.last}`.trim(),
|
||||
email: registrant.email,
|
||||
company,
|
||||
page: '/roi-calculator',
|
||||
message: buildRoiSummary(i, r),
|
||||
}).catch(() => {})
|
||||
|
||||
try {
|
||||
const blob = await buildPersonalisedDeck(formatted, { company })
|
||||
triggerDownload(blob, `BlackDice_ROI_Report_${company.replace(/[^a-z0-9]+/gi, '_')}.pptx`)
|
||||
setReport({ state: 'done', msg: 'Your personalised report has downloaded. Your figures are on slide 12.' })
|
||||
} catch (err) {
|
||||
console.error(err)
|
||||
setReport({ state: 'error', msg: "Sorry, we couldn't build your report. Please try again in a moment." })
|
||||
}
|
||||
}
|
||||
|
||||
const reportNote = report.msg || (r.complete ? 'Your personalised report is ready to download.' : 'Complete the calculator above to unlock your personalised report.')
|
||||
|
||||
return (
|
||||
<div className="calc-tab-wrap">
|
||||
<div className="calc-tab-header">
|
||||
<h2>Network Protection ROI Calculator</h2>
|
||||
<p>Enter your operator data below. Results update in real time. Once complete, download your personalised report.</p>
|
||||
</div>
|
||||
|
||||
<div className="rank-bar">
|
||||
<div className="rank-bar-inner">
|
||||
<span className="rank-label">Savings by section</span>
|
||||
{['Bandwidth', 'Support calls', 'Churn reduction', 'Network equipment', 'DDoS (optional)'].map((t, n) => (
|
||||
<span key={t} style={{ display: 'contents' }}>
|
||||
{n > 0 && <span className="rank-sep">›</span>}
|
||||
<span className="rank-item">
|
||||
<span className="num">{n + 1}</span> {t}
|
||||
</span>
|
||||
</span>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<main className="main">
|
||||
<div className="input-col">
|
||||
{/* CARD 1 */}
|
||||
<div className="card">
|
||||
<CardHeader icon={Icon.globe} num="Section 1" title="Your network" subtitle="Subscriber base and regional bandwidth pricing" />
|
||||
<div className="field-row">
|
||||
<div className="field-group">
|
||||
<label htmlFor="subs">Active subscribers</label>
|
||||
<input type="number" id="subs" placeholder="e.g. 5000000" min={0} value={i.subs} onChange={set('subs')} />
|
||||
<div className="field-hint">Total active mobile and broadband subscribers</div>
|
||||
</div>
|
||||
<div className="field-group">
|
||||
<label htmlFor="region">Country / region</label>
|
||||
<select id="region" value={i.region} onChange={set('region')}>
|
||||
{REGIONS.map((g: any) => (
|
||||
<optgroup key={g.group} label={g.group}>
|
||||
{g.options.map((o: any) => (
|
||||
<option key={o.value} value={o.value}>
|
||||
{o.label}
|
||||
</option>
|
||||
))}
|
||||
</optgroup>
|
||||
))}
|
||||
<option value="custom">Other: enter price below</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
{i.region === 'custom' && (
|
||||
<div className="field-group">
|
||||
<label htmlFor="custom-price">Custom bandwidth price ($ per GB)</label>
|
||||
<div className="input-wrap has-prefix">
|
||||
<span className="input-prefix">$</span>
|
||||
<input type="number" id="custom-price" placeholder="0.0050" step="0.0001" min={0} value={i.customPrice} onChange={set('customPrice')} />
|
||||
</div>
|
||||
<div className="field-hint">Source: TeleGeography IP transit pricing. Use your actual wholesale price for the most accurate result.</div>
|
||||
</div>
|
||||
)}
|
||||
<div className="field-group">
|
||||
<label>Bandwidth saving scenario</label>
|
||||
<div className="scenario-tabs">
|
||||
{(
|
||||
[
|
||||
['cautious', 'Cautious', 15],
|
||||
['expected', 'Expected', 37],
|
||||
['optimistic', 'Optimistic', 80],
|
||||
] as const
|
||||
).map(([k, t, kb]) => (
|
||||
<button key={k} type="button" className={`scenario-tab${i.scenario === k ? ' active' : ''}`} onClick={() => update({ scenario: k })}>
|
||||
{t}
|
||||
<br />
|
||||
<small style={{ fontWeight: 400, fontSize: 10 }}>{kb} KB / block</small>
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
<div className="field-hint">
|
||||
Based on BlackDice customer data: 8,000 blocks/subscriber/month across adverts, trackers, malware and phishing. Traffic per block varies by
|
||||
mix. Lead with Expected, show Cautious as the proven floor. Source: BlackDice internal methodology, September 2026.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* CARD 2 */}
|
||||
<div className="card highlight">
|
||||
<CardHeader
|
||||
icon={Icon.phone}
|
||||
green
|
||||
num="Section 2"
|
||||
title="Support call reduction"
|
||||
subtitle="Infected and advert-hammered devices drive helpdesk volume"
|
||||
/>
|
||||
<div className="field-row">
|
||||
<div className="field-group">
|
||||
<label htmlFor="calls-per-1000">Monthly support calls per 1,000 subs</label>
|
||||
<input type="number" id="calls-per-1000" placeholder="18" min={0} value={i.callsPer1000} onChange={set('callsPer1000')} />
|
||||
<div className="field-hint">Industry average: 15–25 calls per 1,000 subs/month</div>
|
||||
</div>
|
||||
<div className="field-group">
|
||||
<label htmlFor="call-cost">Average cost per call ($)</label>
|
||||
<div className="input-wrap has-prefix">
|
||||
<span className="input-prefix">$</span>
|
||||
<input type="number" id="call-cost" placeholder="8" min={0} value={i.callCost} onChange={set('callCost')} />
|
||||
</div>
|
||||
<div className="field-hint">Telecoms average: $5–$15 per call</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="field-group">
|
||||
<label htmlFor="security-pct">% of calls related to security, malware or connectivity issues</label>
|
||||
<div className="slider-val">{i.securityPct}%</div>
|
||||
<input
|
||||
type="range"
|
||||
id="security-pct"
|
||||
min={5}
|
||||
max={60}
|
||||
step={5}
|
||||
value={i.securityPct}
|
||||
onChange={set('securityPct')}
|
||||
style={{ ['--pct' as any]: rangePct(i.securityPct, 5, 60) }}
|
||||
/>
|
||||
<div className="slider-labels">
|
||||
<span>5%</span>
|
||||
<span>60%</span>
|
||||
</div>
|
||||
<div className="field-hint">
|
||||
BlackDice blocks malware, phishing and advert-hammering: the main sources of unexplained slow device complaints and failed connection
|
||||
calls. Adjust to reflect your own support call categorisation.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* CARD 3 */}
|
||||
<div className="card">
|
||||
<CardHeader icon={Icon.users} num="Section 3" title="Subscriber value and churn" subtitle="Quantify the revenue impact of retaining more customers" />
|
||||
<div className="field-row">
|
||||
<div className="field-group">
|
||||
<label htmlFor="arpu">Monthly ARPU ($)</label>
|
||||
<div className="input-wrap has-prefix">
|
||||
<span className="input-prefix">$</span>
|
||||
<input type="number" id="arpu" placeholder="e.g. 12" min={0} value={i.arpu} onChange={set('arpu')} />
|
||||
</div>
|
||||
<div className="field-hint">Average revenue per user per month</div>
|
||||
</div>
|
||||
<div className="field-group">
|
||||
<label htmlFor="churn">Current annual churn rate (%)</label>
|
||||
<div className="input-wrap has-suffix">
|
||||
<input type="number" id="churn" placeholder="e.g. 18" min={0} max={100} value={i.churn} onChange={set('churn')} />
|
||||
<span className="input-suffix">%</span>
|
||||
</div>
|
||||
<div className="field-hint">Annual subscriber churn as a percentage</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="field-hint" style={{ marginTop: -8, padding: '10px 12px', background: '#f0f8f4', borderRadius: 8, border: '1px solid rgba(53,184,136,0.2)' }}>
|
||||
<strong style={{ color: 'var(--roi-teal)' }}>How this is calculated:</strong> Network protection is associated with a 0.3–0.6% reduction in
|
||||
annual churn (customers are less likely to blame their operator for bad experiences caused by malware, fraud calls and ad-hammered devices).
|
||||
Each retained subscriber is worth ARPU × 12 months.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* CARD 4 */}
|
||||
<div className="card">
|
||||
<CardHeader icon={Icon.server} num="Section 4" title="Network infrastructure" subtitle="Optional: junk traffic elimination reduces equipment load" />
|
||||
<div className="opt-note">
|
||||
Malware and tracker traffic consists of millions of tiny connections rather than large downloads. The stateful connection-tracking equipment
|
||||
that handles this is expensive to run and scale. Reducing junk connections typically lowers utilisation by 2–4%, deferring capacity upgrades.
|
||||
</div>
|
||||
<div className="field-group">
|
||||
<label htmlFor="net-opex">Annual network infrastructure / equipment OpEx ($)</label>
|
||||
<div className="input-wrap has-prefix">
|
||||
<span className="input-prefix">$</span>
|
||||
<input type="number" id="net-opex" placeholder="Optional" min={0} value={i.netOpex} onChange={set('netOpex')} />
|
||||
</div>
|
||||
<div className="field-hint">Leave blank to exclude this category from your total</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* CARD 5 */}
|
||||
<div className="card">
|
||||
<CardHeader icon={Icon.shield} num="Section 5" title="DDoS avoided costs" subtitle="Optional: enter 0 if unknown" />
|
||||
<div className="field-row">
|
||||
<div className="field-group">
|
||||
<label htmlFor="ddos">DDoS incidents per year</label>
|
||||
<input type="number" id="ddos" placeholder="0" min={0} value={i.ddos} onChange={set('ddos')} />
|
||||
</div>
|
||||
<div className="field-group">
|
||||
<label htmlFor="ddos-slider">Cost assumption</label>
|
||||
<div className="slider-val">${Math.round(ddosCostFromSlider(i.ddosSlider) / 1000)}K per incident</div>
|
||||
<input
|
||||
type="range"
|
||||
id="ddos-slider"
|
||||
min={0}
|
||||
max={100}
|
||||
step={1}
|
||||
value={i.ddosSlider}
|
||||
onChange={set('ddosSlider')}
|
||||
style={{ marginTop: 8, ['--pct' as any]: `${i.ddosSlider}%` }}
|
||||
/>
|
||||
<div className="slider-labels">
|
||||
<span>$408K</span>
|
||||
<span>$1.2M</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="field-hint">Industry range $408K–$1.2M per incident (Forrester / Ponemon Institute). Results show the full low–high range regardless of this setting.</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* RESULTS */}
|
||||
<div className="results-col">
|
||||
<div className="results-card">
|
||||
<div className="results-header">
|
||||
<div className="results-header-hex" style={{ backgroundImage: `url(/roi/results-hex.png)` }} />
|
||||
<h2>Estimated annual savings</h2>
|
||||
<p>Updates in real time as you enter your figures</p>
|
||||
</div>
|
||||
<div className="results-body">
|
||||
<div className="total-block">
|
||||
<div className="total-label">Total potential savings</div>
|
||||
<div className="total-amount" aria-live="polite">
|
||||
{r.complete ? (
|
||||
<>
|
||||
<span>{fmt(r.total.lo)}</span>
|
||||
<span className="total-sep"> to </span>
|
||||
<span>{fmt(r.total.hi)}</span>
|
||||
</>
|
||||
) : (
|
||||
<span>—</span>
|
||||
)}
|
||||
</div>
|
||||
<div className="total-sub">{r.complete ? 'estimated annual savings range' : 'Enter your network details above'}</div>
|
||||
</div>
|
||||
|
||||
<div className="breakdown">
|
||||
{rows.map(([k, dot, name, empty]) => {
|
||||
const txt = fmtRange((r as any)[k].lo, (r as any)[k].hi)
|
||||
return (
|
||||
<div className="brow" key={k}>
|
||||
<span className={`brow-dot ${dot}`} />
|
||||
<div className="brow-info">
|
||||
<div className="brow-name">{name}</div>
|
||||
<div className="brow-val">{txt ? <span>{txt}</span> : <span className="muted">{empty}</span>}</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
})}
|
||||
</div>
|
||||
|
||||
<div className="assump-section">
|
||||
<button type="button" className={`assump-toggle${showAssump ? ' open' : ''}`} onClick={() => setShowAssump((v) => !v)}>
|
||||
<svg viewBox="0 0 24 24" strokeWidth={2}>
|
||||
<polyline points="6 9 12 15 18 9" />
|
||||
</svg>
|
||||
View sources and methodology
|
||||
</button>
|
||||
<div className={`assump-list${showAssump ? ' vis' : ''}`}>
|
||||
<strong style={{ color: 'var(--roi-lgrey)' }}>Bandwidth</strong>
|
||||
<br />
|
||||
8,000 blocks/subscriber/month (BlackDice customer data)
|
||||
<br />
|
||||
Traffic per block: 15 KB (cautious) / 37 KB (expected) / 80 KB (optimistic)
|
||||
<br />
|
||||
Regional pricing: TeleGeography IP transit pricing, Q2 2026
|
||||
<br />
|
||||
Busy-hour factor: 2.5× daily average (standard mobile)
|
||||
<br />
|
||||
<br />
|
||||
<strong style={{ color: 'var(--roi-lgrey)' }}>Support calls</strong>
|
||||
<br />
|
||||
Reduction rate: 60–70% of security-related calls eliminated
|
||||
<br />
|
||||
Industry call volume: 15–25 calls per 1,000 subs/month
|
||||
<br />
|
||||
Average call cost: $5–$15 (telecoms industry)
|
||||
<br />
|
||||
<br />
|
||||
<strong style={{ color: 'var(--roi-lgrey)' }}>Churn</strong>
|
||||
<br />
|
||||
Protection-linked churn reduction: 0.3–0.6% annually
|
||||
<br />
|
||||
McKinsey B2B Telco Survey 2025; GSMA Intelligence 2024
|
||||
<br />
|
||||
<br />
|
||||
<strong style={{ color: 'var(--roi-lgrey)' }}>Network equipment</strong>
|
||||
<br />
|
||||
Junk traffic reduction lowers equipment utilisation by 2–4%
|
||||
<br />
|
||||
<br />
|
||||
<strong style={{ color: 'var(--roi-lgrey)' }}>DDoS</strong>
|
||||
<br />
|
||||
$408K–$1.2M per incident (Forrester / Ponemon Institute)
|
||||
<br />
|
||||
<br />
|
||||
<em>All figures are indicative. Actual savings will vary by network architecture, traffic mix, and existing controls.</em>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<div className="disclaimer" style={{ marginTop: 24 }}>
|
||||
<strong>Important:</strong> This calculator provides indicative estimates based on BlackDice internal customer data, TeleGeography IP transit
|
||||
pricing (Q2 2026), the Communications Fraud Control Association, Forrester Research, Ponemon Institute, McKinsey B2B Telco Survey 2025, and GSMA
|
||||
Intelligence. Bandwidth savings represent capacity the operator never has to carry, not a guaranteed reduction in existing contracted wholesale
|
||||
costs. Figures should be used as a starting point for commercial conversations, not as a guarantee of savings. Operator-specific results will
|
||||
depend on network architecture, traffic mix, subscriber behaviour, and existing security controls.
|
||||
</div>
|
||||
|
||||
<div className="lp-report-bar">
|
||||
<div className="lp-report-bar-text">
|
||||
<h4>Download your personalised ROI report</h4>
|
||||
<p>A branded PowerPoint deck with your operator's estimated annual saving across all five categories, ready to share with your finance or commercial team.</p>
|
||||
<p className={`report-note${report.state === 'error' ? ' report-error' : ''}`} aria-live="polite">
|
||||
{reportNote}
|
||||
</p>
|
||||
</div>
|
||||
<button className={`report-dl-btn${report.state === 'busy' ? ' busy' : ''}`} onClick={downloadReport} disabled={!r.complete || report.state === 'busy'}>
|
||||
{Icon.download}
|
||||
{report.state === 'busy' ? 'Preparing…' : 'Download My ROI Report'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
import { useEffect, useRef, useState } from 'react'
|
||||
import { calculate, formatForDeck, loadInputs } from './calc.js'
|
||||
import { buildPersonalisedDeck, getExampleDeck, prefetchTemplate, triggerDownload } from './pptxReport.js'
|
||||
import type { Registrant } from './RoiLanding'
|
||||
|
||||
const SLIDE_COUNT = 15
|
||||
const slides = Array.from({ length: SLIDE_COUNT }, (_, i) => `/roi/slides/slide-${String(i + 1).padStart(2, '0')}.jpg`)
|
||||
|
||||
export default function RoiDeckViewer({ active, registrant }: { active: boolean; registrant: Registrant }) {
|
||||
const [cur, setCur] = useState(0)
|
||||
const [busy, setBusy] = useState(false)
|
||||
const thumbsRef = useRef<HTMLDivElement>(null)
|
||||
const go = (n: number) => setCur(Math.max(0, Math.min(SLIDE_COUNT - 1, n)))
|
||||
|
||||
async function downloadDeck() {
|
||||
if (busy) return
|
||||
setBusy(true)
|
||||
try {
|
||||
const i: any = loadInputs(registrant)
|
||||
const r = calculate(i)
|
||||
const values = formatForDeck(i, r, registrant)
|
||||
const meta = { company: registrant?.company || 'Your Company' }
|
||||
// Slide 3 shows their device count (from the form) straight away. Slide 12 keeps the
|
||||
// example figures until they've entered their own numbers in the calculator.
|
||||
const blob = i.touched && r.complete ? await buildPersonalisedDeck(values, meta) : values.subs ? await buildPersonalisedDeck(values, meta, { roi: false }) : await getExampleDeck()
|
||||
triggerDownload(blob, 'BlackDice_Turn_Network_Protection_Strategy_Deck.pptx')
|
||||
} catch (err) {
|
||||
console.error(err)
|
||||
} finally {
|
||||
setBusy(false)
|
||||
}
|
||||
}
|
||||
|
||||
// Warm the template cache while the deck is being viewed
|
||||
useEffect(() => {
|
||||
if (active) prefetchTemplate().catch(() => {})
|
||||
}, [active])
|
||||
|
||||
useEffect(() => {
|
||||
if (!active) return
|
||||
const onKey = (e: KeyboardEvent) => {
|
||||
const tag = (e.target as HTMLElement)?.tagName
|
||||
if (['INPUT', 'SELECT', 'TEXTAREA'].includes(tag)) return
|
||||
if (e.key === 'ArrowRight' || e.key === 'ArrowDown') {
|
||||
e.preventDefault()
|
||||
setCur((c) => Math.min(SLIDE_COUNT - 1, c + 1))
|
||||
}
|
||||
if (e.key === 'ArrowLeft' || e.key === 'ArrowUp') {
|
||||
e.preventDefault()
|
||||
setCur((c) => Math.max(0, c - 1))
|
||||
}
|
||||
}
|
||||
document.addEventListener('keydown', onKey)
|
||||
return () => document.removeEventListener('keydown', onKey)
|
||||
}, [active])
|
||||
|
||||
useEffect(() => {
|
||||
const thumb = thumbsRef.current?.children[cur] as HTMLElement | undefined
|
||||
thumb?.scrollIntoView({ block: 'nearest', inline: 'center', behavior: 'smooth' })
|
||||
}, [cur])
|
||||
|
||||
// Preload the next slide for snappy navigation
|
||||
useEffect(() => {
|
||||
if (cur + 1 < SLIDE_COUNT) new Image().src = slides[cur + 1]
|
||||
}, [cur])
|
||||
|
||||
return (
|
||||
<div className="deck-viewer-wrap">
|
||||
<div className="deck-viewer-top">
|
||||
<div>
|
||||
<div className="deck-viewer-title">Turn Network Protection into Competitive Advantage</div>
|
||||
<div className="deck-viewer-sub">15 slides · Use arrow keys or click to navigate · Click thumbnails to jump to any slide</div>
|
||||
</div>
|
||||
<button type="button" className="deck-dl-btn" onClick={downloadDeck} disabled={busy}>
|
||||
<svg viewBox="0 0 24 24">
|
||||
<path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4" />
|
||||
<polyline points="7 10 12 15 17 10" />
|
||||
<line x1="12" y1="15" x2="12" y2="3" />
|
||||
</svg>
|
||||
{busy ? 'Preparing…' : 'Download Deck (PPTX)'}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div className="slide-viewer">
|
||||
<div className="slide-display">
|
||||
<button className="slide-nav-btn prev" onClick={() => go(cur - 1)} disabled={cur === 0} aria-label="Previous slide">
|
||||
‹
|
||||
</button>
|
||||
<img src={slides[cur]} alt={`Slide ${cur + 1}`} />
|
||||
<button className="slide-nav-btn next" onClick={() => go(cur + 1)} disabled={cur === SLIDE_COUNT - 1} aria-label="Next slide">
|
||||
›
|
||||
</button>
|
||||
</div>
|
||||
<div className="slide-controls">
|
||||
<div className="slide-counter">
|
||||
{cur + 1} / {SLIDE_COUNT}
|
||||
</div>
|
||||
<div className="slide-thumbs" ref={thumbsRef}>
|
||||
{slides.map((src, i) => (
|
||||
<button key={src} className={`slide-thumb-btn${i === cur ? ' active' : ''}`} onClick={() => go(i)} title={`Slide ${i + 1}`}>
|
||||
<img src={src} alt={`Slide ${i + 1}`} loading="lazy" />
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,258 @@
|
||||
import { useState } from 'react'
|
||||
import { fmtCount } from './calc.js'
|
||||
|
||||
const REGIONS = ['United Kingdom', 'Western Europe', 'North America', 'Latin America', 'Sub-Saharan Africa', 'Asia Pacific', 'Middle East', 'Other']
|
||||
// "The devices on your network" dropdown. `deck` is how the choice appears as the big
|
||||
// number on slide 3; the label is what's recorded as the operator's subscriber base.
|
||||
const DEVICE_OPTIONS = [
|
||||
{ value: 'Under 500k', deck: '<500k' },
|
||||
{ value: '500k to 2M', deck: '500k–2m' },
|
||||
{ value: '2M to 10M', deck: '2m–10m' },
|
||||
{ value: '10M to 50M', deck: '10m–50m' },
|
||||
{ value: '50M+', deck: '50m+' },
|
||||
]
|
||||
const EXACT = 'exact'
|
||||
|
||||
// Common free-mail domains — the form asks for a *business* email.
|
||||
const BLOCK_FREE_MAIL = true
|
||||
const FREE_MAIL = /@(gmail|googlemail|yahoo|hotmail|outlook|live|aol|icloud|me|proton|protonmail|gmx|mail|yandex)\./i
|
||||
|
||||
export type Registrant = {
|
||||
first: string
|
||||
last: string
|
||||
company: string
|
||||
title: string
|
||||
email: string
|
||||
region: string
|
||||
subscribers: string
|
||||
deviceLabel: string
|
||||
}
|
||||
|
||||
function WhatYouGet() {
|
||||
return (
|
||||
<div className="lp-what">
|
||||
<div className="lp-what-inner">
|
||||
<div className="lp-section-label">Inside the toolkit</div>
|
||||
<div className="lp-section-title">Two tools. One clear commercial case.</div>
|
||||
<p className="lp-section-sub">
|
||||
Built for operators evaluating network-level malicious traffic blocking, from initial business case to personalised ROI.
|
||||
</p>
|
||||
<div className="lp-assets">
|
||||
<div className="lp-asset-card">
|
||||
<div className="lp-asset-preview">
|
||||
<img className="lp-slide-thumb" src="/roi/slides/slide-01.jpg" alt="Strategy Deck" />
|
||||
</div>
|
||||
<div className="lp-asset-info">
|
||||
<div className="lp-asset-tag">Strategy Deck · 15 Slides</div>
|
||||
<h3>Turn network protection into competitive advantage</h3>
|
||||
<p>
|
||||
A concise, evidence-led deck that frames the commercial cost of malicious traffic and makes the case for operator-level
|
||||
blocking, ready to share internally or use in a board presentation.
|
||||
</p>
|
||||
<ul className="lp-asset-bullets">
|
||||
<li>Global fraud context with GSMA and McKinsey data</li>
|
||||
<li>Five commercial savings categories explained</li>
|
||||
<li>Discover three BlackDice protection deployment paths</li>
|
||||
<li>ROI model and commercial summary</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="lp-asset-card">
|
||||
<div className="lp-asset-preview-calc">
|
||||
<div className="calc-mock">
|
||||
<div className="calc-mock-header">① Your network</div>
|
||||
<div className="calc-mock-row">
|
||||
<div className="calc-mock-field">Active subscribers</div>
|
||||
<div className="calc-mock-field">Region / pricing</div>
|
||||
</div>
|
||||
<div className="calc-mock-header" style={{ marginTop: 8 }}>
|
||||
② Support calls
|
||||
</div>
|
||||
<div className="calc-mock-row">
|
||||
<div className="calc-mock-field">Calls per 1,000/mo</div>
|
||||
<div className="calc-mock-field">Cost per call</div>
|
||||
</div>
|
||||
<div className="calc-mock-result">
|
||||
<div className="calc-mock-result-label">Estimated annual saving</div>
|
||||
<div className="calc-mock-result-val">Calculate your numbers</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="lp-asset-info">
|
||||
<div className="lp-asset-tag">Interactive Calculator</div>
|
||||
<h3>Network protection ROI calculator</h3>
|
||||
<p>
|
||||
Enter your operator data: subscriber base, support call volume, ARPU and churn rate, and get a personalised annual saving
|
||||
across five categories with a downloadable results report.
|
||||
</p>
|
||||
<ul className="lp-asset-bullets">
|
||||
<li>Bandwidth savings by region (TeleGeography data)</li>
|
||||
<li>Support call reduction based on your actual call cost</li>
|
||||
<li>Churn reduction and ARPU protection</li>
|
||||
<li>DDoS avoided costs and equipment savings</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
const EMPTY = { first: '', last: '', company: '', title: '', email: '', region: '', devices: '', subscribers: '', website: '' }
|
||||
|
||||
function RegistrationForm({ onRegister }: { onRegister: (reg: Registrant) => void | Promise<void> }) {
|
||||
const [f, setF] = useState(EMPTY)
|
||||
const [error, setError] = useState('')
|
||||
const [busy, setBusy] = useState(false)
|
||||
const set = (k: keyof typeof EMPTY) => (e: React.ChangeEvent<HTMLInputElement | HTMLSelectElement>) => setF((s) => ({ ...s, [k]: e.target.value }))
|
||||
|
||||
async function handleSubmit(e: React.FormEvent) {
|
||||
e.preventDefault()
|
||||
const t = Object.fromEntries(Object.entries(f).map(([k, v]) => [k, v.trim()])) as typeof EMPTY
|
||||
|
||||
if (!t.first || !t.last || !t.company || !t.title || !t.email) {
|
||||
return setError('Please complete all required fields before continuing.')
|
||||
}
|
||||
if (!/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(t.email)) {
|
||||
return setError('Please enter a valid business email address.')
|
||||
}
|
||||
if (BLOCK_FREE_MAIL && FREE_MAIL.test(t.email)) {
|
||||
return setError('Please use your business email address rather than a personal one.')
|
||||
}
|
||||
// Device count: a band from the dropdown, or an exact number
|
||||
let exact = 0
|
||||
if (t.devices === EXACT) {
|
||||
exact = Math.round(parseFloat(t.subscribers.replace(/[,\s]/g, '')) || 0)
|
||||
if (exact <= 0) return setError('Please enter the number of devices on your network, e.g. 5,000,000.')
|
||||
}
|
||||
const band = DEVICE_OPTIONS.find((o) => o.value === t.devices)
|
||||
setError('')
|
||||
|
||||
// Honeypot: bots fill the hidden "website" field. Silently drop the submission.
|
||||
if (t.website) return
|
||||
const { website: _hp, devices: _d, ...lead } = t
|
||||
setBusy(true)
|
||||
await onRegister({
|
||||
...lead,
|
||||
subscribers: exact ? String(exact) : '', // exact count (pre-fills the calculator)
|
||||
deviceLabel: band ? band.deck : fmtCount(exact), // big number on slide 3
|
||||
})
|
||||
setBusy(false)
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="lp-reg" id="register">
|
||||
<div className="lp-reg-inner">
|
||||
<div className="lp-reg-box">
|
||||
<div className="lp-reg-title">Get free access to the toolkit</div>
|
||||
<p className="lp-reg-sub">Complete the form below to view and download the strategy deck and unlock the personalised ROI calculator.</p>
|
||||
{error && (
|
||||
<div id="form-error" role="alert" style={{ display: 'block' }}>
|
||||
{error}
|
||||
</div>
|
||||
)}
|
||||
<form onSubmit={handleSubmit} noValidate>
|
||||
<div className="lp-form-grid">
|
||||
<div className="lp-field">
|
||||
<label htmlFor="f-first">First name *</label>
|
||||
<input type="text" id="f-first" autoComplete="given-name" placeholder="Jane" value={f.first} onChange={set('first')} required />
|
||||
</div>
|
||||
<div className="lp-field">
|
||||
<label htmlFor="f-last">Last name *</label>
|
||||
<input type="text" id="f-last" autoComplete="family-name" placeholder="Smith" value={f.last} onChange={set('last')} required />
|
||||
</div>
|
||||
<div className="lp-field">
|
||||
<label htmlFor="f-company">Company *</label>
|
||||
<input
|
||||
type="text"
|
||||
id="f-company"
|
||||
autoComplete="organization"
|
||||
placeholder="Your operator name"
|
||||
value={f.company}
|
||||
onChange={set('company')}
|
||||
required
|
||||
/>
|
||||
</div>
|
||||
<div className="lp-field">
|
||||
<label htmlFor="f-title">Job title *</label>
|
||||
<input
|
||||
type="text"
|
||||
id="f-title"
|
||||
autoComplete="organization-title"
|
||||
placeholder="e.g. CTO, Director Network"
|
||||
value={f.title}
|
||||
onChange={set('title')}
|
||||
required
|
||||
/>
|
||||
</div>
|
||||
<div className="lp-field">
|
||||
<label htmlFor="f-email">Business email *</label>
|
||||
<input type="email" id="f-email" autoComplete="email" placeholder="jane@operator.com" value={f.email} onChange={set('email')} required />
|
||||
</div>
|
||||
<div className="lp-field">
|
||||
<label htmlFor="f-region">Region</label>
|
||||
<select id="f-region" value={f.region} onChange={set('region')}>
|
||||
<option value="">Select region</option>
|
||||
{REGIONS.map((r) => (
|
||||
<option key={r}>{r}</option>
|
||||
))}
|
||||
</select>
|
||||
</div>
|
||||
<div className="lp-field lp-form-full">
|
||||
<label htmlFor="f-devices">The devices on your network</label>
|
||||
<select id="f-devices" value={f.devices} onChange={set('devices')}>
|
||||
<option value="">Active subscribers (optional)</option>
|
||||
{DEVICE_OPTIONS.map((o) => (
|
||||
<option key={o.value} value={o.value}>
|
||||
{o.value}
|
||||
</option>
|
||||
))}
|
||||
<option value={EXACT}>Enter exact number…</option>
|
||||
</select>
|
||||
{f.devices === EXACT && (
|
||||
<input
|
||||
type="text"
|
||||
inputMode="numeric"
|
||||
id="f-subscribers"
|
||||
aria-label="Exact number of active subscribers"
|
||||
placeholder="e.g. 5,000,000"
|
||||
value={f.subscribers}
|
||||
onChange={set('subscribers')}
|
||||
autoFocus
|
||||
/>
|
||||
)}
|
||||
<span className="lp-field-hint">Shown on slide 3 of your strategy deck. An exact number is also pre-filled in the ROI calculator.</span>
|
||||
</div>
|
||||
{/* honeypot — hidden from humans */}
|
||||
<div className="lp-hp" aria-hidden="true">
|
||||
<label htmlFor="f-website">Website</label>
|
||||
<input type="text" id="f-website" tabIndex={-1} autoComplete="off" value={f.website} onChange={set('website')} />
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" className="lp-submit" disabled={busy}>
|
||||
{busy ? 'Unlocking your toolkit…' : 'Get Access to the Toolkit'}
|
||||
</button>
|
||||
<p className="lp-privacy">
|
||||
By submitting this form you agree to BlackDice's{' '}
|
||||
<a href="/privacy-policy" target="_blank" rel="noreferrer">
|
||||
Privacy Policy
|
||||
</a>
|
||||
. We will not share your details with third parties.
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default function RoiLanding({ onRegister }: { onRegister: (reg: Registrant) => void | Promise<void> }) {
|
||||
return (
|
||||
<div>
|
||||
<WhatYouGet />
|
||||
<RegistrationForm onRegister={onRegister} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
import { useState } from 'react'
|
||||
import RoiDeckViewer from './RoiDeckViewer'
|
||||
import RoiCalculatorTab from './RoiCalculatorTab'
|
||||
import type { Registrant } from './RoiLanding'
|
||||
|
||||
export default function RoiToolkit({ registrant, onReset }: { registrant: Registrant; onReset: () => void }) {
|
||||
const [tab, setTab] = useState<'deck' | 'calc'>('deck')
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div className="access-welcome">
|
||||
<div className="access-welcome-inner">
|
||||
<div className="access-welcome-icon">
|
||||
<svg viewBox="0 0 24 24">
|
||||
<polyline points="20 6 9 17 4 12" />
|
||||
</svg>
|
||||
</div>
|
||||
<div className="access-welcome-text">
|
||||
<h2>Welcome {registrant.first}. You now have full access to the operator ROI toolkit.</h2>
|
||||
<p>
|
||||
Use the tabs below to view the strategy deck online or calculate your personalised ROI.
|
||||
<button type="button" className="welcome-reset" onClick={onReset}>
|
||||
Not {registrant.first}?
|
||||
</button>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="roi-tabs-bg">
|
||||
<div className="lp-tabs" role="tablist">
|
||||
<button role="tab" aria-selected={tab === 'deck'} className={`lp-tab${tab === 'deck' ? ' active' : ''}`} onClick={() => setTab('deck')}>
|
||||
<svg viewBox="0 0 24 24">
|
||||
<rect x="2" y="3" width="20" height="14" rx="2" />
|
||||
<line x1="8" y1="21" x2="16" y2="21" />
|
||||
<line x1="12" y1="17" x2="12" y2="21" />
|
||||
</svg>
|
||||
Strategy Deck
|
||||
</button>
|
||||
<button role="tab" aria-selected={tab === 'calc'} className={`lp-tab${tab === 'calc' ? ' active' : ''}`} onClick={() => setTab('calc')}>
|
||||
<svg viewBox="0 0 24 24">
|
||||
<rect x="4" y="2" width="16" height="20" rx="2" />
|
||||
<line x1="8" y1="6" x2="16" y2="6" />
|
||||
<line x1="8" y1="10" x2="16" y2="10" />
|
||||
<line x1="8" y1="14" x2="12" y2="14" />
|
||||
</svg>
|
||||
ROI Calculator
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Both tabs stay mounted so calculator inputs survive tab switches */}
|
||||
<div className={`lp-tab-content roi-tabs-bg${tab === 'deck' ? ' active' : ''}`}>
|
||||
<RoiDeckViewer active={tab === 'deck'} registrant={registrant} />
|
||||
</div>
|
||||
<div className={`lp-tab-content roi-tabs-bg${tab === 'calc' ? ' active' : ''}`}>
|
||||
<RoiCalculatorTab registrant={registrant} active={tab === 'calc'} />
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,203 @@
|
||||
// ROI calculation — ported from the BlackDice Operator ROI Toolkit so figures match exactly.
|
||||
|
||||
export const BW_KB = { cautious: 15, expected: 37, optimistic: 80 };
|
||||
export const BLOCKS_PER_SUB_MONTH = 8000;
|
||||
export const DDOS_LOW = 408000;
|
||||
export const DDOS_HIGH = 1200000;
|
||||
|
||||
export const REGIONS = [
|
||||
{ group: 'Africa', options: [{ value: '0.0095', label: 'South Africa (Johannesburg): $0.0095/GB' }] },
|
||||
{
|
||||
group: 'Asia Pacific',
|
||||
options: [
|
||||
{ value: '0.0139', label: 'Philippines (Manila): $0.0139/GB' },
|
||||
{ value: '0.0093', label: 'Indonesia (Jakarta): $0.0093/GB' },
|
||||
{ value: '0.0060', label: 'India (Mumbai): $0.0060/GB' },
|
||||
{ value: '0.0051', label: 'South Korea (Seoul): $0.0051/GB' },
|
||||
{ value: '0.0026', label: 'Taiwan (Taipei): $0.0026/GB' },
|
||||
{ value: '0.0016', label: 'Singapore: $0.0016/GB' },
|
||||
],
|
||||
},
|
||||
{
|
||||
group: 'Europe',
|
||||
options: [
|
||||
{ value: '0.0007', label: 'Netherlands (Amsterdam): $0.0007/GB' },
|
||||
{ value: '0.0010', label: 'Spain (Madrid): $0.0010/GB' },
|
||||
],
|
||||
},
|
||||
{
|
||||
group: 'Latin America',
|
||||
options: [
|
||||
{ value: '0.0031', label: 'Brazil (São Paulo): $0.0031/GB' },
|
||||
{ value: '0.0024', label: 'Mexico (Mexico City): $0.0024/GB' },
|
||||
{ value: '0.0035', label: 'Chile (Santiago): $0.0035/GB' },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
export function regionLabel(value) {
|
||||
if (value === 'custom') return 'Custom price';
|
||||
for (const g of REGIONS) for (const o of g.options) if (o.value === value) return o.label.split(':')[0];
|
||||
return '';
|
||||
}
|
||||
|
||||
export const DEFAULT_INPUTS = {
|
||||
subs: '',
|
||||
region: '0.0093',
|
||||
customPrice: '',
|
||||
scenario: 'expected',
|
||||
callsPer1000: '18',
|
||||
callCost: '8',
|
||||
securityPct: 25,
|
||||
arpu: '',
|
||||
churn: '',
|
||||
netOpex: '',
|
||||
ddos: '0',
|
||||
ddosSlider: 50,
|
||||
touched: false,
|
||||
};
|
||||
|
||||
const num = (x) => parseFloat(x) || 0;
|
||||
|
||||
export function ddosCostFromSlider(pos) {
|
||||
return DDOS_LOW + (pos / 100) * (DDOS_HIGH - DDOS_LOW);
|
||||
}
|
||||
|
||||
export function calculate(i) {
|
||||
const subs = num(i.subs);
|
||||
const gbPrice = i.region === 'custom' ? num(i.customPrice) : parseFloat(i.region);
|
||||
const callsPer1k = num(i.callsPer1000) || 18;
|
||||
const callCost = num(i.callCost) || 8;
|
||||
const secPct = num(i.securityPct) / 100 || 0.25;
|
||||
const arpu = num(i.arpu);
|
||||
const netOpex = num(i.netOpex);
|
||||
const ddosInc = num(i.ddos);
|
||||
|
||||
// Support calls
|
||||
let callsLo = 0, callsHi = 0;
|
||||
if (subs > 0) {
|
||||
const secCalls = (subs / 1000) * callsPer1k * secPct;
|
||||
callsLo = secCalls * 0.6 * 12 * callCost;
|
||||
callsHi = secCalls * 0.7 * 12 * callCost;
|
||||
}
|
||||
|
||||
// Churn
|
||||
let churnLo = 0, churnHi = 0;
|
||||
if (subs > 0 && arpu > 0) {
|
||||
churnLo = subs * 0.003 * arpu * 12;
|
||||
churnHi = subs * 0.006 * arpu * 12;
|
||||
}
|
||||
|
||||
// Network equipment
|
||||
let equipLo = 0, equipHi = 0;
|
||||
if (netOpex > 0) {
|
||||
equipLo = netOpex * 0.02;
|
||||
equipHi = netOpex * 0.04;
|
||||
}
|
||||
|
||||
// Bandwidth (low = cautious, high = optimistic — same as original page)
|
||||
let bwLo = 0, bwHi = 0;
|
||||
if (subs > 0 && gbPrice > 0) {
|
||||
bwLo = subs * ((BLOCKS_PER_SUB_MONTH * 12 * BW_KB.cautious) / 1e6) * gbPrice;
|
||||
bwHi = subs * ((BLOCKS_PER_SUB_MONTH * 12 * BW_KB.optimistic) / 1e6) * gbPrice;
|
||||
}
|
||||
|
||||
// DDoS
|
||||
let ddosLo = 0, ddosHi = 0;
|
||||
if (ddosInc > 0) {
|
||||
ddosLo = ddosInc * DDOS_LOW;
|
||||
ddosHi = ddosInc * DDOS_HIGH;
|
||||
}
|
||||
|
||||
const totalLo = callsLo + churnLo + equipLo + bwLo + ddosLo;
|
||||
const totalHi = callsHi + churnHi + equipHi + bwHi + ddosHi;
|
||||
const hasData = subs > 0 || arpu > 0 || netOpex > 0 || ddosInc > 0;
|
||||
|
||||
return {
|
||||
bw: { lo: bwLo, hi: bwHi },
|
||||
calls: { lo: callsLo, hi: callsHi },
|
||||
churn: { lo: churnLo, hi: churnHi },
|
||||
equip: { lo: equipLo, hi: equipHi },
|
||||
ddos: { lo: ddosLo, hi: ddosHi },
|
||||
total: { lo: totalLo, hi: totalHi },
|
||||
complete: hasData && totalLo > 0,
|
||||
};
|
||||
}
|
||||
|
||||
// ── Formatting ──
|
||||
export function fmt(n) {
|
||||
if (n === null || n === undefined || isNaN(n) || n === 0) return null;
|
||||
if (n >= 1e9) return '$' + (n / 1e9).toFixed(2) + 'B';
|
||||
if (n >= 1e6) return '$' + (n / 1e6).toFixed(2) + 'M';
|
||||
if (n >= 1e3) return '$' + Math.round(n / 1e3).toLocaleString('en-US') + 'K';
|
||||
return '$' + Math.round(n).toLocaleString('en-US');
|
||||
}
|
||||
|
||||
/** "$1.20M – $2.40M" for the web UI */
|
||||
export function fmtRange(lo, hi, sep = ' – ') {
|
||||
if (!fmt(lo) && !fmt(hi)) return null;
|
||||
if (lo === hi || !hi) return fmt(lo);
|
||||
return fmt(lo) + sep + fmt(hi);
|
||||
}
|
||||
|
||||
// ── Shared with the deck-building code ──
|
||||
export const INPUTS_KEY = 'bd_roi_calc_inputs';
|
||||
|
||||
/**
|
||||
* Loads this visitor's calculator inputs, however the page was reached.
|
||||
* If they haven't entered a subscriber count yet, it is pre-filled from the
|
||||
* "devices on your network" field on the registration form.
|
||||
* `touched` is true once the visitor has changed anything in the calculator.
|
||||
*/
|
||||
export function loadInputs(registrant) {
|
||||
let i = DEFAULT_INPUTS;
|
||||
try {
|
||||
i = { ...DEFAULT_INPUTS, ...JSON.parse(localStorage.getItem(INPUTS_KEY) || '{}') };
|
||||
} catch {
|
||||
/* storage unavailable */
|
||||
}
|
||||
if (!i.subs && registrant?.subscribers) i = { ...i, subs: registrant.subscribers };
|
||||
return i;
|
||||
}
|
||||
|
||||
/** Value written into the PowerPoint when a category has no data. */
|
||||
export const NOT_INCLUDED = 'Not included';
|
||||
const pptRange = (r) => fmtRange(r.lo, r.hi, ' to ') || NOT_INCLUDED;
|
||||
|
||||
/** Deck house style: "$65k", "$3.60m", "$1.20bn" (lower-case, matching the example figures in the deck). */
|
||||
export function fmtDeck(n) {
|
||||
const s = fmt(n);
|
||||
return s && s.replace(/B$/, 'bn').replace(/M$/, 'm').replace(/K$/, 'k');
|
||||
}
|
||||
const pptDeckRange = (r) => {
|
||||
if (!fmt(r.lo) && !fmt(r.hi)) return NOT_INCLUDED;
|
||||
if (r.lo === r.hi || !r.hi) return fmtDeck(r.lo);
|
||||
return `${fmtDeck(r.lo)} to ${fmtDeck(r.hi)}`;
|
||||
};
|
||||
|
||||
/** Subscriber count in the deck's big-number style: 25000000 → "25m", 5500000 → "5.5m", 850000 → "850k". */
|
||||
export function fmtCount(n) {
|
||||
if (!n || n <= 0) return '';
|
||||
const short = (v, unit) => (v >= 100 ? Math.round(v) : parseFloat(v.toFixed(1))) + unit;
|
||||
if (n >= 1e9) return short(n / 1e9, 'bn');
|
||||
if (n >= 1e6) return short(n / 1e6, 'm');
|
||||
if (n >= 1e3) return short(n / 1e3, 'k');
|
||||
return String(Math.round(n));
|
||||
}
|
||||
|
||||
/**
|
||||
* Values written into the PowerPoint ROI + device-count slides.
|
||||
* @param registrant optional: if the calculator has no subscriber count, slide 3 falls back
|
||||
* to the "devices on your network" choice from the registration form.
|
||||
*/
|
||||
export function formatForDeck(i, r, registrant) {
|
||||
return {
|
||||
total: pptDeckRange(r.total),
|
||||
bw: pptDeckRange(r.bw),
|
||||
calls: pptDeckRange(r.calls),
|
||||
churn: pptDeckRange(r.churn),
|
||||
equip: pptDeckRange(r.equip),
|
||||
ddos: pptDeckRange(r.ddos),
|
||||
subs: fmtCount(num(i.subs)) || registrant?.deviceLabel || '',
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
// Builds the personalised ROI deck entirely in the browser:
|
||||
// fetch template .pptx → patch the ROI slide XML → zip → download.
|
||||
//
|
||||
// The template is the strategy deck. Its ROI slide carries EXAMPLE figures, so the
|
||||
// unmodified file doubles as the "example" deck for visitors who haven't used the
|
||||
// calculator yet (see getExampleDeck).
|
||||
|
||||
// JSZip is loaded on demand so it doesn't weigh down the first page load.
|
||||
import { personaliseDeviceSlideXml, personaliseSlideXml } from './slideXml.js'
|
||||
|
||||
export const DECK_URL = '/roi/deck/BlackDice_Strategy_Deck.pptx'
|
||||
// The ROI slide ("Total estimate annual savings") — slide 12 in the deck.
|
||||
const ROI_SLIDE = 'ppt/slides/slide12.xml'
|
||||
// The stats slide ("Your customers are in the crosshairs") — slide 3: active subscribers go in the "DeviceCount" box.
|
||||
const DEVICE_SLIDE = 'ppt/slides/slide3.xml'
|
||||
const PPTX_MIME = 'application/vnd.openxmlformats-officedocument.presentationml.presentation'
|
||||
|
||||
let templatePromise = null
|
||||
|
||||
/** Start downloading the template early (e.g. when the deck/calculator tab opens). */
|
||||
export function prefetchTemplate() {
|
||||
if (!templatePromise) {
|
||||
templatePromise = fetch(DECK_URL).then((r) => {
|
||||
if (!r.ok) throw new Error(`Could not load deck template (${r.status})`)
|
||||
return r.arrayBuffer()
|
||||
})
|
||||
templatePromise.catch(() => (templatePromise = null)) // allow retry
|
||||
}
|
||||
return templatePromise
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {object} values { total, bw, calls, churn, equip, ddos, subs } — display strings
|
||||
* @param {object} meta { company, date }
|
||||
* @param {object} [opts] { roi: false } → leave slide 12's example figures alone and only
|
||||
* personalise slide 3 (used before the visitor has run the calculator)
|
||||
* @returns {Promise<Blob>}
|
||||
*/
|
||||
export async function buildPersonalisedDeck(values, meta = {}, { roi = true } = {}) {
|
||||
const buf = await prefetchTemplate()
|
||||
const { default: JSZip } = await import('jszip')
|
||||
const zip = await JSZip.loadAsync(buf)
|
||||
|
||||
if (roi) {
|
||||
const file = zip.file(ROI_SLIDE)
|
||||
if (!file) throw new Error(`ROI slide not found in template (${ROI_SLIDE})`)
|
||||
const xml = await file.async('string')
|
||||
|
||||
// Keep the subtitle on one line: cap very long company names.
|
||||
const co = meta.company && meta.company.length > 40 ? meta.company.slice(0, 39).trim() + '…' : meta.company
|
||||
const prefix = co ? `Prepared for ${co} · ` : ''
|
||||
const { xml: patched, replaced } = personaliseSlideXml(xml, values, prefix)
|
||||
if (replaced === 0) throw new Error('ROI value boxes (TextBox 4, 10–14) not found on the ROI slide')
|
||||
zip.file(ROI_SLIDE, patched)
|
||||
}
|
||||
|
||||
// Slide 3: the operator's active subscribers above "The device on your network".
|
||||
const deviceFile = zip.file(DEVICE_SLIDE)
|
||||
if (deviceFile) {
|
||||
const dxml = await deviceFile.async('string')
|
||||
const { xml: dpatched, replaced: dreplaced } = personaliseDeviceSlideXml(dxml, values.subs)
|
||||
if (dreplaced) zip.file(DEVICE_SLIDE, dpatched)
|
||||
}
|
||||
|
||||
// Stamp document properties so the file is identifiable in the recipient's Files/SharePoint.
|
||||
const core = zip.file('docProps/core.xml')
|
||||
if (core && meta.company) {
|
||||
const esc = (s) => s.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>')
|
||||
let c = await core.async('string')
|
||||
const title = esc(`Network Protection ROI – ${meta.company}`)
|
||||
c = /<dc:title>.*?<\/dc:title>/s.test(c)
|
||||
? c.replace(/<dc:title>.*?<\/dc:title>/s, `<dc:title>${title}</dc:title>`)
|
||||
: c.replace('</cp:coreProperties>', `<dc:title>${title}</dc:title></cp:coreProperties>`)
|
||||
zip.file('docProps/core.xml', c)
|
||||
}
|
||||
|
||||
return zip.generateAsync({ type: 'blob', mimeType: PPTX_MIME, compression: 'DEFLATE' })
|
||||
}
|
||||
|
||||
/** The deck exactly as published, with the example figures on the ROI slide. */
|
||||
export async function getExampleDeck() {
|
||||
const buf = await prefetchTemplate()
|
||||
return new Blob([buf], { type: PPTX_MIME })
|
||||
}
|
||||
|
||||
export function triggerDownload(blob, filename) {
|
||||
const url = URL.createObjectURL(blob)
|
||||
const a = document.createElement('a')
|
||||
a.href = url
|
||||
a.download = filename
|
||||
document.body.appendChild(a)
|
||||
a.click()
|
||||
a.remove()
|
||||
setTimeout(() => URL.revokeObjectURL(url), 10000)
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
// Pure string-level edits to the deck XML (no DOM needed → testable in Node).
|
||||
//
|
||||
// ROI slide (slide 12): each result box is a named text box with two lines —
|
||||
// a label ("1. Bandwidth savings") and a value. The launch deck (V4) ships with
|
||||
// EXAMPLE values in those boxes (e.g. "$65k to $365k"); older decks used a
|
||||
// "$XX to $XX" placeholder. Either way we overwrite the value line (the last
|
||||
// text run in the box), so the plain deck shows the example and the
|
||||
// personalised deck shows the operator's own figures.
|
||||
|
||||
export const PLACEHOLDER = '$XX to $XX';
|
||||
|
||||
// Slide 3 ("Your customers are in the crosshairs") — third column. A big-number
|
||||
// box named "DeviceCount" sits above "The device on your network" and shows the
|
||||
// operator's active subscribers (example "25m" in the published deck).
|
||||
export const DEVICE_COUNT_SHAPE = 'DeviceCount';
|
||||
|
||||
// Shape name in PowerPoint (Home → Arrange → Selection Pane) → result key
|
||||
export const SHAPE_MAP = [
|
||||
['TextBox 4', 'total'],
|
||||
['TextBox 10', 'bw'],
|
||||
['TextBox 11', 'calls'],
|
||||
['TextBox 12', 'churn'],
|
||||
['TextBox 13', 'equip'],
|
||||
['TextBox 14', 'ddos'],
|
||||
];
|
||||
const SUBTITLE_SHAPE = 'TextBox 5';
|
||||
|
||||
export const escapeXml = (s) =>
|
||||
String(s).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, ''');
|
||||
const unescapeXml = (s) =>
|
||||
s.replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, "'").replace(/&/g, '&');
|
||||
|
||||
const PH_TAG = `<a:t>${escapeXml(PLACEHOLDER)}</a:t>`;
|
||||
const RUN_RE = /<a:t>([^<]*)<\/a:t>/g;
|
||||
|
||||
/** Return [start, end) of the <p:sp> element whose cNvPr name matches exactly. */
|
||||
function findShape(xml, name) {
|
||||
const marker = `name="${escapeXml(name)}"`;
|
||||
const at = xml.indexOf(marker);
|
||||
if (at < 0) return null;
|
||||
const start = xml.lastIndexOf('<p:sp>', at);
|
||||
const end = xml.indexOf('</p:sp>', at);
|
||||
if (start < 0 || end < 0) return null;
|
||||
return [start, end + '</p:sp>'.length];
|
||||
}
|
||||
|
||||
/** Replace the text of the LAST run in a shape segment (the value line). */
|
||||
function replaceLastRun(seg, text) {
|
||||
const runs = [...seg.matchAll(RUN_RE)];
|
||||
if (runs.length < 2) return null; // need label + value
|
||||
const last = runs[runs.length - 1];
|
||||
return seg.slice(0, last.index) + `<a:t>${escapeXml(text)}</a:t>` + seg.slice(last.index + last[0].length);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} xml slide XML
|
||||
* @param {object} values { total, bw, calls, churn, equip, ddos } — display strings
|
||||
* @param {string} [subtitlePrefix] optional text prepended to the slide subtitle
|
||||
* @returns {{xml: string, replaced: number}}
|
||||
*/
|
||||
export function personaliseSlideXml(xml, values, subtitlePrefix) {
|
||||
let out = xml;
|
||||
let replaced = 0;
|
||||
const used = new Set();
|
||||
|
||||
// 1) by shape name — overwrite the value line (example figures or placeholder)
|
||||
for (const [shape, key] of SHAPE_MAP) {
|
||||
const r = findShape(out, shape);
|
||||
if (!r) continue;
|
||||
const next = replaceLastRun(out.slice(r[0], r[1]), values[key]);
|
||||
if (next === null) continue;
|
||||
out = out.slice(0, r[0]) + next + out.slice(r[1]);
|
||||
replaced++;
|
||||
used.add(key);
|
||||
}
|
||||
|
||||
// 2) fallback for renamed boxes in an older placeholder deck: fill any
|
||||
// remaining "$XX to $XX" in document order.
|
||||
if (out.includes(PH_TAG)) {
|
||||
const order = SHAPE_MAP.map(([, k]) => k).filter((k) => !used.has(k));
|
||||
let i = 0;
|
||||
out = out.split(PH_TAG).reduce((acc, part, idx) => {
|
||||
if (idx === 0) return part;
|
||||
const key = order[i++];
|
||||
replaced++;
|
||||
return acc + `<a:t>${escapeXml(key ? values[key] : '—')}</a:t>` + part;
|
||||
});
|
||||
}
|
||||
|
||||
// 3) Subtitle: drop the leading "Example" and add "Prepared for …".
|
||||
// PowerPoint often splits a line into several runs ("E" + "xample e" + …),
|
||||
// so we rebuild it into the first run and empty the rest.
|
||||
const r = findShape(out, SUBTITLE_SHAPE);
|
||||
if (r) {
|
||||
const seg = out.slice(r[0], r[1]);
|
||||
const runs = [...seg.matchAll(RUN_RE)];
|
||||
if (runs.length) {
|
||||
let text = unescapeXml(runs.map((m) => m[1]).join(''));
|
||||
text = text.replace(/^\s*example\s+/i, '');
|
||||
text = text.charAt(0).toUpperCase() + text.slice(1);
|
||||
text = (subtitlePrefix || '') + text;
|
||||
let n = 0;
|
||||
const next = seg.replace(RUN_RE, () => (n++ === 0 ? `<a:t>${escapeXml(text)}</a:t>` : '<a:t></a:t>'));
|
||||
out = out.slice(0, r[0]) + next + out.slice(r[1]);
|
||||
}
|
||||
}
|
||||
|
||||
return { xml: out, replaced };
|
||||
}
|
||||
|
||||
/**
|
||||
* Writes the active-subscriber figure into the "DeviceCount" box on slide 3.
|
||||
* @param {string} xml slide XML
|
||||
* @param {string} deviceCount display string, e.g. "5m" ("" leaves the box blank)
|
||||
* @returns {{xml: string, replaced: number}}
|
||||
*/
|
||||
export function personaliseDeviceSlideXml(xml, deviceCount) {
|
||||
const r = findShape(xml, DEVICE_COUNT_SHAPE);
|
||||
if (!r) return { xml, replaced: 0 };
|
||||
const seg = xml.slice(r[0], r[1]);
|
||||
const runs = [...seg.matchAll(RUN_RE)];
|
||||
if (!runs.length) return { xml, replaced: 0 };
|
||||
const last = runs[runs.length - 1];
|
||||
let next = seg.slice(0, last.index) + `<a:t>${escapeXml(deviceCount)}</a:t>` + seg.slice(last.index + last[0].length);
|
||||
// Ranges from the form dropdown ("10m–50m") are wider than a single figure: drop from
|
||||
// 44pt to 36pt so they stay on one line in the column.
|
||||
if (String(deviceCount).length > 6) next = next.replace(/sz="4400"/, 'sz="3600"');
|
||||
return { xml: xml.slice(0, r[0]) + next + xml.slice(r[1]), replaced: 1 };
|
||||
}
|
||||
@@ -22,6 +22,7 @@ var PAGE_NAMES = {
|
||||
p10: "DNS Protect",
|
||||
p11: "Cookie Policy",
|
||||
p12: "Privacy Policy",
|
||||
p13: "ROI Calculator",
|
||||
};
|
||||
|
||||
var PAGE_PATHS = {
|
||||
@@ -37,6 +38,7 @@ var PAGE_PATHS = {
|
||||
p10: "/dns-protect",
|
||||
p11: "/cookie-policy",
|
||||
p12: "/privacy-policy",
|
||||
p13: "/roi-calculator",
|
||||
};
|
||||
|
||||
var FEED_EVENTS = [
|
||||
@@ -161,6 +163,7 @@ function showPage(id, navId) {
|
||||
// Show target page
|
||||
var pg = document.getElementById("pg-" + id);
|
||||
if (pg) pg.style.display = "block";
|
||||
document.body.setAttribute("data-active-page", id);
|
||||
|
||||
// Update nav active states
|
||||
document.querySelectorAll("[data-nav]").forEach(function (btn) {
|
||||
@@ -170,14 +173,30 @@ function showPage(id, navId) {
|
||||
btn.classList.add("on");
|
||||
});
|
||||
|
||||
// Company dropdown parent
|
||||
var co = ["p6", "p7", "p8", "p9"].indexOf(active) >= 0;
|
||||
// Company dropdown parent (News/p7 moved out to its own top-level nav item)
|
||||
var co = ["p6", "p8", "p9"].indexOf(active) >= 0;
|
||||
var coBtn = document.getElementById("nav-co");
|
||||
if (coBtn) {
|
||||
if (co) coBtn.classList.add("on");
|
||||
else coBtn.classList.remove("on");
|
||||
}
|
||||
|
||||
// For Operators dropdown parent (Overview + ROI Calculator)
|
||||
var fo = ["p4", "p13"].indexOf(active) >= 0;
|
||||
var foBtn = document.getElementById("nav-fo");
|
||||
if (foBtn) {
|
||||
if (fo) foBtn.classList.add("on");
|
||||
else foBtn.classList.remove("on");
|
||||
}
|
||||
|
||||
// Platform dropdown parent (Mobile SDK, DNS Protect, Halo CPE)
|
||||
var pf = ["p2", "p10", "p3"].indexOf(active) >= 0;
|
||||
var pfBtn = document.getElementById("nav-pf");
|
||||
if (pfBtn) {
|
||||
if (pf) pfBtn.classList.add("on");
|
||||
else pfBtn.classList.remove("on");
|
||||
}
|
||||
|
||||
// Close mobile nav
|
||||
var mob = document.getElementById("mob-nav");
|
||||
if (mob) mob.style.display = "none";
|
||||
@@ -217,10 +236,8 @@ function onScroll() {
|
||||
var nav = document.getElementById("bd-nav");
|
||||
if (!nav) return;
|
||||
if (window.scrollY > 50) {
|
||||
nav.style.background = "rgba(1,59,73,.97)";
|
||||
nav.style.borderBottomColor = "rgba(255,255,255,.07)";
|
||||
} else {
|
||||
nav.style.background = "rgba(1,59,73,.4)";
|
||||
nav.style.borderBottomColor = "transparent";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
--hex-dot: rgba(59, 181, 134, 0.9);
|
||||
--bg-grad: radial-gradient(
|
||||
140% 90% at 50% 0%,
|
||||
#075466 0%,
|
||||
#013b49 55%,
|
||||
#01303b 100%
|
||||
#ffffff 0%,
|
||||
#f6f5f2 55%,
|
||||
#ece9e3 100%
|
||||
);
|
||||
}
|
||||
*,
|
||||
@@ -105,11 +105,8 @@ textarea {
|
||||
align-items: center;
|
||||
padding: 0 32px;
|
||||
justify-content: space-between;
|
||||
transition:
|
||||
background 0.3s,
|
||||
border-color 0.3s;
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
transition: border-color 0.3s;
|
||||
background: rgba(1, 59, 73, 1);
|
||||
border-bottom: 1px solid transparent;
|
||||
}
|
||||
.bd-nav-links {
|
||||
@@ -121,7 +118,7 @@ textarea {
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
color: var(--t2);
|
||||
padding: 8px 11px;
|
||||
padding: 8px 9px;
|
||||
border-bottom: 2px solid transparent;
|
||||
transition: all 0.15s;
|
||||
white-space: nowrap;
|
||||
@@ -138,7 +135,8 @@ textarea {
|
||||
color: #013b49 !important;
|
||||
font-weight: 700 !important;
|
||||
font-size: 13px !important;
|
||||
padding: 8px 20px !important;
|
||||
padding: 8px 18px !important;
|
||||
margin-left: 6px;
|
||||
border-bottom: none !important;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
@@ -166,7 +164,7 @@ textarea {
|
||||
display: block;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
padding: 9px 14px;
|
||||
padding: 8px 12px;
|
||||
font-size: 13px;
|
||||
color: var(--t2);
|
||||
border: none;
|
||||
@@ -248,11 +246,11 @@ textarea {
|
||||
/* HERO */
|
||||
.bd-hero {
|
||||
position: relative;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: var(--bg);
|
||||
overflow: hidden;
|
||||
padding:90px;
|
||||
}
|
||||
.bd-hero-sh {
|
||||
position: relative;
|
||||
@@ -294,7 +292,7 @@ textarea {
|
||||
}
|
||||
.bd-hero-in {
|
||||
margin: 0 auto;
|
||||
padding: 48px 40px;
|
||||
padding: 48px 40px; max-width: 1120px;
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
@@ -304,14 +302,13 @@ textarea {
|
||||
}
|
||||
.bd-hero-sh .bd-hero-in {
|
||||
min-height: auto;
|
||||
padding: 5px 40px 24px;
|
||||
height: 100vh;
|
||||
}
|
||||
/* TYPE */
|
||||
.ey {
|
||||
font-family: var(--fm);
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.18em;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
letter-spacing: 0.15em;
|
||||
color: var(--t3);
|
||||
text-transform: uppercase;
|
||||
display: block;
|
||||
@@ -420,7 +417,7 @@ textarea {
|
||||
}
|
||||
.bd-si {
|
||||
margin: 0 auto;
|
||||
padding: 0 40px;
|
||||
padding: 0 40px; max-width: 1120px;
|
||||
}
|
||||
.sect-hd {
|
||||
max-width: 640px;
|
||||
@@ -553,6 +550,69 @@ textarea {
|
||||
background: #071318;
|
||||
box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
|
||||
}
|
||||
#pg-p2 .bd-hero-sh .bd-hero-in {
|
||||
display: block;
|
||||
height: auto;
|
||||
padding: 25px;
|
||||
}
|
||||
#pg-p2 .bd-hero-top {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
gap: 44px;
|
||||
}
|
||||
#pg-p2 .bd-hero-top > div:first-child {
|
||||
width: 500px;
|
||||
max-width: 500px;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
#pg-p2 .bd-mobile-demo-mount {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
#pg-p2 .bd-mobile-demo-mount .bd-mse {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
#pg-p2 .bd-hero-top .h1 {
|
||||
font-size: clamp(32px, 3.4vw, 44px);
|
||||
}
|
||||
#pg-p2 .bd-hero-top .hero-sub {
|
||||
margin: 12px 0 18px;
|
||||
}
|
||||
/* The demo's module grid + phone stage is a fixed ~720px wide block that
|
||||
doesn't shrink, so below this the row layout clips/overflows — fall
|
||||
back to the stacked column before that happens. */
|
||||
@media (max-width: 1480px) {
|
||||
#pg-p2 .bd-hero-top {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: 24px;
|
||||
}
|
||||
#pg-p2 .bd-hero-top > div:first-child {
|
||||
width: auto;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
/* The hero now fits one screen, so the global "scroll down" hint collides
|
||||
with the demo's caption text instead of pointing at hidden content. */
|
||||
body[data-active-page="p2"] .scroll-hint {
|
||||
display: none !important;
|
||||
}
|
||||
/* Flex items default to min-width:auto, which lets the tabstrip's
|
||||
unwrapped flex content (9 tabs) blow out the row instead of scrolling
|
||||
internally — min-width:0 forces it back down to the mount's own width
|
||||
so the tabstrip scrolls internally instead of widening the page. */
|
||||
#pg-p2 .bd-mobile-demo-mount {
|
||||
height: auto;
|
||||
max-height: none;
|
||||
border: none;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
border-radius: 0;
|
||||
overflow: visible;
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
}
|
||||
.bd-phone-cta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -649,7 +709,8 @@ textarea {
|
||||
}
|
||||
.tier-tg {
|
||||
font-family: var(--fm);
|
||||
font-size: 10px;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
letter-spacing: 0.1em;
|
||||
color: var(--t3);
|
||||
margin-top: 4px;
|
||||
@@ -676,7 +737,8 @@ textarea {
|
||||
}
|
||||
.tier-tagi {
|
||||
font-family: var(--fm);
|
||||
font-size: 10px;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
letter-spacing: 0.06em;
|
||||
padding: 3px 8px;
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
@@ -817,6 +879,16 @@ textarea {
|
||||
background: #022938;
|
||||
border: 1px solid var(--bdr2);
|
||||
}
|
||||
/* Halo CPE product screenshots — sized down ~25% from full-bleed */
|
||||
#pg-p3 .dash-frame {
|
||||
max-width: 75%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
@media (max-width: 900px) {
|
||||
#pg-p3 .dash-frame {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
.dash-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -957,9 +1029,13 @@ textarea {
|
||||
}
|
||||
/* PILLAR MAP */
|
||||
.pm-strip {
|
||||
border-bottom: 1px solid var(--bdr);
|
||||
border-top: 1px solid rgba(13, 27, 36, 0.1);
|
||||
border-bottom: 1px solid rgba(13, 27, 36, 0.1);
|
||||
padding: 20px 40px;
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
background: #f6f5f2;
|
||||
}
|
||||
.pm-strip .ey {
|
||||
color: rgba(13, 27, 36, 0.45);
|
||||
}
|
||||
.pm-in {
|
||||
max-width: 1200px;
|
||||
@@ -987,12 +1063,12 @@ textarea {
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--txt);
|
||||
color: #0d1b24;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
.pm-cell span {
|
||||
font-size: 13px;
|
||||
color: var(--t2);
|
||||
color: rgba(13, 27, 36, 0.6);
|
||||
line-height: 1.55;
|
||||
}
|
||||
/* AUD STRIP */
|
||||
@@ -1390,7 +1466,7 @@ textarea {
|
||||
}
|
||||
.stat-row-v {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
gap: 40px;
|
||||
padding: 18px 0;
|
||||
border-bottom: 1px solid var(--bdr);
|
||||
}
|
||||
@@ -1398,7 +1474,7 @@ textarea {
|
||||
border-bottom: none;
|
||||
}
|
||||
.sn-lg {
|
||||
font-size: 40px;
|
||||
font-size: 36px;
|
||||
font-weight: 800;
|
||||
color: var(--ax);
|
||||
line-height: 1;
|
||||
@@ -1470,7 +1546,7 @@ textarea {
|
||||
}
|
||||
/* FOOTER */
|
||||
.bd-footer {
|
||||
background: rgba(1, 47, 59, 0.8);
|
||||
background: rgba(1, 47, 59, 1);
|
||||
border-top: 1px solid var(--bdr);
|
||||
padding: 20px 40px;
|
||||
display: flex;
|
||||
@@ -1747,6 +1823,10 @@ textarea {
|
||||
}
|
||||
.bd-hero {
|
||||
min-height: auto;
|
||||
padding: 15px;
|
||||
}
|
||||
#pg-p2 .bd-hero-top {
|
||||
gap: 24px;
|
||||
}
|
||||
.hero-sub {
|
||||
max-width: 100%;
|
||||
@@ -1927,10 +2007,8 @@ textarea {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
/* ── WHITE SECTIONS: 2nd & 4th per page ──────────────────────── */
|
||||
.pg > section:nth-of-type(2),
|
||||
.pg > section:nth-of-type(4) {
|
||||
background: #ffffff !important;
|
||||
/* ── 3-COLOR SECTION ROTATION: dark base / dark stripe / off-white, repeating per page ──── */
|
||||
.pg > section:nth-of-type(3n + 2) {
|
||||
--txt: #013b49;
|
||||
--t2: rgba(1, 59, 73, 0.65);
|
||||
--t3: rgba(1, 59, 73, 0.42);
|
||||
@@ -1939,153 +2017,166 @@ textarea {
|
||||
--axd: rgba(59, 181, 134, 0.1);
|
||||
--axb: rgba(59, 181, 134, 0.25);
|
||||
}
|
||||
/* Hardcoded-bg elements inside white sections */
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .bd-card {
|
||||
.pg > section:nth-of-type(3n) {
|
||||
background: var(--s1);
|
||||
}
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) {
|
||||
background: #f6f5f2 !important;
|
||||
--txt: #013b49;
|
||||
--t2: rgba(1, 59, 73, 0.65);
|
||||
--t3: rgba(1, 59, 73, 0.42);
|
||||
--bdr: rgba(0, 0, 0, 0.09);
|
||||
--bdr2: rgba(0, 0, 0, 0.14);
|
||||
--axd: rgba(59, 181, 134, 0.1);
|
||||
--axb: rgba(59, 181, 134, 0.25);
|
||||
}
|
||||
/* Hardcoded-bg elements inside the off-white sections */
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .bd-card {
|
||||
background: #f5f7ff;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .bd-card:hover {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .bd-card:hover {
|
||||
background: rgba(59, 181, 134, 0.07);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .mc {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .mc {
|
||||
background: #f5f7ff;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .mc-val {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .mc-val {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .mc-val.ax {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .mc-val.ax {
|
||||
color: var(--ax);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .stats-bar {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .stats-bar {
|
||||
background: #f5f7ff;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .stat-lbl {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .stat-lbl {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .stat-desc {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .stat-desc {
|
||||
color: rgba(1, 59, 73, 0.45);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .bd-feed {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .bd-feed {
|
||||
background: #f5f7ff;
|
||||
border-color: rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .feed-hd {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .feed-hd {
|
||||
border-color: rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .feed-row {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .feed-row {
|
||||
border-color: rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .dash-frame {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .dash-frame {
|
||||
background: #ecf0ff;
|
||||
border-color: rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .dash-bar {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .dash-bar {
|
||||
background: rgba(0, 0, 0, 0.04);
|
||||
border-color: rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .arch-cap {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .arch-cap {
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
color: rgba(1, 59, 73, 0.45);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .tier-tagi {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .tier-tagi {
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
color: rgba(1, 59, 73, 0.45);
|
||||
border-color: rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .c-tag.mu {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .c-tag.mu {
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
color: rgba(1, 59, 73, 0.45);
|
||||
border-color: rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .vs-box {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .vs-box {
|
||||
background: #f5f7ff;
|
||||
border-color: rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .vs-mrk.dns {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .vs-mrk.dns {
|
||||
background: rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .diff-ck {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .diff-ck {
|
||||
background: rgba(59, 181, 134, 0.1);
|
||||
border-color: rgba(59, 181, 134, 0.25);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .inv-stat {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .inv-stat {
|
||||
background: #f5f7ff;
|
||||
border-color: rgba(0, 0, 0, 0.09);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .inv-lbl {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .inv-lbl {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .news-card {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .news-card {
|
||||
background: #f5f7ff;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .contact-card {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .contact-card {
|
||||
background: #f5f7ff;
|
||||
border-color: rgba(0, 0, 0, 0.09);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .form-inp {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .form-inp {
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
color: #013b49;
|
||||
border-color: rgba(0, 0, 0, 0.14);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .form-lbl {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .form-lbl {
|
||||
color: rgba(1, 59, 73, 0.5);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4))
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4)
|
||||
.form-inp:focus {
|
||||
border-color: var(--ax);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .btn-g {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .btn-g {
|
||||
border-color: rgba(0, 0, 0, 0.2);
|
||||
color: rgba(1, 59, 73, 0.65);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .btn-g:hover {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .btn-g:hover {
|
||||
border-color: rgba(0, 0, 0, 0.5);
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .bd-bq {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .bd-bq {
|
||||
background: rgba(59, 181, 134, 0.08);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .ex-box {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .ex-box {
|
||||
background: rgba(59, 181, 134, 0.08);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .pillar-role {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .pillar-role {
|
||||
color: rgba(1, 59, 73, 0.35);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .ops-ov {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .ops-ov {
|
||||
color: var(--ax);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .spec-r label {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .spec-r label {
|
||||
color: rgba(1, 59, 73, 0.4);
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .spec-r span {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .spec-r span {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .tier-nm {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .tier-nm {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .dep-step h4 {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .dep-step h4 {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .sig-item h4 {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .sig-item h4 {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .sb h4 {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .sb h4 {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4))
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4)
|
||||
.diff-it
|
||||
strong {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .arch-body h3 {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .arch-body h3 {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .news-card h3 {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .news-card h3 {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .ops-card h3 {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .ops-card h3 {
|
||||
color: #013b49;
|
||||
}
|
||||
:is(.pg > section:nth-of-type(2), .pg > section:nth-of-type(4)) .cta-card h3 {
|
||||
.pg > section:nth-of-type(3n + 1):nth-of-type(n + 4) .cta-card h3 {
|
||||
color: #013b49;
|
||||
}
|
||||
|
||||
|
||||
@@ -4,3 +4,8 @@ declare module '*.txt?raw' {
|
||||
const content: string
|
||||
export default content
|
||||
}
|
||||
|
||||
declare module '*.html?raw' {
|
||||
const content: string
|
||||
export default content
|
||||
}
|
||||
|
||||