Skip to content

Commit

Permalink
feat(support): modify footer links and structure
Browse files Browse the repository at this point in the history
  • Loading branch information
teenwolfblitzer committed Feb 24, 2023
1 parent 273d27e commit 2798fc9
Showing 1 changed file with 29 additions and 34 deletions.
63 changes: 29 additions & 34 deletions docs/app/views/application/_footer.html.erb
Original file line number Diff line number Diff line change
@@ -1,44 +1,39 @@
<% footerContainer ||= false %>

<div class="docs-footer">
<footer class="docs-footer">
<% if footerContainer %>
<div class="sage-container sage-container--xl">
<% end %>

<%= sage_component SageButtonGroup, { gap: :md } do %>
<%= sage_component SageButton, {
value: "Version #{$SAGE_VERSION_GEM}",
attributes: {
href: $SAGE_RELEASE_URL,
target: "_blank",
rel: "noopener",
title: "Open SageRails gem source"
},
subtle: true,
} %>
<%= sage_component SageButton, {
value: "SASS Docs",
attributes: {
href: Rails.application.config.sassdocs_root_url,
target: "_blank",
rel: "noopener",
title: "Open Sassdocs site"
},
subtle: true,
} %>
<%= sage_component SageButton, {
value: "Storybook",
attributes: {
href: storybook_url(nil),
target: "_blank",
rel: "noopener",
title: "Open Storybook React components site"
},
subtle: true,
} %>
<%= sage_component SageButtonGroup, { gap: :md, align: "space-between" } do %>
<%= sage_component SageButtonGroup, { gap: :md } do %>
<%= sage_component SageLink, {
label: "SassDocs",
url: Rails.application.config.sassdocs_root_url,
external: true,
style: "secondary",
remove_underline: true,
} %>
<%= sage_component SageLink, {
label: "Storybook",
url: storybook_url(nil),
external: true,
style: "secondary",
remove_underline: true,
} %>
<% end %>
<%= sage_component SageButtonGroup, { gap: :md } do %>
<%= sage_component SageLink, {
label: "Sage v.#{$SAGE_VERSION_GEM}",
url: $SAGE_RELEASE_URL,
external: true,
style: "secondary",
small: true,
remove_underline: true,
} %>
<% end %>
<% end %>

<% if footerContainer %>
</div>
<% end %>
</div>
</footer>

0 comments on commit 2798fc9

Please sign in to comment.