source: Klonkt/src/views/pages/volgend.ejs@ 98ceadd

main
Last change on this file since 98ceadd was 98ceadd, checked in by Robin Genis <roboburr@…>, 2 months ago

feat(volgend): explain box above the follow options (what Featured / boost-5 do)

A 'What do these options do?' box above the follow form clarifies the difference:
✨ Featured = their new posts keep showing in your Circle (local, ongoing, no fediverse
boost); 🔁 boost latest 5 = a one-time boost to the fediverse. Also reworded the
Featured hint to say 'keep showing / ongoing' so it's clearly not 'the latest 5'.
i18n nl/en/de (tl.explain_heading + tl.autoboost_hint).

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

  • Property mode set to 100644
File size: 5.5 KB
Line 
1<div class="tl-wrap">
2 <h1 class="tl-title"><%= t('tl.title') %></h1>
3 <p class="tl-lead"><%= t('tl.lead') %></p>
4 <%- include('../partials/tl-tabs', { active: 'following' }) %>
5 <% if (typeof success !== 'undefined' && success) { %><div class="alert alert-success"><%= success %></div><% } %>
6 <% if (typeof error !== 'undefined' && error) { %><div class="alert alert-error"><%= error %></div><% } %>
7
8 <div class="tl-explain">
9 <h2 class="tl-explain-h"><%= t('tl.explain_heading') %></h2>
10 <p><span class="tl-explain-tag">✨ <%= t('tl.autoboost') %></span> — <%= t('tl.autoboost_hint') %></p>
11 <p><span class="tl-explain-tag">🔁 <%= t('tl.boost5_follow') %></span> — <%= t('tl.boost5_hint') %></p>
12 </div>
13
14 <form method="post" action="/tijdlijn/follow" class="tl-follow">
15 <input type="text" name="handle" placeholder="@naam@server.social of site.com" autocomplete="off" spellcheck="false" required>
16 <button type="submit" class="btn btn-primary"><%= t('tl.follow_btn') %></button>
17 <label class="tl-follow-ab" title="<%= t('tl.autoboost_hint') %>"><input type="checkbox" name="auto_boost" value="1"> ✨ <%= t('tl.autoboost_follow') %></label>
18 <label class="tl-follow-ab" title="<%= t('tl.boost5_hint') %>"><input type="checkbox" name="boost5" value="1"> 🔁 <%= t('tl.boost5_follow') %></label>
19 </form>
20
21 <% if (following && following.length) { %>
22 <h2 class="tl-sub"><%= t('tl.following') %> (<%= following.length %>)</h2>
23 <ul class="tl-foll-list">
24 <% following.forEach(function(f){ %>
25 <li class="tl-foll">
26 <span class="tl-foll-av"><% if (f.icon) { %><img src="<%= f.icon %>" alt=""><% } else { %><%= (f.name || '?').charAt(0).toUpperCase() %><% } %></span>
27 <span class="tl-foll-meta">
28 <a href="<%= f.url || f.actor_uri %>" target="_blank" rel="nofollow noopener"><%= f.name || f.handle %></a>
29 <span class="tl-foll-handle"><%= f.handle %></span>
30 <% if (f.status === 'pending') { %><span class="tl-pending"><%= t('tl.pending') %></span><% } %>
31 </span>
32 <form method="post" action="/tijdlijn/autoboost" class="tl-foll-ab" title="<%= t('tl.autoboost_hint') %>">
33 <input type="hidden" name="actor_uri" value="<%= f.actor_uri %>">
34 <label><input type="checkbox" name="auto_boost" value="1" <%= f.auto_boost ? 'checked' : '' %> onchange="this.form.submit()"> ✨ <%= t('tl.autoboost') %></label>
35 </form>
36 <form method="post" action="/tijdlijn/unfollow"><input type="hidden" name="actor_uri" value="<%= f.actor_uri %>"><button type="submit" class="tl-unfollow"><%= t('tl.unfollow') %></button></form>
37 </li>
38 <% }); %>
39 </ul>
40 <% } else { %>
41 <p class="tl-empty"><%= t('tl.empty_following') %></p>
42 <% } %>
43</div>
44
45<style>
46 .tl-wrap { max-width: 640px; margin: 2rem auto; padding: 0 1rem; }
47 .tl-title { margin: 0 0 .25rem; }
48 .tl-lead { color: var(--ink-soft, #888); margin: 0 0 1.25rem; }
49 .tl-explain { margin: 0 0 1.25rem; padding: .85rem 1rem; border-radius: 12px;
50 background: color-mix(in srgb, var(--accent, #888) 8%, transparent);
51 border: 1px solid color-mix(in srgb, var(--accent, #888) 22%, transparent); }
52 .tl-explain-h { font-size: .95rem; margin: 0 0 .5rem; }
53 .tl-explain p { margin: .3rem 0; font-size: .85rem; color: var(--ink-soft, #888); line-height: 1.5; }
54 .tl-explain-tag { font-weight: 600; color: var(--ink, inherit); white-space: nowrap; }
55 .tl-sub { font-size: 1.1rem; margin: 1.5rem 0 .75rem; }
56 .tl-follow { display: flex; gap: .5rem; margin: 0 0 1rem; flex-wrap: wrap; align-items: center; }
57 .tl-follow input[type="text"] { flex: 1; min-width: 200px; height: 2.4rem; padding: 0 .9rem; border-radius: 999px; font: inherit;
58 border: 1px solid color-mix(in srgb, var(--ink, #000) 18%, transparent); background: color-mix(in srgb, var(--ink, #000) 4%, transparent); color: var(--ink, #000); }
59 .tl-follow-ab { font-size: .85rem; color: var(--ink-soft, #888); display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; }
60 .tl-foll-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
61 .tl-foll { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: 12px; background: color-mix(in srgb, var(--ink, #000) 4%, transparent); }
62 .tl-foll-av { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; background: color-mix(in srgb, var(--accent, #888) 20%, transparent); color: var(--accent, #555); }
63 .tl-foll-av img { width: 100%; height: 100%; object-fit: cover; }
64 .tl-foll-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
65 .tl-foll-meta a { color: var(--ink, inherit); text-decoration: none; font-weight: 600; }
66 .tl-foll-meta a:hover { text-decoration: underline; }
67 .tl-foll-handle { color: var(--ink-soft, #888); font-size: .82rem; }
68 .tl-pending { font-size: .72rem; color: var(--ink-soft, #999); }
69 .tl-foll-ab { margin: 0; font-size: .8rem; color: var(--ink-soft, #888); cursor: pointer; }
70 .tl-foll-ab label { display: inline-flex; align-items: center; gap: .25rem; cursor: pointer; }
71 .tl-unfollow { background: none; border: 1px solid color-mix(in srgb, var(--ink, #000) 18%, transparent); border-radius: 8px; padding: .25rem .6rem; font-size: .8rem; color: var(--ink-soft, #888); cursor: pointer; }
72 .tl-unfollow:hover { color: var(--ink, #000); }
73 .tl-empty { color: var(--ink-soft, #888); }
74</style>
Note: See TracBrowser for help on using the repository browser.