mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
add nostr button
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
{{ __('Link to participate') }}
|
||||
</x-button>
|
||||
</div>
|
||||
<div>
|
||||
@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>
|
||||
@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>
|
||||
@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>
|
||||
</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>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<div class="flex flex-col space-y-1">
|
||||
<div>
|
||||
@if($row->meetup_events_count > 0)
|
||||
<div>
|
||||
<x-button
|
||||
xs
|
||||
amber
|
||||
@@ -8,10 +8,10 @@
|
||||
<i class="fa fa-thin fa-calendar mr-2"></i>
|
||||
{{ __('Show dates') }} ({{ $row->meetup_events_count }})
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
<div>
|
||||
@endif
|
||||
@if($row->meetup_events_count < 1)
|
||||
<div>
|
||||
<x-button
|
||||
xs
|
||||
outlined
|
||||
@@ -19,8 +19,8 @@
|
||||
<i class="fa fa-thin fa-calendar-circle-exclamation mr-2"></i>
|
||||
{{ __('Show dates') }} ({{ $row->meetup_events_count }})
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
<div>
|
||||
<x-button
|
||||
xs
|
||||
@@ -42,8 +42,8 @@
|
||||
{{ __('Show landing page') }}
|
||||
</x-button>
|
||||
</div>
|
||||
<div>
|
||||
@if($row->telegram_link)
|
||||
<div>
|
||||
<x-button
|
||||
xs
|
||||
black
|
||||
@@ -53,10 +53,10 @@
|
||||
<i class="fa fa-thin fa-external-link mr-2"></i>
|
||||
{{ __('Telegram-Link') }}
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
<div>
|
||||
@endif
|
||||
@if($row->webpage)
|
||||
<div>
|
||||
<x-button
|
||||
xs
|
||||
black
|
||||
@@ -66,10 +66,10 @@
|
||||
<i class="fa fa-thin fa-external-link mr-2"></i>
|
||||
{{ __('Website') }}
|
||||
</x-button>
|
||||
@endif
|
||||
</div>
|
||||
<div>
|
||||
@endif
|
||||
@if($row->twitter_username)
|
||||
<div>
|
||||
<x-button
|
||||
xs
|
||||
black
|
||||
@@ -79,9 +79,24 @@
|
||||
<i class="fa fa-brand fa-twitter mr-2"></i>
|
||||
{{ __('Twitter') }}
|
||||
</x-button>
|
||||
@endif
|
||||
</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))
|
||||
<a x-bind:href="'/{{ $country->code ?? 'de' }}/meetup/meetup/form/{{ $row->id }}?fromUrl='+currentUrl">
|
||||
<x-button
|
||||
@@ -94,4 +109,3 @@
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -36,6 +36,12 @@
|
||||
{{ __('My profile') }}
|
||||
</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>
|
||||
|
||||
Reference in New Issue
Block a user