Skip to content

Commit 8fb0bec

Browse files
committed
Update community wording to 'Content'
1 parent d68f0f3 commit 8fb0bec

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

resources/views/components/articles/hero.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class="relative flex max-w-screen-lg items-start justify-center gap-10 md:gap-20
8383
class="text-5xl font-black"
8484
x-ref="plugins"
8585
>
86-
Community
86+
Content
8787
</div>
8888

8989
{{-- Star --}}

resources/views/components/footer.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class="p-2 transition duration-300 will-change-transform hover:translate-x-1 hov
114114
href="{{ route('articles') }}"
115115
class="p-2 transition duration-300 will-change-transform hover:translate-x-1 hover:text-black motion-reduce:transition-none motion-reduce:hover:transform-none"
116116
>
117-
Community
117+
Content
118118
</a>
119119
<a
120120
href="{{ route('consulting') }}"

resources/views/components/nav.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class="h-2 w-2 bg-butter transition duration-300 group-hover/nav-link:rotate-90
128128
'font-bold' => request()->routeIs('articles*'),
129129
])
130130
>
131-
<div class="gsap-fadein">Community</div>
131+
<div class="gsap-fadein">Content</div>
132132

133133
@if (request()->routeIs('articles*'))
134134
<div

routes/web.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

33
use App\Http\Controllers;
4+
use App\Models\Article;
45
use App\Models\Plugin;
56
use App\Models\Star;
67
use Illuminate\Http\RedirectResponse;
@@ -125,6 +126,20 @@
125126
});
126127

127128
Route::prefix('/community')->group(function () {
129+
Route::get('/', function () {
130+
return redirect(status: 301)->route('articles');
131+
});
132+
133+
Route::name('articles.')->group(function () {
134+
Route::prefix('/{article:slug}')->group(function () {
135+
Route::get('/', function (Article $article) {
136+
return redirect(status: 301)->route('articles.view', ['article' => $article->slug]);
137+
});
138+
});
139+
});
140+
});
141+
142+
Route::prefix('/content')->group(function () {
128143
Route::get('/', Controllers\Articles\ListArticlesController::class)->name('articles');
129144

130145
Route::name('articles.')->group(function () {

0 commit comments

Comments
 (0)