diff options
author | href <href@random.sh> | 2021-09-03 04:04:21 +0200 |
---|---|---|
committer | href <href@random.sh> | 2021-09-03 04:04:21 +0200 |
commit | 5399fc818cf821c75f9f19fd00bf7905ba7fe7e3 (patch) | |
tree | 00408724f9778cc7323b1459782a762626d39b6a /lib/lsg_web/templates | |
parent | assets.. (diff) |
various fixes, web client wip, pubsub events
Diffstat (limited to '')
-rw-r--r-- | lib/lsg_web/templates/irc/index.html.eex | 3 | ||||
-rw-r--r-- | lib/lsg_web/templates/layout/app.html.eex | 24 | ||||
-rw-r--r-- | lib/lsg_web/templates/layout/root.html.leex | 18 |
3 files changed, 23 insertions, 22 deletions
diff --git a/lib/lsg_web/templates/irc/index.html.eex b/lib/lsg_web/templates/irc/index.html.eex index a8544b3..f20f444 100644 --- a/lib/lsg_web/templates/irc/index.html.eex +++ b/lib/lsg_web/templates/irc/index.html.eex @@ -1,5 +1,6 @@ <div class="hidden sm:block"> - <nav class="flex flex-wrap content-center"> + <nav class="flex flex-wrap content-center"> + <%= link("live", to: LSGWeb.Router.Helpers.live_path(LSGWeb.Endpoint, LSGWeb.ChatLive, @network, LSGWeb.format_chan(@chan)), class: "px-3 py-2 font-medium text-sm leading-5 rounded-md text-gray-500 hover:text-gray-700 focus:outline-none focus:text-indigo-600 focus:bg-indigo-50") %> <% list = for {identifier, _} <- @commands do %> <% name = String.replace(identifier, "_", " ") %> <%= link(name, to: "##{identifier}", class: "px-3 py-2 font-medium text-sm leading-5 rounded-md text-gray-500 hover:text-gray-700 focus:outline-none focus:text-indigo-600 focus:bg-indigo-50") %> diff --git a/lib/lsg_web/templates/layout/app.html.eex b/lib/lsg_web/templates/layout/app.html.eex index 9ad05a6..bca1555 100644 --- a/lib/lsg_web/templates/layout/app.html.eex +++ b/lib/lsg_web/templates/layout/app.html.eex @@ -1,18 +1,3 @@ -<!DOCTYPE html> -<html lang="en"> - <head> - <%= page_title(@conn) %> - <meta charset="utf-8"> - <meta name="robots" content="noindex, nofollow, nosnippet"> - <meta http-equiv="X-UA-Compatible" content="IE=edge"> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <meta name="robots" content="noindex, noarchive, nofollow, nosnippet" /> - <title><%= Map.get(assigns, :title, "") %></title> - <link rel="stylesheet" href="<%= static_path(@conn, "/assets/site.css") %>"> - <script src="<%= static_path(@conn, "/assets/site.js") %>" defer></script> - </head> - - <body> <div> <div class="bg-gray-800 pb-32"> <nav class="bg-gray-800"> @@ -129,16 +114,13 @@ </header> </div> - <main class="-mt-32"> - <div class="max-w-7xl mx-auto pb-12 px-4 sm:px-6 lg:px-8"> + <main class="-mt-32 h-full"> + <div class="max-w-7xl h-full mx-auto pb-12 px-4 sm:px-6 lg:px-8"> <!-- Replace with your content --> - <div class="bg-white rounded-lg shadow px-5 py-6 sm:px-6"> + <div class="bg-white h-full rounded-lg shadow px-5 py-6 sm:px-6"> <%= @inner_content %> </div> <!-- /End replace --> </div> </main> </div> - - </body> -</html> diff --git a/lib/lsg_web/templates/layout/root.html.leex b/lib/lsg_web/templates/layout/root.html.leex new file mode 100644 index 0000000..6a48506 --- /dev/null +++ b/lib/lsg_web/templates/layout/root.html.leex @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <%= page_title(@conn) %> + <meta charset="utf-8"> + <meta name="robots" content="noindex, nofollow, nosnippet"> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="robots" content="noindex, noarchive, nofollow, nosnippet" /> + <title><%= Map.get(assigns, :title, "") %></title> + <link rel="stylesheet" href="<%= static_path(@conn, "/assets/site.css") %>"> + <%= csrf_meta_tag() %> + <script src="<%= static_path(@conn, "/assets/site.js") %>" defer></script> + </head> + <body> + <%= @inner_content %> + </body> +</html> |