@ably/ui 8.7.0-dev.4de588d → 8.7.0-dev.52da22c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/README.md +7 -3
  2. package/core/Code/component.js +1 -1
  3. package/core/Code.jsx +108 -88
  4. package/core/CompanyAutocomplete/component.js +2 -1
  5. package/core/CompanyAutocomplete/component.js.LICENSE.txt +1 -0
  6. package/core/ConnectStateWrapper/component.js +1 -1
  7. package/core/ConnectStateWrapper.jsx +7 -7
  8. package/core/ContactFooter/component.js +1 -1
  9. package/core/ContactFooter.jsx +12 -12
  10. package/core/CookieMessage/component.js +1 -1
  11. package/core/CookieMessage.jsx +10 -10
  12. package/core/CustomerLogos/component.js +1 -1
  13. package/core/CustomerLogos.jsx +7 -7
  14. package/core/DropdownMenu/component.js +1 -1
  15. package/core/DropdownMenu.jsx +11 -11
  16. package/core/FeatureFooter/component.js +1 -1
  17. package/core/FeaturedLink/component.js +1 -1
  18. package/core/FeaturedLink.jsx +10 -10
  19. package/core/Flash/component.js +1 -1
  20. package/core/Flash.jsx +19 -19
  21. package/core/Footer/component.css +11 -1
  22. package/core/Footer/component.js +1 -1
  23. package/core/Footer.jsx +71 -76
  24. package/core/Icon/component.js +1 -1
  25. package/core/Icon.jsx +7 -7
  26. package/core/Loader/component.js +1 -1
  27. package/core/Loader.jsx +7 -7
  28. package/core/Logo/component.js +1 -1
  29. package/core/Logo.jsx +7 -7
  30. package/core/Meganav/component.css +59 -20
  31. package/core/Meganav/component.js +1 -1
  32. package/core/Meganav/component.json +1 -1
  33. package/core/Meganav.jsx +955 -1047
  34. package/core/MeganavBlogPostsList/component.js +2 -1
  35. package/core/MeganavBlogPostsList/component.js.LICENSE.txt +1 -0
  36. package/core/MeganavBlogPostsList.jsx +13 -13
  37. package/core/MeganavContentCompany/component.js +1 -1
  38. package/core/MeganavContentCompany.jsx +328 -731
  39. package/core/MeganavContentDevelopers/component.js +1 -1
  40. package/core/MeganavContentDevelopers.jsx +108 -79
  41. package/core/{MeganavContentPlatform → MeganavContentProducts}/component.js +1 -1
  42. package/core/{MeganavContentPlatform.jsx → MeganavContentProducts.jsx} +34 -58
  43. package/core/MeganavContentUseCases/component.js +1 -1
  44. package/core/MeganavContentUseCases.jsx +62 -54
  45. package/core/MeganavControl/component.js +1 -1
  46. package/core/MeganavControl.jsx +10 -10
  47. package/core/MeganavControlMobileDropdown/component.js +1 -1
  48. package/core/MeganavControlMobileDropdown.jsx +11 -11
  49. package/core/MeganavControlMobilePanelClose/component.js +1 -1
  50. package/core/MeganavControlMobilePanelClose.jsx +10 -10
  51. package/core/MeganavControlMobilePanelOpen/component.js +1 -1
  52. package/core/MeganavControlMobilePanelOpen.jsx +10 -10
  53. package/core/MeganavItemsDesktop/component.js +1 -1
  54. package/core/MeganavItemsDesktop.jsx +17 -17
  55. package/core/MeganavItemsMobile/component.js +1 -1
  56. package/core/MeganavItemsMobile.jsx +39 -39
  57. package/core/MeganavItemsSignedIn/component.js +1 -1
  58. package/core/MeganavItemsSignedIn.jsx +33 -33
  59. package/core/MeganavSearch/component.js +1 -1
  60. package/core/MeganavSearch.jsx +23 -23
  61. package/core/MeganavSearchAutocomplete/component.js +1 -1
  62. package/core/MeganavSearchAutocomplete.jsx +4 -4
  63. package/core/MeganavSearchPanel/component.js +1 -1
  64. package/core/MeganavSearchPanel.jsx +19 -19
  65. package/core/MeganavSearchSuggestions/component.js +1 -1
  66. package/core/MeganavSearchSuggestions.jsx +13 -13
  67. package/core/Notice/component.js +1 -1
  68. package/core/Notice.jsx +30 -30
  69. package/core/Showcase/component.js +1 -1
  70. package/core/Showcase.jsx +1 -1
  71. package/core/SignOutLink/component.js +1 -1
  72. package/core/SignOutLink.jsx +7 -7
  73. package/core/Slider/component.js +1 -1
  74. package/core/Slider.jsx +14 -14
  75. package/core/Uptime/component.js +1 -1
  76. package/core/Uptime.jsx +300 -715
  77. package/core/images/best-support-2023.svg +1 -0
  78. package/core/images/fastest-implementation-2023.svg +1 -0
  79. package/core/images/high-performer-2023.svg +1 -0
  80. package/core/images/highest-user-adoption-2023.svg +1 -0
  81. package/core/scripts.js +2 -1
  82. package/core/scripts.js.LICENSE.txt +1 -0
  83. package/core/sprites.svg +93 -0
  84. package/core/styles.css +1 -7
  85. package/package.json +5 -5
  86. package/reset/scripts.js +1 -1
  87. package/reset/styles.css +1 -11
  88. package/src/core/Footer/component.css +11 -1
  89. package/src/core/Footer/component.html.erb +42 -47
  90. package/src/core/Footer/component.jsx +45 -53
  91. package/src/core/HeadwayWidget/HeadwayWidget.jsx +229 -0
  92. package/src/core/HeadwayWidget/index.js +5 -0
  93. package/src/core/Meganav/MeganavHeadwayPortal.jsx +20 -0
  94. package/src/core/Meganav/component.css +59 -18
  95. package/src/core/Meganav/component.json +1 -1
  96. package/src/core/Meganav/component.jsx +15 -11
  97. package/src/core/Meganav/component.rb +4 -4
  98. package/src/core/MeganavContentCompany/component.html.erb +9 -0
  99. package/src/core/MeganavContentCompany/component.jsx +9 -0
  100. package/src/core/MeganavContentDevelopers/component.html.erb +30 -13
  101. package/src/core/MeganavContentDevelopers/component.js +16 -0
  102. package/src/core/MeganavContentDevelopers/component.jsx +35 -15
  103. package/src/core/{MeganavContentPlatform → MeganavContentProducts}/component.html.erb +15 -33
  104. package/src/core/{MeganavContentPlatform → MeganavContentProducts}/component.jsx +18 -39
  105. package/src/core/{MeganavContentPlatform → MeganavContentProducts}/component.rb +1 -1
  106. package/src/core/MeganavContentUseCases/component.html.erb +42 -38
  107. package/src/core/MeganavContentUseCases/component.jsx +41 -38
  108. package/src/core/MeganavItemsDesktop/component.jsx +1 -1
  109. package/src/core/MeganavItemsDesktop/component.rb +1 -1
  110. package/src/core/core.rb +8 -4
  111. package/src/core/icons/icon-display-asset-tracking-col.svg +18 -0
  112. package/src/core/icons/icon-display-data-broadcast-col.svg +26 -0
  113. package/src/core/icons/icon-display-data-synchronization-col.svg +14 -0
  114. package/src/core/icons/icon-display-events-col.svg +13 -0
  115. package/src/core/icons/icon-display-examples-col.svg +11 -0
  116. package/src/core/icons/icon-display-kafka-at-the-edge-col.svg +8 -0
  117. package/src/core/icons/icon-display-push-notifications-col.svg +6 -0
  118. package/src/core/icons/icon-social-x.svg +3 -0
  119. package/src/core/icons/icon-tech-apachekafka.svg +3 -0
  120. package/src/core/images/best-support-2023.svg +1 -0
  121. package/src/core/images/fastest-implementation-2023.svg +1 -0
  122. package/src/core/images/high-performer-2023.svg +1 -0
  123. package/src/core/images/highest-user-adoption-2023.svg +1 -0
  124. package/src/core/styles/text.css +1 -1
  125. package/src/core/utils/syntax-highlighter-registry.js +2 -0
  126. package/src/core/utils/syntax-highlighter.js +5 -0
  127. package/core/.DS_Store +0 -0
  128. package/core/DropdownMenuPreview/component.js +0 -6
  129. package/core/DropdownMenuPreview.jsx +0 -6
  130. package/core/Meganav/component.js.LICENSE.txt +0 -7
  131. package/core/MeganavSearchAutocomplete/component.js.LICENSE.txt +0 -7
  132. package/core/Notice/component.js.LICENSE.txt +0 -9
  133. package/src/.DS_Store +0 -0
  134. package/src/core/.DS_Store +0 -0
  135. /package/src/core/{MeganavContentPlatform → MeganavContentProducts}/component.js +0 -0
@@ -0,0 +1,5 @@
1
+ import HeadwayWidget, { HeadwayWidgetTrigger } from "./HeadwayWidget";
2
+
3
+ export default HeadwayWidget;
4
+
5
+ export { HeadwayWidgetTrigger };
@@ -0,0 +1,20 @@
1
+ import React, { useEffect, useState } from "react";
2
+ import { createPortal } from "react-dom";
3
+ import HeadwayWidget from "../HeadwayWidget/HeadwayWidget.jsx";
4
+
5
+ export default function MeganavHeadwayPortal() {
6
+ const [headwayPortalNodes, setHeadwayPortalNodes] = useState([]);
7
+
8
+ useEffect(() => {
9
+ // Query all the elements with the .headwayPortal class
10
+ setHeadwayPortalNodes(Array.from(document.querySelectorAll(".headwayPortal")));
11
+ }, []);
12
+
13
+ return (
14
+ <>
15
+ {headwayPortalNodes.map((node, index) => {
16
+ return createPortal(<HeadwayWidget account={"yZ1rmJ"} badgePosition={"center-right"} id={`widget-${index}`} />, node, `headway-${index}`);
17
+ })}
18
+ </>
19
+ );
20
+ }
@@ -7,13 +7,13 @@
7
7
  z-index: var(--stacking-context-page-meganav);
8
8
 
9
9
  @apply fixed top-0 w-full;
10
- @apply antialiased font-sans transition-colors;
10
+ @apply font-sans antialiased transition-colors;
11
11
  }
12
12
 
13
13
  .ui-meganav {
14
14
  height: var(--ui-meganav-height);
15
15
 
16
- @apply flex justify-between items-center max-w-screen-xl mx-auto;
16
+ @apply flex items-center justify-between max-w-screen-xl mx-auto;
17
17
  }
18
18
 
19
19
  .ui-meganav-panel,
@@ -22,7 +22,7 @@
22
22
  z-index: var(--stacking-context-meganav-dropdown);
23
23
 
24
24
  @apply absolute left-0 right-0;
25
- @apply border-mid-grey border-t shadow-container;
25
+ @apply border-t border-mid-grey shadow-container;
26
26
  }
27
27
 
28
28
  .ui-meganav-panel {
@@ -35,9 +35,9 @@
35
35
  /* Prevents momentum-based scrolling https://devdocs.io/css/-webkit-overflow-scrolling */
36
36
  -webkit-overflow-scrolling: auto;
37
37
 
38
- @apply bg-white pt-16 border-0;
39
- @apply border-mid-grey border-t shadow-container;
40
- @apply fixed top-64 left-0 right-0 overflow-y-auto;
38
+ @apply pt-16 bg-white border-0;
39
+ @apply border-t border-mid-grey shadow-container;
40
+ @apply fixed left-0 right-0 overflow-y-auto top-64;
41
41
  }
42
42
 
43
43
  .ui-meganav-panel-account {
@@ -51,8 +51,8 @@
51
51
  }
52
52
 
53
53
  .ui-meganav-link {
54
- @apply text-menu2 font-medium block;
55
- @apply mr-12 lg:mr-24 px-0 py-20;
54
+ @apply block font-medium text-menu2;
55
+ @apply px-0 py-20 mr-12 lg:mr-24;
56
56
  @apply hover:text-gui-hover focus:text-gui-focus focus:outline-none;
57
57
  @apply transition-colors;
58
58
  }
@@ -62,18 +62,18 @@
62
62
  }
63
63
 
64
64
  .ui-meganav-mobile-link {
65
- @apply p-menu-row relative -left-8 w-extend-8;
66
- @apply text-menu2 font-medium block text-cool-black text-left;
65
+ @apply relative p-menu-row -left-8 w-extend-8;
66
+ @apply block font-medium text-left text-menu2 text-cool-black;
67
67
  @apply flex items-center;
68
68
  @apply focus:text-gui-focus focus:outline-none;
69
69
  }
70
70
 
71
71
  .ui-meganav-account-link {
72
- @apply block px-8 py-8 hover:bg-light-grey hover:text-gui-hover rounded relative -left-8 text-menu3 w-extend-8 font-light;
72
+ @apply relative block px-8 py-8 font-light rounded hover:bg-light-grey hover:text-gui-hover -left-8 text-menu3 w-extend-8;
73
73
  }
74
74
 
75
75
  .ui-meganav-content {
76
- @apply max-w-screen-xl py-24 lg:py-32 mx-auto;
76
+ @apply max-w-screen-xl py-24 mx-auto lg:py-32;
77
77
  @apply grid grid-cols-1;
78
78
  @apply px-24 md:px-32 lg:px-32 xl:px-64;
79
79
  }
@@ -81,27 +81,27 @@
81
81
  /* This is implemented not as padding so we can change the color of just this space, while keeping the grid
82
82
  as close to the designs as possible */
83
83
  .ui-meganav-content-spacer {
84
- @apply hidden md:block md:w-32 lg:w-32 xl:w-64 self-stretch flex-shrink-0 flex-grow-0;
84
+ @apply self-stretch flex-grow-0 flex-shrink-0 hidden md:block md:w-32 lg:w-32 xl:w-64;
85
85
  }
86
86
 
87
87
  .ui-meganav-media {
88
- @apply block px-8 py-8 hover:bg-light-grey rounded relative -left-8 w-extend-8;
88
+ @apply relative block px-8 py-8 rounded hover:bg-light-grey -left-8 w-extend-8;
89
89
  }
90
90
 
91
91
  .ui-meganav-media-with-image {
92
92
  grid-template-columns: max-content 1fr;
93
93
  grid-template-rows: min-content 1fr;
94
94
 
95
- @apply block px-8 py-8 hover:bg-light-grey rounded relative -left-8 w-extend-8;
96
- @apply grid gap-x-8;
95
+ @apply relative block px-8 py-8 rounded hover:bg-light-grey -left-8 w-extend-8;
96
+ @apply grid gap-x-16;
97
97
  }
98
98
 
99
99
  .ui-meganav-media-heading {
100
- @apply text-menu3 text-cool-black font-medium group-hover:text-gui-hover group-focus:text-gui-focus;
100
+ @apply font-medium text-menu3 text-cool-black group-hover:text-gui-hover group-focus:text-gui-focus;
101
101
  }
102
102
 
103
103
  .ui-meganav-media-copy {
104
- @apply text-p3 text-dark-grey font-light;
104
+ @apply font-light text-p3 text-dark-grey;
105
105
  }
106
106
 
107
107
  .ui-meganav-overline {
@@ -112,3 +112,44 @@
112
112
  @apply my-0 text-mid-grey;
113
113
  }
114
114
  }
115
+
116
+ .HW_badge {
117
+ width: 1.25rem !important;
118
+ height: 1.25rem !important;
119
+ display: flex !important;
120
+ justify-content: center !important;
121
+ align-items: center !important;
122
+ font-size: 14px !important;
123
+ top: 2px !important;
124
+ left: 20px !important;
125
+ transition: none !important;
126
+ pointer-events: none !important;
127
+ }
128
+
129
+ .HW_animated {
130
+ animation: none !important;
131
+ }
132
+
133
+ .invisible .HW_badge {
134
+ visibility: hidden !important;
135
+ display: none !important;
136
+ }
137
+
138
+ .invisible .HW_frame {
139
+ visibility: hidden !important;
140
+ display: none !important;
141
+ }
142
+
143
+ .HW_badge_cont.HW_visible {
144
+ display: block !important;
145
+ }
146
+
147
+ .HW_badge_cont {
148
+ visibility: unset !important;
149
+ display: none !important;
150
+ pointer-events: none !important;
151
+ }
152
+
153
+ [class^="HW_widget_component_widget-"] {
154
+ pointer-events: none !important;
155
+ }
@@ -29,7 +29,7 @@
29
29
  }
30
30
  },
31
31
  "panels": [
32
- { "label": "Platform", "shortLabel": "Platform", "id": "platform-panel", "component": "MeganavContentPlatform" },
32
+ { "label": "Products", "shortLabel": "Products", "id": "products-panel", "component": "MeganavContentProducts" },
33
33
  { "label": "Solutions", "shortLabel": "Solutions", "id": "use-cases-panel", "component": "MeganavContentUseCases" },
34
34
  { "label": "Company", "shortLabel": "Company", "id": "company-panel", "component": "MeganavContentCompany" },
35
35
  { "label": "Developers", "shortLabel": "Developers", "id": "developers-panel", "component": "MeganavContentDevelopers" }
@@ -1,30 +1,32 @@
1
- import React, { useEffect, useState } from "react";
2
1
  import T from "prop-types";
2
+ import React, { useEffect, useState } from "react";
3
3
 
4
4
  import { connectState } from "../remote-data-store";
5
5
  import { selectSessionData } from "../remote-session-data";
6
6
 
7
7
  import Logo from "../Logo/component.jsx";
8
8
 
9
- import MeganavScripts from "./component.js";
10
9
  import MeganavItemsDesktop from "../MeganavItemsDesktop/component.jsx";
11
- import MeganavItemsSignedIn from "../MeganavItemsSignedIn/component.jsx";
12
10
  import MeganavItemsMobile from "../MeganavItemsMobile/component.jsx";
11
+ import MeganavItemsSignedIn from "../MeganavItemsSignedIn/component.jsx";
13
12
  import Notice from "../Notice/component.jsx";
14
- import MeganavData from "./component.json";
15
13
  import _absUrl from "../url-base";
14
+ import MeganavScripts from "./component.js";
15
+ import MeganavData from "./component.json";
16
16
 
17
- import MeganavContentPlatform from "../MeganavContentPlatform/component.jsx";
18
- import MeganavContentUseCases from "../MeganavContentUseCases/component.jsx";
19
17
  import MeganavContentCompany from "../MeganavContentCompany/component.jsx";
20
18
  import MeganavContentDevelopers from "../MeganavContentDevelopers/component.jsx";
19
+ import MeganavContentProducts from "../MeganavContentProducts/component.jsx";
20
+ import MeganavContentUseCases from "../MeganavContentUseCases/component.jsx";
21
21
  import MeganavSearch from "../MeganavSearch/component.jsx";
22
22
 
23
+ import MeganavHeadwayPortal from "./MeganavHeadwayPortal.jsx";
24
+
23
25
  const SignIn = ({ sessionState, theme, loginLink, absUrl }) => {
24
26
  return sessionState.signedIn ? (
25
27
  <MeganavItemsSignedIn absUrl={absUrl} sessionState={sessionState} theme={theme} />
26
28
  ) : (
27
- <ul className="hidden md:flex items-center">
29
+ <ul className="items-center hidden md:flex">
28
30
  <li className="ui-meganav-item">
29
31
  <a href={absUrl("/contact")} className={`ui-meganav-link ${theme.textColor}`} data-id="meganav-link">
30
32
  Contact us
@@ -58,10 +60,10 @@ SignIn.propTypes = {
58
60
  const SignInPlaceholder = () => <div />;
59
61
 
60
62
  const panels = {
61
- MeganavContentPlatform: MeganavContentPlatform,
62
- MeganavContentUseCases: MeganavContentUseCases,
63
- MeganavContentCompany: MeganavContentCompany,
64
- MeganavContentDevelopers: MeganavContentDevelopers,
63
+ MeganavContentProducts,
64
+ MeganavContentUseCases,
65
+ MeganavContentCompany,
66
+ MeganavContentDevelopers,
65
67
  };
66
68
 
67
69
  export default function Meganav({ paths, themeName = "white", notice, loginLink = "/login", urlBase, addSearchApiKey }) {
@@ -95,6 +97,8 @@ export default function Meganav({ paths, themeName = "white", notice, loginLink
95
97
  {sessionState ? <SignIn sessionState={sessionState} theme={theme} loginLink={loginLink} absUrl={absUrl} /> : <SignInPlaceholder />}
96
98
 
97
99
  <MeganavItemsMobile panels={panels} sessionState={sessionState || {}} paths={paths} theme={theme} loginLink={loginLink} absUrl={absUrl} />
100
+
101
+ <MeganavHeadwayPortal />
98
102
  </div>
99
103
  </nav>
100
104
  );
@@ -30,10 +30,10 @@ module AblyUi
30
30
  def panels
31
31
  [
32
32
  {
33
- label: 'Platform',
34
- short_label: 'Platform',
35
- id: 'platform-panel',
36
- class: 'AblyUi::Core::MeganavContentPlatform'
33
+ label: 'Products',
34
+ short_label: 'Products',
35
+ id: 'products-panel',
36
+ class: 'AblyUi::Core::MeganavContentProducts'
37
37
  },
38
38
  {
39
39
  label: 'Solutions',
@@ -72,6 +72,15 @@
72
72
  </div>
73
73
  <% end %>
74
74
  </li>
75
+ <li>
76
+ <%= link_to abs_url("/events"), class: "ui-meganav-media-with-image group" do %>
77
+ <%= render(AblyUi::Core::Icon.new(name: "icon-display-events-col", size: "2.5rem")) %>
78
+ <div class="flex flex-col justify-center">
79
+ <p class="ui-meganav-media-heading">Events</p>
80
+ <p class="ui-meganav-media-copy">Join Ably at upcoming events.</p>
81
+ </div>
82
+ <% end %>
83
+ </li>
75
84
  </ul>
76
85
  </div>
77
86
 
@@ -88,6 +88,15 @@ const MeganavContentCompany = ({ paths, absUrl }) => {
88
88
  </div>
89
89
  </a>
90
90
  </li>
91
+ <li>
92
+ <a href={absUrl("/events")} className="ui-meganav-media-with-image group">
93
+ <Icon name="icon-display-events-col" size="2.5rem" />
94
+ <div className="flex flex-col justify-center">
95
+ <p className="ui-meganav-media-heading">Events</p>
96
+ <p className="ui-meganav-media-copy">Join Ably at upcoming events.</p>
97
+ </div>
98
+ </a>
99
+ </li>
91
100
  </ul>
92
101
  </div>
93
102
 
@@ -1,8 +1,8 @@
1
1
  <div class="flex max-w-screen-xl mx-auto">
2
2
  <div class="ui-meganav-content-spacer"></div>
3
- <section class="grid grid-cols-12 ui-grid-gap-x w-full">
4
- <div class="col-span-full md:col-span-4 pt-24 md:py-24 lg:py-32 px-24 sm:px-32 md:pl-0 md:pr-24">
5
- <h3 class="ui-meganav-overline uppercase" id="meganav-developers-panel-explore">
3
+ <section class="grid w-full grid-cols-12 ui-grid-gap-x">
4
+ <div class="px-24 pt-24 col-span-full md:col-span-4 md:py-24 lg:py-32 sm:px-32 md:pl-0 md:pr-24">
5
+ <h3 class="uppercase ui-meganav-overline" id="meganav-developers-panel-explore">
6
6
  Explore
7
7
  </h3>
8
8
  <ul aria-labelledby="meganav-developers-panel-explore">
@@ -33,10 +33,18 @@
33
33
  </div>
34
34
  <% end %>
35
35
  </li>
36
+ <li>
37
+ <%= link_to abs_url("/examples"), class: "ui-meganav-media-with-image group" do %>
38
+ <%= render(AblyUi::Core::Icon.new(name: "icon-display-examples-col", size: "2.5rem")) %>
39
+ <div class="flex flex-col justify-center">
40
+ <p class="ui-meganav-media-heading">Live examples</p>
41
+ <p class="ui-meganav-media-copy">Discover our features and their use cases.</p>
42
+ </div>
43
+ <% end %>
44
+ </li>
36
45
  </ul>
37
46
  </div>
38
-
39
- <div class="col-span-full md:col-span-4 pb-8 md:py-24 lg:py-32 px-24 sm:px-32 md:px-0">
47
+ <div class="px-24 pb-8 col-span-full md:col-span-4 md:py-24 lg:py-32 sm:px-32 md:px-0">
40
48
  <ul class="md:mt-40" aria-labelledby="meganav-developers-panel-explore">
41
49
  <li>
42
50
  <%= link_to abs_url("/download"), class: "ui-meganav-media-with-image group" do %>
@@ -65,16 +73,24 @@
65
73
  </div>
66
74
  <% end %>
67
75
  </li>
76
+ <li>
77
+ <%= link_to abs_url("/reference-guide-multiplayer"), class: "ui-meganav-media-with-image group" do %>
78
+ <%= render(AblyUi::Core::Icon.new(name: "icon-multi-user-spaces-col", size: "2.5rem")) %>
79
+ <div class="flex flex-col justify-center">
80
+ <p class="ui-meganav-media-heading">Multiplayer reference guide</p>
81
+ <p class="ui-meganav-media-copy">Learn how to build collaborative features with Ably.</p>
82
+ </div>
83
+ <% end %>
84
+ </li>
68
85
  </ul>
69
86
  </div>
70
-
71
- <div class="col-span-full md:col-span-4 pt-8 pb-24 md:py-24 lg:py-32 px-24 sm:px-32 md:px-0">
72
- <h3 class="ui-meganav-overline uppercase" id="meganav-developers-panel-quick-links">
87
+ <div class="px-24 pt-8 pb-24 col-span-full md:col-span-4 md:py-24 lg:py-32 px-24 sm:px-32 md:px-0">
88
+ <h3 class="uppercase ui-meganav-overline" id="meganav-developers-panel-quick-links">
73
89
  Quick links
74
90
  </h3>
75
91
  <ul aria-labelledby="meganav-developers-panel-quick-links">
76
92
  <li>
77
- <%= link_to "https://discord.gg/jwBPhEZ9g5", class: "group ui-meganav-media py-12" do %>
93
+ <%= link_to "https://discord.gg/jwBPhEZ9g5", class: "py-12 group ui-meganav-media" do %>
78
94
  <p class="ui-meganav-media-heading">Discord</p>
79
95
  <% end %>
80
96
  </li>
@@ -84,25 +100,26 @@
84
100
  <% end %>
85
101
  </li>
86
102
  <li>
87
- <%= link_to "https://changelog.ably.com/", class: "group ui-meganav-media py-12" do %>
103
+ <%= link_to "https://changelog.ably.com/", class: "py-12 group ui-meganav-media", target: "_blank", rel: "noopener noreferrer" do %>
88
104
  <p class="ui-meganav-media-heading">Changelog</p>
105
+ <span className="headwayPortal"></span>
89
106
  <% end %>
90
107
  </li>
91
108
  <li>
92
- <a href="https://status.ably.com/" class="group ui-meganav-media py-12">
109
+ <a href="https://status.ably.com/" class="py-12 group ui-meganav-media">
93
110
  <p class="ui-meganav-media-heading">
94
111
  Status<iframe
95
112
  src="https://status.ably.com/embed/icon"
96
113
  allowtransparency="true"
97
114
  frameborder="0"
98
115
  scrolling="no"
99
- class="w-24 h-24 ml-4 border-none pointer-events-none align-middle"
116
+ class="w-24 h-24 ml-4 align-middle border-none pointer-events-none"
100
117
  ></iframe>
101
118
  </p>
102
119
  </a>
103
120
  </li>
104
121
  <li>
105
- <%= link_to abs_url("/support"), class: "group ui-meganav-media py-12" do %>
122
+ <%= link_to abs_url("/support"), class: "py-12 group ui-meganav-media" do %>
106
123
  <p class="ui-meganav-media-heading">Support & FAQs</p>
107
124
  <% end %>
108
125
  </li>
@@ -0,0 +1,16 @@
1
+ export default () => {
2
+ // See https://docs.headwayapp.co/widget for more configuration options.
3
+
4
+ // eslint-disable-next-line no-unused-vars
5
+ const HW_config = {
6
+ selector: '.headwayPortal',
7
+ account: 'yZ1rmJ'
8
+ };
9
+
10
+ const script = document.createElement('script');
11
+ script.async = true;
12
+ script.src = 'https://cdn.headwayapp.co/widget.js';
13
+ script.type = 'script/javascript';
14
+ const head = document.getElementsByTagName('head')[0];
15
+ head.appendChild(script);
16
+ };
@@ -1,14 +1,14 @@
1
- import React from "react";
2
1
  import T from "prop-types";
2
+ import React from "react";
3
3
 
4
4
  import Icon from "../Icon/component.jsx";
5
5
 
6
6
  const MeganavContentDevelopers = ({ absUrl }) => (
7
7
  <div className="flex max-w-screen-xl mx-auto">
8
8
  <div className="ui-meganav-content-spacer"></div>
9
- <section className="grid grid-cols-12 ui-grid-gap-x w-full">
10
- <div className="col-span-full md:col-span-4 pt-24 md:py-24 lg:py-32 px-24 sm:px-32 md:pl-0 md:pr-24">
11
- <h3 className="ui-meganav-overline uppercase" id="meganav-developers-panel-explore">
9
+ <section className="grid w-full grid-cols-12 ui-grid-gap-x">
10
+ <div className="px-24 pt-24 col-span-full md:col-span-4 md:py-24 lg:py-32 sm:px-32 md:pl-0 md:pr-24">
11
+ <h3 className="uppercase ui-meganav-overline" id="meganav-developers-panel-explore">
12
12
  Explore
13
13
  </h3>
14
14
  <ul aria-labelledby="meganav-developers-panel-explore">
@@ -39,10 +39,19 @@ const MeganavContentDevelopers = ({ absUrl }) => (
39
39
  </div>
40
40
  </a>
41
41
  </li>
42
+ <li>
43
+ <a href={absUrl("/examples")} className="ui-meganav-media-with-image group">
44
+ <Icon name="icon-display-examples-col" size="2.5rem" />
45
+ <div className="flex flex-col justify-center">
46
+ <p className="ui-meganav-media-heading">Live examples</p>
47
+ <p className="ui-meganav-media-copy">Discover our features and their use cases.</p>
48
+ </div>
49
+ </a>
50
+ </li>
42
51
  </ul>
43
52
  </div>
44
53
 
45
- <div className="col-span-full md:col-span-4 pb-8 md:py-24 lg:py-32 px-24 sm:px-32 md:px-0">
54
+ <div className="px-24 pb-8 col-span-full md:col-span-4 md:py-24 lg:py-32 sm:px-32 md:px-0">
46
55
  <ul className="md:mt-40" aria-labelledby="meganav-developers-panel-explore">
47
56
  <li>
48
57
  <a href={absUrl("/download")} className="ui-meganav-media-with-image group">
@@ -58,7 +67,7 @@ const MeganavContentDevelopers = ({ absUrl }) => (
58
67
  <Icon name="icon-display-tutorials-demos-col" size="2.5rem" />
59
68
  <div className="flex flex-col justify-center">
60
69
  <p className="ui-meganav-media-heading">Tutorials & Demos</p>
61
- <p className="ui-meganav-media-copy">Get stuck in with our hands-on resources. </p>
70
+ <p className="ui-meganav-media-copy">Get stuck in with our hands-on resources.</p>
62
71
  </div>
63
72
  </a>
64
73
  </li>
@@ -71,45 +80,56 @@ const MeganavContentDevelopers = ({ absUrl }) => (
71
80
  </div>
72
81
  </a>
73
82
  </li>
83
+ <li>
84
+ <a href={absUrl("/reference-guide-multiplayer")} className="ui-meganav-media-with-image group">
85
+ <Icon name="icon-multi-user-spaces-col" size="2.5rem" />
86
+ <div className="flex flex-col justify-center">
87
+ <p className="ui-meganav-media-heading">Multiplayer reference guide</p>
88
+ <p className="ui-meganav-media-copy">Learn how to build collaborative features with Ably.</p>
89
+ </div>
90
+ </a>
91
+ </li>
74
92
  </ul>
75
93
  </div>
76
94
 
77
- <div className="col-span-full md:col-span-4 pt-8 pb-24 md:py-24 lg:py-32 px-24 sm:px-32 md:px-0">
78
- <h3 className="ui-meganav-overline uppercase" id="meganav-developers-panel-quick-links">
95
+ <div className="px-24 pt-8 pb-24 col-span-full md:col-span-4 md:py-24 lg:py-32 sm:px-32 md:px-0">
96
+ <h3 className="uppercase ui-meganav-overline" id="meganav-developers-panel-quick-links">
79
97
  Quick links
80
98
  </h3>
81
99
  <ul aria-labelledby="meganav-developers-panel-quick-links">
82
100
  <li>
83
- <a href="https://discord.gg/jwBPhEZ9g5" className="group ui-meganav-media py-12">
101
+ <a href="https://discord.gg/jwBPhEZ9g5" className="py-12 group ui-meganav-media">
84
102
  <p className="ui-meganav-media-heading">Discord</p>
85
103
  </a>
86
104
  </li>
87
105
  <li>
88
- <a href="https://github.com/ably" className="group ui-meganav-media py-12">
106
+ <a href="https://github.com/ably" className="py-12 group ui-meganav-media">
89
107
  <p className="ui-meganav-media-heading">GitHub</p>
90
108
  </a>
91
109
  </li>
92
110
  <li>
93
- <a href="https://changelog.ably.com/" className="group ui-meganav-media py-12">
94
- <p className="ui-meganav-media-heading">Changelog</p>
111
+ <a href="https://changelog.ably.com/" className="py-12 group ui-meganav-media" rel="noopener noreferrer" target="_blank">
112
+ <span className="ui-meganav-media-heading">Changelog</span>
113
+ <span className="headwayPortal"></span>
95
114
  </a>
96
115
  </li>
97
116
  <li>
98
- <a href="https://status.ably.com/" className="group ui-meganav-media py-12">
117
+ <a href="https://status.ably.com/" className="py-12 group ui-meganav-media">
99
118
  <p className="ui-meganav-media-heading">
100
119
  Status
101
120
  <iframe
121
+ title="Ably status"
102
122
  src="https://status.ably.com/embed/icon"
103
123
  allowtransparency="true"
104
124
  frameBorder="0"
105
125
  scrolling="no"
106
- className="w-24 h-24 ml-4 border-none pointer-events-none align-middle"
126
+ className="w-24 h-24 ml-4 align-middle border-none pointer-events-none"
107
127
  ></iframe>
108
128
  </p>
109
129
  </a>
110
130
  </li>
111
131
  <li>
112
- <a href={absUrl("/support")} className="group ui-meganav-media py-12">
132
+ <a href={absUrl("/support")} className="py-12 group ui-meganav-media">
113
133
  <p className="ui-meganav-media-heading">Support & FAQs</p>
114
134
  </a>
115
135
  </li>
@@ -16,52 +16,34 @@
16
16
  </div>
17
17
 
18
18
  <div class="col-span-full md:col-span-4 pt-24 pb-8 md:py-24 lg:py-32 px-24 sm:px-32 md:px-0 bg-white">
19
- <h3 class="ui-meganav-overline" id="meganav-platform-panel-list-examples">Our Examples</h3>
20
- <ul class="mb-16" aria-labelledby="meganav-platform-panel-list-examples">
19
+ <h3 class="ui-meganav-overline" id="meganav-products-panel-list-examples">
20
+ Products
21
+ </h3>
22
+ <ul class="mb-16" aria-labelledby="meganav-products-panel-list-examples">
21
23
  <li>
22
- <%= link_to abs_url("/examples/avatar-stack"), class: "ui-meganav-media group" do %>
23
- <p class="ui-meganav-media-heading">Avatar Stack</p>
24
- <p class="ui-meganav-media-copy">See who is connected in a digital space.</p>
24
+ <%= link_to abs_url("/solutions/channels"), class: "ui-meganav-media group" do %>
25
+ <p class="ui-meganav-media-heading">Pub/Sub Channels</p>
26
+ <p class="ui-meganav-media-copy">Build infinitely scalable realtime applications.</p>
25
27
  <% end %>
26
28
  </li>
27
29
  <li>
28
- <%= link_to abs_url("/examples/emoji-reactions"), class: "ui-meganav-media group" do %>
29
- <p class="ui-meganav-media-heading">Emoji Reactions</p>
30
- <p class="ui-meganav-media-copy">React with an emoji to a message.</p>
30
+ <%= link_to abs_url("/spaces"), class: "ui-meganav-media group" do %>
31
+ <p class="ui-meganav-media-heading">Spaces (Beta)</p>
32
+ <p class="ui-meganav-media-copy">Create multi-user collaborative environments.</p>
31
33
  <% end %>
32
34
  </li>
33
35
  <li>
34
- <%= link_to abs_url("/examples/activity-feed"), class: "ui-meganav-media group" do %>
35
- <p class="ui-meganav-media-heading">Activity Feed</p>
36
- <p class="ui-meganav-media-copy">Display a list of user actions in realtime.</p>
37
- <% end %>
38
- </li>
39
- <li>
40
- <%= link_to abs_url("/examples/live-charts"), class: "ui-meganav-media group" do %>
41
- <p class="ui-meganav-media-heading">Live Charts</p>
42
- <p class="ui-meganav-media-copy">Visualise live metrics and data in a chart.</p>
43
- <% end %>
44
- </li>
45
- <li>
46
- <%= link_to abs_url("/examples/live-cursors"), class: "ui-meganav-media group" do %>
47
- <p class="ui-meganav-media-heading">Live Cursors</p>
48
- <p class="ui-meganav-media-copy">Track all cursors in realtime.</p>
49
- <% end %>
50
- </li>
51
- <li>
52
- <%= link_to abs_url("/examples/typing-indicator"), class: "ui-meganav-media group" do %>
53
- <p class="ui-meganav-media-heading">Typing Indicator</p>
54
- <p class="ui-meganav-media-copy">See when a user is typing a message.</p>
36
+ <%= link_to abs_url("/livesync"), class: "ui-meganav-media group" do %>
37
+ <p class="ui-meganav-media-heading">LiveSync (Pre release)</p>
38
+ <p class="ui-meganav-media-copy">Keep clients in sync with any relational database.</p>
55
39
  <% end %>
56
40
  </li>
57
41
  </ul>
58
-
59
- <%= render(AblyUi::Core::FeaturedLink.new(url: abs_url("/examples"), text_size: 'text-p3')) do %>Explore all live examples<% end %>
60
42
  </div>
61
43
 
62
44
  <div class="col-span-full md:col-span-4 pt-8 pb-24 md:py-24 lg:py-32 px-24 sm:px-32 md:px-0 bg-white">
63
- <h3 class="ui-meganav-overline" id="meganav-platform-panel-list-our-technology">Our technology</h3>
64
- <ul class="mb-16" aria-labelledby="meganav-platform-panel-list-our-technology">
45
+ <h3 class="ui-meganav-overline" id="meganav-products-panel-list-our-technology">Technology</h3>
46
+ <ul class="mb-16" aria-labelledby="meganav-products-panel-list-our-technology">
65
47
  <li>
66
48
  <%= link_to abs_url("/four-pillars-of-dependability#performance"), class: "ui-meganav-media group" do %>
67
49
  <p class="ui-meganav-media-heading">Predictable performance</p>