mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
Setting up + routing the page
This commit is contained in:
13
app/Http/Livewire/BooksForPlebs/BookRentalGuide.php
Normal file
13
app/Http/Livewire/BooksForPlebs/BookRentalGuide.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Livewire\BooksForPlebs;
|
||||
|
||||
use Livewire\Component;
|
||||
|
||||
class BookRentalGuide extends Component
|
||||
{
|
||||
public function render()
|
||||
{
|
||||
return view('livewire.books-for-plebs.book-rental-guide');
|
||||
}
|
||||
}
|
||||
@@ -24,7 +24,7 @@ return new class extends Migration
|
||||
$table->id();
|
||||
$this->nullableMorphs($table, 'commentator', 'commentator_reactions');
|
||||
$table->foreignId('comment_id')->references('id')->on('comments')->cascadeOnDelete();
|
||||
$table->string('reaction')->collation('C.UTF-8');
|
||||
$table->string('reaction');
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<div>
|
||||
<h1 class="text-white text-xl">Test</h1>
|
||||
</div>
|
||||
|
||||
<div class="h-screen w-full">
|
||||
|
||||
<livewire:frontend.header :country="\App\Models\Country::query()->where('code', 'de')->first()"/>
|
||||
|
||||
<div class="px-2 sm:px-24">
|
||||
<!-- Hier coden/arbeiten -->
|
||||
<div class="flex space-x-2 justify-between">
|
||||
<h1 class="text-white text-xl">Test</h1>
|
||||
<h1 class="text-white text-xl">Test</h1>
|
||||
<h1 class="text-white text-xl">Test</h1>
|
||||
<h1 class="text-white text-xl">Test</h1>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<livewire:frontend.footer/>
|
||||
</div>
|
||||
|
||||
@@ -51,6 +51,12 @@
|
||||
{{ __('Bücher') }}
|
||||
</a>
|
||||
|
||||
<a href="{{ route('buecherverleih') }}"
|
||||
class="flex gap-x-4 py-2 text-sm font-semibold leading-6 text-gray-900">
|
||||
<i class="fa-thin fa-book-arrow-right flex-none text-gray-400 w-6 h-5 mr-2 -ml-1"></i>
|
||||
{{ __('Bücherverleih') }}
|
||||
</a>
|
||||
|
||||
<a href="{{ route('library.table.podcastsEpisodes', ['country' => $country]) }}"
|
||||
class="flex gap-x-4 py-2 text-sm font-semibold leading-6 text-gray-900">
|
||||
<i class="fa-thin fa-podcast flex-none text-gray-400 w-6 h-5 mr-2 -ml-1"></i>
|
||||
|
||||
@@ -20,6 +20,10 @@ Route::middleware([])
|
||||
->get('/kaninchenbau', \App\Http\Livewire\Helper\FollowTheRabbit::class)
|
||||
->name('kaninchenbau');
|
||||
|
||||
Route::middleware([])
|
||||
->get('/buecherverleih', \App\Http\Livewire\BooksForPlebs\BookRentalGuide::class)
|
||||
->name('buecherverleih');
|
||||
|
||||
Route::get('/img/{path}', \App\Http\Controllers\ImageController::class)
|
||||
->where('path', '.*')
|
||||
->name('img');
|
||||
|
||||
Reference in New Issue
Block a user