Skip to content

Commit

Permalink
add cookie warning on pages that create cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
scosman committed Mar 13, 2024
1 parent dcaa344 commit a1c7dbd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/routes/(marketing)/login/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
<script lang="ts">
let isEurope = false
try {
isEurope = Intl.DateTimeFormat()
.resolvedOptions()
.timeZone.startsWith("Europe/")
} catch (e) {
/* continue */
}
</script>

<div
class="text-center content-center max-w-lg mx-auto min-h-[70vh] pb-12 flex items-center place-content-center"
>
<div class="flex flex-col w-64 lg:w-80">
<slot />
<div class="mt-8 {isEurope ? 'block' : 'hidden'}">
🍪 Logging in uses Cookies 🍪
</div>
</div>
</div>

0 comments on commit a1c7dbd

Please sign in to comment.