aboutsummaryrefslogtreecommitdiff
path: root/shardweb/lib/shard_web/templates/layout/app.html.eex
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2018-09-01 16:07:22 +0200
committerAlex Auvolat <alex@adnab.me>2018-09-01 16:07:22 +0200
commit81b5a844a2a155e28c497a8ce671eb5f02803e5d (patch)
tree15e878ebe47d5993e7af46a48a1ccdc1dd1e4b2f /shardweb/lib/shard_web/templates/layout/app.html.eex
parentc6ec33d6e612168e14d77007915a4ea423c55a2e (diff)
downloadshard-0.0.2.tar.gz
shard-0.0.2.zip
Import shardweb0.0.2
Diffstat (limited to 'shardweb/lib/shard_web/templates/layout/app.html.eex')
-rw-r--r--shardweb/lib/shard_web/templates/layout/app.html.eex38
1 files changed, 38 insertions, 0 deletions
diff --git a/shardweb/lib/shard_web/templates/layout/app.html.eex b/shardweb/lib/shard_web/templates/layout/app.html.eex
new file mode 100644
index 0000000..9903775
--- /dev/null
+++ b/shardweb/lib/shard_web/templates/layout/app.html.eex
@@ -0,0 +1,38 @@
+<!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">
+ <meta name="description" content="">
+ <meta name="author" content="">
+
+ <title>Shard.</title>
+ <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">
+ </head>
+
+ <body>
+ <div class="container">
+ <header class="header">
+ <nav role="navigation">
+ <ul class="nav nav-pills pull-right">
+ <li><a href="<%= page_path(@conn, :index) %>">Home</a></li>
+ <li><a href="<%= room_path(@conn, :show, "lobby") %>">Chat</a></li>
+ </ul>
+ </nav>
+ <span class="logo"></span>
+ </header>
+
+ <p class="alert alert-info" role="alert"><%= get_flash(@conn, :info) %></p>
+ <p class="alert alert-danger" role="alert"><%= get_flash(@conn, :error) %></p>
+
+
+ <main role="main">
+ <%= render @view_module, @view_template, assigns %>
+ </main>
+
+ </div> <!-- /container -->
+ <%= render_gon_script(@conn) %>
+ <script src="<%= static_path(@conn, "/js/app.js") %>"></script>
+ </body>
+</html>