@ably/ui 8.7.0-dev.0d89184 → 8.7.0-dev.0eee65d

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 (166) hide show
  1. package/README.md +15 -4
  2. package/core/Code/component.css +3 -3
  3. package/core/Code/component.js +1 -1
  4. package/core/Code.jsx +373 -7273
  5. package/core/CompanyAutocomplete/component.js +2 -1
  6. package/core/CompanyAutocomplete/component.js.LICENSE.txt +1 -0
  7. package/core/ConnectStateWrapper/component.js +1 -1
  8. package/core/ConnectStateWrapper.jsx +16 -7
  9. package/core/ContactFooter/component.js +1 -1
  10. package/core/ContactFooter.jsx +20 -126
  11. package/core/CookieMessage/component.js +1 -1
  12. package/core/CookieMessage.jsx +24 -296
  13. package/core/CustomerLogos/component.js +1 -1
  14. package/core/CustomerLogos.jsx +12 -117
  15. package/core/DropdownMenu/component.js +1 -1
  16. package/core/DropdownMenu.jsx +16 -126
  17. package/core/FeatureFooter/component.js +1 -1
  18. package/core/FeaturedLink/component.js +1 -1
  19. package/core/FeaturedLink.jsx +15 -121
  20. package/core/Flash/component.js +1 -1
  21. package/core/Flash.jsx +151 -1533
  22. package/core/Footer/component.css +21 -1
  23. package/core/Footer/component.js +1 -1
  24. package/core/Footer.jsx +172 -192
  25. package/core/Icon/component.js +1 -1
  26. package/core/Icon.jsx +12 -117
  27. package/core/Loader/component.js +1 -1
  28. package/core/Loader.jsx +12 -117
  29. package/core/Logo/component.js +1 -1
  30. package/core/Logo.jsx +38 -228
  31. package/core/Meganav/component.css +59 -20
  32. package/core/Meganav/component.js +1 -2
  33. package/core/Meganav/component.json +2 -2
  34. package/core/Meganav.jsx +2876 -10312
  35. package/core/MeganavBlogPostsList/component.js +2 -1
  36. package/core/MeganavBlogPostsList/component.js.LICENSE.txt +1 -0
  37. package/core/MeganavBlogPostsList.jsx +18 -125
  38. package/core/MeganavContentCompany/component.js +1 -1
  39. package/core/MeganavContentCompany.jsx +326 -822
  40. package/core/MeganavContentDevelopers/component.js +1 -1
  41. package/core/MeganavContentDevelopers.jsx +122 -187
  42. package/core/{MeganavContentPlatform → MeganavContentProducts}/component.js +1 -1
  43. package/core/{MeganavContentPlatform.jsx → MeganavContentProducts.jsx} +39 -170
  44. package/core/MeganavContentUseCases/component.js +1 -1
  45. package/core/MeganavContentUseCases.jsx +68 -166
  46. package/core/MeganavControl/component.js +1 -1
  47. package/core/MeganavControl.jsx +15 -121
  48. package/core/MeganavControlMobileDropdown/component.js +1 -1
  49. package/core/MeganavControlMobileDropdown.jsx +16 -122
  50. package/core/MeganavControlMobilePanelClose/component.js +1 -1
  51. package/core/MeganavControlMobilePanelClose.jsx +15 -121
  52. package/core/MeganavControlMobilePanelOpen/component.js +1 -1
  53. package/core/MeganavControlMobilePanelOpen.jsx +15 -121
  54. package/core/MeganavItemsDesktop/component.js +1 -1
  55. package/core/MeganavItemsDesktop.jsx +22 -130
  56. package/core/MeganavItemsMobile/component.js +1 -1
  57. package/core/MeganavItemsMobile.jsx +44 -158
  58. package/core/MeganavItemsSignedIn/component.js +1 -1
  59. package/core/MeganavItemsSignedIn.jsx +38 -151
  60. package/core/MeganavSearch/component.js +1 -1
  61. package/core/MeganavSearch.jsx +28 -138
  62. package/core/MeganavSearchAutocomplete/component.js +1 -2
  63. package/core/MeganavSearchAutocomplete.jsx +4 -4
  64. package/core/MeganavSearchPanel/component.js +1 -1
  65. package/core/MeganavSearchPanel.jsx +24 -133
  66. package/core/MeganavSearchSuggestions/component.js +1 -1
  67. package/core/MeganavSearchSuggestions.jsx +18 -125
  68. package/core/Notice/component.js +1 -2
  69. package/core/Notice.jsx +187 -2189
  70. package/core/Showcase/component.js +1 -1
  71. package/core/Showcase.jsx +1 -1
  72. package/core/SignOutLink/component.js +1 -1
  73. package/core/SignOutLink.jsx +12 -117
  74. package/core/Slider/component.js +1 -1
  75. package/core/Slider.jsx +31 -588
  76. package/core/Uptime/component.js +1 -1
  77. package/core/Uptime.jsx +294 -812
  78. package/core/images/ably-logo.png +0 -0
  79. package/core/images/best-support-2023.svg +1 -0
  80. package/core/images/fastest-implementation-2023.svg +1 -0
  81. package/core/images/high-performer-2022.png +0 -0
  82. package/core/images/high-performer-2023.svg +1 -0
  83. package/core/images/highest-user-adoption-2022.png +0 -0
  84. package/core/images/highest-user-adoption-2023.svg +1 -0
  85. package/core/images/users-love-us-2022.png +0 -0
  86. package/core/scripts.js +2 -1
  87. package/core/scripts.js.LICENSE.txt +1 -0
  88. package/core/sprites.svg +135 -1
  89. package/core/styles.css +3 -7
  90. package/package.json +8 -8
  91. package/reset/scripts.js +1 -1
  92. package/reset/styles.css +1 -11
  93. package/src/core/Code/component.css +1 -67
  94. package/src/core/Code/component.js +11 -46
  95. package/src/core/Code/component.jsx +7 -3
  96. package/src/core/DropdownMenu/component.jsx +0 -2
  97. package/src/core/FeatureFooter/component.html.erb +1 -1
  98. package/src/core/Flash/component.jsx +40 -14
  99. package/src/core/Footer/component.css +21 -1
  100. package/src/core/Footer/component.html.erb +120 -63
  101. package/src/core/Footer/component.jsx +128 -61
  102. package/src/core/HeadwayWidget/HeadwayWidget.jsx +229 -0
  103. package/src/core/HeadwayWidget/index.js +5 -0
  104. package/src/core/Logo/component.html.erb +2 -27
  105. package/src/core/Logo/component.jsx +7 -40
  106. package/src/core/Logo/component.rb +15 -6
  107. package/src/core/Meganav/MeganavHeadwayPortal.jsx +20 -0
  108. package/src/core/Meganav/component.css +59 -18
  109. package/src/core/Meganav/component.html.erb +1 -1
  110. package/src/core/Meganav/component.json +2 -2
  111. package/src/core/Meganav/component.jsx +16 -12
  112. package/src/core/Meganav/component.rb +7 -6
  113. package/src/core/MeganavContentCompany/component.html.erb +9 -0
  114. package/src/core/MeganavContentCompany/component.jsx +9 -0
  115. package/src/core/MeganavContentDevelopers/component.html.erb +51 -22
  116. package/src/core/MeganavContentDevelopers/component.js +26 -0
  117. package/src/core/MeganavContentDevelopers/component.jsx +52 -23
  118. package/src/core/{MeganavContentPlatform → MeganavContentProducts}/component.html.erb +15 -33
  119. package/src/core/{MeganavContentPlatform → MeganavContentProducts}/component.jsx +18 -39
  120. package/src/core/{MeganavContentPlatform → MeganavContentProducts}/component.rb +1 -1
  121. package/src/core/MeganavContentUseCases/component.html.erb +43 -39
  122. package/src/core/MeganavContentUseCases/component.jsx +42 -39
  123. package/src/core/MeganavItemsDesktop/component.jsx +1 -1
  124. package/src/core/MeganavItemsDesktop/component.rb +1 -1
  125. package/src/core/MeganavSearchSuggestions/component.html.erb +1 -1
  126. package/src/core/core.rb +16 -4
  127. package/src/core/icons/github.svg +1 -1
  128. package/src/core/icons/google.svg +3 -0
  129. package/src/core/icons/icon-display-asset-tracking-col.svg +18 -0
  130. package/src/core/icons/icon-display-chat-col.svg +4 -0
  131. package/src/core/icons/icon-display-data-broadcast-col.svg +26 -0
  132. package/src/core/icons/icon-display-data-synchronization-col.svg +14 -0
  133. package/src/core/icons/icon-display-events-col.svg +13 -0
  134. package/src/core/icons/icon-display-examples-col.svg +11 -0
  135. package/src/core/icons/icon-display-integrations-col.svg +8 -0
  136. package/src/core/icons/icon-display-kafka-at-the-edge-col.svg +8 -0
  137. package/src/core/icons/icon-display-push-notifications-col.svg +6 -0
  138. package/src/core/icons/icon-gui-check-circled-fill-black.svg +4 -0
  139. package/src/core/icons/icon-gui-filter-flow-step-1.svg +5 -0
  140. package/src/core/icons/icon-gui-filter-flow-step-2.svg +5 -0
  141. package/src/core/icons/icon-gui-filter-flow-step-3.svg +5 -0
  142. package/src/core/icons/icon-gui-resources.svg +3 -0
  143. package/src/core/icons/icon-social-x.svg +3 -0
  144. package/src/core/icons/icon-tech-apachekafka.svg +3 -0
  145. package/src/core/icons/stackoverflow.svg +3 -0
  146. package/src/core/icons/youtube.svg +11 -0
  147. package/src/core/images/ably-logo.png +0 -0
  148. package/src/core/images/best-support-2023.svg +1 -0
  149. package/src/core/images/fastest-implementation-2023.svg +1 -0
  150. package/src/core/images/high-performer-2022.png +0 -0
  151. package/src/core/images/high-performer-2023.svg +1 -0
  152. package/src/core/images/highest-user-adoption-2022.png +0 -0
  153. package/src/core/images/highest-user-adoption-2023.svg +1 -0
  154. package/src/core/images/users-love-us-2022.png +0 -0
  155. package/src/core/styles/properties.css +2 -0
  156. package/src/core/styles/text.css +1 -1
  157. package/src/core/utils/syntax-highlighter-registry.js +63 -0
  158. package/src/core/utils/syntax-highlighter.css +69 -0
  159. package/src/core/utils/syntax-highlighter.js +103 -0
  160. package/tailwind.config.js +1 -0
  161. package/core/DropdownMenuPreview/component.js +0 -6
  162. package/core/DropdownMenuPreview.jsx +0 -6
  163. package/core/Meganav/component.js.LICENSE.txt +0 -7
  164. package/core/MeganavSearchAutocomplete/component.js.LICENSE.txt +0 -7
  165. package/core/Notice/component.js.LICENSE.txt +0 -9
  166. /package/src/core/{MeganavContentPlatform → MeganavContentProducts}/component.js +0 -0
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 94 122"><path fill="#fff" d="M8.1 89.9 47.6 110l38-20.1V11.3H8.1z"/><path fill="#f2f3f2" d="M86.4 11.6 7.3 91.3l41 20.3 38.1-19.5z"/><path fill="#dcdedc" d="M5.5 37.5v54.1l1.4.7 39.5 20.1 1.2.6 1.2-.6 38.1-20.1 1.4-.7V8.7H5.5v28.8zm2.6 52.6V11.3h77.6v78.8l-38.1 20.1L8.1 90.1z"/><path fill="#ff492c" d="M46.9 12.6c.4 0 .8 0 1.2.1L46.9 15c-1.8-.1-3.4 1.3-3.5 3.1-.1 1.8 1.3 3.4 3.1 3.5h.4c.8 0 1.6-.3 2.2-.8l1.3 2.2c-1 .7-2.2 1.1-3.5 1.1-3.2.1-5.9-2.3-6-5.5-.1-3.2 2.3-5.9 5.5-6h.5zm4.1 4.9 1.5 2.5-1.5 2.4-1.4-2.4h-2.9l1.5-2.5H51zm-2.4-.9c0-.4.1-.8.3-1.1.2-.3.6-.6.9-.8l.2-.1c.4-.2.5-.3.5-.5s-.3-.4-.5-.4c-.4 0-.7.2-.9.6l-.5-.5c.1-.2.3-.4.5-.6.3-.2.6-.2.9-.2.3 0 .7.1.9.3.2.2.4.5.4.8 0 .5-.3.9-.9 1.1l-.3.2c-.3.2-.5.3-.6.6h1.8v.7l-2.7-.1zm-1.7 12.5 9.5-5.4v-15H37.3v14.9l9.6 5.5zM90.2 64.5H3.6l-3.2 7 3.2 7h86.6l3.1-7z"/><path fill="#252530" d="M17.3 49.49q.99 0 1.74.4t1.16 1.15q.41.74.41 1.7 0 .95-.42 1.67-.43.71-1.2 1.11-.77.4-1.78.4h-2.13q-.07 0-.07.08v3.82q0 .08-.06.13-.05.05-.13.05h-1.75q-.08 0-.13-.05t-.05-.13V49.67q0-.08.05-.13t.13-.05h4.23Zm-.32 4.74q.7 0 1.11-.4.42-.4.42-1.04 0-.67-.42-1.07-.41-.41-1.11-.41h-1.9q-.07 0-.07.08v2.76q0 .08.07.08h1.9Zm11.2 1.12q.08.57.05 1.27-.01.19-.19.19h-4.63q-.09 0-.07.07.05.3.17.6.39.84 1.59.84.96-.01 1.51-.78.07-.09.14-.09.04 0 .1.06l1.08 1.06q.08.08.08.14 0 .03-.06.12-.5.62-1.27.95-.79.34-1.72.34-1.28 0-2.18-.58-.89-.59-1.28-1.64-.32-.75-.32-1.96 0-.83.23-1.46.35-1.06 1.21-1.69.86-.63 2.04-.63 1.5 0 2.41.87.91.87 1.11 2.32Zm-3.5-1.36q-.95 0-1.25.88-.06.2-.1.48 0 .07.08.07H26q.09 0 .06-.07-.08-.43-.08-.42-.13-.45-.47-.7-.33-.24-.83-.24Zm8.7-1.8q.54 0 .86.21.11.06.08.22l-.31 1.71q-.01.18-.21.11-.23-.08-.52-.08-.12 0-.34.03-.53.05-.91.4-.37.35-.37.94v4.09q0 .08-.06.13-.05.05-.12.05h-1.76q-.07 0-.13-.05-.05-.05-.05-.13v-7.35q0-.07.05-.13.06-.05.13-.05h1.76q.07 0 .12.05.06.06.06.13v.57q0 .04.03.06.02.02.04-.02.62-.89 1.65-.89Zm6.39.09q.08 0 .13.05t.05.13v1.42q0 .08-.05.13t-.13.05h-1.45q-.08 0-.08.07v5.69q0 .08-.05.13t-.13.05h-1.75q-.08 0-.13-.05t-.05-.13v-5.69q0-.07-.08-.07h-.88q-.08 0-.13-.05t-.05-.13v-1.42q0-.08.05-.13t.13-.05h.88q.08 0 .08-.08v-.33q0-.93.28-1.45.29-.51.92-.73.64-.22 1.77-.19h.57q.07 0 .12.05.06.06.06.13v1.21q0 .08-.06.13-.05.06-.12.06h-.5q-.52.01-.73.21-.2.21-.2.75v.16q0 .08.08.08h1.45Zm4.35 7.84q-1.26 0-2.16-.66-.9-.66-1.23-1.8-.21-.7-.21-1.53 0-.88.21-1.59.35-1.11 1.25-1.74.9-.63 2.16-.63 1.22 0 2.1.62.86.63 1.22 1.74.25.75.25 1.57 0 .81-.21 1.52-.33 1.17-1.23 1.83-.89.67-2.15.67Zm0-1.81q.49 0 .84-.3t.5-.83q.11-.48.11-1.05 0-.63-.11-1.06-.17-.51-.51-.8-.35-.28-.85-.28t-.84.28q-.34.29-.49.8-.12.35-.12 1.06 0 .68.11 1.05.15.53.5.83.35.3.86.3Zm8.79-6.12q.54 0 .86.21.12.06.08.22l-.31 1.71q-.01.18-.21.11-.23-.08-.52-.08-.12 0-.33.03-.54.05-.92.4-.37.35-.37.94v4.09q0 .08-.06.13-.05.05-.13.05h-1.75q-.07 0-.13-.05-.05-.05-.05-.13v-7.35q0-.07.05-.13.06-.05.13-.05H51q.08 0 .13.05.06.06.06.13v.57q0 .04.02.06.04.02.05-.02.62-.89 1.65-.89Zm10.45-.02q1.17 0 1.83.7.66.71.66 1.99v4.96q0 .08-.05.13t-.12.05h-1.76q-.07 0-.13-.05-.05-.05-.05-.13v-4.5q0-.61-.31-.97-.32-.36-.85-.36-.52 0-.85.36-.33.36-.33.96v4.51q0 .08-.05.13-.06.05-.13.05h-1.74q-.08 0-.13-.05t-.05-.13v-4.5q0-.6-.33-.97-.33-.36-.86-.36-.47 0-.8.28-.32.29-.38.8v4.75q0 .08-.05.13-.06.05-.13.05H55q-.08 0-.13-.05t-.05-.13v-7.35q0-.07.05-.13.05-.05.13-.05h1.75q.07 0 .13.05.05.06.05.13v.59q0 .04.03.06.03.01.06-.04.62-.91 1.91-.91.75 0 1.31.32.56.31.86.9.04.09.11 0 .32-.62.89-.92.56-.3 1.26-.3Zm10.76 3.18q.09.57.06 1.27-.02.19-.2.19h-4.63q-.09 0-.06.07.04.3.16.6.39.84 1.59.84.96-.01 1.52-.78.06-.09.13-.09.05 0 .11.06l1.08 1.06q.07.08.07.14 0 .03-.06.12-.49.62-1.27.95-.78.34-1.71.34-1.29 0-2.18-.58-.9-.59-1.29-1.64-.31-.75-.31-1.96 0-.83.22-1.46.35-1.06 1.21-1.69.86-.63 2.05-.63 1.5 0 2.41.87.91.87 1.1 2.32Zm-3.5-1.36q-.94 0-1.24.88-.06.2-.11.48 0 .07.08.07h2.59q.09 0 .06-.07-.07-.43-.07-.42-.14-.45-.47-.7-.34-.24-.84-.24Zm8.7-1.8q.54 0 .86.21.12.06.09.22l-.31 1.71q-.02.18-.22.11-.22-.08-.52-.08-.12 0-.33.03-.54.05-.92.4-.37.35-.37.94v4.09q0 .08-.05.13-.06.05-.13.05h-1.76q-.07 0-.12-.05-.06-.05-.06-.13v-7.35q0-.07.06-.13.05-.05.12-.05h1.76q.07 0 .13.05.05.06.05.13v.57q0 .04.03.06.03.02.05-.02.61-.89 1.64-.89ZM38.06 34.68q0-.07.05-.13.05-.05.12-.05h1.76q.07 0 .13.05.05.06.05.13v10.14q0 .08-.05.13-.06.05-.13.05h-1.76q-.07 0-.12-.05-.05-.05-.05-.13v-4.14q0-.07-.08-.07h-3.32q-.07 0-.07.07v4.14q0 .08-.05.13-.06.05-.13.05h-1.76q-.07 0-.12-.05-.06-.05-.06-.13V34.68q0-.07.06-.13.05-.05.12-.05h1.76q.07 0 .13.05.05.06.05.13v4.03q0 .08.07.08h3.32q.08 0 .08-.08v-4.03Zm4.84 1.74q-.51 0-.85-.34-.34-.33-.34-.84 0-.53.33-.86.33-.33.86-.33t.86.33q.33.33.33.86 0 .51-.34.84-.34.34-.85.34ZM42 45q-.07 0-.13-.05-.05-.05-.05-.13v-7.36q0-.08.05-.13.06-.05.13-.05h1.76q.07 0 .12.05.06.05.06.13v7.36q0 .08-.06.13-.05.05-.12.05H42Zm8.29-7.53q0-.07.06-.13.05-.05.12-.05h1.76q.07 0 .13.05.05.06.05.13v6.84q0 1.96-1.13 2.8-1.13.85-2.92.85-.53 0-1.17-.08-.15-.02-.15-.19l.06-1.55q0-.2.21-.17.54.09.99.09.96 0 1.48-.41.51-.43.51-1.35 0-.05-.03-.06-.03-.01-.06.03-.57.61-1.66.61-.98 0-1.79-.47-.82-.47-1.17-1.52-.22-.69-.22-1.79 0-1.17.27-1.9.31-.92 1.06-1.47.75-.56 1.75-.56 1.15 0 1.76.69.03.03.06.02.03-.01.03-.05v-.36Zm-.12 4.84q.12-.44.12-1.23 0-.46-.03-.71-.03-.26-.1-.49-.14-.4-.45-.65-.31-.24-.78-.24-.45 0-.76.24-.32.25-.47.65-.21.45-.21 1.22 0 .84.18 1.2.13.41.47.65.34.25.8.25.48 0 .8-.25.31-.24.43-.64Zm7.78-5.14q1.2 0 1.93.74.73.73.73 1.99v4.92q0 .08-.05.13t-.12.05h-1.76q-.07 0-.13-.05-.05-.05-.05-.13v-4.49q0-.59-.34-.97-.33-.37-.89-.37-.55 0-.89.37-.34.38-.34.97v4.49q0 .08-.05.13t-.13.05h-1.75q-.08 0-.13-.05t-.05-.13V34.68q0-.07.05-.13.05-.05.13-.05h1.75q.08 0 .13.05.05.06.05.13V38q0 .04.03.06.03.01.04-.02.62-.87 1.84-.87Z"/><path fill="#fff" d="M40.46 69.28q0 .05-.04.08-.03.04-.08.04h-3.4q-.05 0-.05.05v1.87q0 .05.05.05h2.29q.05 0 .09.03.03.04.03.09v.76q0 .05-.03.09-.04.03-.09.03h-2.29q-.05 0-.05.05v2.86q0 .05-.04.08-.03.04-.08.04h-.92q-.05 0-.08-.04-.04-.03-.04-.08v-6.76q0-.05.04-.08.03-.04.08-.04h4.49q.05 0 .08.04.04.03.04.08v.76Zm4.56 6.12q-.1 0-.13-.1l-.33-1.07q-.02-.04-.05-.04h-2.64q-.03 0-.05.04l-.33 1.07q-.03.1-.13.1h-1q-.06 0-.09-.04-.03-.03-.01-.1l2.17-6.76q.03-.1.13-.1h1.25q.1 0 .13.1l2.18 6.76q.01.02.01.05 0 .09-.11.09h-1Zm-2.89-2.18q-.01.06.04.06h2.03q.06 0 .04-.06l-1.03-3.35q-.01-.04-.03-.04-.02 0-.03.04l-1.02 3.35Zm5.15 2.18q-.05 0-.08-.04-.04-.03-.04-.08v-6.76q0-.05.04-.08.03-.04.08-.04h.92q.05 0 .09.04.03.03.03.08v5.83q0 .05.05.05h3.35q.05 0 .08.04.04.03.04.08v.76q0 .05-.04.08-.03.04-.08.04h-4.44Zm5.71 0q-.05 0-.08-.04-.04-.03-.04-.08v-6.76q0-.05.04-.08.03-.04.08-.04h.92q.05 0 .09.04.03.03.03.08v5.83q0 .05.05.05h3.35q.05 0 .09.04.03.03.03.08v.76q0 .05-.03.08-.04.04-.09.04h-4.44Z"/><path fill="#252530" d="M34.03 93.46q-.03.03-.02.06.02.03.06.03H38q.07 0 .12.05.06.05.06.12v1.41q0 .07-.06.12-.05.05-.12.05h-6.52q-.08 0-.13-.05t-.05-.12v-1.34q0-.13.09-.22.71-.69 1.45-1.51.74-.82.93-1.02.4-.48.82-.92 1.32-1.46 1.32-2.17 0-.51-.36-.84-.36-.32-.94-.32t-.94.32q-.37.33-.37.87v.36q0 .07-.05.12-.05.05-.12.05h-1.71q-.07 0-.12-.05-.06-.05-.06-.12v-.68q.05-.78.5-1.39.45-.6 1.19-.92.75-.32 1.68-.32 1.03 0 1.79.39.76.38 1.17 1.03.42.66.42 1.45 0 .61-.31 1.25-.3.64-.91 1.38-.45.56-.97 1.12-.52.55-1.55 1.59l-.22.22Zm8.86 2q-1.6 0-2.52-.89-.93-.89-.93-2.43v-3.83q0-1.51.93-2.39.92-.89 2.52-.89 1.59 0 2.53.89.93.88.93 2.39v3.83q0 1.54-.93 2.43-.94.89-2.53.89Zm0-1.75q.65 0 1.03-.4.39-.4.39-1.07v-3.99q0-.66-.39-1.06-.38-.4-1.03-.4-.64 0-1.02.4-.39.4-.39 1.06v3.99q0 .67.39 1.07.38.4 1.02.4Zm7.52-.25q-.03.03-.01.06.01.03.06.03h3.93q.07 0 .12.05.05.05.05.12v1.41q0 .07-.05.12-.05.05-.12.05h-6.53q-.07 0-.12-.05-.05-.05-.05-.12v-1.34q0-.13.08-.22.72-.69 1.45-1.51.74-.82.93-1.02.41-.48.83-.92 1.32-1.46 1.32-2.17 0-.51-.36-.84-.37-.32-.95-.32t-.94.32q-.36.33-.36.87v.36q0 .07-.05.12-.05.05-.13.05H47.8q-.07 0-.12-.05-.05-.05-.05-.12v-.68q.04-.78.49-1.39.45-.6 1.2-.92.75-.32 1.67-.32 1.03 0 1.79.39.77.38 1.18 1.03.41.66.41 1.45 0 .61-.3 1.25-.31.64-.92 1.38-.45.56-.97 1.12-.52.55-1.55 1.59l-.22.22Zm11.46-3q.29.66.29 1.53 0 .79-.26 1.45-.35.93-1.17 1.45-.82.53-1.94.53-1.1 0-1.93-.55-.83-.56-1.2-1.5-.2-.56-.23-1.22 0-.17.17-.17h1.72q.17 0 .17.17.06.48.16.71.13.38.43.59.29.21.7.21.81 0 1.12-.71.2-.43.2-1.01 0-.69-.22-1.12-.33-.68-1.11-.68-.16 0-.34.09-.17.1-.42.27-.06.04-.11.04-.09 0-.13-.08l-.86-1.21q-.03-.04-.03-.1 0-.09.06-.14l2.3-2.02q.03-.03.03-.06-.01-.03-.05-.03h-3.41q-.07 0-.13-.05-.05-.05-.05-.12v-1.41q0-.07.05-.12.06-.05.13-.05h6.04q.08 0 .13.05t.05.12v1.6q0 .11-.1.22l-1.9 1.74q-.03.03-.02.05 0 .03.06.03 1.26.25 1.8 1.5Z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 94 122"><path fill="#fff" d="M8.1 89.9 47.6 110l38-20.1V11.3H8.1z"/><path fill="#f2f3f2" d="M86.4 11.6 7.3 91.3l41 20.3 38.1-19.5z"/><path fill="#dcdedc" d="M5.5 37.5v54.1l1.4.7 39.5 20.1 1.2.6 1.2-.6 38.1-20.1 1.4-.7V8.7H5.5v28.8zm2.6 52.6V11.3h77.6v78.8l-38.1 20.1L8.1 90.1z"/><path fill="#ff492c" d="M46.9 12.6c.4 0 .8 0 1.2.1L46.9 15c-1.8-.1-3.4 1.3-3.5 3.1-.1 1.8 1.3 3.4 3.1 3.5h.4c.8 0 1.6-.3 2.2-.8l1.3 2.2c-1 .7-2.2 1.1-3.5 1.1-3.2.1-5.9-2.3-6-5.5-.1-3.2 2.3-5.9 5.5-6h.5zm4.1 4.9 1.5 2.5-1.5 2.4-1.4-2.4h-2.9l1.5-2.5H51zm-2.4-.9c0-.4.1-.8.3-1.1.2-.3.6-.6.9-.8l.2-.1c.4-.2.5-.3.5-.5s-.3-.4-.5-.4c-.4 0-.7.2-.9.6l-.5-.5c.1-.2.3-.4.5-.6.3-.2.6-.2.9-.2.3 0 .7.1.9.3.2.2.4.5.4.8 0 .5-.3.9-.9 1.1l-.3.2c-.3.2-.5.3-.6.6h1.8v.7l-2.7-.1zm-1.7 12.5 9.5-5.4v-15H37.3v14.9l9.6 5.5z"/><path fill="#2690ce" d="M90.2 64.5H3.6l-3.2 7 3.2 7h86.6l3.1-7z"/><path fill="#252530" d="M28.53 60q-.12 0-.15-.12l-.36-1.18q-.03-.04-.06-.04H25q-.03 0-.06.04l-.34 1.18q-.04.12-.16.12h-1.52q-.08 0-.11-.04-.04-.04-.01-.13l2.59-8.11q.03-.12.15-.12h1.89q.12 0 .15.12l2.6 8.11q.01.03.01.06 0 .11-.13.11h-1.53Zm-3.15-2.72q-.02.07.04.07h2.12q.07 0 .04-.07l-1.08-3.57q-.01-.05-.03-.04-.03.01-.04.04l-1.05 3.57Zm9.38-5.54q0-.06.04-.1.04-.04.1-.04h1.41q.06 0 .1.04.04.04.04.1v8.12q0 .06-.04.1-.04.04-.1.04H34.9q-.06 0-.1-.04-.04-.04-.04-.1v-.4q0-.04-.02-.04-.03-.01-.05.02-.51.66-1.38.66-.84 0-1.45-.47-.6-.47-.87-1.29-.2-.62-.2-1.45 0-.85.21-1.49.28-.76.87-1.21.6-.45 1.47-.45t1.35.6q.02.03.05.02.02-.01.02-.05v-2.57Zm-.25 6.39q.24-.45.24-1.21 0-.81-.27-1.26-.27-.47-.8-.47-.56 0-.85.47-.3.46-.3 1.27 0 .72.25 1.2.3.51.89.51.54 0 .84-.51Zm5.94 1.97q-1.01 0-1.73-.53t-.98-1.44q-.17-.57-.17-1.23 0-.7.17-1.27.27-.89.99-1.39.72-.5 1.73-.5.98 0 1.68.49.7.5.98 1.39.2.6.2 1.26 0 .65-.17 1.21-.27.94-.98 1.47-.71.54-1.72.54Zm0-1.46q.39 0 .67-.24t.4-.66q.09-.38.09-.84 0-.5-.09-.85-.14-.41-.41-.63-.28-.23-.67-.23-.41 0-.68.23-.27.22-.39.63-.1.29-.1.85 0 .54.09.84.12.42.4.66.28.24.69.24Zm9.47-3.15q.21.61.21 1.44t-.23 1.5q-.27.77-.87 1.22-.59.45-1.47.45-.86 0-1.34-.6-.02-.04-.05-.03-.02.01-.02.05v2.57q0 .06-.04.1-.05.04-.11.04h-1.4q-.06 0-.1-.04-.04-.04-.04-.1v-8.11q0-.06.04-.11.04-.04.1-.04H46q.06 0 .11.04.04.05.04.11v.39q0 .04.02.04.03.01.05-.01.5-.66 1.39-.66.83 0 1.44.46.6.46.87 1.29Zm-1.84 2.69q.3-.47.3-1.28 0-.75-.25-1.2-.28-.51-.89-.51-.55 0-.83.51-.25.44-.25 1.22 0 .8.26 1.24.28.48.82.48.54 0 .84-.46Zm6.68-3.14q0 .06-.04.11-.04.04-.1.04h-1.15q-.06 0-.06.06v2.54q0 .4.16.59.16.19.52.19h.4q.06 0 .1.04.04.05.04.11v1.14q0 .13-.14.15-.51.03-.72.03-1 0-1.49-.33t-.5-1.25v-3.21q0-.06-.06-.06h-.69q-.06 0-.1-.04-.04-.05-.04-.11v-1.06q0-.06.04-.11.04-.04.1-.04h.69q.06 0 .06-.06v-1.43q0-.06.04-.1.04-.04.1-.04h1.34q.06 0 .11.04.04.04.04.1v1.43q0 .06.06.06h1.15q.06 0 .1.04.04.05.04.11v1.06Zm1.94-1.9q-.41 0-.68-.27-.27-.27-.27-.68 0-.42.26-.69.27-.26.69-.26.42 0 .68.26.26.27.26.69 0 .41-.27.68-.27.27-.67.27ZM55.98 60q-.06 0-.11-.04-.04-.04-.04-.1v-5.9q0-.06.04-.1.05-.04.11-.04h1.4q.06 0 .1.04.04.04.04.1v5.9q0 .06-.04.1-.04.04-.1.04h-1.4Zm5.59.1q-1.01 0-1.73-.53t-.98-1.44q-.17-.57-.17-1.23 0-.7.17-1.27.27-.89.99-1.39.72-.5 1.73-.5.98 0 1.68.49.7.5.98 1.39.2.6.2 1.26 0 .65-.17 1.21-.27.94-.98 1.47-.71.54-1.72.54Zm0-1.46q.39 0 .67-.24t.4-.66q.09-.38.09-.84 0-.5-.09-.85-.14-.41-.41-.63-.28-.23-.67-.23-.41 0-.68.23-.27.22-.39.63-.1.29-.1.85 0 .54.09.84.12.42.4.66.28.24.69.24Zm7.17-4.9q.96 0 1.55.58.59.59.59 1.6v3.94q0 .06-.04.1-.04.04-.1.04h-1.41q-.06 0-.1-.04-.04-.04-.04-.1v-3.59q0-.48-.27-.78-.27-.3-.72-.3-.44 0-.71.3-.27.3-.27.78v3.59q0 .06-.04.1-.04.04-.1.04h-1.41q-.06 0-.1-.04-.04-.04-.04-.1v-5.88q0-.06.04-.11.04-.04.1-.04h1.41q.06 0 .1.04.04.05.04.11v.42q0 .03.02.04.03.02.04-.01.49-.69 1.46-.69ZM17.56 39.74q0-.06.04-.1.04-.04.1-.04h1.4q.06 0 .11.04.04.04.04.1v8.12q0 .06-.04.1-.05.04-.11.04h-1.4q-.06 0-.1-.04-.04-.04-.04-.1v-3.32q0-.06-.06-.06h-2.66q-.06 0-.06.06v3.32q0 .06-.04.1-.04.04-.1.04h-1.4q-.06 0-.11-.04-.04-.04-.04-.1v-8.12q0-.06.04-.1.05-.04.11-.04h1.4q.06 0 .1.04.04.04.04.1v3.23q0 .06.06.06h2.66q.06 0 .06-.06v-3.23Zm3.87 1.4q-.41 0-.68-.27-.27-.27-.27-.68 0-.42.27-.69.26-.26.68-.26.42 0 .69.26.26.27.26.69 0 .41-.27.68-.27.27-.68.27ZM20.71 48q-.06 0-.1-.04-.04-.04-.04-.1v-5.9q0-.06.04-.1.04-.04.1-.04h1.41q.06 0 .1.04.04.04.04.1v5.9q0 .06-.04.1-.04.04-.1.04h-1.41Zm6.64-6.02q0-.06.04-.11.04-.04.1-.04h1.41q.06 0 .1.04.04.05.04.11v5.47q0 1.57-.91 2.24-.9.67-2.33.67-.42 0-.94-.06-.12-.01-.12-.15l.05-1.24q0-.15.17-.13.43.07.79.07.77 0 1.18-.33.42-.34.42-1.08 0-.04-.03-.05-.02 0-.04.02-.46.49-1.34.49-.78 0-1.43-.37-.65-.38-.93-1.22-.18-.55-.18-1.43 0-.94.22-1.52.25-.74.85-1.18.6-.44 1.39-.44.92 0 1.42.55.02.02.04.02.03-.01.03-.05v-.28Zm-.1 3.87q.1-.36.1-.98 0-.37-.03-.58-.02-.2-.08-.38-.11-.33-.36-.52-.25-.2-.62-.2-.36 0-.62.2-.25.19-.37.52-.17.36-.17.97 0 .67.15.96.11.32.38.52t.64.2q.38 0 .63-.2.26-.2.35-.51Zm6.22-4.11q.96 0 1.55.58.58.59.58 1.6v3.94q0 .06-.04.1-.04.04-.1.04h-1.4q-.06 0-.11-.04-.04-.04-.04-.1v-3.59q0-.48-.27-.78-.27-.3-.71-.3-.45 0-.72.3-.27.3-.27.78v3.59q0 .06-.04.1-.04.04-.1.04h-1.4q-.06 0-.11-.04-.04-.04-.04-.1v-8.12q0-.06.04-.1.05-.04.11-.04h1.4q.06 0 .1.04.04.04.04.1v2.66q0 .03.03.04.02.02.03-.01.5-.69 1.47-.69Zm8.77 2.54q.07.46.05 1.02-.01.14-.16.14h-3.71q-.07 0-.04.06.03.24.13.48.31.68 1.27.68.77-.02 1.21-.63.05-.07.11-.07.04 0 .08.05l.87.85q.06.06.06.11 0 .02-.05.09-.4.5-1.02.77t-1.37.27q-1.03 0-1.74-.47-.72-.47-1.03-1.31-.25-.6-.25-1.57 0-.66.18-1.17.27-.85.96-1.35.69-.51 1.64-.51 1.2 0 1.93.7.72.7.88 1.86Zm-2.8-1.09q-.75 0-.99.71-.05.15-.09.38 0 .06.06.06h2.08q.07 0 .05-.06-.06-.35-.06-.34-.11-.36-.38-.55-.27-.2-.67-.2Zm6.27 4.89q-.81 0-1.41-.22-.6-.23-.93-.64-.33-.41-.33-.92v-.12q0-.06.05-.11.04-.04.1-.04h1.33q.06 0 .1.04.04.05.04.11v.01q0 .26.3.45.29.18.74.18.4 0 .66-.16.25-.16.25-.4 0-.22-.22-.32-.21-.11-.71-.23-.56-.15-.88-.28-.77-.26-1.23-.65-.45-.38-.45-1.1 0-.89.69-1.41.69-.52 1.83-.52.76 0 1.34.24.58.25.89.69.32.45.32 1.01 0 .06-.04.1-.04.05-.1.05h-1.29q-.06 0-.1-.05-.04-.04-.04-.1 0-.26-.27-.44t-.71-.18q-.4 0-.65.14-.25.15-.25.4 0 .24.24.36.25.12.82.25.14.04.3.08.17.04.36.1.86.25 1.35.65.49.39.49 1.15 0 .89-.7 1.39-.7.49-1.89.49Zm7.09-5.04q0 .06-.04.11-.04.04-.1.04H51.5q-.06 0-.06.06v2.54q0 .4.17.59.16.19.52.19h.39q.06 0 .11.04.04.05.04.11v1.14q0 .13-.15.15-.5.03-.72.03-.99 0-1.48-.33-.5-.33-.51-1.25v-3.21q0-.06-.06-.06h-.68q-.06 0-.1-.04-.05-.05-.05-.11v-1.06q0-.06.05-.11.04-.04.1-.04h.68q.06 0 .06-.06v-1.43q0-.06.04-.1.05-.04.11-.04h1.34q.06 0 .1.04.04.04.04.1v1.43q0 .06.06.06h1.16q.06 0 .1.04.04.05.04.11v1.06Zm6.58 5.06q-.93 0-1.63-.36-.7-.36-1.09-1.02-.39-.65-.39-1.5v-5.48q0-.06.04-.1.04-.04.1-.04h1.41q.06 0 .1.04.04.04.04.1v5.49q0 .63.39 1.02t1.03.39q.63 0 1.02-.39t.39-1.02v-5.49q0-.06.04-.1.05-.04.11-.04h1.4q.06 0 .1.04.04.04.04.1v5.48q0 .85-.39 1.5-.39.66-1.09 1.02-.7.36-1.62.36Zm6.85-.02q-.81 0-1.41-.22-.6-.23-.93-.64-.33-.41-.33-.92v-.12q0-.06.05-.11.04-.04.1-.04h1.33q.06 0 .1.04.04.05.04.11v.01q0 .26.3.45.29.18.74.18.4 0 .66-.16.25-.16.25-.4 0-.22-.22-.32-.21-.11-.71-.23-.56-.15-.88-.28-.77-.26-1.23-.65-.45-.38-.45-1.1 0-.89.69-1.41.69-.52 1.83-.52.76 0 1.34.24.58.25.89.69.32.45.32 1.01 0 .06-.04.1-.04.05-.1.05h-1.29q-.06 0-.1-.05-.04-.04-.04-.1 0-.26-.27-.44t-.71-.18q-.4 0-.65.14-.25.15-.25.4 0 .24.24.36.25.12.82.25.14.04.3.08.17.04.36.1.86.25 1.35.65.49.39.49 1.15 0 .89-.7 1.39-.7.49-1.89.49Zm9.02-3.8q.07.46.05 1.02-.01.14-.16.14h-3.7q-.08 0-.05.06.03.24.13.48.31.68 1.27.68.77-.02 1.21-.63.05-.07.11-.07.04 0 .09.05l.86.85q.06.06.06.11 0 .02-.05.09-.39.5-1.02.77-.62.27-1.37.27-1.03 0-1.74-.47-.72-.47-1.03-1.31-.25-.6-.25-1.57 0-.66.18-1.17.28-.85.97-1.35.69-.51 1.63-.51 1.2 0 1.93.7t.88 1.86Zm-2.79-1.09q-.76 0-1 .71-.05.15-.08.38 0 .06.06.06h2.07q.07 0 .05-.06-.06-.35-.06-.34-.11-.36-.38-.55-.27-.2-.66-.2Zm6.96-1.44q.43 0 .68.17.1.04.07.18l-.25 1.36q-.01.15-.17.09-.18-.06-.42-.06-.09 0-.26.02-.43.04-.73.32t-.3.75v3.28q0 .06-.05.1-.04.04-.1.04h-1.4q-.06 0-.1-.04-.05-.04-.05-.1v-5.88q0-.06.05-.11.04-.04.1-.04h1.4q.06 0 .1.04.05.05.05.11v.45q0 .04.02.05.02.01.04-.01.49-.72 1.32-.72Z"/><path fill="#fff" d="M40.46 69.28q0 .05-.04.08-.03.04-.08.04h-3.4q-.05 0-.05.05v1.87q0 .05.05.05h2.29q.05 0 .09.03.03.04.03.09v.76q0 .05-.03.09-.04.03-.09.03h-2.29q-.05 0-.05.05v2.86q0 .05-.04.08-.03.04-.08.04h-.92q-.05 0-.08-.04-.04-.03-.04-.08v-6.76q0-.05.04-.08.03-.04.08-.04h4.49q.05 0 .08.04.04.03.04.08v.76Zm4.56 6.12q-.1 0-.13-.1l-.33-1.07q-.02-.04-.05-.04h-2.64q-.03 0-.05.04l-.33 1.07q-.03.1-.13.1h-1q-.06 0-.09-.04-.03-.03-.01-.1l2.17-6.76q.03-.1.13-.1h1.25q.1 0 .13.1l2.18 6.76q.01.02.01.05 0 .09-.11.09h-1Zm-2.89-2.18q-.01.06.04.06h2.03q.06 0 .04-.06l-1.03-3.35q-.01-.04-.03-.04-.02 0-.03.04l-1.02 3.35Zm5.15 2.18q-.05 0-.08-.04-.04-.03-.04-.08v-6.76q0-.05.04-.08.03-.04.08-.04h.92q.05 0 .09.04.03.03.03.08v5.83q0 .05.05.05h3.35q.05 0 .08.04.04.03.04.08v.76q0 .05-.04.08-.03.04-.08.04h-4.44Zm5.71 0q-.05 0-.08-.04-.04-.03-.04-.08v-6.76q0-.05.04-.08.03-.04.08-.04h.92q.05 0 .09.04.03.03.03.08v5.83q0 .05.05.05h3.35q.05 0 .09.04.03.03.03.08v.76q0 .05-.03.08-.04.04-.09.04h-4.44Z"/><path fill="#252530" d="M34.03 93.46q-.03.03-.02.06.02.03.06.03H38q.07 0 .12.05.06.05.06.12v1.41q0 .07-.06.12-.05.05-.12.05h-6.52q-.08 0-.13-.05t-.05-.12v-1.34q0-.13.09-.22.71-.69 1.45-1.51.74-.82.93-1.02.4-.48.82-.92 1.32-1.46 1.32-2.17 0-.51-.36-.84-.36-.32-.94-.32t-.94.32q-.37.33-.37.87v.36q0 .07-.05.12-.05.05-.12.05h-1.71q-.07 0-.12-.05-.06-.05-.06-.12v-.68q.05-.78.5-1.39.45-.6 1.19-.92.75-.32 1.68-.32 1.03 0 1.79.39.76.38 1.17 1.03.42.66.42 1.45 0 .61-.31 1.25-.3.64-.91 1.38-.45.56-.97 1.12-.52.55-1.55 1.59l-.22.22Zm8.86 2q-1.6 0-2.52-.89-.93-.89-.93-2.43v-3.83q0-1.51.93-2.39.92-.89 2.52-.89 1.59 0 2.53.89.93.88.93 2.39v3.83q0 1.54-.93 2.43-.94.89-2.53.89Zm0-1.75q.65 0 1.03-.4.39-.4.39-1.07v-3.99q0-.66-.39-1.06-.38-.4-1.03-.4-.64 0-1.02.4-.39.4-.39 1.06v3.99q0 .67.39 1.07.38.4 1.02.4Zm7.52-.25q-.03.03-.01.06.01.03.06.03h3.93q.07 0 .12.05.05.05.05.12v1.41q0 .07-.05.12-.05.05-.12.05h-6.53q-.07 0-.12-.05-.05-.05-.05-.12v-1.34q0-.13.08-.22.72-.69 1.45-1.51.74-.82.93-1.02.41-.48.83-.92 1.32-1.46 1.32-2.17 0-.51-.36-.84-.37-.32-.95-.32t-.94.32q-.36.33-.36.87v.36q0 .07-.05.12-.05.05-.13.05H47.8q-.07 0-.12-.05-.05-.05-.05-.12v-.68q.04-.78.49-1.39.45-.6 1.2-.92.75-.32 1.67-.32 1.03 0 1.79.39.77.38 1.18 1.03.41.66.41 1.45 0 .61-.3 1.25-.31.64-.92 1.38-.45.56-.97 1.12-.52.55-1.55 1.59l-.22.22Zm11.46-3q.29.66.29 1.53 0 .79-.26 1.45-.35.93-1.17 1.45-.82.53-1.94.53-1.1 0-1.93-.55-.83-.56-1.2-1.5-.2-.56-.23-1.22 0-.17.17-.17h1.72q.17 0 .17.17.06.48.16.71.13.38.43.59.29.21.7.21.81 0 1.12-.71.2-.43.2-1.01 0-.69-.22-1.12-.33-.68-1.11-.68-.16 0-.34.09-.17.1-.42.27-.06.04-.11.04-.09 0-.13-.08l-.86-1.21q-.03-.04-.03-.1 0-.09.06-.14l2.3-2.02q.03-.03.03-.06-.01-.03-.05-.03h-3.41q-.07 0-.13-.05-.05-.05-.05-.12v-1.41q0-.07.05-.12.06-.05.13-.05h6.04q.08 0 .13.05t.05.12v1.6q0 .11-.1.22l-1.9 1.74q-.03.03-.02.05 0 .03.06.03 1.26.25 1.8 1.5Z"/></svg>
@@ -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,
@@ -25,7 +25,7 @@
25
25
 
26
26
  .ui-text-h4 {
27
27
  @apply font-sans font-medium text-cool-black;
28
- @apply text-h4 uppercase;
28
+ @apply text-h4;
29
29
  @apply tracking-widen-0.1;
30
30
  }
31
31
 
@@ -0,0 +1,63 @@
1
+ // This file can be used in the browser, but because of the weight of all the language
2
+ // definitions, preferably it should be used on the server.
3
+
4
+ import bash from "highlight.js/lib/languages/bash";
5
+ import cpp from "highlight.js/lib/languages/cpp";
6
+ import csharp from "highlight.js/lib/languages/csharp";
7
+ import css from "highlight.js/lib/languages/css";
8
+ import dart from "highlight.js/lib/languages/dart";
9
+ import dos from "highlight.js/lib/languages/dos";
10
+ import diff from "highlight.js/lib/languages/diff";
11
+ import erlang from "highlight.js/lib/languages/erlang";
12
+ import elixir from "highlight.js/lib/languages/elixir";
13
+ import plaintext from "highlight.js/lib/languages/plaintext";
14
+ import go from "highlight.js/lib/languages/go";
15
+ import http from "highlight.js/lib/languages/http";
16
+ import java from "highlight.js/lib/languages/java";
17
+ import javascript from "highlight.js/lib/languages/javascript";
18
+ import typescript from "highlight.js/lib/languages/typescript";
19
+ import json from "highlight.js/lib/languages/json";
20
+ import objectivec from "highlight.js/lib/languages/objectivec";
21
+ import php from "highlight.js/lib/languages/php";
22
+ import python from "highlight.js/lib/languages/python";
23
+ import ruby from "highlight.js/lib/languages/ruby";
24
+ import swift from "highlight.js/lib/languages/swift";
25
+ import kotlin from "highlight.js/lib/languages/kotlin";
26
+ import sql from "highlight.js/lib/languages/sql";
27
+ import xml from "highlight.js/lib/languages/xml";
28
+ import yaml from "highlight.js/lib/languages/yaml";
29
+ import curl from "highlightjs-curl/src/languages/curl";
30
+
31
+ const registry = [
32
+ { label: "Text", key: "text", module: plaintext },
33
+ { label: "JS", key: "javascript", module: javascript },
34
+ { label: "TS", key: "typescript", module: typescript },
35
+ { label: "Java", key: "java", module: java },
36
+ { label: "Ruby", key: "ruby", module: ruby },
37
+ { label: "Python", key: "python", module: python },
38
+ { label: "PHP", key: "php", module: php },
39
+ { label: "Shell", key: "bash", module: bash },
40
+ { label: "C#", key: "cs", module: csharp },
41
+ { label: "CSS", key: "css", module: css },
42
+ { label: "Go", key: "go", module: go },
43
+ { label: "HTML", key: "xml", module: xml },
44
+ { label: "HTTP", key: "http", module: http },
45
+ { label: "C++", key: "cpp", module: cpp },
46
+ { label: "Dart", key: "dart", module: dart },
47
+ { label: "Swift", key: "swift", module: swift },
48
+ { label: "Kotlin", key: "kotlin", module: kotlin },
49
+ { label: "Objective C", key: "objectivec", module: objectivec },
50
+ { label: "Node.js", key: "javascript", module: javascript },
51
+ { label: "JSON", key: "json", module: json },
52
+ { label: "DOS", key: "dos", module: dos },
53
+ { label: "YAML", key: "yaml", module: yaml },
54
+ { label: "Erlang", key: "erlang", module: erlang },
55
+ { label: "Elixir", key: "elixir", module: elixir },
56
+ { label: "Diff", key: "diff", module: diff },
57
+ { label: "SQL", key: "sql", module: sql },
58
+ { label: "cURL", key: "curl", module: curl },
59
+ { label: "HTML", key: "html", module: xml },
60
+ { label: "XML", key: "xml", module: xml },
61
+ ];
62
+
63
+ export default registry;
@@ -0,0 +1,69 @@
1
+ @layer base {
2
+ @import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,600;0,700;1,600;1,700&display=swap");
3
+ }
4
+
5
+ @layer components {
6
+ .hljs {
7
+ background: var(--syntax-black);
8
+ color: var(--syntax-light-grey);
9
+ }
10
+
11
+ .hljs-emphasis {
12
+ @apply italic;
13
+ }
14
+
15
+ .hljs-strong {
16
+ @apply font-bold;
17
+ }
18
+
19
+ .hljs-comment,
20
+ .hljs-quote {
21
+ color: var(--syntax-dark-grey);
22
+ }
23
+
24
+ .hljs-variable,
25
+ .hljs-template-variable,
26
+ .hljs-tag,
27
+ .hljs-name,
28
+ .hljs-selector-id,
29
+ .hljs-selector-class,
30
+ .hljs-regexp,
31
+ .hljs-deletion {
32
+ color: var(--syntax-red);
33
+ }
34
+
35
+ .hljs-number,
36
+ .hljs-built_in,
37
+ .hljs-literal,
38
+ .hljs-type,
39
+ .hljs-params,
40
+ .hljs-meta,
41
+ .hljs-link {
42
+ color: var(--syntax-orange);
43
+ }
44
+
45
+ .hljs-attribute {
46
+ color: var(--syntax-yellow);
47
+ }
48
+
49
+ .hljs-string,
50
+ .hljs-symbol,
51
+ .hljs-bullet,
52
+ .hljs-addition {
53
+ color: var(--syntax-green);
54
+ }
55
+
56
+ .hljs-title,
57
+ .hljs-section {
58
+ color: var(--syntax-blue);
59
+ }
60
+
61
+ .hljs-keyword,
62
+ .hljs-selector-tag {
63
+ color: var(--syntax-lilac);
64
+ }
65
+
66
+ .hljs-subst {
67
+ color: var(--syntax-mid-grey);
68
+ }
69
+ }
@@ -0,0 +1,103 @@
1
+ import hljs from "highlight.js/lib/core";
2
+
3
+ // Map certain frameworks, protocols etc to available langauage packs
4
+ const languageToHighlightKey = (lang) => {
5
+ let id;
6
+
7
+ if (!lang) {
8
+ lang = "text";
9
+ }
10
+
11
+ switch (lang.toLowerCase()) {
12
+ case "android":
13
+ id = "java";
14
+ break;
15
+
16
+ case ".net":
17
+ case "net":
18
+ case "dotnet":
19
+ case "csharp":
20
+ case "c#":
21
+ id = "cs";
22
+ break;
23
+
24
+ case "objc":
25
+ case "objective c":
26
+ id = "objectivec";
27
+ break;
28
+
29
+ case "laravel":
30
+ id = "php";
31
+ break;
32
+
33
+ case "flutter":
34
+ id = "dart";
35
+ break;
36
+
37
+ case "node.js":
38
+ case "js":
39
+ id = "javascript";
40
+ break;
41
+
42
+ case "ts":
43
+ id = "typescript";
44
+ break;
45
+
46
+ case "kotlin":
47
+ case "kt":
48
+ id = "kotlin";
49
+ break;
50
+
51
+ case "shell":
52
+ case "fh":
53
+ case "sh":
54
+ id = "bash";
55
+ break;
56
+
57
+ case "https":
58
+ case "http":
59
+ case "txt":
60
+ case "plaintext":
61
+ id = "text";
62
+ break;
63
+
64
+ case "cmd":
65
+ case "bat":
66
+ id = "dos";
67
+ break;
68
+
69
+ case "yml":
70
+ id = "yaml";
71
+ break;
72
+
73
+ case "erl":
74
+ id = "erlang";
75
+ break;
76
+
77
+ case "patch":
78
+ id = "diff";
79
+ break;
80
+
81
+ case "svg":
82
+ id = "xml";
83
+ break;
84
+
85
+ default:
86
+ break;
87
+ }
88
+
89
+ return id || lang;
90
+ };
91
+
92
+ const registerDefaultLanguages = (register) => {
93
+ register.forEach(({ key, module }) => hljs.registerLanguage(key, module));
94
+ };
95
+
96
+ const highlightSnippet = (languageKeyword, snippet) => {
97
+ const language = languageToHighlightKey(languageKeyword);
98
+ if (typeof snippet !== "string" || !snippet || !language) return;
99
+
100
+ return hljs.highlight(snippet, { language }).value;
101
+ };
102
+
103
+ export { highlightSnippet, languageToHighlightKey, registerDefaultLanguages };
@@ -131,6 +131,7 @@ module.exports = {
131
131
  80: "var(--spacing-80)",
132
132
  88: "var(--spacing-88)",
133
133
  96: "var(--spacing-96)",
134
+ 128: "var(--spacing-128)",
134
135
  160: "var(--spacing-160)",
135
136
  256: "var(--spacing-256)",
136
137
  },
@@ -1,6 +0,0 @@
1
- /******/ (() => { // webpackBootstrap
2
- /******/ "use strict";
3
- /******/
4
- /******/
5
- /******/ })()
6
- ;
@@ -1,6 +0,0 @@
1
- /******/ (() => { // webpackBootstrap
2
- /******/ "use strict";
3
- /******/
4
- /******/
5
- /******/ })()
6
- ;
@@ -1,7 +0,0 @@
1
- /*!
2
- * @overview es6-promise - a tiny implementation of Promises/A+.
3
- * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
4
- * @license Licensed under MIT license
5
- * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
6
- * @version v4.2.8+1e68dce6
7
- */
@@ -1,7 +0,0 @@
1
- /*!
2
- * @overview es6-promise - a tiny implementation of Promises/A+.
3
- * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
4
- * @license Licensed under MIT license
5
- * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
6
- * @version v4.2.8+1e68dce6
7
- */
@@ -1,9 +0,0 @@
1
- /*!
2
- * JavaScript Cookie v2.2.1
3
- * https://github.com/js-cookie/js-cookie
4
- *
5
- * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
6
- * Released under the MIT license
7
- */
8
-
9
- /*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.2.2/LICENSE */