Add service disclaimer component and Nostr validation links

-  Introduced reusable `<x-service-disclaimer>` component for better clarity and consistency on service pages.
- 🔗 Added `njump` links for Nostr profile validation in service listings and landing pages.
- 🧪 Included feature tests to verify disclaimer visibility and correct `njump` link rendering or omission for anonymous services.
This commit is contained in:
HolgerHatGarKeineNode
2026-06-25 14:12:21 +02:00
parent dc1d679e4b
commit 4c9dec42f2
4 changed files with 81 additions and 0 deletions
@@ -52,6 +52,8 @@ class extends Component {
@endsection
<div class="container mx-auto px-4 py-8 max-w-5xl">
<x-service-disclaimer/>
<!-- Header -->
<div class="mb-8">
<div class="flex items-center justify-between mb-4">
@@ -196,6 +198,14 @@ class extends Component {
<flux:avatar size="xs" src="{{ $service->createdBy->profile_photo_url }}"/>
<span class="font-medium">{{ $service->createdBy->name }}</span>
</div>
@if($service->createdBy->nostr)
<flux:link :href="'https://njump.me/'.$service->createdBy->nostr" external
variant="subtle"
class="mt-2 inline-flex items-center gap-1 text-purple-600 dark:text-purple-400">
<flux:icon.magnifying-glass variant="mini"/>
<span>{{ __('Ersteller auf Nostr validieren (njump)') }}</span>
</flux:link>
@endif
@endif
</div>