Skip to content

Commit

Permalink
Merge pull request #72 from thedevdojo/centerSocialProviders
Browse files Browse the repository at this point in the history
Adding ability to center the social providers
  • Loading branch information
tnylea authored Jun 30, 2024
2 parents 270d5aa + cca287c commit 3df4be0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/devdojo/auth/descriptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
'dev_mode' => 'This is for development mode, when set in Dev Mode Assets will be loaded from Vite',
'enable_2fa' => 'Enable the ability for users to turn on Two Factor Authentication',
'login_show_social_providers' => 'Show the social providers login buttons on the login form',
'center_align_social_provider_button_content' => 'Center align the content in the social provider button?',
'social_providers_location' => 'The location of the social provider buttons (top or bottom)',
],
];
1 change: 1 addition & 0 deletions config/devdojo/auth/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
'dev_mode' => false,
'enable_2fa' => false, // Enable or disable 2FA functionality globally
'login_show_social_providers' => true,
'center_align_social_provider_button_content' => false,
'social_providers_location' => 'bottom',
];
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a href="{{ url('auth/' . $slug . '/redirect') }}" class="flex items-center px-4 py-3 space-x-2.5 w-full h-auto text-sm rounded-md border border-zinc-200 text-zinc-600 hover:bg-zinc-100">
<a href="{{ url('auth/' . $slug . '/redirect') }}" class="flex @if(config('devdojo.auth.settings.center_align_social_provider_button_content')){{ 'justify-center' }}@endif items-center px-4 py-3 space-x-2.5 w-full h-auto text-sm rounded-md border border-zinc-200 text-zinc-600 hover:bg-zinc-100">
<span class="w-5 h-5">
@if(isset($provider->svg) && !empty(trim($provider->svg)))
{!! $provider->svg !!}
Expand Down

0 comments on commit 3df4be0

Please sign in to comment.