Skip to content

Commit

Permalink
feat(spa): add loading indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
timonmasberg committed Feb 19, 2024
1 parent 30d3d70 commit 15455c4
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion apps/spa/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,40 @@
</head>
<body>
<noscript>Bitte aktivieren Sie JavaScript um Kordis zu nutzen.</noscript>
<kordis-root ngCspNonce="csp_nonce"></kordis-root>
<kordis-root ngCspNonce="csp_nonce">
<style>
.loader-container {
display: flex;
justify-content: center;
align-items: center;
position: fixed;
width: 100%;
height: 100vh;
}

.loader {
width: 72px;
height: 72px;
border: 8px solid #1890ff;
border-bottom-color: transparent;
border-radius: 50%;
box-sizing: border-box;
animation: rotation 1s linear infinite;
}

@keyframes rotation {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>

<div class="loader-container">
<span class="loader"></span>
</div>
</kordis-root>
</body>
</html>

0 comments on commit 15455c4

Please sign in to comment.