Add the Google logo to the Continue with Google button
Same official 4-color "G" logomark PocketBase itself serves (the exact SVG confirmed from the live /api/collections/users/auth-methods response while verifying the OAuth2 setup) - same button on both the sign-in and sign-up views, since they're the same form with a mode toggle, not separate pages.
This commit is contained in:
parent
c1df28fb78
commit
87b978f837
|
|
@ -456,6 +456,7 @@ tr.editing td{ background:rgba(37,99,235,.03); }
|
|||
.login-card .fields > div{ flex:none; }
|
||||
.login-submit{ width:100%; margin-top:4px; }
|
||||
.login-google{ width:100%; margin-top:10px; }
|
||||
.login-google-logo{ flex-shrink:0; }
|
||||
.login-mode-toggle{
|
||||
display:block; width:100%; margin-top:16px; background:transparent; border:none;
|
||||
color:var(--t3); font-size:12.5px; cursor:pointer; text-align:center;
|
||||
|
|
|
|||
|
|
@ -65,6 +65,12 @@ async function handleGoogle() {
|
|||
</form>
|
||||
|
||||
<button class="btn btn-ghost login-google" type="button" @click="handleGoogle">
|
||||
<svg class="login-google-logo" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 256 262" preserveAspectRatio="xMidYMid">
|
||||
<path fill="#4285f4" d="M255.9 133.5c0-10.8-.9-18.6-2.8-26.7H130.6v48.4h71.9a64 64 0 0 1-26.7 42.4l-.2 1.6 38.7 30 2.7.3c24.7-22.8 38.9-56.3 38.9-96"/>
|
||||
<path fill="#34a853" d="M130.6 261.1c35.2 0 64.8-11.6 86.4-31.6l-41.2-32a76 76 0 0 1-45.2 13.1 79 79 0 0 1-74.3-54.2l-1.5.1-40.3 31.2-.6 1.5A131 131 0 0 0 130.6 261"/>
|
||||
<path fill="#fbbc05" d="M56.3 156.4a80 80 0 0 1-.2-51.7V103L15.3 71.3l-1.4.6a131 131 0 0 0 0 117.3z"/>
|
||||
<path fill="#eb4335" d="M130.6 50.5c24.5 0 41 10.6 50.4 19.4L218 34c-22.8-21-52.2-34-87.4-34C79.5 0 35.4 29.3 13.9 72l42.2 32.7a79 79 0 0 1 74.5-54.2"/>
|
||||
</svg>
|
||||
Continue with Google
|
||||
</button>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue