add nostr button

This commit is contained in:
HolgerHatGarKeineNode
2023-02-27 16:07:13 +01:00
parent 8dd846f480
commit 8e42386b67
3 changed files with 81 additions and 45 deletions

View File

@@ -10,8 +10,8 @@
{{ __('Link to participate') }}
</x-button>
</div>
<div>
@if($row->meetup->telegram_link)
@if($row->meetup->telegram_link)
<div>
<x-button
xs
black
@@ -21,10 +21,10 @@
<i class="fa fa-thin fa-external-link mr-2"></i>
{{ __('Telegram-Link') }}
</x-button>
@endif
</div>
<div>
@if($row->meetup->webpage)
</div>
@endif
@if($row->meetup->webpage)
<div>
<x-button
xs
black
@@ -34,10 +34,10 @@
<i class="fa fa-thin fa-external-link mr-2"></i>
{{ __('Website') }}
</x-button>
@endif
</div>
<div>
@if($row->meetup->twitter_username)
</div>
@endif
@if($row->meetup->twitter_username)
<div>
<x-button
xs
black
@@ -47,6 +47,22 @@
<i class="fa fa-brand fa-twitter mr-2"></i>
{{ __('Twitter') }}
</x-button>
@endif
</div>
</div>
@endif
@if($row->nostr)
<div
x-data="{
textToCopy: '{{ $row->nostr }}',
}"
@click.prevent="window.navigator.clipboard.writeText(textToCopy);window.$wireui.notify({title:'{{ __('PubKey copied!') }}',icon:'success'});"
>
<x-button
xs
black
>
<i class="fa fa-thin fa-clipboard mr-2"></i>
{{ __('Nostr') }}
</x-button>
</div>
@endif
</div>