Skip to content

Commit

Permalink
closes #42
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed May 8, 2024
1 parent 695fde5 commit a22d61a
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 3 deletions.
44 changes: 43 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,49 @@
</head>

<body>
<app-root></app-root>
<app-root>
<style>
body,
html {
padding: 0 !important;
margin: 0 !important;
height: 100vh;
overflow: hidden;
}

app-root {
display: flex;
font-size: 3.5rem;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #000;
color: #ccc;
}

@keyframes spinner {
to {
transform: rotate(360deg);
}
}

.spinner:before {
content: '';
box-sizing: border-box;
position: absolute;
top: calc(50% - 64px);
left: calc(50% - 64px);
width: 128px;
height: 128px;
border-radius: 50%;
border: 2px solid #ccc;
border-top-color: #000;
animation: spinner .6s linear infinite;
}
</style>

<div class="spinner"></div>
</app-root>
<noscript>Please enable JavaScript to continue using this application.</noscript>
</body>

Expand Down
5 changes: 3 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ if (environment.production) {
enableProdMode();
}

platformBrowserDynamic().bootstrapModule(AppModule)
platformBrowserDynamic()
.bootstrapModule(AppModule)
.then(() => {
if ('serviceWorker' in navigator && environment.production) {
navigator.serviceWorker.register('./ngsw-worker.js');
}
})
.catch(err => console.log(err));
.catch((err) => console.log(err));

0 comments on commit a22d61a

Please sign in to comment.