31
31
< link rel ="manifest " href ="manifest.json ">
32
32
< style id ="splash-screen-style ">
33
33
html {
34
- height : 100%
34
+ height : 100% ;
35
35
}
36
36
37
37
body {
38
38
margin : 0 ;
39
39
min-height : 100% ;
40
40
background-color : # FFFFFF ;
41
- background-size : 100% 100% ;
41
+ background-size : 100% 100% ;
42
42
}
43
43
44
44
.center {
51
51
}
52
52
53
53
.contain {
54
- display : block;
55
- width : 100% ; height : 100% ;
54
+ display : block;
55
+ width : 100% ;
56
+ height : 100% ;
56
57
object-fit : contain;
57
58
}
58
59
59
60
.stretch {
60
- display : block;
61
- width : 100% ; height : 100% ;
61
+ display : block;
62
+ width : 100% ;
63
+ height : 100% ;
62
64
}
63
65
64
66
.cover {
65
- display : block;
66
- width : 100% ; height : 100% ;
67
+ display : block;
68
+ width : 100% ;
69
+ height : 100% ;
67
70
object-fit : cover;
68
71
}
69
72
90
93
@media (prefers-color-scheme : dark) {
91
94
body {
92
95
background-color : # 212121 ;
93
- }
96
+ }
97
+ }
98
+
99
+ /* Styles for the loading indicator */
100
+ # loading-indicator {
101
+ position : fixed;
102
+ top : 0 ;
103
+ left : 0 ;
104
+ width : 100% ;
105
+ height : 100% ;
106
+ background-color : # FFFFFF ; /* Match body background */
107
+ display : flex;
108
+ justify-content : center;
109
+ align-items : center;
110
+ z-index : 9999 ; /* Ensure it's on top */
111
+ }
112
+
113
+ @media (prefers-color-scheme : dark) {
114
+ # loading-indicator {
115
+ background-color : # 212121 ; /* Match dark mode body background */
116
+ }
117
+ }
118
+
119
+ /* Simple spinner animation */
120
+ .spinner {
121
+ border : 4px solid rgba (0 , 0 , 0 , 0.1 );
122
+ border-left-color : # 0175C2 ; /* Use theme color from manifest */
123
+ border-radius : 50% ;
124
+ width : 50px ;
125
+ height : 50px ;
126
+ animation : spin 1s linear infinite;
127
+ }
128
+
129
+ @keyframes spin {
130
+ 0% { transform : rotate (0deg ); }
131
+ 100% { transform : rotate (360deg ); }
94
132
}
95
133
</ style >
96
134
< script id ="splash-screen-script ">
97
135
function removeSplashFromWeb ( ) {
98
136
document . getElementById ( "splash" ) ?. remove ( ) ;
99
137
document . getElementById ( "splash-branding" ) ?. remove ( ) ;
138
+ document . getElementById ( "loading-indicator" ) ?. remove ( ) ; // Remove the new loading indicator
100
139
document . body . style . background = "transparent" ;
101
140
}
102
141
</ script >
103
142
< meta content ="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no " name ="viewport ">
104
143
</ head >
105
144
< body >
145
+ < div id ="loading-indicator ">
146
+ < div class ="spinner "> </ div >
147
+ </ div >
106
148
< script >
107
149
{ { flutter_bootstrap_js } }
108
150
</ script >
109
151
110
152
111
- </ body > </ html >
153
+ </ body > </ html >
0 commit comments