summaryrefslogtreecommitdiff
path: root/lib/lsg_web/templates/alcoolog
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lsg_web/templates/alcoolog')
-rw-r--r--lib/lsg_web/templates/alcoolog/auth.html.eex12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/lsg_web/templates/alcoolog/auth.html.eex b/lib/lsg_web/templates/alcoolog/auth.html.eex
index af6db53..6e5cedc 100644
--- a/lib/lsg_web/templates/alcoolog/auth.html.eex
+++ b/lib/lsg_web/templates/alcoolog/auth.html.eex
@@ -1,6 +1,11 @@
-<h1>authentication</h1>
+<div class="grid grid-cols-2">
+ <h1 class="text-2xl font-bold">authentication</h1>
+ <div class="text-right">
+ <%= link("connect using random.sh", to: "/login/oidc", class: "inline-block font-medium underline") %>
+ </div>
+</div>
-<div id="authenticator">
+<div id="authenticator" class="mt-12 h-32 place-self-end justify-self-start">
<p>
<%= if @bot, do: "Send this to #{@bot} on #{@network}:", else: "Find your bot nickname and send:" %><br /><br />
<strong>/msg <%= @bot || "the-bot-nickname" %> web</strong>
@@ -12,7 +17,7 @@
<script type="text/javascript">
var authSse = new EventSource("/api/irc-auth.sse?redirect_to=" + window.location.pathname);
authSse.addEventListener("token", function(event) {
- html = "<%= if @bot, do: "Send this to #{@bot} on #{@network}:", else: "Find your bot nickname and send:" %><br /><br /><strong>/msg <%= @bot || "the-bot-nickname" %> "+event.data+"</strong>";
+ html = "<%= if @bot, do: "Send this to #{@bot} on #{@network}:", else: "Find your bot nickname and send:" %><br /><br /><strong class='text-xl font-mono ml-12'>/msg <%= @bot || "<the-bot-nickname>" %> "+event.data+"</strong>";
elem = document.getElementById("authenticator");
elem.innerHTML = html;
});
@@ -36,4 +41,3 @@
};
</script>
-