diff options
| author | Nolawz <Nolawz333@protonmail.com> | 2026-07-05 21:20:36 +0530 |
|---|---|---|
| committer | Nolawz <Nolawz333@protonmail.com> | 2026-07-05 21:20:36 +0530 |
| commit | 0104d0690a580b55d6248e7af59a4ad5362022af (patch) | |
| tree | 173faffdc14a9299e896b451639170e10ba90bb1 /src/components | |
| parent | c7cbd19fe2d6e3bb9b788ef85ff97cfb2dc56cf2 (diff) | |
chore(events): Add registration links for pravcamp and related events
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/EventDetails.astro | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/components/EventDetails.astro b/src/components/EventDetails.astro index 831c26e..28de977 100644 --- a/src/components/EventDetails.astro +++ b/src/components/EventDetails.astro @@ -29,7 +29,6 @@ const builtIns: Detail[] = [ time && { icon: 'lucide:clock', label: 'Time', value: time }, venue && { icon: 'lucide:map-pin', label: 'Venue', value: venue }, requirements && { icon: 'lucide:backpack', label: 'Requirements', value: requirements }, - registration && { icon: 'lucide:clipboard-check', label: 'Registration', value: registration, href: registration }, organiser && { icon: 'lucide:users', label: 'Organiser', value: organiser }, website && { icon: 'lucide:external-link', label: 'Website', value: website, href: website }, ].filter(Boolean) as Detail[] @@ -91,5 +90,24 @@ const allDetails = [...builtIns, ...details] } </dl> + { + registration && ( + <a + href={registration} + target="_blank" + rel="nofollow noreferrer noopener" + class={cn( + 'mt-4 flex items-center justify-center gap-2 rounded-lg px-4 py-2.5 text-sm font-medium transition-all', + 'bg-primary text-primary-foreground hover:bg-primary/90', + 'focus-visible:ring-ring/50 focus-visible:ring-[3px]', + variant === 'compact' && 'text-xs px-3 py-2', + )} + > + <Icon name="lucide:ticket" class="size-4" /> + Register Now + </a> + ) + } + <slot /> </div> |
