Skip to content

Commit

Permalink
Got the features/* routes declaration out of the wave's routes file
Browse files Browse the repository at this point in the history
  • Loading branch information
l-alexandrov committed Apr 11, 2024
1 parent 9a029e4 commit 2b8811f
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 17 deletions.
6 changes: 3 additions & 3 deletions resources/views/themes/bimbala/features.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class="container mx-auto space-y-10 px-4 py-8 lg:space-y-16 lg:px-8 lg:py-24 xl:
<nav class="grid grid-cols-1 gap-4 lg:grid-cols-2 lg:gap-8">
<!-- Feature -->
<a
href="{{route('wave.features.roadmap')}}"
href="{{route('features.roadmap')}}"
class="group aspect-h-10 aspect-w-16 relative overflow-hidden rounded-2xl bg-black/25 transition hover:ring-4 hover:ring-indigo-500/50 active:opacity-75 active:ring-indigo-500/25"
>
<img
Expand All @@ -48,7 +48,7 @@ class="absolute inset-0 flex flex-col justify-between bg-gradient-to-b from-tran

<!-- Feature -->
<a
href="{{route('wave.features.upvote')}}"
href="{{route('features.upvote')}}"
class="group aspect-h-10 aspect-w-16 relative overflow-hidden rounded-2xl bg-black/25 transition hover:ring-4 hover:ring-indigo-500/50 active:opacity-75"
>
<img
Expand All @@ -72,7 +72,7 @@ class="absolute inset-0 flex flex-col justify-between bg-gradient-to-b from-tran

<!-- Feature -->
<a
href="{{route('wave.features.faq')}}"
href="{{route('features.faq')}}"
class="group aspect-h-10 aspect-w-16 relative overflow-hidden rounded-2xl bg-black/25 transition hover:ring-4 hover:ring-indigo-500/50 active:opacity-75 active:ring-indigo-500/25 lg:col-span-2"
>
<img
Expand Down
2 changes: 1 addition & 1 deletion resources/views/themes/bimbala/features/roadmap.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class="object-cover"
<p class="text-xl">The advance on your user's feedback should not be a black box. Keep your users informed about when their expectations will come true.</p>
<ul class="list-disc list-inside leading-loose">
<li>Let your users know when will their feature arrive</li>{{-- TODO: Hint for the changelog and add a link to its page when it's built --}}
<li>Easy moving of <a href="{{ route('wave.features.upvote') }}" class="text-gray-500 hover:text-gray-400 font-bold">upvote items</a> to the product roadmap</li>
<li>Easy moving of <a href="{{ route('features.upvote') }}" class="text-gray-500 hover:text-gray-400 font-bold">upvote items</a> to the product roadmap</li>
<li>Show what your priorities are</li>
</ul>
</div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/themes/bimbala/features/upvote.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class="object-cover"
<p class="text-xl">A board made for you and improvement suggestions for your product. The best ideas always go first.</p>
<ul class="list-disc list-inside leading-loose">
<li>Comments feature for each item</li>
<li>Convert the best requests to workable <a href="{{ route('wave.features.roadmap') }}" class="text-gray-500 hover:text-gray-400 font-bold">product roadmap tickets</a></li>
<li>Convert the best requests to workable <a href="{{ route('features.roadmap') }}" class="text-gray-500 hover:text-gray-400 font-bold">product roadmap tickets</a></li>
<li>Make your own categories</li>
</ul>
</div>
Expand Down
6 changes: 3 additions & 3 deletions resources/views/themes/bimbala/menus/guest.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div :class="{ 'hidden' : !mobile, 'flex': mobile }" class="left-0 z-10 items-center justify-center w-full font-semibold select-none md:flex lg:absolute">
<div class="flex flex-col justify-center w-full mt-4 space-y-2 md:mt-0 md:flex-row md:space-x-6 lg:space-x-10 xl:space-x-16 md:space-y-0">
<a href="{{ route('wave.home') }}" class="py-3 text-gray-300 hover:text-gray-100 hover:underline">Home</a>
<a href="{{ route('wave.features') }}" class="py-3 text-gray-300 hover:text-gray-100 hover:underline">Features</a>
<a href="{{ route('features.index') }}" class="py-3 text-gray-300 hover:text-gray-100 hover:underline">Features</a>
<a href="{{ route('wave.pricing') }}" class="py-3 text-gray-300 hover:text-gray-100 hover:underline">Pricing</a>
{{-- Temporary until the mega menu is active --}}
<a href="{{ route('contact') }}" class="py-3 text-gray-300 hover:text-gray-100 hover:underline">Contact us</a>
Expand Down Expand Up @@ -56,7 +56,7 @@
</a>
<a href="#_" class="block px-4 py-3 text-sm text-gray-200 capitalize hover:bg-gray-900 hover:text-gray-100 rounded">
Press Release
</a>
</a>
<a href="{{ route('contact') }}" class="block px-4 py-3 text-sm text-gray-200 capitalize hover:bg-gray-900 hover:text-gray-100 rounded">
Contact Us
</a>
Expand All @@ -71,6 +71,6 @@

<div :class="{ 'flex' : mobile, 'hidden md:flex' : !mobile }" class="relative z-20 flex-col justify-center pr-5 mt-4 space-y-8 md:pr-3 lg:pr-0 md:flex-row md:space-y-0 md:items-center md:space-x-6 md:mt-0">
<a href="{{ route('login') }}" class="flex-shrink-0 font-semibold text-gray-200 hover:underline" >Sign in</a>
<a href="{{ route('register') }}" class="flex-shrink-0 w-auto text-base font-semibold leading-5 text-left text-blue-50 capitalize bg-transparent md:text-sm md:py-3 md:px-8 md:font-medium md:text-center md:text-white md:bg-purple-900 md:mx-0 rounded">Sign up</a>
<a href="{{ route('register') }}" class="flex-shrink-0 w-auto text-base font-semibold leading-5 text-left text-blue-50 capitalize bg-transparent md:text-sm md:py-3 md:px-8 md:font-medium md:text-center md:text-white md:bg-purple-900 md:mx-0 rounded">Sign up</a>
</div>

2 changes: 1 addition & 1 deletion resources/views/themes/bimbala/partials/footer.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<a href="{{ route('apps') }}" class="leading-tight hover:text-gray-400">Apps</a>
</li>
<li class="box-border py-2 md:mb-1">
<a href="{{ route('wave.features') }}" class="leading-tight hover:text-gray-400">Features</a>
<a href="{{ route('features.index') }}" class="leading-tight hover:text-gray-400">Features</a>
</li>
<li class="box-border py-2 md:mb-1">
<a href="{{ route('use-case') }}" class="leading-tight hover:text-gray-400">Use Cases</a>
Expand Down
10 changes: 10 additions & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
|
*/
use App\Http\Controllers\ContactController;
use App\Http\Controllers\FeaturesController;
use App\Http\Controllers\ToolsController;

// Authentication routes
Expand Down Expand Up @@ -53,6 +54,15 @@
});
Route::redirect('/discord','https://discord.gg/tADx7aJusB');


/***** Features pages *****/
Route::prefix('features')->name('features.')->group(function (){
Route::get('/', [FeaturesController::class, 'index'])->name('index');
Route::get('upvote', [FeaturesController::class, 'upvote'])->name('upvote');
Route::get('faq', [FeaturesController::class, 'faq'])->name('faq');
Route::get('roadmap', [FeaturesController::class, 'roadmap'])->name('roadmap');
});

Route::get('/contact', [ContactController::class, 'serveThePage'])->name('contact');
Route::post('/contact', [ContactController::class, 'sendEmail'])->name('contact-send');

Expand Down
8 changes: 0 additions & 8 deletions wave/routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,5 @@
Route::view('admin/do', 'wave::do');
});

/***** Features pages *****/
Route::prefix('features')->group(function (){
Route::get('/', [FeaturesController::class, 'index'])->name('wave.features');
Route::get('upvote', [FeaturesController::class, 'upvote'])->name('wave.features.upvote');
Route::get('faq', [FeaturesController::class, 'faq'])->name('wave.features.faq');
Route::get('roadmap', [FeaturesController::class, 'roadmap'])->name('wave.features.roadmap');
});

/***** Pages *****/
Route::get('{page}', '\Wave\Http\Controllers\PageController@page');

0 comments on commit 2b8811f

Please sign in to comment.