-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extrac _header_content to being able to broadcast changes
- Loading branch information
Showing
3 changed files
with
38 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<div id="<%= dom_id(speaker, :header_content) %>" class="flex flex-col lg:flex-row gap-8 items-center lg:justify-right text-center lg:text-left mb-6 lg:mb-0"> | ||
<div class="relative w-fit"> | ||
<%= image_tag speaker.github_avatar_url(size: 200), | ||
class: "rounded-full border border-[#D9DFE3] size-24 md:size-36", | ||
height: 200, | ||
width: 200, | ||
alt: "GitHub picture profile of #{speaker.github}", | ||
loading: :lazy %> | ||
<% if speaker.verified? %> | ||
<div class="absolute right-0 top-0 badge badge-accent flex gap-1"> | ||
<%= fa("badge-check", class: "fill-white", size: :xs) %> | ||
|
||
Verified | ||
</div> | ||
<% end %> | ||
</div> | ||
|
||
<div class="flex-col flex gap-3 title justify-center"> | ||
<div class="flex flex-col lg:flex-row justify-center lg:justify-start text-black font-bold gap-2"> | ||
<h1 style="view-transition-name: title"><%= speaker.name %></h1> | ||
|
||
<% if speaker.pronouns.present? && ["dont_specify", "not_specified"].exclude?(speaker.pronouns_type) %> | ||
<span class="text-sm content-center text-[#737373]">(<%= speaker.pronouns %>)</span> | ||
<% end %> | ||
</div> | ||
|
||
<p class="text-[#636B74] max-w-[700px]"> | ||
<%= speaker.bio %> | ||
</p> | ||
|
||
<div class="mt-2 flex justify-center lg:justify-start"> | ||
<%= render "speakers/socials", speaker: speaker %> | ||
</div> | ||
</div> | ||
</div> |