From 0e721343391bc22b7b83b6b8a7c89f63c8a12ac0 Mon Sep 17 00:00:00 2001 From: zhaiyuxin103 Date: Tue, 26 Nov 2024 09:33:02 +0800 Subject: [PATCH] feat(pages): landing --- app/Livewire/Landing.php | 26 ++++++++++++++++++++++ resources/views/livewire/landing.blade.php | 9 ++++++++ routes/web.php | 2 ++ 3 files changed, 37 insertions(+) create mode 100644 app/Livewire/Landing.php create mode 100644 resources/views/livewire/landing.blade.php diff --git a/app/Livewire/Landing.php b/app/Livewire/Landing.php new file mode 100644 index 0000000..b411967 --- /dev/null +++ b/app/Livewire/Landing.php @@ -0,0 +1,26 @@ +get(); + } + + #[Layout('layouts.guest')] + public function render(): View + { + return view('livewire.landing'); + } +} diff --git a/resources/views/livewire/landing.blade.php b/resources/views/livewire/landing.blade.php new file mode 100644 index 0000000..7880b82 --- /dev/null +++ b/resources/views/livewire/landing.blade.php @@ -0,0 +1,9 @@ +
+
+ @foreach ($this->landings as $value) + {!! $value->content !!} + @endforeach +
+
diff --git a/routes/web.php b/routes/web.php index 261b513..b63e7be 100644 --- a/routes/web.php +++ b/routes/web.php @@ -24,4 +24,6 @@ }); Route::impersonate(); + + Route::get('landing', App\Livewire\Landing::class)->name('landing'); });