Skip to content

Commit

Permalink
Add styles to noscript message
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 committed Aug 17, 2024
1 parent 2676438 commit 2d3bb8a
Showing 1 changed file with 36 additions and 3 deletions.
39 changes: 36 additions & 3 deletions thallium-frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,42 @@
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<noscript>
<h1>Hi, we've noticed you're browsing with JavaScript disabled.</h1>
<p>We are sorry, but we do not support this at the time.</p>
<p>Please enable JavaScript to use our site.</p>
<div class="noscript-container">
<h1>Hi, we've noticed you're browsing with JavaScript disabled.</h1>
<p>We are sorry, but we do not support this at the time.</p>
<p>Please enable JavaScript to use our site.</p>
</div>
<style>
body {
font-family: "Source Code Pro", monospace;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}

.noscript-container {
margin: 0 1rem;
}

h1 {
font-size: 2rem;
margin: 0;
}

p {
font-size: 1rem;
margin: 0;
}

@media (prefers-color-scheme: dark) {
body {
background-color: #333;
color: #fff;
}
}
</style>
</noscript>
</body>

Expand Down

0 comments on commit 2d3bb8a

Please sign in to comment.