-
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathAuthentication.razor
More file actions
70 lines (64 loc) · 2.26 KB
/
Authentication.razor
File metadata and controls
70 lines (64 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
@rendermode InteractiveWebAssembly
@inherits ExampleComponentBase
<LumexCard Classes="@(new()
{
Header = "p-6 pb-0",
Body = "flex-col p-6 gap-4",
Footer = "p-6 pt-0 justify-center"
})">
<LumexCardHeader>
<div class="text-xl text-foreground-900 font-medium">
Sign in to your account
</div>
</LumexCardHeader>
<LumexCardBody>
@if( !_isEmailLogin )
{
<LumexButton Color="@ThemeColor"
OnClick="@(() => _isEmailLogin = true)">
<StartContent>
<EnvelopeFilledIcon Size="20" />
</StartContent>
<ChildContent>Continue with email</ChildContent>
</LumexButton>
}
else
{
<EditForm Model="@LoginModel" FormName="login" class="flex flex-col gap-4">
<LumexTextbox Type="@InputType.Email"
Label="Email"
@bind-Value="@LoginModel.Email" />
<LumexButton Type="@ButtonType.Submit"
Color="@ThemeColor">
Continue
</LumexButton>
</EditForm>
}
<div class="flex items-center gap-4 py-2">
<LumexDivider />
<p class="shrink-0 text-tiny text-default-500">OR</p>
<LumexDivider />
</div>
<LumexButton Variant="@Variant.Flat">
<StartContent>
<GoogleIcon Size="20" />
</StartContent>
<ChildContent>Continue with Google</ChildContent>
</LumexButton>
<LumexButton Variant="@Variant.Flat">
<StartContent>
<GithubIcon Size="20" />
</StartContent>
<ChildContent>Continue with Github</ChildContent>
</LumexButton>
</LumexCardBody>
<LumexCardFooter>
<p class="text-small text-foreground-500">
Need to create an account?
<LumexLink Color="@ThemeColor"
Class="@($"font-medium {(ThemeColor is ThemeColor.Default ? "text-foreground" : default)}")">
Sign Up
</LumexLink>
</p>
</LumexCardFooter>
</LumexCard>