diff --git a/app/Http/Livewire/Guest/Welcome.php b/app/Http/Livewire/Guest/Welcome.php index 8ebe9337..a60fd97c 100644 --- a/app/Http/Livewire/Guest/Welcome.php +++ b/app/Http/Livewire/Guest/Welcome.php @@ -8,6 +8,8 @@ class Welcome extends Component { public function render() { - return view('livewire.guest.welcome')->layout('layouts.guest'); + return view('livewire.guest.welcome', [ + 'cities' => \App\Models\City::all(), + ])->layout('layouts.guest'); } } diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index ee8ca5bc..a7bf9053 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -3,6 +3,8 @@ namespace App\Providers; use Illuminate\Support\ServiceProvider; +use Illuminate\Support\Str; +use Illuminate\Support\Stringable; class AppServiceProvider extends ServiceProvider { @@ -23,6 +25,18 @@ class AppServiceProvider extends ServiceProvider */ public function boot() { - // + Stringable::macro('initials', function(){ + $words = preg_split("/\s+/", $this); + $initials = ""; + + foreach ($words as $w) { + $initials .= $w[0]; + } + + return new static($initials); + }); + Str::macro('initials', function(string $string){ + return (string) (new Stringable($string))->initials(); + }); } } diff --git a/public/img/background.jpg b/public/img/background.jpg new file mode 100644 index 00000000..1a31e5e6 Binary files /dev/null and b/public/img/background.jpg differ diff --git a/public/img/btc-logo-6219386_1280.png b/public/img/btc-logo-6219386_1280.png new file mode 100644 index 00000000..cf5ead9f Binary files /dev/null and b/public/img/btc-logo-6219386_1280.png differ diff --git a/public/img/einundzwanzig-horizontal-inverted.svg b/public/img/einundzwanzig-horizontal-inverted.svg new file mode 100644 index 00000000..f4fa573e --- /dev/null +++ b/public/img/einundzwanzig-horizontal-inverted.svg @@ -0,0 +1 @@ + diff --git a/public/img/einundzwanzig-horizontal.svg b/public/img/einundzwanzig-horizontal.svg new file mode 100644 index 00000000..869b73f3 --- /dev/null +++ b/public/img/einundzwanzig-horizontal.svg @@ -0,0 +1,13 @@ + diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index 391ce947..d2236c0a 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -14,7 +14,7 @@
+
+ 16 Kurse
+