@ably/ui 8.7.0-dev.9b0589d → 8.7.0-dev.d70b391

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 (49) hide show
  1. package/core/DropdownMenu.jsx +0 -4
  2. package/core/Flash.jsx +132 -57
  3. package/core/Logo.jsx +28 -113
  4. package/core/Meganav.jsx +178 -186
  5. package/core/MeganavContentDevelopers.jsx +12 -12
  6. package/core/MeganavContentWhyAbly/component.js +21 -5
  7. package/core/MeganavContentWhyAbly.jsx +3276 -3
  8. package/core/Notice/component.js +1 -1
  9. package/core/Notice.jsx +133 -58
  10. package/core/images/ably-logo.png +0 -0
  11. package/core/sprites.svg +35 -1
  12. package/core/styles.css +2 -0
  13. package/package.json +1 -1
  14. package/src/core/DropdownMenu/component.jsx +0 -2
  15. package/src/core/FeatureFooter/component.html.erb +1 -1
  16. package/src/core/Flash/component.jsx +42 -14
  17. package/src/core/Logo/component.html.erb +2 -27
  18. package/src/core/Logo/component.jsx +7 -40
  19. package/src/core/Logo/component.rb +15 -6
  20. package/src/core/Meganav/component.html.erb +1 -1
  21. package/src/core/Meganav/component.jsx +1 -1
  22. package/src/core/Meganav/component.rb +1 -0
  23. package/src/core/MeganavContentDevelopers/component.html.erb +8 -8
  24. package/src/core/MeganavContentDevelopers/component.jsx +12 -12
  25. package/src/core/core.rb +4 -0
  26. package/src/core/icons/github.svg +1 -1
  27. package/src/core/icons/google.svg +3 -0
  28. package/src/core/icons/icon-display-chat-col.svg +4 -0
  29. package/src/core/icons/icon-gui-check-circled-fill-black.svg +4 -0
  30. package/src/core/icons/icon-gui-filter-flow-step-1.svg +5 -0
  31. package/src/core/icons/icon-gui-filter-flow-step-2.svg +5 -0
  32. package/src/core/icons/icon-gui-filter-flow-step-3.svg +5 -0
  33. package/src/core/icons/icon-gui-resources.svg +3 -0
  34. package/src/core/icons/stackoverflow.svg +3 -0
  35. package/src/core/icons/youtube.svg +11 -0
  36. package/src/core/images/ably-logo.png +0 -0
  37. package/src/core/styles/properties.css +2 -0
  38. package/core/.DS_Store +0 -0
  39. package/core/fonts/.DS_Store +0 -0
  40. package/core/images/.DS_Store +0 -0
  41. package/core/scripts.js.LICENSE.txt +0 -32
  42. package/preview/vendor/bundle/ruby/3.0.0/bundler/gems/ably-ui-abffd210ec0f/preview/log/.keep +0 -0
  43. package/preview/vendor/bundle/ruby/3.0.0/bundler/gems/ably-ui-abffd210ec0f/preview/tmp/.keep +0 -0
  44. package/preview/vendor/bundle/ruby/3.0.0/bundler/gems/ably-ui-abffd210ec0f/preview/tmp/pids/.keep +0 -0
  45. package/src/.DS_Store +0 -0
  46. package/src/core/.DS_Store +0 -0
  47. package/src/core/fonts/.DS_Store +0 -0
  48. package/src/core/images/.DS_Store +0 -0
  49. package/src/reset/.DS_Store +0 -0
package/core/styles.css CHANGED
@@ -47,6 +47,8 @@
47
47
  --icon-color-glassdoor: #0baa41;
48
48
  --icon-color-github: #000000;
49
49
  --icon-color-discord: #5865f2;
50
+ --icon-color-stackoverflow: #f48024;
51
+ --icon-color-youtube: #ff0000;
50
52
 
51
53
  --gradient-active-orange: linear-gradient(
52
54
  61.2deg,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ably/ui",
3
- "version": "8.7.0-dev.9b0589d",
3
+ "version": "8.7.0-dev.d70b391",
4
4
  "description": "Home of the Ably design system library ([design.ably.com](https://design.ably.com)). It provides a showcase, development/test environment and a publishing pipeline for different distributables.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -54,8 +54,6 @@ const Trigger = ({ children, additionalTriggerCSS = "" }) => {
54
54
  );
55
55
  };
56
56
 
57
- <DropdownMenu.Trigger className="list of names">Click me</DropdownMenu.Trigger>;
58
-
59
57
  Trigger.propTypes = {
60
58
  children: T.node,
61
59
  additionalTriggerCSS: T.string,
@@ -46,7 +46,7 @@
46
46
  </ul>
47
47
  </span>
48
48
  <span class="flex-0">
49
- <%= link_to 'Start with a free account', abs_url("/sign-up"), class: "ui-btn-secondary self-start mt-24" %>
49
+ <%= link_to 'Start building', abs_url("/sign-up"), class: "ui-btn-secondary self-start mt-24" %>
50
50
  </span>
51
51
  </div>
52
52
  </div>
@@ -1,6 +1,7 @@
1
1
  import React, { useEffect, useState, useRef } from "react";
2
2
  import DOMPurify from "dompurify";
3
3
  import T from "prop-types";
4
+ import { nanoid } from "nanoid/non-secure";
4
5
 
5
6
  import { getRemoteDataStore } from "../remote-data-store";
6
7
  import ConnectStateWrapper from "../ConnectStateWrapper/component.jsx";
@@ -50,30 +51,45 @@ const FLASH_TEXT_COLOR = {
50
51
  const AUTO_HIDE = ["success", "info", "notice"];
51
52
  const AUTO_HIDE_TIME = 8000;
52
53
 
53
- const Flash = ({ type, content }) => {
54
- const ref = useRef(null);
55
- const [closed, setClosed] = useState(false);
56
- const [flashHeight, setFlashHeight] = useState(0);
57
- const [triggerEntryAnimation, setTriggerEntryAnimation] = useState(false);
54
+ const useAutoHide = (type, closeFlash) => {
55
+ const timeoutId = useRef(null);
58
56
 
59
- useEffect(() => setTriggerEntryAnimation(true), []);
60
57
  useEffect(() => {
61
58
  if (AUTO_HIDE.includes(type)) {
62
- setTimeout(() => {
63
- // closeFlash is idempotent, we can call it even if the flash has been already closed
59
+ timeoutId.current = setTimeout(() => {
64
60
  closeFlash();
65
61
  }, AUTO_HIDE_TIME);
66
62
  }
67
- }, [closed]);
63
+
64
+ return () => {
65
+ if (timeoutId.current) {
66
+ clearTimeout(timeoutId.current);
67
+ }
68
+ };
69
+ }, []);
70
+ };
71
+
72
+ const Flash = ({ id, type, content, removeFlash }) => {
73
+ const ref = useRef(null);
74
+ const [closed, setClosed] = useState(false);
75
+ const [flashHeight, setFlashHeight] = useState(0);
76
+ const [triggerEntryAnimation, setTriggerEntryAnimation] = useState(false);
68
77
 
69
78
  const closeFlash = () => {
70
79
  if (ref.current) {
71
80
  setFlashHeight(ref.current.getBoundingClientRect().height);
72
81
  }
73
82
 
74
- setTimeout(() => setClosed(true), 0);
83
+ setClosed(true);
84
+
85
+ setTimeout(() => {
86
+ removeFlash(id);
87
+ }, 100);
75
88
  };
76
89
 
90
+ useEffect(() => setTriggerEntryAnimation(true), []);
91
+ useAutoHide(type, closeFlash);
92
+
77
93
  const animateEntry = triggerEntryAnimation && !closed;
78
94
 
79
95
  let style;
@@ -123,13 +139,25 @@ Flash.propTypes = {
123
139
  };
124
140
 
125
141
  const Flashes = ({ flashes }) => {
126
- const items = flashes?.items || [];
142
+ const [flashesWithIds, setFlashesWithIds] = useState([]);
143
+
144
+ const removeFlash = (flashId) => setFlashesWithIds((items) => items.filter((item) => item.id !== flashId));
145
+
146
+ useEffect(() => {
147
+ setFlashesWithIds((state) => {
148
+ return [...state, ...(flashes?.items || []).map((flash) => ({ ...flash, id: nanoid(), removed: false }))];
149
+ });
150
+ }, [flashes]);
151
+
152
+ console.log({ flashesWithIds });
127
153
 
128
154
  return (
129
155
  <div className="ui-flash" data-id={FLASH_DATA_ID}>
130
- {items.map((flash) => (
131
- <Flash key={flash.type} {...flash} />
132
- ))}
156
+ {flashesWithIds
157
+ .filter((item) => !item.removed)
158
+ .map((flash) => (
159
+ <Flash removeFlash={removeFlash} key={flash.id} {...flash} />
160
+ ))}
133
161
  </div>
134
162
  );
135
163
  };
@@ -1,28 +1,3 @@
1
- <%= link_to logo_href, class: 'h-32' do %>
2
- <%= tag.svg class: ["transition-colors", "text-cool-black"], data: { id: data_id }, width: "108", height: "32", viewBox: "0 0 108 32", xmlns: "http://www.w3.org/2000/svg" do %>
3
- <path
4
- d="M62.922 24.9786V4.08813H66.6933V11.6512C67.9709 10.435 69.6164 9.76044 71.3538 9.76044C75.4318 9.76044 79.0498 12.8674 79.0498 17.5484C79.0498 22.2293 75.4318 25.3465 71.3538 25.3465C69.5244 25.3465 67.7971 24.6209 66.5094 23.3024V24.9786H62.922ZM75.2785 17.5484C75.2785 14.932 73.4183 13.1025 70.9859 13.1025C68.6148 13.1025 66.7853 14.84 66.6933 17.3644V17.5484C66.6933 20.1648 68.5534 21.9942 70.9859 21.9942C73.4183 21.9942 75.2785 20.1648 75.2785 17.5484ZM80.7975 24.9786V4.08813H84.5688V24.9786H80.7975ZM89.8425 30.3954L92.0399 25.1523L86.0712 10.1284H90.1491L93.9511 20.6247L97.8144 10.1284H101.954L93.8591 30.4056H89.8425V30.3954ZM56.9329 10.1284V12.0191C55.6247 10.5883 53.7952 9.77066 51.9147 9.77066C47.8367 9.77066 44.2187 12.8777 44.2187 17.5586C44.2187 22.2497 47.8367 25.3465 51.9147 25.3465C53.8668 25.3465 55.7166 24.4982 57.0555 22.9754V24.9888H60.3465V10.1284H56.9329ZM56.5649 17.5484C56.5649 20.1341 54.7048 21.9942 52.2724 21.9942C49.8399 21.9942 47.9798 20.1341 47.9798 17.5484C47.9798 14.9626 49.8399 13.1025 52.2724 13.1025C54.6435 13.1025 56.473 14.8706 56.5649 17.3644V17.5484Z"
5
- fill="currentColor"
6
- />
7
- <path d="M19.2858 0L3.14788 29.5369L0 27.3293L14.932 0H19.2858ZM19.5107 0L35.6487 29.5369L38.7965 27.3293L23.8646 0H19.5107Z" fill="url(#<%= gradient_id_0 %>)" />
8
- <path d="M35.4238 29.7107L19.3983 17.16L3.37271 29.7107L6.64323 32L19.3983 22.0147L32.1533 32L35.4238 29.7107Z" fill="url(#<%= gradient_id_1 %>)" />
9
- <defs>
10
- <linearGradient id="<%= gradient_id_0 %>" x1="5.47361" y1="37.4219" x2="32.4603" y2="7.45023" gradientUnits="userSpaceOnUse">
11
- <stop stop-color="#FF5416" />
12
- <stop offset="0.2535" stop-color="#FF5115" />
13
- <stop offset="0.461" stop-color="#FF4712" />
14
- <stop offset="0.6523" stop-color="#FF350E" />
15
- <stop offset="0.8327" stop-color="#FF1E08" />
16
- <stop offset="1" stop-color="#FF0000" />
17
- </linearGradient>
18
- <linearGradient id="<%= gradient_id_1 %>" x1="10.7084" y1="39.3593" x2="26.6583" y2="21.6452" gradientUnits="userSpaceOnUse">
19
- <stop stop-color="#FF5416" />
20
- <stop offset="0.2535" stop-color="#FF5115" />
21
- <stop offset="0.461" stop-color="#FF4712" />
22
- <stop offset="0.6523" stop-color="#FF350E" />
23
- <stop offset="0.8327" stop-color="#FF1E08" />
24
- <stop offset="1" stop-color="#FF0000" />
25
- </linearGradient>
26
- </defs>
27
- <% end %>
1
+ <%= link_to logo_href, class: 'block', style: "height: 2.125rem", data: { id: data_id }, **additional_link_attrs do %>
2
+ <%= tag.img src: logo_url, width: "108px", alt: "Ably logo", **additional_img_attrs %>
28
3
  <% end %>
@@ -1,46 +1,10 @@
1
- import React, { useMemo } from "react";
1
+ import React from "react";
2
2
  import T from "prop-types";
3
- import { nanoid } from "nanoid/non-secure";
4
-
5
- const Logo = ({ dataId, href = "/" }) => {
6
- // This fixes a bug where if the logo is rendered more than once on the page, and one of the instances
7
- // if it is hidden, the other instance will not show the ably shape from the logo.
8
-
9
- // This is because the defs in this SVG reference ids that need to be unique ids. The browser discards the "newer"
10
- // linearGradients defined in the other logo, and inherits the `hidden` style from the first.
11
- const gradientIds = useMemo(() => [nanoid(), nanoid()], []);
12
3
 
4
+ const Logo = ({ dataId, logoUrl, href = "/", additionalImgAttrs, additionalLinkAttrs }) => {
13
5
  return (
14
- <a href={href} className="h-32">
15
- <svg data-id={dataId} className="text-cool-black transition-colors" width="108" height="32" viewBox="0 0 108 32" xmlns="http://www.w3.org/2000/svg">
16
- <path
17
- d="M62.922 24.9786V4.08813H66.6933V11.6512C67.9709 10.435 69.6164 9.76044 71.3538 9.76044C75.4318 9.76044 79.0498 12.8674 79.0498 17.5484C79.0498 22.2293 75.4318 25.3465 71.3538 25.3465C69.5244 25.3465 67.7971 24.6209 66.5094 23.3024V24.9786H62.922ZM75.2785 17.5484C75.2785 14.932 73.4183 13.1025 70.9859 13.1025C68.6148 13.1025 66.7853 14.84 66.6933 17.3644V17.5484C66.6933 20.1648 68.5534 21.9942 70.9859 21.9942C73.4183 21.9942 75.2785 20.1648 75.2785 17.5484ZM80.7975 24.9786V4.08813H84.5688V24.9786H80.7975ZM89.8425 30.3954L92.0399 25.1523L86.0712 10.1284H90.1491L93.9511 20.6247L97.8144 10.1284H101.954L93.8591 30.4056H89.8425V30.3954ZM56.9329 10.1284V12.0191C55.6247 10.5883 53.7952 9.77066 51.9147 9.77066C47.8367 9.77066 44.2187 12.8777 44.2187 17.5586C44.2187 22.2497 47.8367 25.3465 51.9147 25.3465C53.8668 25.3465 55.7166 24.4982 57.0555 22.9754V24.9888H60.3465V10.1284H56.9329ZM56.5649 17.5484C56.5649 20.1341 54.7048 21.9942 52.2724 21.9942C49.8399 21.9942 47.9798 20.1341 47.9798 17.5484C47.9798 14.9626 49.8399 13.1025 52.2724 13.1025C54.6435 13.1025 56.473 14.8706 56.5649 17.3644V17.5484Z"
18
- fill="currentColor"
19
- />
20
- <path
21
- d="M19.2858 0L3.14788 29.5369L0 27.3293L14.932 0H19.2858ZM19.5107 0L35.6487 29.5369L38.7965 27.3293L23.8646 0H19.5107Z"
22
- fill={`url(#${gradientIds[0]})`}
23
- />
24
- <path d="M35.4238 29.7107L19.3983 17.16L3.37271 29.7107L6.64323 32L19.3983 22.0147L32.1533 32L35.4238 29.7107Z" fill={`url(#${gradientIds[1]})`} />
25
- <defs>
26
- <linearGradient id={gradientIds[0]} x1="5.47361" y1="37.4219" x2="32.4603" y2="7.45023" gradientUnits="userSpaceOnUse">
27
- <stop stopColor="#FF5416" />
28
- <stop offset="0.2535" stopColor="#FF5115" />
29
- <stop offset="0.461" stopColor="#FF4712" />
30
- <stop offset="0.6523" stopColor="#FF350E" />
31
- <stop offset="0.8327" stopColor="#FF1E08" />
32
- <stop offset="1" stopColor="#FF0000" />
33
- </linearGradient>
34
- <linearGradient id={gradientIds[1]} x1="10.7084" y1="39.3593" x2="26.6583" y2="21.6452" gradientUnits="userSpaceOnUse">
35
- <stop stopColor="#FF5416" />
36
- <stop offset="0.2535" stopColor="#FF5115" />
37
- <stop offset="0.461" stopColor="#FF4712" />
38
- <stop offset="0.6523" stopColor="#FF350E" />
39
- <stop offset="0.8327" stopColor="#FF1E08" />
40
- <stop offset="1" stopColor="#FF0000" />
41
- </linearGradient>
42
- </defs>
43
- </svg>
6
+ <a href={href} data-id={dataId} className="block" style={{ height: "2.125rem" }} {...additionalLinkAttrs}>
7
+ <img src={logoUrl} width="108px" alt="Ably logo" {...additionalImgAttrs} />
44
8
  </a>
45
9
  );
46
10
  };
@@ -48,6 +12,9 @@ const Logo = ({ dataId, href = "/" }) => {
48
12
  Logo.propTypes = {
49
13
  dataId: T.string,
50
14
  href: T.string,
15
+ logoUrl: T.string,
16
+ additionalImgAttrs: T.object,
17
+ additionalLinkAttrs: T.object,
51
18
  };
52
19
 
53
20
  export default React.memo(Logo);
@@ -1,17 +1,26 @@
1
- require 'securerandom'
2
-
3
1
  module AblyUi
4
2
  module Core
5
3
  class Logo < ViewComponent::Base
6
4
  include AblyUi::Core::MeganavConfig
7
5
 
8
- attr_reader :href, :data_id, :gradient_id_0, :gradient_id_1
6
+ attr_reader :href,
7
+ :logo_url,
8
+ :data_id,
9
+ :additional_img_attrs,
10
+ :additional_link_attrs
9
11
 
10
- def initialize(data_id: '', href:)
12
+ def initialize(
13
+ href:,
14
+ logo_url:,
15
+ data_id: '',
16
+ additional_img_attrs: {},
17
+ additional_link_attrs: {}
18
+ )
11
19
  @data_id = data_id
12
20
  @href = href
13
- @gradient_id_0 = "paint_linear_#{SecureRandom.uuid}"
14
- @gradient_id_1 = "paint_linear_#{SecureRandom.uuid}"
21
+ @logo_url = logo_url
22
+ @additional_img_attrs = additional_img_attrs
23
+ @additional_link_attrs = additional_link_attrs
15
24
  end
16
25
 
17
26
  def logo_href
@@ -3,7 +3,7 @@
3
3
 
4
4
  <div class="ui-meganav ui-grid-px">
5
5
  <div className="mr-24">
6
- <%= render(AblyUi::Core::Logo.new(data_id: "meganav-logo", href: logo_link)) %>
6
+ <%= render(AblyUi::Core::Logo.new(data_id: "meganav-logo", href: logo_link, logo_url: ably_logo)) %>
7
7
  </div>
8
8
  <%= render(AblyUi::Core::MeganavItemsDesktop.new(theme_name: @theme_name, url_base: url_base)) %>
9
9
 
@@ -86,7 +86,7 @@ export default function Meganav({ paths, themeName = "white", notice, loginLink
86
86
  {notice && <Notice {...notice.props} config={notice.config} />}
87
87
  <div className="ui-meganav ui-grid-px">
88
88
  <div className="mr-24">
89
- <Logo dataId="meganav-logo" href={urlBase} />
89
+ <Logo dataId="meganav-logo" href={urlBase} logoUrl={paths.logo} />
90
90
  </div>
91
91
 
92
92
  <MeganavItemsDesktop panels={panels} paths={paths} theme={theme} absUrl={absUrl} />
@@ -6,6 +6,7 @@ module AblyUi
6
6
  class Meganav < ViewComponent::Base
7
7
  include MeganavConfig
8
8
  include Util
9
+ include SharedAssets
9
10
  attr_reader :options, :login_link, :logo_link, :url_base
10
11
 
11
12
  renders_one :notice, AblyUi::Core::Notice
@@ -16,11 +16,11 @@
16
16
  <% end %>
17
17
  </li>
18
18
  <li>
19
- <%= link_to abs_url("/docs/key-concepts"), class: "ui-meganav-media-with-image group" do %>
20
- <%= render(AblyUi::Core::Icon.new(name: "icon-display-lightbulb-col", size: "2.5rem")) %>
19
+ <%= link_to abs_url("/integrations"), class: "ui-meganav-media-with-image group" do %>
20
+ <%= render(AblyUi::Core::Icon.new(name: "icon-display-integrations-col", size: "2.5rem")) %>
21
21
  <div class="flex flex-col justify-center">
22
- <p class="ui-meganav-media-heading">Concepts</p>
23
- <p class="ui-meganav-media-copy">Read about core Ably platform concepts.</p>
22
+ <p class="ui-meganav-media-heading">Integrations</p>
23
+ <p class="ui-meganav-media-copy">Find out more about Ably integrations. </p>
24
24
  </div>
25
25
  <% end %>
26
26
  </li>
@@ -57,11 +57,11 @@
57
57
  <% end %>
58
58
  </li>
59
59
  <li>
60
- <%= link_to abs_url("/integrations"), class: "ui-meganav-media-with-image group" do %>
61
- <%= render(AblyUi::Core::Icon.new(name: "icon-display-integrations-col", size: "2.5rem")) %>
60
+ <%= link_to abs_url("/reference-guide-chat"), class: "ui-meganav-media-with-image group" do %>
61
+ <%= render(AblyUi::Core::Icon.new(name: "icon-display-chat-col", size: "2.5rem")) %>
62
62
  <div class="flex flex-col justify-center">
63
- <p class="ui-meganav-media-heading">Integrations</p>
64
- <p class="ui-meganav-media-copy">Find out more about Ably integrations. </p>
63
+ <p class="ui-meganav-media-heading">Chat apps reference guide</p>
64
+ <p class="ui-meganav-media-copy">Learn how to build chat apps with Ably.</p>
65
65
  </div>
66
66
  <% end %>
67
67
  </li>
@@ -22,20 +22,20 @@ const MeganavContentDevelopers = ({ absUrl }) => (
22
22
  </a>
23
23
  </li>
24
24
  <li>
25
- <a href={absUrl("/docs/key-concepts")} className="ui-meganav-media-with-image group">
26
- <Icon name="icon-display-lightbulb-col" size="2.5rem" />
25
+ <a href={absUrl("/docs/quick-start-guide")} className="ui-meganav-media-with-image group">
26
+ <Icon name="icon-display-quickstart-guides-col" size="2.5rem" />
27
27
  <div className="flex flex-col justify-center">
28
- <p className="ui-meganav-media-heading">Concepts</p>
29
- <p className="ui-meganav-media-copy">Read about core Ably platform concepts.</p>
28
+ <p className="ui-meganav-media-heading">Quickstart guides</p>
29
+ <p className="ui-meganav-media-copy">Documentation to help you get started quickly.</p>
30
30
  </div>
31
31
  </a>
32
32
  </li>
33
33
  <li>
34
- <a href={absUrl("/docs/quick-start-guide")} className="ui-meganav-media-with-image group">
35
- <Icon name="icon-display-quickstart-guides-col" size="2.5rem" />
34
+ <a href={absUrl("/integrations")} className="ui-meganav-media-with-image group">
35
+ <Icon name="icon-display-integrations-col" size="2.5rem" />
36
36
  <div className="flex flex-col justify-center">
37
- <p className="ui-meganav-media-heading">Quickstart guides</p>
38
- <p className="ui-meganav-media-copy">Documentation to help you get started quickly.</p>
37
+ <p className="ui-meganav-media-heading">Integrations</p>
38
+ <p className="ui-meganav-media-copy">Find out more about Ably integrations. </p>
39
39
  </div>
40
40
  </a>
41
41
  </li>
@@ -63,11 +63,11 @@ const MeganavContentDevelopers = ({ absUrl }) => (
63
63
  </a>
64
64
  </li>
65
65
  <li>
66
- <a href={absUrl("/integrations")} className="ui-meganav-media-with-image group">
67
- <Icon name="icon-display-integrations-col" size="2.5rem" />
66
+ <a href={absUrl("/reference-guide-chat")} className="ui-meganav-media-with-image group">
67
+ <Icon name="icon-display-chat-col" size="2.5rem" />
68
68
  <div className="flex flex-col justify-center">
69
- <p className="ui-meganav-media-heading">Integrations</p>
70
- <p className="ui-meganav-media-copy">Find out more about Ably integrations. </p>
69
+ <p className="ui-meganav-media-heading">Chat apps reference guide</p>
70
+ <p className="ui-meganav-media-copy">Learn how to build chat apps with Ably.</p>
71
71
  </div>
72
72
  </a>
73
73
  </li>
package/src/core/core.rb CHANGED
@@ -30,6 +30,10 @@ module AblyUi
30
30
  end
31
31
 
32
32
  module SharedAssets
33
+ def ably_logo
34
+ asset_path 'ably_ui/core/images/ably-logo.png'
35
+ end
36
+
33
37
  def ably_stack_path
34
38
  asset_path 'ably_ui/core/images/ably-stack.svg'
35
39
  end
@@ -1,3 +1,3 @@
1
1
  <svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2
- <path fill-rule="evenodd" clip-rule="evenodd" d="M12 0C5.4 0 0 5.41945 0 12.0432C0 17.3623 3.4 21.8785 8.2 23.4843C8.8 23.5846 9 23.1832 9 22.8821C9 22.581 9 21.8785 9 20.8749C5.7 21.5774 5 19.2692 5 19.2692C4.5 17.8641 3.7 17.4627 3.7 17.4627C2.6 16.7601 3.8 16.7602 3.8 16.7602C5 16.8605 5.6 17.9645 5.6 17.9645C6.7 19.771 8.4 19.2692 9.1 18.9681C9.2 18.1652 9.5 17.6634 9.9 17.3623C7.1 17.0612 4.3 16.0576 4.3 11.4411C4.3 10.1364 4.8 9.03242 5.5 8.22953C5.5 7.82809 5 6.62377 5.7 5.01801C5.7 5.01801 6.7 4.71693 9 6.22233C10 5.92125 11 5.82089 12 5.82089C13 5.82089 14 5.92125 15 6.22233C17.3 4.71693 18.3 5.01801 18.3 5.01801C19 6.72413 18.5 7.92845 18.4 8.22953C19.2 9.03242 19.6 10.1364 19.6 11.4411C19.6 16.0576 16.8 17.0612 14.1 17.3623C14.5 17.7638 14.9 18.4663 14.9 19.5702C14.9 21.176 14.9 22.4807 14.9 22.8821C14.9 23.1832 15.1 23.5846 15.7 23.4843C20.6 21.8785 24 17.3623 24 12.0432C24 5.41945 18.6 0 12 0Z" />
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M12 0C5.4 0 0 5.41945 0 12.0432C0 17.3623 3.4 21.8785 8.2 23.4843C8.8 23.5846 9 23.1832 9 22.8821C9 22.581 9 21.8785 9 20.8749C5.7 21.5774 5 19.2692 5 19.2692C4.5 17.8641 3.7 17.4627 3.7 17.4627C2.6 16.7601 3.8 16.7602 3.8 16.7602C5 16.8605 5.6 17.9645 5.6 17.9645C6.7 19.771 8.4 19.2692 9.1 18.9681C9.2 18.1652 9.5 17.6634 9.9 17.3623C7.1 17.0612 4.3 16.0576 4.3 11.4411C4.3 10.1364 4.8 9.03242 5.5 8.22953C5.5 7.82809 5 6.62377 5.7 5.01801C5.7 5.01801 6.7 4.71693 9 6.22233C10 5.92125 11 5.82089 12 5.82089C13 5.82089 14 5.92125 15 6.22233C17.3 4.71693 18.3 5.01801 18.3 5.01801C19 6.72413 18.5 7.92845 18.4 8.22953C19.2 9.03242 19.6 10.1364 19.6 11.4411C19.6 16.0576 16.8 17.0612 14.1 17.3623C14.5 17.7638 14.9 18.4663 14.9 19.5702C14.9 21.176 14.9 22.4807 14.9 22.8821C14.9 23.1832 15.1 23.5846 15.7 23.4843C20.6 21.8785 24 17.3623 24 12.0432C24 5.41945 18.6 0 12 0Z" fill="currentColor" />
3
3
  </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M17.6483 7.36875H9.1803V10.8492H14.0178C13.8092 11.9742 13.1764 12.9258 12.2225 13.5633C11.4162 14.1023 10.3873 14.4211 9.17795 14.4211C6.83655 14.4211 4.85608 12.8391 4.14827 10.7133C3.97014 10.1742 3.86702 9.59766 3.86702 9.00469C3.86702 8.41172 3.97014 7.83516 4.14827 7.29609C4.85842 5.17266 6.83889 3.59063 9.1803 3.59063C10.4998 3.59063 11.6834 4.04531 12.6162 4.93594L15.1944 2.35547C13.6358 0.902344 11.6037 0.0117188 9.1803 0.0117188C5.66702 0.0117188 2.62717 2.02734 1.14827 4.96641C0.538892 6.18047 0.192017 7.55391 0.192017 9.00703C0.192017 10.4602 0.538892 11.8312 1.14827 13.0453C2.62717 15.9844 5.66702 18 9.1803 18C11.6084 18 13.6428 17.1938 15.1287 15.8203C16.828 14.2547 17.81 11.9484 17.81 9.20859C17.81 8.57109 17.7537 7.95937 17.6483 7.36875Z" fill="currentColor" />
3
+ </svg>