Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding ability to center the social providers #72

Merged
merged 4 commits into from
Jun 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/devdojo/auth/descriptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,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 @@ -12,5 +12,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
Loading