Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
feat: add link to the index page
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdan-shulha committed Aug 22, 2024
1 parent 4a33d8b commit c20e1fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions resources/views/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ function gtag(){dataLayer.push(arguments);}
</head>
<body class="flex justify-center bg-gradient-to-r from-lightblue-200 to-lightgray-300">
<div class="flex flex-col max-w-[800px] justify-center bg-gradient-to-r from-lightblue-200 to-lightgray-300">
<div class="text-center m-4">
<a href="{{ route('stories.index') }}" class="text-2xl font-bold text-gray-700 hover:text-gray-900">
Vendor Stories
</a>
</div>


<div class="min-w-[600px] p-4 md:p-4 lg:p-4 bg-white bg-opacity-50 rounded-lg shadow-lg">
<div>
<h1 class="text-3xl font-bold mb-4 text-gray-600">{{ Str::ucfirst($mood) }} {{ $vendor }} Stories</h1>
Expand Down
2 changes: 1 addition & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
use App\Http\Controllers\StoryController;
use Illuminate\Support\Facades\Route;

Route::get('/', [StoryController::class, 'index']);
Route::get('/', [StoryController::class, 'index'])->name('stories.index');
Route::get('/stories/{story}', [StoryController::class, 'show'])->name('stories.show');

0 comments on commit c20e1fa

Please sign in to comment.