Skip to content

Commit 9c93fce

Browse files
authored
design changes
Merge pull request #36 from isc30/feature/demo
2 parents d22df4a + df930b0 commit 9c93fce

File tree

4 files changed

+26
-18
lines changed

4 files changed

+26
-18
lines changed

demo/WasmHost/App.razor

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
<LazyRouter AppAssembly="@typeof(Program).Assembly">
22
<Loading Context="moduleName">
33
<LayoutView Layout="@typeof(MainLayout)">
4-
<div class="pureCenter full light">
4+
<div class="pureCenter full light fadein">
55
<div class="loader light"></div>
66
</div>
77
</LayoutView>
88
</Loading>
99
<Found Context="routeData">
10-
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
10+
<LayoutView Layout="@typeof(MainLayout)">
11+
<RouteView RouteData="@routeData" />
12+
</LayoutView>
1113
</Found>
1214
<NotFound>
1315
<LayoutView Layout="@typeof(MainLayout)">

demo/WasmHost/Pages/Counter.razor

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
@page "/counter"
22

3+
<div class="pureCenter full light fadein">
4+
<div class="loader"></div>
5+
</div>
6+
37
<h1>Counter</h1>
48

59
<p>Current count: @currentCount</p>

demo/WasmHost/wwwroot/css/global.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@
3232
top:0; left:0;
3333
width: 100%;
3434
height: 100%;
35-
background-color: black;
36-
color: white;
3735
}
3836

3937
.full.dark {
40-
background-color: black;
38+
backdrop-filter: blur(4px);
39+
background-color: rgba(0,0,0,0.8);
4140
color: white;
4241
}
4342

4443
.full.light {
45-
background-color: white;
44+
backdrop-filter: blur(4px);
45+
background-color: rgba(255,255,255,0.8);
4646
color: black;
4747
}

demo/WasmHost/wwwroot/css/loader.css

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
width: 3em;
66
height: 3em;
77

8-
-webkit-animation: spin 1.5s cubic-bezier(.68,-0.55,.27,1.55) infinite; /* Safari */
98
animation: spin 1.5s cubic-bezier(.68,-0.55,.27,1.55) infinite;
109
}
1110

@@ -17,17 +16,6 @@
1716
color: white;
1817
}
1918

20-
/* Safari */
21-
@-webkit-keyframes spin {
22-
0% {
23-
-webkit-transform: rotate(0deg);
24-
}
25-
26-
100% {
27-
-webkit-transform: rotate(360deg);
28-
}
29-
}
30-
3119
@keyframes spin {
3220
0% {
3321
transform: rotate(0deg);
@@ -37,3 +25,17 @@
3725
transform: rotate(360deg);
3826
}
3927
}
28+
29+
.fadein {
30+
animation: fadein ease;
31+
animation-duration: 2s;
32+
}
33+
34+
.fadein.fast {
35+
animation-duration: 0.3s;
36+
}
37+
38+
@keyframes fadein {
39+
0% { opacity: 0; }
40+
100% { opacity: 1; }
41+
}

0 commit comments

Comments
 (0)