source: Klonkt/src/views/pages/circle-feed.ejs@ 546f102

main
Last change on this file since 546f102 was 546f102, checked in by roboburr <roboburr@…>, 3 months ago

feat(circles): icon exactly matching reference — 3 hollow nodes, double arrow + 2 directed arrows

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

  • Property mode set to 100644
File size: 4.4 KB
Line 
1<div class="container cirkel-hero">
2 <span class="cirkel-badge" aria-hidden="true">
3 <svg viewBox="0 0 100 100" fill="none" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-linejoin="round">
4 <defs>
5 <marker id="cf-a" viewBox="0 0 10 10" refX="6.5" refY="5" markerWidth="3" markerHeight="3" orient="auto-start-reverse"><path d="M2 2 L7 5 L2 8" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></marker>
6 </defs>
7 <circle cx="50" cy="50" r="45"/>
8 <line x1="35" y1="40" x2="54" y2="29" marker-start="url(#cf-a)" marker-end="url(#cf-a)"/>
9 <line x1="65" y1="34" x2="65" y2="61" marker-end="url(#cf-a)"/>
10 <line x1="33.2" y1="53.3" x2="54" y2="66.2" marker-end="url(#cf-a)"/>
11 <circle cx="23" cy="47" r="9"/>
12 <circle cx="65" cy="23" r="9"/>
13 <circle cx="65" cy="73" r="9"/>
14 </svg>
15 </span>
16 <h1><%= t('cfeed.title') %></h1>
17 <p class="cirkel-sub"><%= t('cfeed.sub') %></p>
18 <% if (typeof sites !== 'undefined' && sites && sites.length) { %>
19 <% if (sites.length <= 5) { %>
20 <div class="cirkel-members">
21 <% sites.forEach(function(s){ %>
22 <% if (s.url) { %><a class="cirkel-member" href="<%= s.url %>" target="_blank" rel="noopener" title="<%= s.name %>"><% } else { %><span class="cirkel-member" title="<%= s.name %>"><% } %>
23 <span class="cirkel-avatar"<% if (s.avatar) { %> style="background-image:url('<%= s.avatar %>')"<% } %>><% if (!s.avatar) { %><%= (s.name || '?').charAt(0).toUpperCase() %><% } %></span>
24 <span class="cirkel-member-name"><%= s.name %></span>
25 <% if (s.url) { %></a><% } else { %></span><% } %>
26 <% }); %>
27 </div>
28 <% } else { %>
29 <%# Meer dan 5: geen chips (zou een muur worden) — alleen het aantal. %>
30 <span class="cirkel-count"><%= t('cfeed.count', { n: sites.length }) %></span>
31 <% } %>
32 <% } %>
33</div>
34
35<% if (!posts.length) { %>
36 <div class="container">
37 <p class="cirkel-empty"><%= t('cfeed.empty') %></p>
38 </div>
39<% } else { %>
40
41 <%# Dezelfde view als de hoofdpagina: timeline (post-card) + grid (post-tile),
42 gewisseld door de view-switcher via body[data-feed-view]. De remote-posts
43 zijn in circle.js naar het lokale post-shape gevormd (met external_url,
44 zodat de kaarten naar de bron-site linken). %>
45
46 <!-- ===== TIMELINE (standaard) ===== -->
47 <div class="container feed-timeline">
48 <ul class="post-list feed-timeline-list">
49 <% posts.forEach(function(post){ %>
50 <%- include('../partials/post-card', { post: post }) %>
51 <% }); %>
52 </ul>
53 </div>
54
55 <!-- ===== GRID (body[data-feed-view="grid"]) ===== -->
56 <section class="feed-grid container" aria-label="<%= t('cfeed.grid_view') %>">
57 <div class="grid-tiles">
58 <% posts.forEach(function(post){ %>
59 <%- include('../partials/post-tile', { post: post }) %>
60 <% }); %>
61 </div>
62 </section>
63
64<% } %>
65
66<style>
67.cirkel-hero { text-align: center; max-width: 640px; margin: 2.5rem auto 2rem; }
68.cirkel-badge { display: block; width: 104px; height: 104px; margin: 0 auto .7rem; color: var(--accent); }
69.cirkel-badge svg { width: 100%; height: 100%; }
70.cirkel-hero h1 { font-family: var(--font-display, serif); font-size: 2.4rem; margin: 0 0 .3rem; }
71.cirkel-sub { color: var(--ink-muted); margin: 0 0 1.25rem; font-size: 1.02rem; }
72.cirkel-members { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; }
73.cirkel-member { display: inline-flex; align-items: center; gap: .45rem;
74 padding: .28rem .8rem .28rem .3rem; border: 1px solid var(--rule); border-radius: 999px;
75 text-decoration: none; color: var(--ink); background: var(--paper-2);
76 transition: border-color .15s, transform .15s; }
77.cirkel-member:hover { border-color: var(--accent); transform: translateY(-1px); }
78.cirkel-avatar { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
79 background-size: cover; background-position: center; background-color: var(--accent);
80 color: #fff; display: inline-flex; align-items: center; justify-content: center;
81 font-weight: 700; font-size: .82rem; }
82.cirkel-member-name { font-size: .9rem; font-weight: 600; }
83.cirkel-count { display: inline-block; color: var(--ink-muted); font-size: .92rem; font-weight: 600;
84 padding: .35rem 1rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper-2); }
85.cirkel-empty { color: var(--ink-muted); text-align: center; margin: 2rem auto; }
86.cirkel-empty a { color: var(--accent); }
87</style>
Note: See TracBrowser for help on using the repository browser.