-
+
+
+ {!cachedEvent ? (
Running Device Intelligence_
-
-
- ) : (
- <>
-
+ ) : (
-
-
+ )}
+
+
+ <>
+
+
+ {agentResponse ? (
-
+
Identification{' '}
-
+
-
-
-
+
+
Your Visitor ID is
+
{agentResponse?.visitorId}
+
-
-
- Smart signals{' '}
-
-
-
-
-
-
-
-
-
-
- Mobile Smart signals{' '}
-
-
-
-
-
-
+
-
-
-
-
- How to use this demo
-
-
-
-
-
-
- JavaScript Agent Response {isLoadingAgentResponse && }
-
-
-
-
-
- Server API Response {isLoadingServerResponse && }
-
-
+ ) : (
+ // Spacer element to push footer down when no data is ready
+
+ )}
+ {cachedEvent ? (
+ <>
+
+
+ Smart signals{' '}
+
+
+
+
+
+
+
+
+
+
+ Mobile Smart signals{' '}
+
+
+
+
+
+
+
+
+ >
+ ) : null}
+
+
+ {cachedEvent ? (
+ <>
+
+ How to use this demo
+
+
+
+
+
+
+ JavaScript Agent Response {isLoadingAgentResponse && }
+
+
+
+
+
+ Server API Response {isLoadingServerResponse && }
+
+
+
-
-
-
- Learn more
-
-
- >
- )}
+
+
+ Learn more
+
+
+ >
+ ) : null}
+ >
>
);
}
diff --git a/src/app/playground/components/RefreshButton.module.scss b/src/app/playground/components/RefreshButton.module.scss
index bc91e48e..bc5a9356 100644
--- a/src/app/playground/components/RefreshButton.module.scss
+++ b/src/app/playground/components/RefreshButton.module.scss
@@ -1,16 +1,12 @@
.refreshButton.refreshButton {
display: flex;
- padding: rem(12px) rem(24px);
+ padding: 16px;
font-weight: 500;
font-size: 16px;
- font-weight: 500;
+ font-weight: 400;
line-height: 150%; /* 24px */
white-space: unset;
- @include media('<=phoneLandscape') {
- font-size: 14px;
- }
-
img {
transition: scale 0.2s ease;
margin-left: rem(4px);
diff --git a/src/app/playground/components/SignalTable.tsx b/src/app/playground/components/SignalTable.tsx
index 8d48c83b..f0f71a5c 100644
--- a/src/app/playground/components/SignalTable.tsx
+++ b/src/app/playground/components/SignalTable.tsx
@@ -1,5 +1,6 @@
import { ReactNode, FunctionComponent } from 'react';
import styles from './SignalTable.module.scss';
+import { motion } from 'framer-motion';
export type TableCellData = {
content: ReactNode | ReactNode[];
@@ -10,14 +11,19 @@ const SignalTable: FunctionComponent<{ data: TableCellData[][] }> = ({ data }) =
return (
- {data.map((row, i) => (
-
+ {data.map((row, rowIndex) => (
+
{row.map((cell, j) => (
{cell.content}
|
))}
-
+
))}
diff --git a/src/app/playground/playground.module.scss b/src/app/playground/playground.module.scss
index e588fc0b..c49dcb35 100644
--- a/src/app/playground/playground.module.scss
+++ b/src/app/playground/playground.module.scss
@@ -1,13 +1,11 @@
.hero {
padding-top: rem(64px);
- padding-bottom: rem(40px);
display: flex;
flex-direction: column;
gap: rem(8px);
@include media('<=tabletWide') {
padding-top: rem(40px);
- padding-bottom: rem(32px);
}
h1 {
@@ -54,13 +52,11 @@
.visitorIdBox {
border: 1px dashed v('orange-gradient');
-
background-color: v('soft-orange-background');
- padding: rem(32px) rem(20px);
- border-radius: rem(12px);
- display: flex;
- flex-direction: column;
+ padding: rem(16px) rem(12px);
+ border-radius: rem(8px);
gap: rem(8px);
+ margin-bottom: rem(8px);
@include media('<=tabletWide') {
padding: rem(20px);
@@ -68,12 +64,13 @@
}
p {
+ display: inline;
color: v('dark-gray');
text-align: center;
font-family: Inter;
- font-size: rem(20px);
+ font-size: rem(18px);
line-height: 160%;
- font-weight: 400;
+ font-weight: 600;
margin: 0;
@include media('<=tabletWide') {
@@ -85,10 +82,11 @@
color: v('orange-gradient');
text-align: center;
font-family: 'JetBrains Mono';
- font-size: 30px;
- font-weight: 500;
+ font-size: 18px;
+ font-weight: 800;
line-height: 130%;
margin: 0;
+ display: inline;
@include media('<=tabletWide') {
font-size: rem(23px);
@@ -172,15 +170,13 @@ h2.sectionTitle {
.runningIntelligence {
display: flex;
- flex-direction: column;
- gap: 40px;
- align-items: center;
- min-height: 60vh;
- padding-top: rem(32px);
+ justify-content: center;
+ padding-bottom: rem(24px);
+ font-weight: 500;
- @include media('<=tabletWide') {
- padding-top: rem(24px);
- gap: rem(20px);
+ @include media('<=phoneLandscape') {
+ justify-content: left;
+ text-align: left;
}
h2 {
@@ -190,9 +186,13 @@ h2.sectionTitle {
font-size: 16px;
font-weight: 400;
line-height: 160%;
-
+ padding: rem(16px) 0;
animation: reveal 0.5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
display: inline-block;
+
+ @include media('<=phoneLandscape') {
+ text-align: left;
+ }
}
.blink {
@@ -237,14 +237,10 @@ h2.sectionTitle {
letter-spacing: 0.13px;
}
-.reloadButton {
- margin: rem(16px) auto rem(32px) auto;
-
+.reloadButton.reloadButton {
@include media('<=phoneLandscape') {
- &.reloadButton {
- margin: rem(16px) 0 rem(32px) 0;
- padding: 0px;
- }
+ padding-left: 0px;
+ text-align: left;
}
}
diff --git a/src/styles/global-styles.scss b/src/styles/global-styles.scss
index aa3b9eba..03112249 100755
--- a/src/styles/global-styles.scss
+++ b/src/styles/global-styles.scss
@@ -167,3 +167,17 @@ button {
img {
vertical-align: middle;
}
+
+/**
+ * Leaflet used high z-indexes by default, causing z-index issues, enforce low z-index for it
+ */
+.leaflet-control.leaflet-control {
+ z-index: 0;
+}
+.leaflet-pane.leaflet-pane {
+ z-index: 0;
+}
+.leaflet-top.leaflet-top,
+.leaflet-bottom.leaflet-bottom {
+ z-index: 0;
+}