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