|
7 | 7 | <div class="header-row"> |
8 | 8 | @if (isEmailEntered) |
9 | 9 | { |
10 | | - <button @onclick="GoBack" type="button" id="back-button" data-testid="leftArrowIcon" aria-label="返回" class="back-button"> |
11 | | - <span class="fui-Button__icon rywnvv2 ___hix1za0 fe5j1ua fjamq6b f64fuq3 fbaiahx"> |
12 | | - <svg class="fui-Icon-regular ___12fm75w f1w7gpdv fez10in fg4l7m0" fill="var(--colorNeutralForeground3)" aria-hidden="true" width="24" height="24" viewBox="0 0 24 24"> |
13 | | - <path d="M10.3 19.72a1 1 0 0 0 1.4-1.43L6.33 13H20a1 1 0 0 0 0-2H6.33l5.37-5.28a1 1 0 0 0-1.4-1.42l-6.93 6.82c-.5.5-.5 1.3 0 1.78l6.92 6.83Z"></path> |
14 | | - </svg> |
| 10 | + <button @onclick="GoBack" aria-label="返回" class="back-button"> |
| 11 | + <span> |
| 12 | + <i class="fa-solid fa-arrow-left"></i> |
15 | 13 | </span> |
16 | 14 | </button> |
17 | 15 | } |
|
28 | 26 | @if (!isEmailEntered) |
29 | 27 | { |
30 | 28 | <h2>登录</h2> |
31 | | - <p class="subtitle">使用你的 Microsoft 帐户。</p> |
32 | | - <input type="email" class="input" placeholder="电子邮件或电话号码" @bind="email" /> |
| 29 | + <p class="subtitle">使用你的 BootstrapBlazor 帐户。</p> |
| 30 | + <BootstrapInput type="email" class="input" placeholder="电子邮件或电话号码" @bind-Value="email" /> |
33 | 31 | <div class="error" hidden="@(!showEmailError)">请输入有效的电子邮件地址或电话号码</div> |
34 | | - <button class="button" @onclick="OnEmailSubmit">下一个</button> |
| 32 | + <Button class="button" Color="Color.Primary" OnClick="OnEmailSubmit">下一步</Button> |
35 | 33 | <div class="links"> |
36 | 34 | <a href="#">忘记用户名?</a> |
37 | 35 | </div> |
38 | 36 | <div class="small"> |
39 | | - 不熟悉 Microsoft?<a href="#">创建帐户</a> |
| 37 | + 不熟悉 BootstrapBlazor?<a href="#">去看文档</a> |
40 | 38 | </div> |
41 | 39 | } |
42 | 40 | else |
43 | 41 | { |
44 | 42 | <h2>输入你的密码</h2> |
45 | 43 | <p class="email-display">@email</p> |
46 | | - <input type="password" class="input" placeholder="密码" /> |
| 44 | + <BootstrapInput type="password" class="input" placeholder="密码" @bind-Value="password" /> |
47 | 45 | <div class="links"> |
48 | 46 | <a href="#">忘记了密码?</a> |
49 | 47 | </div> |
50 | | - <button class="button">下一个</button> |
| 48 | + <Button class="button" Color="Color.Primary">下一步</Button> |
51 | 49 | <div class="links"> |
52 | 50 | <a href="#">其他登录方法</a> |
53 | 51 | </div> |
|
59 | 57 | @code { |
60 | 58 | private bool isEmailEntered = false; |
61 | 59 | private string email = ""; |
| 60 | + private string password = ""; |
62 | 61 | private bool showEmailError = false; |
63 | 62 |
|
64 | 63 | private void OnEmailSubmit() |
|
0 commit comments