Skip to content

Commit ff465a4

Browse files
add no js error handling
1 parent cfb6f22 commit ff465a4

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/pages/index.astro

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,25 @@ const rootNode = {
3333
</h1>
3434
</div>
3535
</div>
36+
<noscript>
37+
<div class="text-center space-y-8">
38+
<div class="space-y-2 md:space-y-4">
39+
<h2 class="text-base md:text-2xl text-white/80 font-normal font-red-hat tracking-wide px-4">
40+
JavaScript Required
41+
</h2>
42+
<p class="text-white/80 mt-4">
43+
This interactive guide requires JavaScript to function. Please enable JavaScript for this site or visit our{' '}
44+
<a
45+
href="https://chat.rockylinux.org"
46+
class="text-white hover:text-white/80 underline underline-offset-2"
47+
>
48+
Mattermost instance
49+
</a>
50+
{' '}for assistance in finding the right team.
51+
</p>
52+
</div>
53+
</div>
54+
</noscript>
3655
<div>
3756
<QuestionNode node={rootNode} client:load />
3857
</div>

0 commit comments

Comments
 (0)