mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
lecturer landing pages added
This commit is contained in:
@@ -6,6 +6,7 @@ use App\Models\Country;
|
||||
use App\Models\CourseEvent;
|
||||
use App\Models\Lecturer;
|
||||
use Livewire\Component;
|
||||
use RalphJSmit\Laravel\SEO\Support\SEOData;
|
||||
|
||||
class LecturerLandingPage extends Component
|
||||
{
|
||||
@@ -37,6 +38,13 @@ class LecturerLandingPage extends Component
|
||||
'location' => $event->course->name,
|
||||
'description' => $event->venue->name,
|
||||
]),
|
||||
])
|
||||
->layout('layouts.guest', [
|
||||
'SEOData' => new SEOData(
|
||||
title: $this->lecturer->name,
|
||||
description: $this->lecturer->intro ?? __('This lecturer has not yet written an introduction.'),
|
||||
image: asset($this->lecturer->getFirstMediaUrl('avatar')),
|
||||
)
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
@@ -635,5 +635,6 @@
|
||||
"This is the introduction text that is shown on the landing page.": "Das ist der Text, der auf der Landing-Page des Dozenten.",
|
||||
"This is the subtitle on the landing page.": "Das ist der Untertitel auf der Landing-Page des Dozenten.",
|
||||
"Subtitle": "Untertitel auf der Landing-Page",
|
||||
"Intro": "Intro auf der Landing-Page"
|
||||
"Intro": "Intro auf der Landing-Page",
|
||||
"This lecturer has not yet written an introduction.": "Dieser Dozent hat noch keine Einführung geschrieben."
|
||||
}
|
||||
|
||||
@@ -627,5 +627,6 @@
|
||||
"This is the introduction text that is shown on the landing page.": "",
|
||||
"This is the subtitle on the landing page.": "",
|
||||
"Subtitle": "",
|
||||
"Intro": ""
|
||||
"Intro": "",
|
||||
"This lecturer has not yet written an introduction.": ""
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
</x-button>
|
||||
@endif
|
||||
<x-button
|
||||
:href="route('school.landingPage.lecturer', ['country' => $country, 'lecturer' => $row->id])"
|
||||
:href="route('school.landingPage.lecturer', ['country' => $country, 'lecturer' => $row->slug])"
|
||||
amber>
|
||||
<i class="fa fa-thin fa-browser mr-2"></i>
|
||||
{{ __('Show landing page') }}
|
||||
|
||||
@@ -31,7 +31,7 @@ Route::middleware([])
|
||||
Route::get('/event', \App\Http\Livewire\School\EventTable::class)
|
||||
->name('table.event');
|
||||
|
||||
Route::get('/{lecturer}', \App\Http\Livewire\School\LecturerLandingPage::class)
|
||||
Route::get('/{lecturer:slug}', \App\Http\Livewire\School\LecturerLandingPage::class)
|
||||
->name('landingPage.lecturer');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user