Skip to content

Commit 0474949

Browse files
committed
feat: 更新主布局,替换品牌图标并添加加载动画
1 parent acee725 commit 0474949

6 files changed

Lines changed: 88 additions & 37 deletions

File tree

site/Shared/MainLayout.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="docs-shell">
77
<header class="docs-topbar">
88
<NavLink class="docs-brand" href="/" Match="NavLinkMatch.All">
9-
<img class="docs-brand__logo" src="icon-512.png" alt="" />
9+
<img class="docs-brand__logo" src="logo.svg" alt="" />
1010
<span>Element-Blazor</span>
1111
</NavLink>
1212
<nav class="docs-topnav" aria-label="Top navigation">

site/wwwroot/favicon.ico

-17.3 KB
Binary file not shown.

site/wwwroot/icon-512.png

14 KB
Loading

site/wwwroot/index.html

Lines changed: 15 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66
<meta name="viewport" content="width=device-width" />
77
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9">
88
<title>Element-Blazor, Element的Blazor版本,用 .NET 写前端的 UI 框架,开箱即用,WebAssembly 版本,非PWA模式</title>
9-
<base href="/" />
10-
11-
<link href="manifest.json" rel="manifest" />
12-
<link rel="stylesheet" href="/_content/Element/css/fix.css" />
9+
<base href="/" />
10+
11+
<link href="manifest.json" rel="manifest" />
12+
<link rel="icon" href="favicon.ico" />
13+
<link rel="apple-touch-icon" sizes="512x512" href="icon-512.png" />
14+
<link rel="stylesheet" href="/_content/Element/css/fix.css" />
1315
<link rel="stylesheet" href="/_content/Element/css/index.css" />
1416
<link rel="stylesheet" href="/_content/Element/css/theme.css" />
1517
<link rel="stylesheet" href="/_content/Element.X/css/x.css" />
@@ -79,30 +81,15 @@
7981
}
8082

8183
.boot-mark {
82-
position: relative;
83-
width: 72px;
84-
height: 72px;
84+
width: 78px;
85+
height: 78px;
8586
margin-bottom: 22px;
8687
}
8788

88-
.boot-mark::before,
89-
.boot-mark::after {
90-
content: "";
91-
position: absolute;
92-
inset: 0;
93-
border-radius: 18px;
94-
}
95-
96-
.boot-mark::before {
97-
background: #409eff;
98-
box-shadow: 18px 18px 0 #67c23a, 0 18px 0 #e6a23c, 18px 0 0 #79bbff;
99-
animation: boot-pulse 1.6s ease-in-out infinite;
100-
}
101-
102-
.boot-mark::after {
103-
inset: 14px;
104-
border: 3px solid #ffffff;
105-
background: rgba(255, 255, 255, 0.18);
89+
.boot-mark img {
90+
display: block;
91+
width: 100%;
92+
height: 100%;
10693
}
10794

10895
.boot-kicker {
@@ -185,16 +172,6 @@
185172
}
186173
}
187174

188-
@keyframes boot-pulse {
189-
0%,
190-
100% {
191-
transform: translate(0, 0) scale(1);
192-
}
193-
50% {
194-
transform: translate(4px, 4px) scale(0.92);
195-
}
196-
}
197-
198175
@keyframes boot-dot {
199176
0%,
200177
80%,
@@ -225,7 +202,9 @@
225202
<app>
226203
<div class="boot-screen" role="status" aria-live="polite">
227204
<div class="boot-panel">
228-
<div class="boot-mark" aria-hidden="true"></div>
205+
<div class="boot-mark" aria-hidden="true">
206+
<img src="logo-loading.svg" alt="" />
207+
</div>
229208
<p class="boot-kicker">Element-Blazor Demo</p>
230209
<h1 class="boot-title">正在装载浏览器渲染演示</h1>
231210
<p class="boot-stage" id="boot-stage">准备 WebAssembly 运行时</p>

site/wwwroot/logo-loading.svg

Lines changed: 42 additions & 0 deletions
Loading

site/wwwroot/logo.svg

Lines changed: 30 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)