-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
012a9e8
commit 6fde944
Showing
2 changed files
with
52 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,62 @@ | |
<meta name="keywords" content="calcium,calculator,计算器,网页计算器,多功能计算器,函数图像,函数绘制"/> | ||
<link rel="manifest" href="/manifest.webmanifest"> | ||
<title>Calcium</title> | ||
<style> | ||
/* Loading animation */ | ||
#root:not(:empty) + .loading { | ||
display: none; | ||
} | ||
.loading { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
text-align: center; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
background-color: #f7f7f7; | ||
} | ||
.loading-title { | ||
color: #d4d6d8; | ||
font-size: 50pt; | ||
margin-bottom: 45px; | ||
} | ||
.loading-bar { | ||
width: 330px; | ||
height: 5px; | ||
background-color: #d4d6d8; | ||
margin: 0 auto; | ||
overflow: hidden; | ||
} | ||
.loading-bar .loading-bar-tablet { | ||
width: 130px; | ||
height: 100%; | ||
background-color: #0165e1; | ||
animation: loading 1.5s ease infinite; | ||
} | ||
|
||
@keyframes loading { | ||
from { | ||
transform: translateX(-130px); | ||
} | ||
|
||
to { | ||
transform: translateX(calc(330px + 130px)); | ||
} | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
<div class="loading"> | ||
<div class="loading-title">Calcium</div> | ||
<div class="loading-bar"> | ||
<div class="loading-bar-tablet"></div> | ||
</div> | ||
</div> | ||
<div id="dialogs"></div> | ||
<script src="https://unpkg.com/[email protected]/dist/hidpi-canvas.min.js"></script> | ||
</body> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6fde944
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://calcium.js.org as production
🚀 Deployed on https://6661803059ec570084f0c57d--courageous-bublanina-6857c1.netlify.app