This commit is contained in:
2024-05-15 12:28:03 +02:00
commit 173121216e
123 changed files with 13733 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace App\View\Components;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
class Drawer extends Component
{
public function __construct(public string $name)
{
}
/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string
{
return view('components.drawer');
}
}

View File

@@ -0,0 +1,21 @@
<?php
namespace App\View\Components;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
class DrawerTrigger extends Component
{
public function __construct(public string $target, public string $action)
{
}
public function render(): View|Closure|string
{
return view('components.drawer-trigger');
}
}

View File

@@ -0,0 +1,26 @@
<?php
namespace App\View\Components;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
class Menu extends Component
{
/**
* Create a new component instance.
*/
public function __construct()
{
//
}
/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string
{
return view('components.menu');
}
}

View File

@@ -0,0 +1,26 @@
<?php
namespace App\View\Components;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
class ThemeSwitcher extends Component
{
/**
* Create a new component instance.
*/
public function __construct()
{
//
}
/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string
{
return view('components.theme-switcher');
}
}