(change) footer layout

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

@ -1,15 +1,20 @@
<footer class="footer"> <footer class="footer">
<div class="footer-body container"> <div class="footer-body container">
<!-- Logo -->
<div class="row"> <div class="row">
<div class="col-md-4"> <div class="col-md-12">
<%= link to: chain_path(@conn, :show), class: "footer-brand" do %> <%= link to: chain_path(@conn, :show), class: "footer-brand" do %>
<img class="footer-logo" src="<%= logo_footer() %>" alt="<%= subnetwork_title() %>" /> <img class="footer-logo" src="<%= logo_footer() %>" alt="<%= subnetwork_title() %>" />
<% end %> <% end %>
</div> </div>
<div class="col-md-5"> </div>
</div>
<% other_explorers = other_explorers() %>
<% col_size = if Enum.empty?(other_explorers), do: 3, else: 4 %>
<div class="col-md-3"> <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"> <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") %>"> <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> <i class="fab fa-github"></i>
@ -22,19 +27,7 @@
</a> </a>
</div> </div>
</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"> <div class="col-md-<%= col_size %> footer-list">
<h3>BlockScout</h3> <h3>BlockScout</h3>
<hr> <hr>
@ -73,7 +66,6 @@
</div> </div>
<% end %> <% end %>
<%= unless Enum.empty?(other_explorers) do %> <%= unless Enum.empty?(other_explorers) do %>
<div class="col-md-<%= col_size %> footer-list"> <div class="col-md-<%= col_size %> footer-list">
<h3><%= gettext("Other Explorers") %></h3> <h3><%= gettext("Other Explorers") %></h3>

Loading…
Cancel
Save