diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..4ae8806 --- /dev/null +++ b/.env.example @@ -0,0 +1 @@ +PUBLIC_GOOGLE_ANALYTICS_ID=G-XXXXXXXXXX \ No newline at end of file diff --git a/messages/en.json b/messages/en.json index 6fdaf6f..f01b4c6 100644 --- a/messages/en.json +++ b/messages/en.json @@ -47,6 +47,11 @@ "socials.facebook.cta": "Facebook", "socials.facebook.href": "https://www.facebook.com/SeattleCommNet", + "cookieBanner.message": "We use cookies to improve your experience.
By clicking \"Accept\", you consent to the use of analytics cookies.", + "cookieBanner.accept": "Accept", + "cookieBanner.deny": "Deny", + "cookieBanner.settings": "Cookie Settings", + "=== PAGES HOME ===" : "comment", diff --git a/src/lib/components/Analytics.svelte b/src/lib/components/Analytics.svelte new file mode 100644 index 0000000..a17fd8b --- /dev/null +++ b/src/lib/components/Analytics.svelte @@ -0,0 +1,116 @@ + + + + + + + + + +{#if showBanner} + +{/if} + + diff --git a/src/lib/components/Button.svelte b/src/lib/components/Button.svelte index c5520b4..3720aca 100644 --- a/src/lib/components/Button.svelte +++ b/src/lib/components/Button.svelte @@ -1,10 +1,11 @@ - - {@render children()} - {#if arrow} - → - {/if} - +{#if href} + + {@render children()} + {#if arrow} + → + {/if} + +{:else} + +{/if}