Some checks reported errors
farmcontrol/farmcontrol-ui/pipeline/head Something is wrong with the build of this commit
- Added a new inline CSS style for a preload loader to enhance user experience during loading times. - Introduced an SVG-based loader animation for visual feedback while the application is loading. - Removed the obsolete preload.css file as its styles have been integrated into index.html.
86 lines
2.2 KiB
HTML
86 lines
2.2 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<link rel="icon" href="./favicon.ico" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta name="theme-color" content="#000000" />
|
|
<meta
|
|
name="description"
|
|
content="Web site created using create-react-app"
|
|
/>
|
|
<link rel="apple-touch-icon" href="./logo192.png" />
|
|
<link rel="manifest" href="./manifest.json" />
|
|
<link rel="stylesheet" href="./fonts/fonts.css" preload />
|
|
<style>
|
|
.fc-preload {
|
|
width: 100vw;
|
|
height: 100vh;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
/* HTML: <div class="loader"></div> */
|
|
.fc-loader {
|
|
width: 35px;
|
|
aspect-ratio: 1;
|
|
}
|
|
|
|
.fc-loader svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.fc-loader svg path {
|
|
stroke-width: 7px;
|
|
stroke: #008eff;
|
|
}
|
|
</style>
|
|
<script type="module" src="/src/index.jsx"></script>
|
|
<title>Farm Control</title>
|
|
</head>
|
|
<body>
|
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
<div id="rooot">
|
|
<div class="fc-preload">
|
|
<div class="fc-loader">
|
|
<svg
|
|
width="100%"
|
|
height="100%"
|
|
viewBox="0 0 64 64"
|
|
version="1.1"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
xml:space="preserve"
|
|
class="th-icon"
|
|
style="
|
|
fill-rule: evenodd;
|
|
clip-rule: evenodd;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
stroke-miterlimit: 1.5;
|
|
"
|
|
>
|
|
<g>
|
|
<path
|
|
d="M32,5.131C46.829,5.131 58.869,17.171 58.869,32"
|
|
style="fill: none"
|
|
/>
|
|
<animateTransform
|
|
attributeName="transform"
|
|
attributeType="XML"
|
|
type="rotate"
|
|
from="0 32 32"
|
|
to="360 32 32"
|
|
dur="1s"
|
|
repeatCount="indefinite"
|
|
/>
|
|
</g>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|