mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
perf: 添加首屏 loading
This commit is contained in:
parent
7041925082
commit
652665a4ae
@ -7,13 +7,53 @@
|
|||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
||||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||||
<title>PPTIST - 在线演示文稿</title>
|
<title>PPTIST - 在线演示文稿</title>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.first-screen-loading {
|
||||||
|
width: 200px;
|
||||||
|
height: 200px;
|
||||||
|
position: fixed;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
margin-top: -100px;
|
||||||
|
margin-left: -100px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.first-screen-loading-spinner {
|
||||||
|
width: 36px;
|
||||||
|
height: 36px;
|
||||||
|
border: 3px solid #d14424;
|
||||||
|
border-top-color: transparent;
|
||||||
|
border-radius: 50%;
|
||||||
|
animation: spinner .8s linear infinite;
|
||||||
|
}
|
||||||
|
.first-screen-loading-text {
|
||||||
|
margin-top: 20px;
|
||||||
|
color: #d14424;
|
||||||
|
}
|
||||||
|
@keyframes spinner {
|
||||||
|
0% {
|
||||||
|
transform: rotate(0deg);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
transform: rotate(360deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<noscript>
|
<noscript>
|
||||||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
||||||
</noscript>
|
</noscript>
|
||||||
<div id="app"></div>
|
<div id="app">
|
||||||
<!-- built files will be auto injected -->
|
<div class="first-screen-loading">
|
||||||
|
<div class="first-screen-loading-spinner"></div>
|
||||||
|
<div class="first-screen-loading-text">正在加载中,请稍等 ...</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.oncontextmenu = e => e.preventDefault()
|
document.oncontextmenu = e => e.preventDefault()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user