autors overview

This commit is contained in:
HolgerHatGarKeineNode
2023-03-15 16:07:57 +01:00
parent 3da39e240f
commit 5f677d3a2c
17 changed files with 171 additions and 12 deletions

View File

@@ -849,5 +849,10 @@
"Videos": "Videos",
"Bücher": "Bücher",
"Embed code for the map copied!": "Embed-Code für die Karte kopiert!",
"Copy embed code for the map": "Kopiere Embed-Code für die Karte"
"Copy embed code for the map": "Kopiere Embed-Code für die Karte",
"Authors": "News-Autoren",
"Reset filtering": "Filter zurücksetzen",
"News articles writer": "News-Artikel-Autoren",
"Click on any of the authors to see their articles.": "Klicke auf einen der Autoren, um die Artikel zu lesen.",
"articles": "Artikel"
}

View File

@@ -847,5 +847,10 @@
"Videos": "",
"Bücher": "",
"Embed code for the map copied!": "",
"Copy embed code for the map": ""
"Copy embed code for the map": "",
"Authors": "",
"Reset filtering": "",
"News articles writer": "",
"Click on any of the authors to see their articles.": "",
"articles": ""
}

View File

@@ -847,5 +847,10 @@
"Videos": "",
"Bücher": "",
"Embed code for the map copied!": "",
"Copy embed code for the map": ""
"Copy embed code for the map": "",
"Authors": "",
"Reset filtering": "",
"News articles writer": "",
"Click on any of the authors to see their articles.": "",
"articles": ""
}

View File

@@ -848,5 +848,10 @@
"Videos": "",
"Bücher": "",
"Embed code for the map copied!": "",
"Copy embed code for the map": ""
"Copy embed code for the map": "",
"Authors": "",
"Reset filtering": "",
"News articles writer": "",
"Click on any of the authors to see their articles.": "",
"articles": ""
}

View File

@@ -848,5 +848,10 @@
"Videos": "",
"Bücher": "",
"Embed code for the map copied!": "",
"Copy embed code for the map": ""
"Copy embed code for the map": "",
"Authors": "",
"Reset filtering": "",
"News articles writer": "",
"Click on any of the authors to see their articles.": "",
"articles": ""
}

View File

@@ -848,5 +848,10 @@
"Videos": "",
"Bücher": "",
"Embed code for the map copied!": "",
"Copy embed code for the map": ""
"Copy embed code for the map": "",
"Authors": "",
"Reset filtering": "",
"News articles writer": "",
"Click on any of the authors to see their articles.": "",
"articles": ""
}

View File

@@ -848,5 +848,10 @@
"Videos": "",
"Bücher": "",
"Embed code for the map copied!": "",
"Copy embed code for the map": ""
"Copy embed code for the map": "",
"Authors": "",
"Reset filtering": "",
"News articles writer": "",
"Click on any of the authors to see their articles.": "",
"articles": ""
}

View File

@@ -848,5 +848,10 @@
"Videos": "",
"Bücher": "",
"Embed code for the map copied!": "",
"Copy embed code for the map": ""
"Copy embed code for the map": "",
"Authors": "",
"Reset filtering": "",
"News articles writer": "",
"Click on any of the authors to see their articles.": "",
"articles": ""
}

View File

@@ -848,5 +848,10 @@
"Videos": "",
"Bücher": "",
"Embed code for the map copied!": "",
"Copy embed code for the map": ""
"Copy embed code for the map": "",
"Authors": "",
"Reset filtering": "",
"News articles writer": "",
"Click on any of the authors to see their articles.": "",
"articles": ""
}

View File

@@ -810,5 +810,10 @@
"Videos": "",
"Bücher": "",
"Embed code for the map copied!": "",
"Copy embed code for the map": ""
"Copy embed code for the map": "",
"Authors": "",
"Reset filtering": "",
"News articles writer": "",
"Click on any of the authors to see their articles.": "",
"articles": ""
}

View File

@@ -822,5 +822,10 @@
"Videos": "",
"Bücher": "",
"Embed code for the map copied!": "",
"Copy embed code for the map": ""
"Copy embed code for the map": "",
"Authors": "",
"Reset filtering": "",
"News articles writer": "",
"Click on any of the authors to see their articles.": "",
"articles": ""
}

View File

@@ -33,6 +33,12 @@
{{ __('News Article') }}
</a>
<a href="{{ route('authors.overview') }}"
class="flex gap-x-4 py-2 text-sm font-semibold leading-6 text-gray-900">
<i class="fa-thin fa-pen-nib flex-none text-gray-400 w-6 h-5 mr-2 -ml-1"></i>
{{ __('Authors') }}
</a>
</div>
</div>
</div>

View File

@@ -12,7 +12,12 @@
<div>
<img class="h-32 object-cover" src="{{ asset('img/einundzwanzig-news-colored.png') }}" alt="">
</div>
<div class="space-y-2 sm:space-y-0">
<div class="flex flex-col space-y-2">
@if(isset($filters['author']))
<x-button wire:click="resetFiltering"
xs>{{ __('Reset filtering') }}
</x-button>
@endif
@auth
<x-button
class="whitespace-nowrap"

View File

@@ -0,0 +1,50 @@
<div class="bg-21gray flex flex-col h-screen justify-between">
{{-- HEADER --}}
<livewire:frontend.header :country="null"/>
<div class="bg-21gray py-24 sm:py-32">
<div class="mx-auto grid max-w-7xl gap-y-20 gap-x-8 px-6 lg:px-8 xl:grid-cols-3">
<div class="max-w-2xl">
<h2 class="text-3xl font-bold tracking-tight text-gray-200 sm:text-4xl">{{ __('News articles writer') }}</h2>
<p class="mt-6 text-lg leading-8 text-gray-300">
{{ __('Click on any of the authors to see their articles.') }}
</p>
</div>
<ul role="list" class="grid gap-x-8 gap-y-12 sm:grid-cols-2 sm:gap-y-16 xl:col-span-2">
@foreach($authors as $author)
<a href="{{ route('article.overview', ['filters' => ['author' => $author->slug]]) }}"
wire:key="author_{{ $author->id }}">
<li>
<div class="flex items-center gap-x-6">
<img class="h-16 w-16 rounded-full"
src="{{ $author->getFirstMediaUrl('avatar') }}"
alt="{{ $author->name }}">
<div>
<h3 class="text-base font-semibold leading-7 tracking-tight text-gray-200">
{{ $author->name }}
</h3>
<p class="text-sm font-semibold leading-6 text-amber-600">
{{ $author->library_items_count }} {{ __('articles') }}
</p>
</div>
</div>
</li>
</a>
@endforeach
</ul>
</div>
</div>
<div wire:ignore class="z-50">
<script
src="{{ asset('dist/einundzwanzig.chat.js') }}"
data-website-owner-pubkey="daf83d92768b5d0005373f83e30d4203c0b747c170449e02fea611a0da125ee6"
data-chat-type="GLOBAL"
data-chat-tags="#einundzwanzig_portal_news_authors"
data-relays="wss://nostr.einundzwanzig.space,wss://nostr.easify.de,wss://nostr.mom,wss://relay.damus.io,wss://relay.snort.social"
></script>
<link rel="stylesheet" href="{{ asset('dist/einundzwanzig.chat.css') }}">
</div>
</div>