Answers for "google button bootstrap"

1

google sign in button

<div class='g-sign-in-button'>
    <div class=content-wrapper>
        <div class='logo-wrapper'>
            <img src='https://developers.google.com/identity/images/g-logo.png'>
        </div>
        <span class='text-container'>
      <span>Sign in with Google</span>
    </span>
    </div>
</div>

<style>
        *, *:before, *:after {
            box-sizing: border-box;
        }

        .g-sign-in-button {
            margin: 10px;
            display: inline-block;
            width: 240px;
            height: 50px;
            background-color: #4285f4;
            color: #fff;
            border-radius: 1px;
            box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.25);
            transition: background-color .218s, border-color .218s, box-shadow .218s;
        }

        .g-sign-in-button:hover {
            cursor: pointer;
            -webkit-box-shadow: 0 0 3px 3px rgba(66, 133, 244, 0.3);
            box-shadow: 0 0 3px 3px rgba(66, 133, 244, 0.3);
        }

        .g-sign-in-button:active {
            background-color: #3367D6;
            transition: background-color 0.2s;
        }

        .g-sign-in-button .content-wrapper {
            height: 100%;
            width: 100%;
            border: 1px solid transparent;
        }

        .g-sign-in-button img {
            width: 18px;
            height: 18px;
        }

        .g-sign-in-button .logo-wrapper {
            padding: 15px;
            background: #fff;
            width: 48px;
            height: 100%;
            border-radius: 1px;
            display: inline-block;
        }

        .g-sign-in-button .text-container {
            font-family: Roboto,arial,sans-serif;
            font-weight: 500;
            letter-spacing: .21px;
            font-size: 16px;
            line-height: 48px;
            vertical-align: top;
            border: none;
            display: inline-block;
            text-align: center;
            width: 180px;
        }

</style>
Posted by: Guest on August-14-2020
1

html login with google

<html lang="en">
  <head>
    <meta name="google-signin-scope" content="profile email">
    <meta name="google-signin-client_id" content="YOUR_CLIENT_ID.apps.googleusercontent.com">
    <script src="https://apis.google.com/js/platform.js" async defer></script>
  </head>
  <body>
    <div class="g-signin2" data-onsuccess="onSignIn" data-theme="dark"></div>
    <script>
      function onSignIn(googleUser) {
        // Useful data for your client-side scripts:
        var profile = googleUser.getBasicProfile();
        console.log("ID: " + profile.getId()); // Don't send this directly to your server!
        console.log('Full Name: ' + profile.getName());
        console.log('Given Name: ' + profile.getGivenName());
        console.log('Family Name: ' + profile.getFamilyName());
        console.log("Image URL: " + profile.getImageUrl());
        console.log("Email: " + profile.getEmail());

        // The ID token you need to pass to your backend:
        var id_token = googleUser.getAuthResponse().id_token;
        console.log("ID Token: " + id_token);
      }
    </script>
  </body>
</html>
Posted by: Guest on October-09-2020
0

bootstrap social media icons

Refer link : 
https://www.programmingquest.com/2020/04/create-social-media-icon-using-html-css.html

<html>
	<head>
		<title>Social Media Icon Example</title>
		<!-- Adding font awesome icon library -->
		<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
		<style>
			.fa {  
			  width: 25px;
			  padding: 20px;
			  font-size: 25px;
			  text-align: center;
			  text-decoration: none;
			  margin: 5px 2px;
			  color: white;
			  border-radius: 50%; 
			}

			.fa:hover {
				opacity: 0.7;
			}

			.fa-facebook {
			  background: #3B5998;
			}

			.fa-twitter {
			  background: #55ACEE;
			}

			.fa-google {
			  background: #dd4b39;
			}

			.fa-linkedin {
			  background: #007bb5;
			}

			.fa-youtube {
			  background: #bb0000;
			}

			.fa-instagram {
			  background: #8a3ab9;
			}

			.fa-whatsapp {
			  background: #4FCE5D;
			}

			.fa-pinterest {
			  background: #cb2027;
			}

			.fa-snapchat-ghost {
			  background: #fffc00;  
			  text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
			}

			.fa-skype {
			  background: #00aff0;
			}

			.fa-github {
			  background: #000000;
			}

			.fa-dribbble {
			  background: #ea4c89;
			}

			.fa-vimeo {
			  background: #45bbff;
			}

			.fa-foursquare {
			  background: #45bbff;
			}

			.fa-stumbleupon {
			  background: #eb4924;
			}

			.fa-flickr {
			  background: #f40083;
			}

			.fa-yahoo {
			  background: #430297;
			}

			.fa-reddit {
			  background: #ff5700;
			}

			.fa-rss {
			  background: #ff6600;
			}
			</style>
	</head>
	<body>
		<!-- Using font awesome icons -->
		<a href="#" class="fa fa-facebook"></a>
		<a href="#" class="fa fa-twitter"></a>
		<a href="#" class="fa fa-google"></a>
		<a href="#" class="fa fa-linkedin"></a>
		<a href="#" class="fa fa-youtube"></a>
		<a href="#" class="fa fa-instagram"></a>
		<a href="#" class="fa fa-whatsapp"></a>
		<a href="#" class="fa fa-pinterest"></a>
		<a href="#" class="fa fa-snapchat-ghost"></a>
		<a href="#" class="fa fa-skype"></a>
		<a href="#" class="fa fa-github"></a>
		<a href="#" class="fa fa-dribbble"></a>
		<a href="#" class="fa fa-vimeo"></a>
		<a href="#" class="fa fa-foursquare"></a>
		<a href="#" class="fa fa-stumbleupon"></a>
		<a href="#" class="fa fa-flickr"></a>
		<a href="#" class="fa fa-yahoo"></a>
		<a href="#" class="fa fa-reddit"></a>
		<a href="#" class="fa fa-rss"></a>
	</body>
</html>
Posted by: Guest on April-03-2020
0

bootstrap social

<a class="btn btn-block btn-social btn-twitter">  <span class="fa fa-twitter"></span>  Sign in with Twitter</a> <a class="btn btn-social-icon btn-twitter">  <span class="fa fa-twitter"></span></a>
Posted by: Guest on September-30-2020

Browse Popular Code Answers by Language