diff options
Diffstat (limited to 'lib/rook_web/templates')
| -rw-r--r-- | lib/rook_web/templates/app/entrypoint.html.eex | 5 | ||||
| -rw-r--r-- | lib/rook_web/templates/app/request.html.eex | 1 | ||||
| -rw-r--r-- | lib/rook_web/templates/app/share.html.eex | 1 | ||||
| -rw-r--r-- | lib/rook_web/templates/home/index.html.eex | 1 | ||||
| -rw-r--r-- | lib/rook_web/templates/layout/app.html.eex | 21 |
5 files changed, 29 insertions, 0 deletions
diff --git a/lib/rook_web/templates/app/entrypoint.html.eex b/lib/rook_web/templates/app/entrypoint.html.eex new file mode 100644 index 0000000..bc7e84a --- /dev/null +++ b/lib/rook_web/templates/app/entrypoint.html.eex @@ -0,0 +1,5 @@ +<link rel="stylesheet" href="<%= Routes.static_path(@conn, "/css/#{@entrypoint}.css") %>"/> +<script defer type="text/javascript" src="<%= Routes.static_path(@conn, "/js/#{@entrypoint}.js") %>"></script> +<script>window.token = "<%= @token %>";</script> + +<div id="app"></div> diff --git a/lib/rook_web/templates/app/request.html.eex b/lib/rook_web/templates/app/request.html.eex new file mode 100644 index 0000000..c09a843 --- /dev/null +++ b/lib/rook_web/templates/app/request.html.eex @@ -0,0 +1 @@ +<%= render_app(@conn, @token, "request") %> diff --git a/lib/rook_web/templates/app/share.html.eex b/lib/rook_web/templates/app/share.html.eex new file mode 100644 index 0000000..d72b2c4 --- /dev/null +++ b/lib/rook_web/templates/app/share.html.eex @@ -0,0 +1 @@ +<%= render_app(@conn, @token, "share") %> diff --git a/lib/rook_web/templates/home/index.html.eex b/lib/rook_web/templates/home/index.html.eex new file mode 100644 index 0000000..9152474 --- /dev/null +++ b/lib/rook_web/templates/home/index.html.eex @@ -0,0 +1 @@ +<p>Hi! Welcome to Walmart.</p> diff --git a/lib/rook_web/templates/layout/app.html.eex b/lib/rook_web/templates/layout/app.html.eex new file mode 100644 index 0000000..d651e23 --- /dev/null +++ b/lib/rook_web/templates/layout/app.html.eex @@ -0,0 +1,21 @@ +<!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>Rook</title> + <link rel="stylesheet" href="<%= Routes.static_path(@conn, "/css/app.css") %>"/> + </head> + <body> + <header> + <section class="container"> + Rook + </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> + <%= @inner_content %> + </main> + </body> +</html> |
