Skip to content

Commit 4b988b8

Browse files
committed
doc: 增加动画样式
1 parent 31de35d commit 4b988b8

File tree

2 files changed

+24
-15
lines changed

2 files changed

+24
-15
lines changed

src/BootstrapBlazor.Server/Components/Samples/Tutorials/LoginAndRegister/Template5.razor

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@
4040
}
4141
else
4242
{
43-
43+
<div class="logo-container">
44+
<h1 class="blazor-text">BootstrapBlazor</h1>
45+
</div>
4446
}
4547
</div>
4648
@if (!isEmailEntered)
@@ -72,8 +74,8 @@
7274
}
7375
else
7476
{
75-
<h3>欢迎加入 BootstrapBlazor</h3>
76-
<div class="email-display2">@email</div>
77+
<div class="email-display2"><span>@email</span></div>
78+
<h5 class="text-center mt-3 mb-0">欢迎,您已成功登录</h5>
7779
<div class="login-video-wrap">
7880
<video class="login-video" autoplay="autoplay" playsinline="playsinline" disablepictureinpicture="">
7981
<source src="samples/login5/loading1.mp4" type="video/mp4; codecs=av01.0.05M.08">
@@ -83,15 +85,16 @@
8385
<img src="samples/login5/loading.png" alt="" role="presentation">
8486
</video>
8587
</div>
88+
<p class="text-center text-muted" style="font-size: 0.75rem;">此登录高仿微软登录 UI</p>
8689
<Button class="button" Color="Color.Primary" OnClick="OnEnterSubmit">进入</Button>
8790
}
8891
</div>
8992
</div>
9093
</div>
9194

9295
@code {
93-
private bool isEmailEntered = true;
94-
private bool isAuth = true;
96+
private bool isEmailEntered = false;
97+
private bool isAuth = false;
9598
private string email = "[email protected]";
9699
private string password = "123456";
97100
private bool showEmailError = false;

src/BootstrapBlazor.Server/Components/Samples/Tutorials/LoginAndRegister/Template5.razor.css

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
background: white;
1919
padding: 40px;
2020
border-radius: 10px;
21-
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
21+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
2222
width: auto;
2323
font-family: "Segoe UI", sans-serif;
2424
text-align: left;
@@ -102,14 +102,14 @@
102102
font-size: 14px;
103103
}
104104

105-
.links a {
106-
color: #0066cc;
107-
text-decoration: none;
108-
}
105+
.links a {
106+
color: #0066cc;
107+
text-decoration: none;
108+
}
109109

110-
.links a:hover {
111-
text-decoration: underline;
112-
}
110+
.links a:hover {
111+
text-decoration: underline;
112+
}
113113

114114
.small {
115115
font-size: 12px;
@@ -128,11 +128,17 @@
128128
text-align: center;
129129
}
130130

131-
.email-display2:after {
131+
.email-display2 > span {
132+
position: relative;
133+
padding: 0.5rem 1rem;
134+
}
135+
136+
.email-display2 > span:after {
132137
content: "";
138+
position: absolute;
139+
inset: 0;
133140
border: 1px solid var(--bs-border-color);
134141
border-radius: 20px;
135-
padding: .5rem;
136142
}
137143

138144
.login-video-wrap {

0 commit comments

Comments
 (0)