Add icons for accounts and testnet

pull/749/head
Ryan Arthur 6 years ago
parent 5a59d41b6f
commit 13cc8cb1f6
  1. 3
      apps/block_scout_web/assets/static/images/icons/accounts.svg
  2. 3
      apps/block_scout_web/assets/static/images/icons/test-network.svg
  3. 3
      apps/block_scout_web/lib/block_scout_web/templates/icons/_accounts_icon.html.eex
  4. 3
      apps/block_scout_web/lib/block_scout_web/templates/icons/_test_network_icon.html.eex
  5. 14
      apps/block_scout_web/lib/block_scout_web/templates/layout/_topnav.html.eex

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="21">
<path fill="#7DD79F" fill-rule="evenodd" d="M21 15h-7.184c.112.314.184.647.184 1v4a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1v-4a3 3 0 0 1 3-3V9a3 3 0 0 1 3-3h2c.928 0 1.747.43 2.297 1.092.226-.055.46-.092.703-.092V3a3 3 0 0 1 3-3h2a3 3 0 0 1 3 3v4a3 3 0 0 1 3 3v4a1 1 0 0 1-1 1zM9 10a2 2 0 1 0-4 0v2a2 2 0 1 0 4 0v-2zm1.204 5.021A2.98 2.98 0 0 1 8 16H6a2.98 2.98 0 0 1-2.204-.979A1.992 1.992 0 0 0 2 17v2h10v-2a1.992 1.992 0 0 0-1.796-1.979zM17 4a2 2 0 1 0-4 0v2a2 2 0 1 0 4 0V4zm3 7a1.992 1.992 0 0 0-1.796-1.979A2.98 2.98 0 0 1 16 10h-2a2.98 2.98 0 0 1-2.204-.979c-.292.03-.555.135-.796.276V13h9v-2z"/>
</svg>

After

Width:  |  Height:  |  Size: 668 B

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22">
<path fill="#ADD7CF" fill-rule="evenodd" d="M11 22C4.925 22 0 17.075 0 11S4.925 0 11 0s11 4.925 11 11-4.925 11-11 11zm6.3-14a6.988 6.988 0 0 0-1.411-2h2.577a9.038 9.038 0 0 0-4.238-3.394c.441.822.807 1.82 1.097 2.929a6.917 6.917 0 0 0-2.313-1.206C12.48 2.883 11.774 2 11 2s-1.48.883-2.012 2.329a6.917 6.917 0 0 0-2.313 1.206c.29-1.109.656-2.107 1.097-2.929A9.038 9.038 0 0 0 3.534 6h2.577A6.988 6.988 0 0 0 4.7 8H2.531A8.93 8.93 0 0 0 2 11c0 1.055.197 2.06.531 3H4.7a6.988 6.988 0 0 0 1.411 2H3.534a9.038 9.038 0 0 0 4.238 3.394c-.441-.822-.807-1.82-1.097-2.929.682.541 1.46.949 2.313 1.206C9.52 19.117 10.226 20 11 20s1.48-.883 2.012-2.329a6.917 6.917 0 0 0 2.313-1.206c-.29 1.109-.656 2.107-1.097 2.929A9.038 9.038 0 0 0 18.466 16h-2.577a6.988 6.988 0 0 0 1.411-2h2.169A8.93 8.93 0 0 0 20 11a8.93 8.93 0 0 0-.531-3H17.3zM11 17a6 6 0 1 1 0-12 6 6 0 0 1 0 12zm2-9H9a1 1 0 0 0 0 2h1v3a1 1 0 0 0 2 0v-3h1a1 1 0 0 0 0-2z"/>
</svg>

After

Width:  |  Height:  |  Size: 996 B

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="21">
<path fill="#7DD79F" fill-rule="evenodd" d="M21 15h-7.184c.112.314.184.647.184 1v4a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1v-4a3 3 0 0 1 3-3V9a3 3 0 0 1 3-3h2c.928 0 1.747.43 2.297 1.092.226-.055.46-.092.703-.092V3a3 3 0 0 1 3-3h2a3 3 0 0 1 3 3v4a3 3 0 0 1 3 3v4a1 1 0 0 1-1 1zM9 10a2 2 0 1 0-4 0v2a2 2 0 1 0 4 0v-2zm1.204 5.021A2.98 2.98 0 0 1 8 16H6a2.98 2.98 0 0 1-2.204-.979A1.992 1.992 0 0 0 2 17v2h10v-2a1.992 1.992 0 0 0-1.796-1.979zM17 4a2 2 0 1 0-4 0v2a2 2 0 1 0 4 0V4zm3 7a1.992 1.992 0 0 0-1.796-1.979A2.98 2.98 0 0 1 16 10h-2a2.98 2.98 0 0 1-2.204-.979c-.292.03-.555.135-.796.276V13h9v-2z"/>
</svg>

After

Width:  |  Height:  |  Size: 668 B

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22">
<path fill="#ADD7CF" fill-rule="evenodd" d="M11 22C4.925 22 0 17.075 0 11S4.925 0 11 0s11 4.925 11 11-4.925 11-11 11zm6.3-14a6.988 6.988 0 0 0-1.411-2h2.577a9.038 9.038 0 0 0-4.238-3.394c.441.822.807 1.82 1.097 2.929a6.917 6.917 0 0 0-2.313-1.206C12.48 2.883 11.774 2 11 2s-1.48.883-2.012 2.329a6.917 6.917 0 0 0-2.313 1.206c.29-1.109.656-2.107 1.097-2.929A9.038 9.038 0 0 0 3.534 6h2.577A6.988 6.988 0 0 0 4.7 8H2.531A8.93 8.93 0 0 0 2 11c0 1.055.197 2.06.531 3H4.7a6.988 6.988 0 0 0 1.411 2H3.534a9.038 9.038 0 0 0 4.238 3.394c-.441-.822-.807-1.82-1.097-2.929.682.541 1.46.949 2.313 1.206C9.52 19.117 10.226 20 11 20s1.48-.883 2.012-2.329a6.917 6.917 0 0 0 2.313-1.206c-.29 1.109-.656 2.107-1.097 2.929A9.038 9.038 0 0 0 18.466 16h-2.577a6.988 6.988 0 0 0 1.411-2h2.169A8.93 8.93 0 0 0 20 11a8.93 8.93 0 0 0-.531-3H17.3zM11 17a6 6 0 1 1 0-12 6 6 0 0 1 0 12zm2-9H9a1 1 0 0 0 0 2h1v3a1 1 0 0 0 2 0v-3h1a1 1 0 0 0 0-2z"/>
</svg>

After

Width:  |  Height:  |  Size: 996 B

@ -37,6 +37,15 @@
<%= gettext("API") %>
<% end %>
</li>
<li class="nav-item">
<!-- INSERT LINK TO ACCOUNTS PAGE HERE -->
<a href="#" class="nav-link topnav-nav-link">
<span class="nav-link-icon">
<%= render BlockScoutWeb.IconsView, "_accounts_icon.html" %>
</span>
<%= gettext("Accounts") %>
</a>
</li>
</ul>
<%= form_for @conn, chain_path(@conn, :search), [class: "form-inline my-2 my-lg-0", method: :get, enforce_utf8: false], fn f -> %>
<div class="input-group">
@ -52,9 +61,14 @@
<ul class="navbar-nav">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<!-- ICON FOR MAINNET -->
<span class="nav-link-icon">
<%= render BlockScoutWeb.IconsView, "_network_icon.html" %>
</span>
<!-- ICON FOR TESTNET -->
<!-- <span class="nav-link-icon">
<%= render BlockScoutWeb.IconsView, "_test_network_icon.html" %>
</span> -->
<%= gettext("Mainnet") %>
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">

Loading…
Cancel
Save