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