Skip to content

Instantly share code, notes, and snippets.

@andyyou
Last active October 28, 2020 07:05
Show Gist options
  • Save andyyou/fb8ad5003131e74845e3ce17550d91f1 to your computer and use it in GitHub Desktop.
Save andyyou/fb8ad5003131e74845e3ce17550d91f1 to your computer and use it in GitHub Desktop.
Markdium-Laravel 8 - Integrate Jetstream + Socialite in 30 mins
<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