references #18 feat: add Nostr link button to meetup pages #32

Added a button to the landing-page and landing-page-event views in the
meetup section. This button, when the nostr attribute contains 'npub1',
links out to the corresponding Nostr page using the nostr attribute value.
This commit is contained in:
HolgerHatGarKeineNode
2024-01-07 11:16:26 +01:00
parent 32e165ac42
commit 79b4e252fe
2 changed files with 20 additions and 0 deletions

View File

@@ -128,6 +128,17 @@
</x-button>
@endif
</div>
<div>
@if($meetup->nostr && str($meetup->nostr)->contains('npub1'))
<x-button
target="_blank"
:href="'https://njump.me/'.$meetup->nostr"
primary lg class="mt-4 whitespace-nowrap">
<i class="fa fa-thin fa-external-link mr-2"></i>
{{ __('Nostr') }}
</x-button>
@endif
</div>
<div>
@if($meetup->matrix_group)
<x-button