Skip to content

Commit

Permalink
improve social sign-in buttons in SignIn/Up pages in Boilerplate #8637
Browse files Browse the repository at this point in the history
  • Loading branch information
msynk committed Sep 14, 2024
1 parent 30a78ad commit ea1b479
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@inherits StaticComponent

<svg width="28" height="28" viewBox="0 0 40 40">
<path fill="var(--bit-clr-fg-pri)" d="M19.9404 0C8.91388 0 0 8.97959 0 20.0886C0 28.9686 5.71143 36.4853 13.6347 39.1457C14.6253 39.3457 14.9882 38.7135 14.9882 38.1816C14.9882 37.7159 14.9555 36.1196 14.9555 34.4563C9.40857 35.6539 8.25347 32.0616 8.25347 32.0616C7.36204 29.7335 6.04122 29.1351 6.04122 29.1351C4.22571 27.9045 6.17347 27.9045 6.17347 27.9045C8.18735 28.0375 9.24408 29.9665 9.24408 29.9665C11.0265 33.0261 13.8988 32.1616 15.0543 31.6294C15.2192 30.3322 15.7478 29.4343 16.309 28.9355C11.8849 28.4698 7.2302 26.7404 7.2302 19.0241C7.2302 16.829 8.02204 15.0331 9.27673 13.6363C9.07878 13.1376 8.38531 11.0751 9.4751 8.31469C9.4751 8.31469 11.1588 7.78245 14.9551 10.3767C16.5804 9.93701 18.2566 9.71331 19.9404 9.71143C21.6241 9.71143 23.3404 9.94449 24.9253 10.3767C28.722 7.78245 30.4057 8.31469 30.4057 8.31469C31.4955 11.0751 30.8016 13.1376 30.6037 13.6363C31.8914 15.0331 32.6506 16.829 32.6506 19.0241C32.6506 26.7404 27.9959 28.4363 23.5388 28.9355C24.2653 29.5673 24.8922 30.7645 24.8922 32.6604C24.8922 35.3543 24.8596 37.5163 24.8596 38.1812C24.8596 38.7135 25.2229 39.3457 26.2131 39.1461C34.1363 36.4849 39.8478 28.9686 39.8478 20.0886C39.8804 8.97959 30.9339 0 19.9404 0Z" />
</svg>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@inherits StaticComponent

<svg width="28" height="28" viewBox="0 0 34 34">
<path fill="var(--bit-clr-fg-pri)" d="M33.2337 15.4497C33.1503 14.5997 32.4337 13.9663 31.5837 13.9663H19.0003C18.0837 13.9663 17.3337 14.7163 17.3337 15.633V18.483C17.3337 19.3997 18.0837 20.1497 19.0003 20.1497H26.517C26.3337 21.683 25.3337 23.9997 23.117 25.5497C21.7003 26.533 19.817 27.2164 17.3337 27.2164C17.217 27.2164 17.117 27.2163 17.0003 27.1997C12.7503 27.0663 9.15033 24.2164 7.85033 20.2997C7.50033 19.2497 7.30033 18.1497 7.30033 16.9997C7.30033 15.8497 7.50033 14.733 7.83366 13.6997C7.93366 13.3997 8.05033 13.0997 8.18366 12.7997C9.717 9.34969 13.067 6.91635 17.0003 6.79968C17.1003 6.78302 17.217 6.783 17.3337 6.783C19.717 6.783 21.5003 7.56632 22.7503 8.43298C23.4003 8.88298 24.267 8.78299 24.8337 8.23299L27.1503 5.96635C27.8837 5.24968 27.817 4.03298 26.9837 3.43298C24.3337 1.48298 21.1003 0.333008 17.3337 0.333008C17.217 0.333008 17.117 0.333024 17.0003 0.349691C10.617 0.466357 5.13366 4.16636 2.45033 9.51636C1.31699 11.783 0.666992 14.3163 0.666992 16.9997C0.666992 19.683 1.31699 22.2163 2.45033 24.483H2.467C5.15033 29.833 10.6337 33.533 17.0003 33.6497C17.117 33.6663 17.217 33.6663 17.3337 33.6663C21.8337 33.6663 25.617 32.183 28.367 29.633C31.517 26.7163 33.3337 22.4497 33.3337 17.3663C33.3337 16.6497 33.3003 16.033 33.2337 15.4497Z" />
</svg>

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@inherits StaticComponent

<svg width="28" height="28" viewBox="0 0 31 32">
<path fill="var(--bit-clr-fg-pri)" d="M1.53555 0.799805L12.909 17.3811L0.982422 31.1998H3.52461L14.0355 19.0217L22.3887 31.1998H30.3996L18.498 13.8498L29.7621 0.799805H27.2215L17.373 12.2092L9.54648 0.799805H1.53555Z" />
</svg>

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@*+:cnd:noEmit*@
@attribute [Route(Urls.SignInPage)]
@inherits AppComponentBase
@using Boilerplate.Client.Core.Components.Pages.Identity.Components

<PageTitle>@Localizer[nameof(AppStrings.SignInTitle)]</PageTitle>

Expand Down Expand Up @@ -32,7 +33,7 @@
OnClick="WrapHandled(GoogleSignIn)"
Color="BitColor.SecondaryBackground"
Title="@Localizer[AppStrings.GoogleSignUpButtonText]">
<BitImage Src="_content/Boilerplate.Client.Core/images/icons/google-icon.svg" />
<GoogleIcon />
</BitButton>

<BitButton IsLoading="isWaiting"
Expand All @@ -42,7 +43,7 @@
OnClick="WrapHandled(GitHubSignIn)"
Color="BitColor.SecondaryBackground"
Title="@Localizer[AppStrings.GitHubSignUpButtonText]">
<BitImage Src="_content/Boilerplate.Client.Core/images/icons/github-icon.svg" />
<GitHubIcon />
</BitButton>

<BitButton IsLoading="isWaiting"
Expand All @@ -52,7 +53,7 @@
OnClick="WrapHandled(TwitterSignIn)"
Color="BitColor.SecondaryBackground"
Title="@Localizer[AppStrings.TwitterSignUpButtonText]">
<BitImage Src="_content/Boilerplate.Client.Core/images/icons/x-icon.svg" />
<TwitterIcon />
</BitButton>
</BitStack>
<br />
Expand Down Expand Up @@ -134,7 +135,7 @@
@bind-Value="model.Otp"
Size="BitSize.Large"
Label="@Localizer[nameof(AppStrings.Otp)]"
Type="BitInputType.Number"
Type="BitInputType.Number"
Style="justify-content:center"
OnFill="WrapHandled(DoSignIn)" />
<ValidationMessage For="@(() => model.Otp)" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@*+:cnd:noEmit*@
@attribute [Route(Urls.SignUpPage)]
@inherits AppComponentBase
@using Boilerplate.Client.Core.Components.Pages.Identity.Components

<PageTitle>@Localizer[nameof(AppStrings.SingUpTitle)]</PageTitle>

Expand All @@ -27,7 +28,7 @@
OnClick="WrapHandled(GoogleSignUp)"
Color="BitColor.SecondaryBackground"
Title="@Localizer[AppStrings.GoogleSignUpButtonText]">
<BitImage Src="_content/Boilerplate.Client.Core/images/icons/google-icon.svg" />
<GoogleIcon />
</BitButton>

<BitButton IsLoading="isWaiting"
Expand All @@ -37,7 +38,7 @@
OnClick="WrapHandled(GitHubSignUp)"
Color="BitColor.SecondaryBackground"
Title="@Localizer[AppStrings.GitHubSignUpButtonText]">
<BitImage Src="_content/Boilerplate.Client.Core/images/icons/github-icon.svg" />
<GitHubIcon />
</BitButton>

<BitButton IsLoading="isWaiting"
Expand All @@ -47,7 +48,7 @@
OnClick="WrapHandled(TwitterSignUp)"
Color="BitColor.SecondaryBackground"
Title="@Localizer[AppStrings.TwitterSignUpButtonText]">
<BitImage Src="_content/Boilerplate.Client.Core/images/icons/x-icon.svg" />
<TwitterIcon />
</BitButton>
</BitStack>
<br />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace Boilerplate.Client.Core.Components;

public class StaticComponent: ComponentBase
{
protected override bool ShouldRender() => false;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ea1b479

Please sign in to comment.