Skip to content
Permalink
Browse files

set up the page

  • Loading branch information...
dnsbty committed Apr 13, 2019
1 parent cf5bee4 commit aa88ac5d2df16382822bdb6a39dcfe19b1bb0b0b
Showing with 13 additions and 35 deletions.
  1. +11 −0 lib/live_view_todos_web/live/todo_live.ex
  2. +2 −35 lib/live_view_todos_web/templates/page/index.html.eex
@@ -0,0 +1,11 @@
defmodule LiveViewTodosWeb.TodoLive do
use Phoenix.LiveView

def mount(_session, socket) do
{:ok, socket}
end

def render(assigns) do
~L"Rendering LiveView"
end
end
@@ -1,35 +1,2 @@
<section class="phx-hero">
<h1><%= gettext "Welcome to %{name}!", name: "Phoenix" %></h1>
<p>A productive web framework that<br/>does not compromise speed or maintainability.</p>
</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/v1.4/CHANGELOG.md">v1.4 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>
</ul>
</article>
</section>
<h1>Todo List</h1>
<%= live_render(@conn, LiveViewTodosWeb.TodoLive) %>

0 comments on commit aa88ac5

Please sign in to comment.
You can’t perform that action at this time.