diff --git a/config/devdojo/auth/customizations.php b/config/devdojo/auth/customizations.php index baaafd6..36fa6a6 100644 --- a/config/devdojo/auth/customizations.php +++ b/config/devdojo/auth/customizations.php @@ -8,5 +8,22 @@ 'type' => 'svg', // image, svg 'src' => '', 'height' => '36' + ], + 'heading' => [ + 'align' => 'center' + ], + 'login' => [ + 'text' => [ + 'headline' => 'Sign in', + 'subheadline' => 'Login to your account below', + ], + 'show_subheadline' => false + ], + 'register' => [ + 'text' => [ + 'headline' => 'Sign up', + 'subheadline' => 'Register for your free account below.', + ], + 'show_subheadline' => false, ] ]; \ No newline at end of file diff --git a/config/devdojo/auth/settings.php b/config/devdojo/auth/settings.php index 57a4a1b..2297815 100644 --- a/config/devdojo/auth/settings.php +++ b/config/devdojo/auth/settings.php @@ -1,7 +1,7 @@ env('DEVDOJO_AUTH_DEV', false), diff --git a/resources/views/components/elements/heading.blade.php b/resources/views/components/elements/heading.blade.php index 5c9499a..35fe29f 100644 --- a/resources/views/components/elements/heading.blade.php +++ b/resources/views/components/elements/heading.blade.php @@ -1,5 +1,22 @@ -
-
+@props([ + 'align' => 'center', + 'text' => 'Heading Text', + 'description' => '', + 'show_subheadline' => false +]) + +
$align == 'center', + 'items-start' => $align == 'left' + ]) +> +
$align == 'center', + 'items-start' => $align == 'left', + ]) +> @if(config('devdojo.auth.customizations.logo.type') == 'image') @@ -8,8 +25,8 @@ @endif
-

{{ $text ?? '' }}

- @if($description ?? false) +

{{ $text ?? '' }}

+ @if(($description ?? false) && $show_subheadline)

{{ $description ?? '' }}

@endif
\ No newline at end of file diff --git a/resources/views/components/layouts/app.blade.php b/resources/views/components/layouts/app.blade.php index 4333f0a..bc97aae 100644 --- a/resources/views/components/layouts/app.blade.php +++ b/resources/views/components/layouts/app.blade.php @@ -14,7 +14,7 @@ @endif - +
{{ $slot }}
diff --git a/resources/views/pages/auth/login.blade.php b/resources/views/pages/auth/login.blade.php index 6971d70..fa19acc 100644 --- a/resources/views/pages/auth/login.blade.php +++ b/resources/views/pages/auth/login.blade.php @@ -20,9 +20,11 @@ public $showPasswordField = false; public $authData = []; + public $customizations = []; public function mount(){ $this->authData = config('devdojo.auth.pages.login'); + $this->customizations = config('devdojo.auth.customizations'); } public function editIdentity(){ @@ -57,8 +59,12 @@ public function authenticate() @volt('auth.login') - - + +
diff --git a/resources/views/pages/auth/register.blade.php b/resources/views/pages/auth/register.blade.php index 7778948..9da4a60 100644 --- a/resources/views/pages/auth/register.blade.php +++ b/resources/views/pages/auth/register.blade.php @@ -22,6 +22,12 @@ #[Validate('required|min:8|same:passwordConfirmation')] public $password = ''; + public $customizations = []; + + public function mount(){ + $this->customizations = config('devdojo.auth.customizations'); + } + public function register() { $this->validate(); @@ -47,7 +53,11 @@ public function register() @volt('auth.register') - + {{-- --}}