feat: add public/private event types

This commit is contained in:
Levente Orban
2025-08-27 08:47:05 +02:00
parent a91f863295
commit 4c387a10f1
9 changed files with 313 additions and 12 deletions

View File

@@ -177,12 +177,20 @@
</div>
</div>
<!-- Event Type & Capacity -->
<!-- Event Type, Visibility & Capacity -->
<div class="flex items-center justify-between rounded-sm p-3">
<div class="flex items-center space-x-2">
<span class="rounded-full border px-2 py-1 text-xs font-semibold text-violet-400">
{event.type === 'limited' ? 'Limited' : 'Unlimited'}
</span>
<span
class="rounded-full border px-2 py-1 text-xs font-semibold {event.visibility ===
'public'
? 'border-green-300 text-green-400'
: 'border-orange-300 text-orange-400'}"
>
{event.visibility === 'public' ? '🌍 Public' : '🔒 Private'}
</span>
</div>
{#if event.type === 'limited' && event.attendee_limit}