@ably/ui 8.7.0-dev.9659fc3 → 8.7.0-dev.afde810
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.
- package/README.md +9 -2
- package/core/.DS_Store +0 -0
- package/core/DropdownMenu/component.js +1 -0
- package/core/DropdownMenu.jsx +313 -0
- package/core/{MeganavContentWhyAbly → DropdownMenuPreview}/component.js +0 -0
- package/core/{MeganavContentWhyAbly.jsx → DropdownMenuPreview.jsx} +0 -0
- package/core/Flash.jsx +129 -57
- package/core/Footer/component.css +10 -0
- package/core/Footer.jsx +135 -44
- package/core/Logo.jsx +28 -113
- package/core/Meganav/component.json +1 -1
- package/core/Meganav.jsx +186 -185
- package/core/MeganavContentDevelopers.jsx +21 -9
- package/core/MeganavContentUseCases.jsx +1 -1
- package/core/MeganavItemsDesktop.jsx +1 -1
- package/core/MeganavItemsMobile.jsx +1 -1
- package/core/Notice/component.js +1 -1
- package/core/Notice.jsx +130 -58
- package/core/images/ably-logo.png +0 -0
- package/core/images/high-performer-2022.png +0 -0
- package/core/images/highest-user-adoption-2022.png +0 -0
- package/core/images/users-love-us-2022.png +0 -0
- package/core/sprites.svg +42 -1
- package/core/styles.css +2 -0
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/core/.DS_Store +0 -0
- package/{preview/vendor/bundle/ruby/3.0.0/bundler/gems/ably-ui-abffd210ec0f/preview/log/.keep → src/core/DropdownMenu/component.js} +0 -0
- package/src/core/DropdownMenu/component.jsx +112 -0
- package/src/core/FeatureFooter/component.html.erb +1 -1
- package/src/core/Flash/component.jsx +40 -14
- package/src/core/Footer/component.css +10 -0
- package/src/core/Footer/component.html.erb +110 -48
- package/src/core/Footer/component.jsx +121 -46
- package/src/core/Logo/component.html.erb +2 -27
- package/src/core/Logo/component.jsx +7 -40
- package/src/core/Logo/component.rb +15 -6
- package/src/core/Meganav/component.html.erb +1 -1
- package/src/core/Meganav/component.json +1 -1
- package/src/core/Meganav/component.jsx +1 -1
- package/src/core/Meganav/component.rb +3 -2
- package/src/core/MeganavContentDevelopers/component.html.erb +17 -8
- package/src/core/MeganavContentDevelopers/component.jsx +17 -8
- package/src/core/MeganavContentUseCases/component.html.erb +1 -1
- package/src/core/MeganavContentUseCases/component.jsx +1 -1
- package/src/core/MeganavSearchSuggestions/component.html.erb +1 -1
- package/src/core/core.rb +13 -4
- package/src/core/icons/github.svg +1 -1
- package/src/core/icons/google.svg +3 -0
- package/src/core/icons/icon-display-chat-col.svg +4 -0
- package/src/core/icons/icon-display-integrations-col.svg +8 -0
- package/src/core/icons/icon-gui-check-circled-fill-black.svg +4 -0
- package/src/core/icons/icon-gui-filter-flow-step-1.svg +5 -0
- package/src/core/icons/icon-gui-filter-flow-step-2.svg +5 -0
- package/src/core/icons/icon-gui-filter-flow-step-3.svg +5 -0
- package/src/core/icons/icon-gui-resources.svg +3 -0
- package/src/core/icons/stackoverflow.svg +3 -0
- package/src/core/icons/youtube.svg +11 -0
- package/src/core/images/ably-logo.png +0 -0
- package/src/core/images/high-performer-2022.png +0 -0
- package/src/core/images/highest-user-adoption-2022.png +0 -0
- package/src/core/images/users-love-us-2022.png +0 -0
- package/src/core/styles/properties.css +2 -0
- package/tailwind.config.js +1 -0
- package/core/fonts/.DS_Store +0 -0
- package/core/images/.DS_Store +0 -0
- package/core/scripts.js.LICENSE.txt +0 -32
- package/preview/vendor/bundle/ruby/3.0.0/bundler/gems/ably-ui-abffd210ec0f/preview/tmp/.keep +0 -0
- package/preview/vendor/bundle/ruby/3.0.0/bundler/gems/ably-ui-abffd210ec0f/preview/tmp/pids/.keep +0 -0
- package/src/core/fonts/.DS_Store +0 -0
- package/src/core/images/.DS_Store +0 -0
- package/src/reset/.DS_Store +0 -0
|
@@ -10,19 +10,18 @@ export default function Footer({ paths, urlBase }) {
|
|
|
10
10
|
return (
|
|
11
11
|
<footer className="bg-light-grey font-sans antialiased" data-id="footer">
|
|
12
12
|
<div className="max-w-screen-xl mx-auto py-32 sm:py-40 lg:py-64 ui-grid-gap ui-grid-px grid grid-cols-6">
|
|
13
|
-
<div className="col-span-full
|
|
13
|
+
<div className="col-span-full lg:col-span-2">
|
|
14
14
|
<div className="flex flex-row p-menu-row-snug">
|
|
15
15
|
<img className="mr-24 -mt-16" src={paths.ablyStack} alt="Ably homepage" />
|
|
16
16
|
<h2 className="text-overline2 col-span-full font-medium uppercase tracking-widen-0.1">The Ably Platform</h2>
|
|
17
17
|
</div>
|
|
18
|
-
|
|
19
|
-
<div className="grid grid-cols-4">
|
|
18
|
+
<div className="grid grid-cols-4 lg:col-span-2">
|
|
20
19
|
<p className="text-p3 py-16 font-medium p-menu-row-snug col-span-3">
|
|
21
20
|
Easily power any realtime experience in your application via a simple API that handles everything realtime.
|
|
22
21
|
</p>
|
|
23
22
|
</div>
|
|
24
23
|
|
|
25
|
-
<ul className="grid
|
|
24
|
+
<ul className="grid xs:grid-cols-2 gap-x-8 md:gap-x-24 xl:gap-x-32 md:grid-cols-1">
|
|
26
25
|
<li className="p-menu-row-snug">
|
|
27
26
|
<a href={absUrl("/pub-sub-messaging")} className="ui-footer-menu-row-link">
|
|
28
27
|
Pub/sub messaging
|
|
@@ -51,7 +50,7 @@ export default function Footer({ paths, urlBase }) {
|
|
|
51
50
|
</ul>
|
|
52
51
|
</div>
|
|
53
52
|
|
|
54
|
-
<div className="col-span-full
|
|
53
|
+
<div className="col-span-full xs:col-span-3 lg:col-span-1">
|
|
55
54
|
<h2 className="ui-footer-col-title">Ably is for</h2>
|
|
56
55
|
<ul>
|
|
57
56
|
<li className="p-menu-row-snug">
|
|
@@ -112,7 +111,7 @@ export default function Footer({ paths, urlBase }) {
|
|
|
112
111
|
</ul>
|
|
113
112
|
</div>
|
|
114
113
|
|
|
115
|
-
<div className="col-span-full
|
|
114
|
+
<div className="col-span-full xs:col-span-3 lg:col-span-1">
|
|
116
115
|
<h2 className="ui-footer-col-title">Developers</h2>
|
|
117
116
|
<ul>
|
|
118
117
|
<li className="p-menu-row-snug">
|
|
@@ -149,12 +148,19 @@ export default function Footer({ paths, urlBase }) {
|
|
|
149
148
|
<a className="pr-8 ui-footer-menu-row-link" href="https://status.ably.com/">
|
|
150
149
|
System status
|
|
151
150
|
</a>
|
|
152
|
-
<iframe
|
|
151
|
+
<iframe
|
|
152
|
+
className="w-24 h-24 mt-4"
|
|
153
|
+
src="https://status.ably.com/embed/icon"
|
|
154
|
+
allowtransparency="true"
|
|
155
|
+
frameBorder="0"
|
|
156
|
+
scrolling="no"
|
|
157
|
+
title="System Status"
|
|
158
|
+
></iframe>
|
|
153
159
|
</li>
|
|
154
160
|
</ul>
|
|
155
161
|
</div>
|
|
156
162
|
|
|
157
|
-
<div className="col-span-full
|
|
163
|
+
<div className="col-span-full xs:col-span-3 lg:col-span-1">
|
|
158
164
|
<h2 className="ui-footer-col-title">WHY ABLY</h2>
|
|
159
165
|
<ul>
|
|
160
166
|
<li className="p-menu-row-snug">
|
|
@@ -190,7 +196,7 @@ export default function Footer({ paths, urlBase }) {
|
|
|
190
196
|
</ul>
|
|
191
197
|
</div>
|
|
192
198
|
|
|
193
|
-
<div className="col-span-full
|
|
199
|
+
<div className="col-span-full xs:col-span-3 lg:col-span-1">
|
|
194
200
|
<h2 className="ui-footer-col-title">ABOUT</h2>
|
|
195
201
|
<ul>
|
|
196
202
|
<li className="p-menu-row-snug">
|
|
@@ -231,14 +237,86 @@ export default function Footer({ paths, urlBase }) {
|
|
|
231
237
|
</ul>
|
|
232
238
|
</div>
|
|
233
239
|
</div>
|
|
234
|
-
|
|
235
240
|
<div className="max-w-screen-xl ui-grid-px mx-auto">
|
|
236
241
|
<hr className="border-t border-mid-grey" />
|
|
237
242
|
</div>
|
|
243
|
+
{/* Twitter + Glassdoor SM * above + Glassdoor XS + Badges*/}
|
|
244
|
+
<div className="max-w-screen-xl mx-auto py-24 md:py-40 lg:py-32 grid ui-grid-gap ui-grid-px sm:grid-cols-2">
|
|
245
|
+
<div className="">
|
|
246
|
+
<div className="flex flex-col lg:flex-row flex-auto ml-8 sm:col-span-1 lg:col-span-2">
|
|
247
|
+
<div className="">
|
|
248
|
+
<div className="flex items-center pb-24">
|
|
249
|
+
<a className="h-24 pr-24 text-cool-black hover:text-icon-twitter" href="https://twitter.com/ablyrealtime" title="Ably on Twitter">
|
|
250
|
+
<Icon name="twitter" size="1.5rem" />
|
|
251
|
+
</a>
|
|
252
|
+
<a
|
|
253
|
+
className="h-24 pr-24 text-cool-black hover:text-icon-linkedin"
|
|
254
|
+
href="https://www.linkedin.com/company/ably-realtime"
|
|
255
|
+
title="Ably on LinkedIn"
|
|
256
|
+
>
|
|
257
|
+
<Icon name="linkedin" size="1.5rem" />
|
|
258
|
+
</a>
|
|
259
|
+
<a className="h-24 pr-24 text-cool-black hover:text-icon-github" href="https://github.com/ably/" title="Ably on Github">
|
|
260
|
+
<Icon name="github" size="1.5rem" />
|
|
261
|
+
</a>
|
|
262
|
+
<a className="h-24 pr-24 text-cool-black hover:text-icon-discord" href="https://discord.gg/jwBPhEZ9g5" title="Ably on Discord">
|
|
263
|
+
<Icon name="discord" size="1.5rem" />
|
|
264
|
+
</a>
|
|
265
|
+
</div>
|
|
266
|
+
</div>
|
|
267
|
+
{/* GLASSDOOR on SM and Above */}
|
|
268
|
+
<div className="xs:hidden sm:block ui-footer-glassdoor">
|
|
269
|
+
<div className="flex sm:pt-24 lg:pt-0 sm:border-t sm:border-l-0 lg:border-t-0 lg:border-l sm:border-mid-grey sm:w-3/4 lg:w-full lg:pl-24">
|
|
270
|
+
<a
|
|
271
|
+
href="https://www.glassdoor.co.uk/Overview/Working-at-Ably-EI_IE2184188.11,15.htm"
|
|
272
|
+
className="h-24 text-cool-black hover:text-icon-glassdoor"
|
|
273
|
+
title="Ably reviews on glassdoor"
|
|
274
|
+
>
|
|
275
|
+
<Icon name="glassdoor" size="1.5rem" />
|
|
276
|
+
</a>
|
|
277
|
+
<div className="pl-16 text-menu3 font-light">
|
|
278
|
+
<strong className="block font-medium">We're hiring!</strong>
|
|
279
|
+
<a href="https://www.glassdoor.co.uk/Overview/Working-at-Ably-EI_IE2184188.11,15.htm" className="ui-footer-link">
|
|
280
|
+
Learn more at Glassdoor
|
|
281
|
+
</a>
|
|
282
|
+
</div>
|
|
283
|
+
</div>
|
|
284
|
+
</div>
|
|
285
|
+
</div>
|
|
286
|
+
{/* GlassDoor on XS ONLY */}
|
|
287
|
+
<div className="xs:block sm:hidden">
|
|
288
|
+
<div className="border-t border-mid-grey w-full"></div>
|
|
289
|
+
<div className="flex py-24">
|
|
290
|
+
<a
|
|
291
|
+
className="h-24 pr-24 text-cool-black hover:text-icon-glassdoor"
|
|
292
|
+
href="https://www.glassdoor.co.uk/Overview/Working-at-Ably-EI_IE2184188.11,15.htm"
|
|
293
|
+
title="Ably reviews on glassdoor"
|
|
294
|
+
>
|
|
295
|
+
<Icon name="glassdoor" size="1.5rem" />
|
|
296
|
+
</a>
|
|
297
|
+
<div className="text-menu3 font-light">
|
|
298
|
+
<strong className="block font-medium">We're hiring!</strong>
|
|
299
|
+
<a href="https://www.glassdoor.co.uk/Overview/Working-at-Ably-EI_IE2184188.11,15.htm" className="ui-footer-link">
|
|
300
|
+
Learn more at Glassdoor
|
|
301
|
+
</a>
|
|
302
|
+
</div>
|
|
303
|
+
</div>
|
|
304
|
+
</div>
|
|
305
|
+
</div>
|
|
238
306
|
|
|
239
|
-
|
|
307
|
+
<div className="col-span-full sm:col-span-1 inline-flex sm:ml-auto">
|
|
308
|
+
<img className="mr-24 w-96 h-96" src={paths.highestUserAdoption} alt="Highest User Adoption 2022" />
|
|
309
|
+
<img className="mr-24 w-96 h-96" src={paths.usersLoveUs} alt="Users Love Us" />
|
|
310
|
+
<img className="mr-24 w-96 h-96" src={paths.highestPerformer} alt="High Performer 2022" />
|
|
311
|
+
</div>
|
|
312
|
+
</div>
|
|
313
|
+
|
|
314
|
+
<div className="max-w-screen-xl ui-grid-px mx-auto">
|
|
315
|
+
<hr className="border-t border-mid-grey" />
|
|
316
|
+
</div>
|
|
317
|
+
<div className="max-w-screen-xl mx-auto py-24 md:py-40 lg:py-32 md:grid md:grid-cols-2 ui-grid-gap ui-grid-px ">
|
|
240
318
|
<div className="flex flex-col flex-auto pb-40 ml-8 col-span-full md:col-span-1">
|
|
241
|
-
<div className="
|
|
319
|
+
<div className="pl-16 ">
|
|
242
320
|
<a href={absUrl("/privacy")} className="pr-24 ui-footer-link">
|
|
243
321
|
Cookies
|
|
244
322
|
</a>
|
|
@@ -252,40 +330,36 @@ export default function Footer({ paths, urlBase }) {
|
|
|
252
330
|
Privacy
|
|
253
331
|
</a>
|
|
254
332
|
</div>
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
<
|
|
262
|
-
</
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
<
|
|
267
|
-
<
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
>
|
|
274
|
-
<
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
333
|
+
</div>
|
|
334
|
+
<div className="xs:grid xs:grid-cols-2 sm:grid-cols-4 xs:pl-16 md:pl-0 ">
|
|
335
|
+
<div className="flex mr-24">
|
|
336
|
+
<Icon name="icon-gui-tick" color="text-active-orange" size="1.5rem" additionalCSS="bg-white rounded-full mr-12" />
|
|
337
|
+
<div>
|
|
338
|
+
<p className="ui-footer-compliance-text font-medium">SOC 2 Type 2</p>
|
|
339
|
+
<p className="ui-footer-compliance-text font-light mb-24">Certified</p>
|
|
340
|
+
</div>
|
|
341
|
+
</div>
|
|
342
|
+
<div className="flex mr-24 sm:col-start-2">
|
|
343
|
+
<Icon name="icon-gui-tick" color="text-active-orange" size="1.5rem" additionalCSS="bg-white rounded-full mr-12" />
|
|
344
|
+
<div>
|
|
345
|
+
<p className="ui-footer-compliance-text font-medium">HIPAA</p>
|
|
346
|
+
<p className="ui-footer-compliance-text font-light mb-24">Compliant</p>
|
|
347
|
+
</div>
|
|
348
|
+
</div>
|
|
349
|
+
<div className="flex mr-24 sm:col-start-3">
|
|
350
|
+
<Icon name="icon-gui-tick" color="text-active-orange" size="1.5rem" additionalCSS="bg-white rounded-full mr-12" />
|
|
351
|
+
<div>
|
|
352
|
+
<p className="ui-footer-compliance-text font-medium">EU GDPR</p>
|
|
353
|
+
<p className="ui-footer-compliance-text font-light mb-24">Certified</p>
|
|
354
|
+
</div>
|
|
355
|
+
</div>
|
|
356
|
+
<div className="flex mr-24 sm:col-start-4">
|
|
357
|
+
<Icon name="icon-gui-tick" color="text-active-orange" size="1.5rem" additionalCSS="bg-white rounded-full mr-12" />
|
|
358
|
+
<div>
|
|
359
|
+
<p className="ui-footer-compliance-text font-medium">256-bit AES</p>
|
|
360
|
+
<p className="ui-footer-compliance-text font-light mb-24">Encryption</p>
|
|
282
361
|
</div>
|
|
283
362
|
</div>
|
|
284
|
-
</div>
|
|
285
|
-
|
|
286
|
-
<div className="md:text-right col-span-full md:col-span-1 ml-8 inline-flex md:ml-auto">
|
|
287
|
-
<img className="mr-24 w-96 h-96" src={paths.rocketList} alt="Rocket List 2021" />
|
|
288
|
-
<img className="w-96 h-96" src={paths.flexibleCompanies} alt="Flexible Companies 2021" />
|
|
289
363
|
</div>
|
|
290
364
|
</div>
|
|
291
365
|
</footer>
|
|
@@ -295,8 +369,9 @@ export default function Footer({ paths, urlBase }) {
|
|
|
295
369
|
Footer.propTypes = {
|
|
296
370
|
paths: T.shape({
|
|
297
371
|
ablyStack: T.string,
|
|
298
|
-
|
|
299
|
-
|
|
372
|
+
highestPerformer: T.string,
|
|
373
|
+
highestUserAdoption: T.string,
|
|
374
|
+
usersLoveUs: T.string,
|
|
300
375
|
}),
|
|
301
376
|
urlBase: T.string,
|
|
302
377
|
};
|
|
@@ -1,28 +1,3 @@
|
|
|
1
|
-
<%= link_to logo_href, class: '
|
|
2
|
-
<%= tag.
|
|
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
|
|
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="
|
|
15
|
-
<
|
|
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,
|
|
6
|
+
attr_reader :href,
|
|
7
|
+
:logo_url,
|
|
8
|
+
:data_id,
|
|
9
|
+
:additional_img_attrs,
|
|
10
|
+
:additional_link_attrs
|
|
9
11
|
|
|
10
|
-
def initialize(
|
|
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
|
-
@
|
|
14
|
-
@
|
|
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
|
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"panels": [
|
|
32
32
|
{ "label": "Platform", "shortLabel": "Platform", "id": "platform-panel", "component": "MeganavContentPlatform" },
|
|
33
|
-
{ "label": "
|
|
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" }
|
|
36
36
|
]
|
|
@@ -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
|
|
@@ -35,8 +36,8 @@ module AblyUi
|
|
|
35
36
|
class: 'AblyUi::Core::MeganavContentPlatform'
|
|
36
37
|
},
|
|
37
38
|
{
|
|
38
|
-
label: '
|
|
39
|
-
short_label: '
|
|
39
|
+
label: 'Solutions',
|
|
40
|
+
short_label: 'Solutions',
|
|
40
41
|
id: 'use-cases-panel',
|
|
41
42
|
class: 'AblyUi::Core::MeganavContentUseCases'
|
|
42
43
|
},
|
|
@@ -16,20 +16,20 @@
|
|
|
16
16
|
<% end %>
|
|
17
17
|
</li>
|
|
18
18
|
<li>
|
|
19
|
-
<%= link_to abs_url("/docs/
|
|
20
|
-
<%= render(AblyUi::Core::Icon.new(name: "icon-display-
|
|
19
|
+
<%= link_to abs_url("/docs/quick-start-guide"), class: "ui-meganav-media-with-image group" do %>
|
|
20
|
+
<%= render(AblyUi::Core::Icon.new(name: "icon-display-quickstart-guides-col", size: "2.5rem")) %>
|
|
21
21
|
<div class="flex flex-col justify-center">
|
|
22
|
-
<p class="ui-meganav-media-heading">
|
|
23
|
-
<p class="ui-meganav-media-copy">
|
|
22
|
+
<p class="ui-meganav-media-heading">Quickstart guides</p>
|
|
23
|
+
<p class="ui-meganav-media-copy">Documentation to help you get started quickly.</p>
|
|
24
24
|
</div>
|
|
25
25
|
<% end %>
|
|
26
26
|
</li>
|
|
27
27
|
<li>
|
|
28
|
-
<%= link_to abs_url("/
|
|
29
|
-
<%= render(AblyUi::Core::Icon.new(name: "icon-display-
|
|
28
|
+
<%= link_to abs_url("/integrations"), class: "ui-meganav-media-with-image group" do %>
|
|
29
|
+
<%= render(AblyUi::Core::Icon.new(name: "icon-display-integrations-col", size: "2.5rem")) %>
|
|
30
30
|
<div class="flex flex-col justify-center">
|
|
31
|
-
<p class="ui-meganav-media-heading">
|
|
32
|
-
<p class="ui-meganav-media-copy">
|
|
31
|
+
<p class="ui-meganav-media-heading">Integrations</p>
|
|
32
|
+
<p class="ui-meganav-media-copy">Find out more about Ably integrations. </p>
|
|
33
33
|
</div>
|
|
34
34
|
<% end %>
|
|
35
35
|
</li>
|
|
@@ -56,6 +56,15 @@
|
|
|
56
56
|
</div>
|
|
57
57
|
<% end %>
|
|
58
58
|
</li>
|
|
59
|
+
<li>
|
|
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
|
+
<div class="flex flex-col justify-center">
|
|
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
|
+
</div>
|
|
66
|
+
<% end %>
|
|
67
|
+
</li>
|
|
59
68
|
</ul>
|
|
60
69
|
</div>
|
|
61
70
|
|
|
@@ -22,20 +22,20 @@ const MeganavContentDevelopers = ({ absUrl }) => (
|
|
|
22
22
|
</a>
|
|
23
23
|
</li>
|
|
24
24
|
<li>
|
|
25
|
-
<a href={absUrl("/docs/
|
|
26
|
-
<Icon name="icon-display-
|
|
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">
|
|
29
|
-
<p className="ui-meganav-media-copy">
|
|
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("/
|
|
35
|
-
<Icon name="icon-display-
|
|
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">
|
|
38
|
-
<p className="ui-meganav-media-copy">
|
|
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>
|
|
@@ -62,6 +62,15 @@ const MeganavContentDevelopers = ({ absUrl }) => (
|
|
|
62
62
|
</div>
|
|
63
63
|
</a>
|
|
64
64
|
</li>
|
|
65
|
+
<li>
|
|
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
|
+
<div className="flex flex-col justify-center">
|
|
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
|
+
</div>
|
|
72
|
+
</a>
|
|
73
|
+
</li>
|
|
65
74
|
</ul>
|
|
66
75
|
</div>
|
|
67
76
|
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
</li>
|
|
59
59
|
<li>
|
|
60
60
|
<%= link_to abs_url("/solutions/fintech"), class: "ui-meganav-media group" do %>
|
|
61
|
-
<p class="ui-meganav-media-heading">
|
|
61
|
+
<p class="ui-meganav-media-heading">FinTech</p>
|
|
62
62
|
<p class="ui-meganav-media-copy">Deliver personalised financial data in realtime.</p>
|
|
63
63
|
<% end %>
|
|
64
64
|
</li>
|
|
@@ -64,7 +64,7 @@ const MeganavContentUseCases = ({ absUrl }) => (
|
|
|
64
64
|
</li>
|
|
65
65
|
<li>
|
|
66
66
|
<a href={absUrl("/solutions/fintech")} className="ui-meganav-media group">
|
|
67
|
-
<p className="ui-meganav-media-heading">
|
|
67
|
+
<p className="ui-meganav-media-heading">FinTech</p>
|
|
68
68
|
<p className="ui-meganav-media-copy">Deliver personalised financial data in realtime.</p>
|
|
69
69
|
</a>
|
|
70
70
|
</li>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<%= link_to 'Publish/Subscribe Messaging', abs_url("/docs/core-features/pubsub"), class: "ui-text-p2 hover:text-gui-hover active:text-gui-active focus:text-gui-focus" %>
|
|
13
13
|
</li>
|
|
14
14
|
<li class="py-12 pl-8 flex-shrink-0">
|
|
15
|
-
<%= link_to 'Platform', abs_url("/
|
|
15
|
+
<%= link_to 'Platform', abs_url("/platform"), class: "ui-text-p2 hover:text-gui-hover active:text-gui-active focus:text-gui-focus" %>
|
|
16
16
|
</li>
|
|
17
17
|
</ul>
|
|
18
18
|
|
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
|
|
@@ -38,13 +42,18 @@ module AblyUi
|
|
|
38
42
|
asset_path 'ably_ui/core/images/icon-tech-aws.svg'
|
|
39
43
|
end
|
|
40
44
|
|
|
41
|
-
def
|
|
42
|
-
asset_path 'ably_ui/core/images/
|
|
45
|
+
def highest_performer
|
|
46
|
+
asset_path 'ably_ui/core/images/high-performer-2022.png'
|
|
43
47
|
end
|
|
44
48
|
|
|
45
|
-
def
|
|
46
|
-
asset_path 'ably_ui/core/images/
|
|
49
|
+
def highest_user_adoption
|
|
50
|
+
asset_path 'ably_ui/core/images/highest-user-adoption-2022.png'
|
|
47
51
|
end
|
|
52
|
+
|
|
53
|
+
def users_love_us
|
|
54
|
+
asset_path 'ably_ui/core/images/users-love-us-2022.png'
|
|
55
|
+
end
|
|
56
|
+
|
|
48
57
|
end
|
|
49
58
|
|
|
50
59
|
module Util
|
|
@@ -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>
|