Skip to content

Commit

Permalink
Merge pull request #17 from icssc/no-js-view
Browse files Browse the repository at this point in the history
fix: 🐛 fixed No JS View
  • Loading branch information
alexanderl19 authored Feb 20, 2024
2 parents 298bcd9 + 62a202f commit cc4100c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/routes/(auth)/signin/+page.svelte
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
<a href="/signin/google">Sign in with Google</a>
<noscript>This Application Requires JS to Work</noscript>

<style>
noscript {
color: red;
padding-left: 34px;
font-weight: bold;
font-size: 20px;
}
</style>
12 changes: 12 additions & 0 deletions src/routes/(nav)/[[selectedMember]]/Table.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@
{/each}
</tr>
{/each}
<noscript>
<tr>
<td class="no-js"> This Application Requires JS to Work </td>
</tr>
</noscript>
<LineTableRow loading={$contactsQuery.isLoading} />
</thead>
<tbody>
Expand Down Expand Up @@ -242,6 +247,13 @@
}
}
.no-js {
color: red;
padding-left: 16px;
font-weight: bold;
font-size: 20px;
}
td {
$border: 0.75px solid var(--gray100);
border-left: $border;
Expand Down
8 changes: 8 additions & 0 deletions src/routes/(nav)/dashboard/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

<main>
<h1>Hello, {data.name}</h1>
<noscript>This Application Requires JS to Work </noscript>
<div class="header">
<h2>Members</h2>
<div class="counts">
Expand Down Expand Up @@ -162,4 +163,11 @@
margin: 12px 16px;
gap: 12px;
}
noscript {
color: red;
padding-left: 16px;
font-weight: bold;
font-size: 20px;
}
</style>

0 comments on commit cc4100c

Please sign in to comment.