Current section

Files

Jump to
phx_new templates phx_web templates page index.html.eex
Raw

templates/phx_web/templates/page/index.html.eex

<section class="phx-hero"><%= if gettext do %>
<h1><%%= gettext "Welcome to %{name}!", name: "Phoenix" %></h1><% else %>
<h1>Welcome to Phoenix!</h1><% end %>
<p>Peace of mind from prototype to production</p><%= if live do %>
<form phx-change="suggest" phx-submit="search">
<input type="text" name="q" value="<%%= @query %>" placeholder="Live dependency search" list="results" autocomplete="off"/>
<datalist id="results">
<%%= for {app, _vsn} <- @results do %>
<option value="<%%= app %>"><%%= app %></option>
<%% end %>
</datalist>
<button type="submit" phx-disable-with="Searching...">Go to Hexdocs</button>
</form><% end %>
</section>
<section class="row">
<article class="column">
<h2>Resources</h2>
<ul>
<li>
<a href="https://hexdocs.pm/phoenix/overview.html">Guides &amp; Docs</a>
</li>
<li>
<a href="https://github.com/phoenixframework/phoenix">Source</a>
</li>
<li>
<a href="https://github.com/phoenixframework/phoenix/blob/<%= phoenix_github_version_tag %>/CHANGELOG.md"><%= phoenix_github_version_tag %> Changelog</a>
</li>
</ul>
</article>
<article class="column">
<h2>Help</h2>
<ul>
<li>
<a href="https://elixirforum.com/c/phoenix-forum">Forum</a>
</li>
<li>
<a href="https://webchat.freenode.net/?channels=elixir-lang">#elixir-lang on Freenode IRC</a>
</li>
<li>
<a href="https://twitter.com/elixirphoenix">Twitter @elixirphoenix</a>
</li>
<li>
<a href="https://elixir-slackin.herokuapp.com/">Elixir on Slack</a>
</li>
</ul>
</article>
</section>