Merge pull request 'Added dummy news route for link compatibility with the news component and check if news data contains news' (#2) from helges-branch into main

Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
2025-05-06 22:37:56 +02:00
3 changed files with 582 additions and 87 deletions
+577 -86
View File
File diff suppressed because it is too large Load Diff
@@ -79,7 +79,7 @@
</div>
<div class="mx-auto max-w-[1280px]">
<div class="grid gap-4 grid-cols-1 md:grid-cols-2 lg:grid-cols-3 mt-12">
<div v-if="blockData.articles" class="grid gap-4 grid-cols-1 md:grid-cols-2 lg:grid-cols-3 mt-12">
<!-- Begin news article loop -->
<div
v-for="(article, index) in blockData.articles.data"
+4
View File
@@ -26,6 +26,10 @@ Route::get('/salesterms', function () {
return Inertia::render('Welcome');
})->name('salesTerms');
Route::get('/news', function () {
return Inertia::render('Welcome');
})->name('news');
Route::get('/p/{slug}', [PageRender::class, 'view'])->name('page.view');
Route::middleware(['auth', 'verified'])->group(function() {