More dark mode

This commit is contained in:
Thelonius Kort
2023-02-11 19:56:34 +01:00
parent 32df023891
commit 7cd9a09cfd
3 changed files with 20 additions and 16 deletions

View File

@ -12,7 +12,7 @@ defmodule OutlookWeb.PublicComponents do
def autor(assigns) do
~H"""
<a href={"/autoren/#{@autor.id}"}>
<div class="p-4 my-2 border rounded-lg border-slate-400 text-slate-800">
<div class="p-4 my-2 border rounded-lg border-stone-400 text-stone-800 dark:text-stone-300 ">
<div class="font-bold"><%= @autor.name %></div>
<div class=""><%= @autor.description %></div>
</div>
@ -26,8 +26,8 @@ defmodule OutlookWeb.PublicComponents do
def artikel(assigns) do
~H"""
<.link navigate={"/artikel/#{@artikel.id}"}>
<div class="my-2 px-2 rounded border-2 border-solid border-gray-300">
<h4 class="font-bold py-2"><%= @artikel.title %></h4>
<div class="my-2 px-2 rounded border-2 border-solid border-gray-300 dark:border-stone-800">
<h4 class="font-bold text-stone-800 dark:text-stone-300 py-2"><%= @artikel.title %></h4>
<div :if={@show_author}><small><%= @artikel.article.author.name %></small></div>
<div><small><%= @artikel.date |> Calendar.strftime("%d.%m.%Y") %></small></div>
<div><%= @artikel.teaser |> raw %></div>