From 436e0511b76248d5676c47143d18dfca7c54ebbf Mon Sep 17 00:00:00 2001 From: HolgerHatGarKeineNode Date: Mon, 6 Feb 2023 18:53:24 +0100 Subject: [PATCH] add meetup event landing page, seo added --- app/Http/Livewire/Meetup/LandingPageEvent.php | 9 ++++++++- resources/lang/de.json | 3 ++- resources/lang/en.json | 3 ++- resources/lang/es.json | 3 ++- resources/lang/fr.json | 3 ++- resources/lang/hr.json | 3 ++- resources/lang/it.json | 3 ++- resources/lang/mk.json | 3 ++- resources/lang/pl.json | 3 ++- resources/lang/pt.json | 3 ++- resources/lang/tr.json | 3 ++- 11 files changed, 28 insertions(+), 11 deletions(-) diff --git a/app/Http/Livewire/Meetup/LandingPageEvent.php b/app/Http/Livewire/Meetup/LandingPageEvent.php index b526e5a5..1f90cd1e 100644 --- a/app/Http/Livewire/Meetup/LandingPageEvent.php +++ b/app/Http/Livewire/Meetup/LandingPageEvent.php @@ -7,6 +7,7 @@ use App\Models\Meetup; use App\Models\MeetupEvent; use App\Rules\UniqueAttendeeName; use Livewire\Component; +use RalphJSmit\Laravel\SEO\Support\SEOData; class LandingPageEvent extends Component { @@ -147,6 +148,12 @@ class LandingPageEvent extends Component public function render() { - return view('livewire.meetup.landing-page-event'); + return view('livewire.meetup.landing-page-event')->layout('layouts.guest', [ + 'SEOData' => new SEOData( + title: $this->meetupEvent->start->asDateTime().' - '.$this->meetup->name, + description: __('Here you can confirm your participation and find more information about the Meetup.').' - '.$this->meetupEvent->description, + image: $this->meetup->getFirstMediaUrl('logo'), + ) + ]); } } diff --git a/resources/lang/de.json b/resources/lang/de.json index 9b7beef0..05304cec 100644 --- a/resources/lang/de.json +++ b/resources/lang/de.json @@ -707,5 +707,6 @@ "Your unique name so that we can count the number of participants correctly (does not necessarily have to be your real name)": "Dein eindeutiger Name, damit wir die Anzahl der Teilnehmer korrekt zählen können (muss nicht unbedingt dein echter Name sein)", "I will show up": "Ich sage zu", "Unfortunately I can\\'t come": "Leider kann ich nicht kommen", - "Might attend": "Vielleicht komme ich" + "Might attend": "Vielleicht komme ich", + "Here you can confirm your participation and find more information about the Meetup.": "Hier kannst du deine Teilnahme bestätigen und weitere Informationen zum Meetup finden." } diff --git a/resources/lang/en.json b/resources/lang/en.json index 77fe522f..db7b5267 100644 --- a/resources/lang/en.json +++ b/resources/lang/en.json @@ -701,5 +701,6 @@ "Your unique name so that we can count the number of participants correctly (does not necessarily have to be your real name)": "", "I will show up": "", "Unfortunately I can\\'t come": "", - "Might attend": "" + "Might attend": "", + "Here you can confirm your participation and find more information about the Meetup.": "" } \ No newline at end of file diff --git a/resources/lang/es.json b/resources/lang/es.json index cb0c04ee..6f45e823 100644 --- a/resources/lang/es.json +++ b/resources/lang/es.json @@ -701,5 +701,6 @@ "Your unique name so that we can count the number of participants correctly (does not necessarily have to be your real name)": "", "I will show up": "", "Unfortunately I can\\'t come": "", - "Might attend": "" + "Might attend": "", + "Here you can confirm your participation and find more information about the Meetup.": "" } \ No newline at end of file diff --git a/resources/lang/fr.json b/resources/lang/fr.json index 001c7b2f..bcc75991 100644 --- a/resources/lang/fr.json +++ b/resources/lang/fr.json @@ -702,5 +702,6 @@ "Your unique name so that we can count the number of participants correctly (does not necessarily have to be your real name)": "", "I will show up": "", "Unfortunately I can\\'t come": "", - "Might attend": "" + "Might attend": "", + "Here you can confirm your participation and find more information about the Meetup.": "" } \ No newline at end of file diff --git a/resources/lang/hr.json b/resources/lang/hr.json index c81810a3..cd8ad621 100644 --- a/resources/lang/hr.json +++ b/resources/lang/hr.json @@ -702,5 +702,6 @@ "Your unique name so that we can count the number of participants correctly (does not necessarily have to be your real name)": "", "I will show up": "", "Unfortunately I can\\'t come": "", - "Might attend": "" + "Might attend": "", + "Here you can confirm your participation and find more information about the Meetup.": "" } \ No newline at end of file diff --git a/resources/lang/it.json b/resources/lang/it.json index 7e571cee..4de5a311 100644 --- a/resources/lang/it.json +++ b/resources/lang/it.json @@ -702,5 +702,6 @@ "Your unique name so that we can count the number of participants correctly (does not necessarily have to be your real name)": "", "I will show up": "", "Unfortunately I can\\'t come": "", - "Might attend": "" + "Might attend": "", + "Here you can confirm your participation and find more information about the Meetup.": "" } \ No newline at end of file diff --git a/resources/lang/mk.json b/resources/lang/mk.json index 85eb33f5..5564aae0 100644 --- a/resources/lang/mk.json +++ b/resources/lang/mk.json @@ -702,5 +702,6 @@ "Your unique name so that we can count the number of participants correctly (does not necessarily have to be your real name)": "", "I will show up": "", "Unfortunately I can\\'t come": "", - "Might attend": "" + "Might attend": "", + "Here you can confirm your participation and find more information about the Meetup.": "" } \ No newline at end of file diff --git a/resources/lang/pl.json b/resources/lang/pl.json index b3415cbd..a25126b0 100644 --- a/resources/lang/pl.json +++ b/resources/lang/pl.json @@ -702,5 +702,6 @@ "Your unique name so that we can count the number of participants correctly (does not necessarily have to be your real name)": "", "I will show up": "", "Unfortunately I can\\'t come": "", - "Might attend": "" + "Might attend": "", + "Here you can confirm your participation and find more information about the Meetup.": "" } \ No newline at end of file diff --git a/resources/lang/pt.json b/resources/lang/pt.json index a9fd89c4..d6159926 100644 --- a/resources/lang/pt.json +++ b/resources/lang/pt.json @@ -702,5 +702,6 @@ "Your unique name so that we can count the number of participants correctly (does not necessarily have to be your real name)": "", "I will show up": "", "Unfortunately I can\\'t come": "", - "Might attend": "" + "Might attend": "", + "Here you can confirm your participation and find more information about the Meetup.": "" } \ No newline at end of file diff --git a/resources/lang/tr.json b/resources/lang/tr.json index 67d11244..4d176733 100644 --- a/resources/lang/tr.json +++ b/resources/lang/tr.json @@ -676,5 +676,6 @@ "Your unique name so that we can count the number of participants correctly (does not necessarily have to be your real name)": "", "I will show up": "", "Unfortunately I can\\'t come": "", - "Might attend": "" + "Might attend": "", + "Here you can confirm your participation and find more information about the Meetup.": "" } \ No newline at end of file