Skip to content

Commit f6b7136

Browse files
Tony LeaTony Lea
authored andcommitted
Adding a few more design and setting updates
1 parent d13e3ae commit f6b7136

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

config/devdojo/auth/descriptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'enable_email_registration' => 'Enable the ability for users to register via email',
1818
'login_show_social_providers' => 'Show the social providers login buttons on the login form',
1919
'center_align_social_provider_button_content' => 'Center align the content in the social provider button?',
20-
'center_align_container_text' => 'Center align the text in the container?',
20+
'center_align_text' => 'Center align text?',
2121
'social_providers_location' => 'The location of the social provider buttons (top or bottom)',
2222
'check_account_exists_before_login' => 'Determines if the system checks for account existence before login',
2323
],

config/devdojo/auth/settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
'enable_email_registration' => true,
1717
'login_show_social_providers' => true,
1818
'center_align_social_provider_button_content' => false,
19-
'center_align_container_text' => false,
19+
'center_align_text' => false,
2020
'social_providers_location' => 'bottom',
2121
'check_account_exists_before_login' => false,
2222
];

resources/views/components/elements/container.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
@endphp
1414

1515
<div id="auth-container-parent" class="relative w-full sm:max-w-md {{ $containerParentClasses }}">
16-
<div id="auth-container" class="flex relative top-0 z-20 flex-col justify-center @if(config('devdojo.auth.settings.center_align_container_text')){{ 'items-center' }}@else{{ 'items-stretch' }}@endif px-10 py-8 w-full h-screen bg-white border-gray-200 sm:top-auto sm:h-full {{ $containerClasses }}">
16+
<div id="auth-container" class="flex relative top-0 z-20 flex-col justify-center items-stretch px-10 py-8 w-full h-screen bg-white border-gray-200 sm:top-auto sm:h-full {{ $containerClasses }}">
1717
{{ $slot }}
1818
</div>
1919
</div>

resources/views/pages/auth/login.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public function authenticate()
189189

190190

191191
@if(config('devdojo.auth.settings.registration_enabled', true))
192-
<div class="mt-3 space-x-0.5 text-sm leading-5 text-left" style="color:{{ config('devdojo.auth.appearance.color.text') }}">
192+
<div class="mt-3 space-x-0.5 text-sm leading-5 @if(config('devdojo.auth.settings.center_align_text')){{ 'text-center' }}@else{{ 'text-left' }}@endif" style="color:{{ config('devdojo.auth.appearance.color.text') }}">
193193
<span class="opacity-[47%]"> {{ config('devdojo.auth.language.login.dont_have_an_account') }} </span>
194194
<x-auth::elements.text-link data-auth="register-link" href="{{ route('auth.register') }}">{{ config('devdojo.auth.language.login.sign_up') }}</x-auth::elements.text-link>
195195
</div>

resources/views/pages/auth/register.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public function register()
184184
</form>
185185
@endif
186186

187-
<div class="@if(config('devdojo.auth.settings.social_providers_location') != 'top' && $showEmailRegistration){{ 'mt-3' }}@endif space-x-0.5 text-sm leading-5 text-left" style="color:{{ config('devdojo.auth.appearance.color.text') }}">
187+
<div class="@if(config('devdojo.auth.settings.social_providers_location') != 'top' && $showEmailRegistration){{ 'mt-3' }}@endif space-x-0.5 text-sm leading-5 @if(config('devdojo.auth.settings.center_align_text')){{ 'text-center' }}@else{{ 'text-left' }}@endif" style="color:{{ config('devdojo.auth.appearance.color.text') }}">
188188
<span class="opacity-[47%]">{{config('devdojo.auth.language.register.already_have_an_account')}}</span>
189189
<x-auth::elements.text-link data-auth="login-link" href="{{ route('auth.login') }}">{{config('devdojo.auth.language.register.sign_in')}}</x-auth::elements.text-link>
190190
</div>

0 commit comments

Comments
 (0)