Improve index tables and improved consistency (#97)

* Simplifies index pages

* Improved UX of more pages
This commit is contained in:
Kieran
2024-03-19 14:03:02 -07:00
committed by GitHub
parent 70dd95211f
commit c046abf36f
12 changed files with 48 additions and 32 deletions
@@ -31,6 +31,20 @@ defmodule PinchflatWeb.CustomComponents.TextComponents do
"""
end
@doc """
Renders a subtle link with the given href and content.
"""
attr :href, :string, required: true
slot :inner_block
def subtle_link(assigns) do
~H"""
<.link href={@href} class="underline decoration-bodydark decoration-1 hover:decoration-white">
<%= render_slot(@inner_block) %>
</.link>
"""
end
@doc """
Renders an icon as a link with the given href.
"""