Update the Author Show LiveView to show the avatar image and aliases.
This commit is contained in:
@@ -34,7 +34,7 @@ defmodule DecentralisedBookIndexWeb.Components.MyComponents.AuthorCard do
|
||||
<div class="flex flex-col items-center py-5">
|
||||
<.link navigate={~p"/authors/#{@author.id}"}>
|
||||
<%= if @author.avatar_url != nil do %>
|
||||
<img class="w-36 h-36 mb-3 rounded-full shadow-lg" src={@author.avatar_url} alt="Bonnie image"/>
|
||||
<img class="w-36 h-36 mb-3 rounded-full shadow-lg" src={@author.avatar_url} alt={"#{@author.name} image"} />
|
||||
<% else %>
|
||||
<div class="relative w-36 h-36 overflow-hidden bg-gray-100 rounded-full dark:bg-gray-600">
|
||||
<svg class="absolute w-36 h-36 text-gray-400" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z" clip-rule="evenodd"></path></svg>
|
||||
|
||||
Reference in New Issue
Block a user