Changeset 47a0d29 in Klonkt for src/views/pages/post.ejs


Ignore:
Timestamp:
06/24/2026 11:49:19 AM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
55bc7f9
Parents:
c16e0a5
Message:

style(activitypub): polish fediverse section into clean comment cards

Dedicated markup/classes (no list numbers), circular avatar, name + muted handle
+ time, subtle rounded card per reply, pill-style stat counters. Adapts to
light/dark via color-mix on theme tokens.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/post.ejs

    rc16e0a5 r47a0d29  
    8282      </p>
    8383      <% if (fediverse.replies.length) { %>
    84         <ol class="fedi-replies">
     84        <ul class="fedi-replies">
    8585          <% fediverse.replies.forEach(function(r) { %>
    8686            <li class="fedi-reply">
    87               <div class="comment-avatar">
     87              <div class="fedi-avatar">
    8888                <% if (r.actor_icon) { %><img src="<%= r.actor_icon %>" alt="" loading="lazy">
    89                 <% } else { %><span class="comment-avatar-fallback"><%= (r.actor_name || '?').charAt(0).toUpperCase() %></span><% } %>
     89                <% } else { %><span class="fedi-avatar-fallback"><%= (r.actor_name || '?').charAt(0).toUpperCase() %></span><% } %>
    9090              </div>
    91               <div class="comment-body">
    92                 <div class="comment-meta">
    93                   <a class="comment-author" href="<%= r.actor_url %>" rel="nofollow noopener" target="_blank"><%= r.actor_name %></a>
     91              <div class="fedi-main">
     92                <div class="fedi-line">
     93                  <a class="fedi-name" href="<%= r.actor_url %>" rel="nofollow noopener" target="_blank"><%= r.actor_name %></a>
    9494                  <span class="fedi-handle"><%= r.actor_handle %></span>
    95                   <% if (r.published || r.created_at) { %><span class="comment-time"><%= formatDateTime(r.published || r.created_at) %></span><% } %>
     95                  <% if (r.published || r.created_at) { %><time class="fedi-time"><%= formatDateTime(r.published || r.created_at) %></time><% } %>
    9696                </div>
    97                 <div class="comment-content"><%- r.content %></div>
     97                <div class="fedi-text"><%- r.content %></div>
    9898              </div>
    9999            </li>
    100100          <% }); %>
    101         </ol>
     101        </ul>
    102102      <% } %>
    103103    </section>
Note: See TracChangeset for help on using the changeset viewer.