Contributor sees the POA Network logo on the homepage

pull/2/head
CJ Bryan and Matt Olenick 7 years ago
parent 4043b54215
commit aabfe3116c
  1. BIN
      assets/static/images/logo.png
  2. BIN
      assets/static/images/phoenix.png
  3. 8
      lib/explorer_web/templates/layout/app.html.eex
  4. 37
      lib/explorer_web/templates/page/index.html.eex
  5. 2
      test/explorer_web/controllers/page_controller_test.exs
  6. 4
      test/explorer_web/features/contributor_browsing_test.exs

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

@ -14,12 +14,8 @@
<body>
<div class="container">
<header class="header">
<nav role="navigation">
<ul class="nav nav-pills pull-right">
<li><a href="http://www.phoenixframework.org/docs">Get Started</a></li>
</ul>
</nav>
<span class="logo"></span>
<img class="header__logo" src="<%= static_path(@conn, "/images/logo.png") %>">
<div class="header__title"><%= gettext "POA Network Explorer" %></div>
</header>
<p class="alert alert-info" role="alert"><%= get_flash(@conn, :info) %></p>

@ -1,36 +1 @@
<div class="jumbotron">
<h2><%= gettext "Welcome to %{name}!", name: "Phoenix" %></h2>
<p class="lead">A productive web framework that<br />does not compromise speed and maintainability.</p>
</div>
<div class="row marketing">
<div class="col-lg-6">
<h4>Resources</h4>
<ul>
<li>
<a href="http://phoenixframework.org/docs/overview">Guides</a>
</li>
<li>
<a href="https://hexdocs.pm/phoenix">Docs</a>
</li>
<li>
<a href="https://github.com/phoenixframework/phoenix">Source</a>
</li>
</ul>
</div>
<div class="col-lg-6">
<h4>Help</h4>
<ul>
<li>
<a href="http://groups.google.com/group/phoenix-talk">Mailing list</a>
</li>
<li>
<a href="http://webchat.freenode.net/?channels=elixir-lang">#elixir-lang on freenode IRC</a>
</li>
<li>
<a href="https://twitter.com/elixirphoenix">@elixirphoenix</a>
</li>
</ul>
</div>
</div>
<div>Welcome to our blockchain explorer.</div>

@ -3,6 +3,6 @@ defmodule ExplorerWeb.PageControllerTest do
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
assert html_response(conn, 200) =~ "Welcome"
end
end

@ -3,9 +3,9 @@ defmodule ExplorerWeb.UserListTest do
import Wallaby.Query, only: [css: 2]
test "users have names", %{session: session} do
test "browses the home page", %{session: session} do
session
|> visit("/")
|> assert_has(css("h2", text: "Welcome to Phoenix!"))
|> assert_has(css(".header__title", text: "POA Network Explorer"))
end
end

Loading…
Cancel
Save