Markdium-Laravel 8 - Integrate Jetstream + Socialite in 30 mins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
@php | |
$providers = [ | |
'google' => [ | |
'bgColor' => '#ec462f', | |
'icon' => 'fab fa-google', | |
], | |
'facebook' => [ | |
'bgColor' => '#1877f2', | |
'icon' => 'fab fa-facebook-f', | |
], | |
'linkedin' => [ | |
'bgColor' => '#2969b1', | |
'icon' => 'fab fa-linkedin-in', | |
], | |
'twitter' => [ | |
'bgColor' => '#41aaf1', | |
'icon' => 'fab fa-twitter', | |
], | |
]; | |
@endphp | |
@foreach($providers as $provider => $params) | |
<a | |
class="block py-3 px-4 mb-5/2 rounded-sm text-white text-center font-bold hover:no-underline hover:opacity-75" | |
href="{{ route('social.login', ['provider' => $provider]) }}" | |
style="background-color: {{ $params['bgColor'] }}; min-height: 48px;" | |
> | |
<i class="float-left inline-block h-5 {{ $params['icon'] }}"></i> | |
Login with {{ ucwords($provider) }} | |
</a> | |
@endforeach | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment