Skip to content

Commit

Permalink
Merge pull request #211 from ably/web-2568-meganav-live-updates-link
Browse files Browse the repository at this point in the history
[WEB-2568] Add live updates link to meganav
  • Loading branch information
Dominik authored Sep 20, 2022
2 parents 417026c + 31348f5 commit 47652ee
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions preview/app/controllers/components_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def icon
icon-display-tech-account-comms
icon-display-tutorials-demos-col
icon-display-virtual-events-col
icon-live-updates-results-metrics-col
]

social_icons = %w[discord facebook github glassdoor linkedin twitter]
Expand Down
9 changes: 9 additions & 0 deletions src/core/MeganavContentUseCases/component.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@
Use cases
</h3>
<ul aria-labelledby="meganav-use-cases-panel-industry-use-cases">
<li>
<%= link_to abs_url("/solutions/live-updates-results-metrics"), class: "ui-meganav-media-with-image group" do %>
<%= render(AblyUi::Core::Icon.new(name: "icon-live-updates-results-metrics-col", size: "2.5rem")) %>
<div class="flex flex-col justify-center">
<p class="ui-meganav-media-heading">Live updates, results & metrics</p>
<p class="ui-meganav-media-copy">Deliver live updates to keep users informed.</p>
</div>
<% end %>
</li>
<li>
<%= link_to abs_url("/solutions/chat"), class: "ui-meganav-media-with-image group" do %>
<%= render(AblyUi::Core::Icon.new(name: "icon-display-chat-stack-col", size: "2.5rem")) %>
Expand Down
9 changes: 9 additions & 0 deletions src/core/MeganavContentUseCases/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ const MeganavContentUseCases = ({ absUrl }) => (
Use cases
</h3>
<ul aria-labelledby="meganav-use-cases-panel-industry-use-cases">
<li>
<a href={absUrl("/solutions/live-updates-results-metrics")} className="ui-meganav-media-with-image group">
<Icon name="icon-live-updates-results-metrics-col" size="2.5rem" />
<div className="flex flex-col justify-center">
<p className="ui-meganav-media-heading">Live updates, results & metrics</p>
<p className="ui-meganav-media-copy">Deliver live updates to keep users informed.</p>
</div>
</a>
</li>
<li>
<a href={absUrl("/solutions/chat")} className="ui-meganav-media-with-image group">
<Icon name="icon-display-chat-stack-col" size="2.5rem" />
Expand Down
26 changes: 26 additions & 0 deletions src/core/icons/icon-live-updates-results-metrics-col.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 47652ee

Please sign in to comment.