From 16a0c7ec986ae04d5c1fe07d8b619c6d89ad12e2 Mon Sep 17 00:00:00 2001 From: SphericalKat Date: Sun, 15 Aug 2021 01:25:18 +0530 Subject: [PATCH] fix(ui): fix misc ui bugs Signed-off-by: SphericalKat --- assets/css/app.css | 8 +++++++- lib/ketbin_web/router.ex | 2 +- lib/ketbin_web/templates/layout/app.html.eex | 20 +++++++++++++++++++- lib/ketbin_web/templates/page/form.html.eex | 2 +- lib/ketbin_web/templates/page/show.html.eex | 4 +--- 5 files changed, 29 insertions(+), 7 deletions(-) diff --git a/assets/css/app.css b/assets/css/app.css index f97f835..ca2210c 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -15,7 +15,7 @@ body { } a:hover { - @apply text-amber; + color: #ff9800 } header { @@ -25,3 +25,9 @@ header { code { font-family: "JetBrains Mono", monospace; } + +code { + white-space: pre; + font-size: 14px; + font-weight: bold; +} \ No newline at end of file diff --git a/lib/ketbin_web/router.ex b/lib/ketbin_web/router.ex index 3d5ee79..c61cd0f 100644 --- a/lib/ketbin_web/router.ex +++ b/lib/ketbin_web/router.ex @@ -17,7 +17,7 @@ defmodule KetbinWeb.Router do end scope "/", KetbinWeb do - pipe_through [:browser, :fetch_current_user] + pipe_through :browser get "/", PageController, :index get "/:id", PageController, :show diff --git a/lib/ketbin_web/templates/layout/app.html.eex b/lib/ketbin_web/templates/layout/app.html.eex index ad82c23..619956b 100644 --- a/lib/ketbin_web/templates/layout/app.html.eex +++ b/lib/ketbin_web/templates/layout/app.html.eex @@ -31,10 +31,28 @@ -
+
<%= @inner_content %>
+ diff --git a/lib/ketbin_web/templates/page/form.html.eex b/lib/ketbin_web/templates/page/form.html.eex index be761f5..56e71f0 100644 --- a/lib/ketbin_web/templates/page/form.html.eex +++ b/lib/ketbin_web/templates/page/form.html.eex @@ -5,7 +5,7 @@ <% end %> -
+
<%= textarea f, :content, [class: "w-full h-full px-6 py-4 outline-none bg-light-grey font-bold resize-none", placeholder: "> Paste, save, share! (Pasting just a URL will shorten it!)"] %>