Skip to content

Commit c84f8de

Browse files
committed
noscript fallback message
1 parent 7011e01 commit c84f8de

File tree

1 file changed

+72
-1
lines changed

1 file changed

+72
-1
lines changed

src/unisonLocal.ejs

Lines changed: 72 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,76 @@
3030
href="<%= require('./assets/favicon.svg') %>"
3131
/>
3232
</head>
33-
<body></body>
33+
<body>
34+
<noscript>
35+
<style>
36+
body {
37+
font-family: "Inter", sans-serif;
38+
background: #fafafb; /* gray-lighten-60 */
39+
color: #2d2e35; /* gray-darken-20 */
40+
}
41+
main {
42+
width: min(39rem, calc(100vw - 8rem));
43+
margin: 4rem auto 1.5rem auto;
44+
background: #fff; /* gray-lighten-100 */
45+
padding: 1.5rem;
46+
border-radius: 0.25rem;
47+
border: 1px solid #e4eaf3; /* gray-lighten-50 */
48+
}
49+
h1 {
50+
font-size: 1.5rem;
51+
font-weight: 900;
52+
margin: 0;
53+
padding: 0;
54+
}
55+
p:last-child {
56+
margin-bottom: 0;
57+
}
58+
59+
footer {
60+
font-size: 0.75rem;
61+
text-align: center;
62+
color: #818286; /* gray-lighten-20 */
63+
}
64+
65+
footer a {
66+
color: #2d2e35; /* gray-darken-20 */
67+
text-decoration: none;
68+
transition: all 0.2s;
69+
}
70+
71+
footer a:hover {
72+
color: #225ebe; /* blue-1 */
73+
}
74+
75+
.decorative-pink {
76+
color: #ff6c78; /* pink-2 */
77+
}
78+
79+
.sep {
80+
margin: 0 0.25rem;
81+
color: #d1d5dc; /* gray-lighten-30 */
82+
}
83+
</style>
84+
<main>
85+
<h1>👋 Welcome to Unison <span class="decorative-pink">Local</span></h1>
86+
<p>
87+
We're sorry, but we require
88+
<strong>JavaScript to be enabled</strong> for our app to work
89+
properly.
90+
</p>
91+
<p>Please enable it to continue.</p>
92+
</main>
93+
<footer>
94+
© 2022
95+
<a target="_blank" href="https://www.unison-lang.org/unison-computing/"
96+
>Unison Computing, PBC
97+
</a>
98+
<span class="sep">•</span>
99+
<a target="_blank" href="https://www.unison-lang.org/learn"
100+
>Language Docs</a
101+
>
102+
</footer>
103+
</noscript>
104+
</body>
34105
</html>

0 commit comments

Comments
 (0)