get intended-ui imported and add splash page

This commit is contained in:
2021-11-26 14:31:02 -05:00
parent 050248e82b
commit bb09b926d9
11 changed files with 12370 additions and 1716 deletions

View File

@@ -5,15 +5,25 @@ defmodule EntenduWeb.LinkController do
use EntenduWeb, :controller
def just(conn, _params) do
def just_page(conn, _params) do
render(conn, "just.html")
end
def for(conn, _params) do
def just(conn, %{encrypted_contents: contents}) do
conn
|> put_session(:encrypted_contents, contents)
|> redirect(to: "/just/for")
end
def for_page(conn, _params) do
render(conn, "for.html")
end
def you(conn, _params) do
def for(conn, %{username: username, service: service}) do
{:error, "not implemented"}
end
def you_page(conn, _params) do
render(conn, "you.html")
end
end

View File

@@ -18,9 +18,11 @@ defmodule EntenduWeb.Router do
pipe_through :browser
get "/", PageController, :index
get "/just", LinkController, :just
get "/just/for", LinkController, :for
get "/just/for/you", LinkController, :you
get "/just", LinkController, :just_page
post "/just", LinkController, :just
get "/just/for", LinkController, :for_page
post "/just/for", LinkController, :for
get "/just/for/you", LinkController, :you_page
end
scope "/auth", EntenduWeb do

View File

@@ -10,6 +10,7 @@
<script defer phx-track-static type="text/javascript" src="<%= Routes.static_path(@conn, "/js/app.js") %>"></script>
</head>
<body>
<div id="root">
<header>
<section class="container">
<nav role="navigation">
@@ -26,5 +27,6 @@
</section>
</header>
<%= @inner_content %>
</div>
</body>
</html>

View File

@@ -3,4 +3,8 @@
<p>There will be a form here</p>
<p>And a file input here</p>
<p>Then a next button</p>
<form phx-submit="just">
<textarea></textarea>
<button>Submit</button>
</form>
</section>