-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(support): modify footer links and structure
- Loading branch information
1 parent
273d27e
commit 2798fc9
Showing
1 changed file
with
29 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |