(change) footer layout

pull/1704/head
Gabriel Rodriguez Alsina 6 years ago
parent 0cd6717992
commit f53ac1eaa1
  1. 24
      apps/block_scout_web/lib/block_scout_web/templates/layout/_footer.html.eex

@ -1,15 +1,20 @@
<footer class="footer">
<div class="footer-body container">
<!-- Logo -->
<div class="row">
<div class="col-md-4">
<div class="col-md-12">
<%= link to: chain_path(@conn, :show), class: "footer-brand" do %>
<img class="footer-logo" src="<%= logo_footer() %>" alt="<%= subnetwork_title() %>" />
<% end %>
</div>
<div class="col-md-5">
</div>
<div class="col-md-3">
<% other_explorers = other_explorers() %>
<% col_size = if Enum.empty?(other_explorers), do: 3, else: 4 %>
<div class="row">
<div class="col-md-<%= col_size %>">
<p><%= gettext("Blockscout is a tool for inspecting and analyzing EVM based blockchains. Blockchain explorer for Ethereum Networks.") %></p>
<div class="icon-links icon-links-primary footer-social-icons">
<a href="https://github.com/poanetwork" rel="noreferrer" target="_blank" class="icon-link" data-toggle="tooltip" data-placement="top" title="<%= gettext("Github") %>">
<i class="fab fa-github"></i>
@ -22,19 +27,7 @@
</a>
</div>
</div>
</div>
<div class="row footer-info">
<div class="col-12">
<%= gettext("Blockscout is a tool for inspecting and analyzing EVM based blockchains. Blockchain explorer for Ethereum Networks.") %>
</div>
</div>
<% other_explorers = other_explorers() %>
<% col_size = if Enum.empty?(other_explorers), do: 4, else: 3 %>
<div class="row">
<div class="col-md-<%= col_size %> footer-list">
<h3>BlockScout</h3>
<hr>
@ -73,7 +66,6 @@
</div>
<% end %>
<%= unless Enum.empty?(other_explorers) do %>
<div class="col-md-<%= col_size %> footer-list">
<h3><%= gettext("Other Explorers") %></h3>

Loading…
Cancel
Save