add supporters section to homepage

Shows paying squadrons as pill links (SHORT // LONG → /squadrons/<short>) above the footer, with a 15-min server-side cache backed by entitlements DB + SQUADRONS.json.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
deploy
2026-05-27 12:38:58 +00:00
parent f042fd4d8a
commit 95f38a9b0d
3 changed files with 65 additions and 2 deletions
+17
View File
@@ -366,6 +366,23 @@
</div>
</section>
<!-- Supporters -->
<% if (typeof supporters !== 'undefined' && supporters.length > 0) { %>
<section class="py-10 border-t border-[rgba(144,238,144,0.06)]">
<div class="max-w-[1400px] mx-auto px-6 lg:px-8">
<p class="text-center text-xs uppercase tracking-widest text-muted opacity-50 mb-5"><%= t('home.supportedBy') %></p>
<div class="flex flex-wrap justify-center gap-2">
<% supporters.forEach(function(sq) { %>
<a href="/squadrons/<%= encodeURIComponent(sq.short) %>"
class="px-3 py-1 rounded-full text-[11px] font-medium border border-[rgba(144,238,144,0.15)] text-muted hover:text-accent hover:border-[rgba(144,238,144,0.35)] transition-colors">
<span class="opacity-60"><%= sq.short %></span> // <%= sq.long %>
</a>
<% }); %>
</div>
</div>
</section>
<% } %>
<!-- Footer -->
<%- include('partials/footer') %>