Skip to content

Commit

Permalink
Merge pull request #4 from managemeals/umami-dev
Browse files Browse the repository at this point in the history
Remove umami on dev
  • Loading branch information
hilmarp authored Sep 7, 2024
2 parents 3bf6c5b + 0dd1981 commit 7720da5
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 10 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ PUBLIC_SHOW_SUBSCRIPTION_PAGE=false
PUBLIC_EMAIL_VERIFY_ENABLED=false
ORIGIN=http://localhost:8309
BODY_SIZE_LIMIT=Infinity
PUBLIC_UMAMI_ANALYTICS_ENABLED=false
17 changes: 14 additions & 3 deletions src/routes/(marketing)/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,20 @@

<footer class="bg-slate-200 px-3 py-10">
<div class="container mx-auto flex flex-col lg:flex-row gap-5 justify-between">
<div>
<h4 class="font-semibold text-lg mb-1">ManageMeals</h4>
<p>ManageMeals is a simple, easy-to-use platform to manage recipes.</p>
<div class="flex flex-col gap-5">
<div>
<h4 class="font-semibold text-lg mb-1">ManageMeals</h4>
<p>ManageMeals is a simple, easy-to-use platform to manage recipes.</p>
</div>
<div>
<p>
Made by <a
href="https://hilmarp.com"
target="_blank"
class="hover:underline text-blue-500">Hilmar</a
>.
</p>
</div>
</div>
<div class="flex flex-col md:flex-row gap-10">
<div class="flex flex-col gap-1">
Expand Down
17 changes: 10 additions & 7 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
<script lang="ts">
import { env } from '$env/dynamic/public';
import { PUBLIC_UMAMI_ANALYTICS_ENABLED } from '$env/static/public';
import '../app.css';
import '../print.css';
</script>

<svelte:head>
<script
async
src="https://umami.meganice.online/script.js"
data-website-id={env.PUBLIC_MOCK_INSTANCE === 'yes'
? 'bfe1bea5-5243-4965-a619-dd2ed703e9b7'
: 'd8293365-5239-4532-97cd-a3eaf328de48'}
></script>
{#if PUBLIC_UMAMI_ANALYTICS_ENABLED === 'true'}
<script
async
src="https://umami.meganice.online/script.js"
data-website-id={env.PUBLIC_MOCK_INSTANCE === 'yes'
? 'bfe1bea5-5243-4965-a619-dd2ed703e9b7'
: 'd8293365-5239-4532-97cd-a3eaf328de48'}
></script>
{/if}
</svelte:head>

<slot />

0 comments on commit 7720da5

Please sign in to comment.