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') }} {{ __('Link to participate') }}
</x-button> </x-button>
</div> </div>
<div>
@if($row->meetup->telegram_link) @if($row->meetup->telegram_link)
<div>
<x-button <x-button
xs xs
black black
@@ -21,10 +21,10 @@
<i class="fa fa-thin fa-external-link mr-2"></i> <i class="fa fa-thin fa-external-link mr-2"></i>
{{ __('Telegram-Link') }} {{ __('Telegram-Link') }}
</x-button> </x-button>
@endif
</div> </div>
<div> @endif
@if($row->meetup->webpage) @if($row->meetup->webpage)
<div>
<x-button <x-button
xs xs
black black
@@ -34,10 +34,10 @@
<i class="fa fa-thin fa-external-link mr-2"></i> <i class="fa fa-thin fa-external-link mr-2"></i>
{{ __('Website') }} {{ __('Website') }}
</x-button> </x-button>
@endif
</div> </div>
<div> @endif
@if($row->meetup->twitter_username) @if($row->meetup->twitter_username)
<div>
<x-button <x-button
xs xs
black black
@@ -47,6 +47,22 @@
<i class="fa fa-brand fa-twitter mr-2"></i> <i class="fa fa-brand fa-twitter mr-2"></i>
{{ __('Twitter') }} {{ __('Twitter') }}
</x-button> </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> </div>

View File

@@ -1,6 +1,6 @@
<div class="flex flex-col space-y-1"> <div class="flex flex-col space-y-1">
<div>
@if($row->meetup_events_count > 0) @if($row->meetup_events_count > 0)
<div>
<x-button <x-button
xs xs
amber amber
@@ -8,10 +8,10 @@
<i class="fa fa-thin fa-calendar mr-2"></i> <i class="fa fa-thin fa-calendar mr-2"></i>
{{ __('Show dates') }} ({{ $row->meetup_events_count }}) {{ __('Show dates') }} ({{ $row->meetup_events_count }})
</x-button> </x-button>
@endif
</div> </div>
<div> @endif
@if($row->meetup_events_count < 1) @if($row->meetup_events_count < 1)
<div>
<x-button <x-button
xs xs
outlined outlined
@@ -19,8 +19,8 @@
<i class="fa fa-thin fa-calendar-circle-exclamation mr-2"></i> <i class="fa fa-thin fa-calendar-circle-exclamation mr-2"></i>
{{ __('Show dates') }} ({{ $row->meetup_events_count }}) {{ __('Show dates') }} ({{ $row->meetup_events_count }})
</x-button> </x-button>
@endif
</div> </div>
@endif
<div> <div>
<x-button <x-button
xs xs
@@ -42,8 +42,8 @@
{{ __('Show landing page') }} {{ __('Show landing page') }}
</x-button> </x-button>
</div> </div>
<div>
@if($row->telegram_link) @if($row->telegram_link)
<div>
<x-button <x-button
xs xs
black black
@@ -53,10 +53,10 @@
<i class="fa fa-thin fa-external-link mr-2"></i> <i class="fa fa-thin fa-external-link mr-2"></i>
{{ __('Telegram-Link') }} {{ __('Telegram-Link') }}
</x-button> </x-button>
@endif
</div> </div>
<div> @endif
@if($row->webpage) @if($row->webpage)
<div>
<x-button <x-button
xs xs
black black
@@ -66,10 +66,10 @@
<i class="fa fa-thin fa-external-link mr-2"></i> <i class="fa fa-thin fa-external-link mr-2"></i>
{{ __('Website') }} {{ __('Website') }}
</x-button> </x-button>
@endif
</div> </div>
<div> @endif
@if($row->twitter_username) @if($row->twitter_username)
<div>
<x-button <x-button
xs xs
black black
@@ -79,9 +79,24 @@
<i class="fa fa-brand fa-twitter mr-2"></i> <i class="fa fa-brand fa-twitter mr-2"></i>
{{ __('Twitter') }} {{ __('Twitter') }}
</x-button> </x-button>
@endif
</div> </div>
<div x-data="{currentUrl: window.location.href}"> @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
@if(auth()->check() && auth()->user()->meetups->contains($row)) @if(auth()->check() && auth()->user()->meetups->contains($row))
<a x-bind:href="'/{{ $country->code ?? 'de' }}/meetup/meetup/form/{{ $row->id }}?fromUrl='+currentUrl"> <a x-bind:href="'/{{ $country->code ?? 'de' }}/meetup/meetup/form/{{ $row->id }}?fromUrl='+currentUrl">
<x-button <x-button
@@ -93,5 +108,4 @@
</x-button> </x-button>
</a> </a>
@endif @endif
</div>
</div> </div>

View File

@@ -36,6 +36,12 @@
{{ __('My profile') }} {{ __('My profile') }}
</a> </a>
<a href="{{ route('profile.meetups') }}"
class="flex gap-x-4 py-2 text-sm font-semibold leading-6 text-gray-900">
<i class="fa-thin fa-user-group flex-none text-gray-400"></i>
{{ __('My meetups') }}
</a>
</div> </div>
</div> </div>
</div> </div>