aboutsummaryrefslogtreecommitdiff
path: root/lib/waev_web/templates
diff options
context:
space:
mode:
authorGuillermo Ramos2020-02-04 13:49:53 +0100
committerGuillermo Ramos2020-02-04 14:20:23 +0100
commit1566a2fcba0676cf54dde2b04702a320d9f1edcd (patch)
tree1d6b378f2d5192fbc3f9446ba9a0cd6e8af2c4c7 /lib/waev_web/templates
downloadwaev-1566a2fcba0676cf54dde2b04702a320d9f1edcd.tar.gz
Initial commit
Diffstat (limited to 'lib/waev_web/templates')
-rw-r--r--lib/waev_web/templates/layout/app.html.eex31
-rw-r--r--lib/waev_web/templates/page/index.html.eex35
2 files changed, 66 insertions, 0 deletions
diff --git a/lib/waev_web/templates/layout/app.html.eex b/lib/waev_web/templates/layout/app.html.eex
new file mode 100644
index 0000000..3eb7e3a
--- /dev/null
+++ b/lib/waev_web/templates/layout/app.html.eex
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8"/>
+ <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
+ <title>Waev ยท Phoenix Framework</title>
+ <link rel="stylesheet" href="<%= Routes.static_path(@conn, "/css/app.css") %>"/>
+ <%= csrf_meta_tag() %>
+ </head>
+ <body>
+ <header>
+ <section class="container">
+ <nav role="navigation">
+ <ul>
+ <li><a href="https://hexdocs.pm/phoenix/overview.html">Get Started</a></li>
+ </ul>
+ </nav>
+ <a href="https://phoenixframework.org/" class="phx-logo">
+ <img src="<%= Routes.static_path(@conn, "/images/phoenix.png") %>" alt="Phoenix Framework Logo"/>
+ </a>
+ </section>
+ </header>
+ <main role="main" class="container">
+ <p class="alert alert-info" role="alert"><%= get_flash(@conn, :info) %></p>
+ <p class="alert alert-danger" role="alert"><%= get_flash(@conn, :error) %></p>
+ <%= render @view_module, @view_template, assigns %>
+ </main>
+ <script type="text/javascript" src="<%= Routes.static_path(@conn, "/js/app.js") %>"></script>
+ </body>
+</html>
diff --git a/lib/waev_web/templates/page/index.html.eex b/lib/waev_web/templates/page/index.html.eex
new file mode 100644
index 0000000..8cbd9d8
--- /dev/null
+++ b/lib/waev_web/templates/page/index.html.eex
@@ -0,0 +1,35 @@
+<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>