Skip to content

Instantly share code, notes, and snippets.

@andyyou
Last active Oct 28, 2020
Embed
What would you like to do?
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