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 @@ -
+
@livewire('navigation-menu') @if (isset($header)) diff --git a/resources/views/layouts/guest.blade.php b/resources/views/layouts/guest.blade.php index e4077509..e548daa3 100644 --- a/resources/views/layouts/guest.blade.php +++ b/resources/views/layouts/guest.blade.php @@ -13,21 +13,7 @@ @livewireStyles - -
- - @if (isset($header)) -
-
- {{ $header }} -
-
- @endif - -
- {{ $slot }} -
-
+{{ $slot }} @stack('modals') @livewireScripts diff --git a/resources/views/livewire/guest/welcome.blade.php b/resources/views/livewire/guest/welcome.blade.php index ae31fbf2..746a143a 100644 --- a/resources/views/livewire/guest/welcome.blade.php +++ b/resources/views/livewire/guest/welcome.blade.php @@ -1,24 +1,80 @@
-
- @if (Route::has('login')) - diff --git a/tailwind.config.js b/tailwind.config.js index 4dfe3642..3bc6edd4 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -10,21 +10,6 @@ module.exports = { ], darkMode: 'class', theme: { - colors: { - 'gray': { - DEFAULT: '#151515', - '50': '#AEAEAE', - '100': '#A4A4A4', - '200': '#8F8F8F', - '300': '#7B7B7B', - '400': '#676767', - '500': '#525252', - '600': '#3E3E3E', - '700': '#292929', - '800': '#151515', - '900': '#000000' - }, - }, extend: { fontFamily: { sans: [