mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-10 04:22:18 +00:00
Add UTM info to all outgoing links to cloud
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
import { IsLoggedIn } from '$lib/components';
|
||||
import { GITHUB_REPO_LINK, GITHUB_STARS } from '$lib/constants';
|
||||
import type { NavLink } from './MainNav.svelte';
|
||||
import { PUBLIC_APPWRITE_DASHBOARD } from '$env/static/public';
|
||||
import { getUtmSourceForLink } from '$lib/utils/utm';
|
||||
|
||||
export let open = false;
|
||||
export let links: NavLink[];
|
||||
@@ -17,7 +19,10 @@
|
||||
<nav class="web-side-nav web-is-not-desktop" class:hidden={!open}>
|
||||
<div class="web-side-nav-wrapper ps-4 pe-4">
|
||||
<div class="flex items-center gap-2 px-4">
|
||||
<a href="https://cloud.appwrite.io/register" class="web-button is-secondary flex-1">
|
||||
<a
|
||||
href={`${PUBLIC_APPWRITE_DASHBOARD}/register?${getUtmSourceForLink()}`}
|
||||
class="web-button is-secondary flex-1"
|
||||
>
|
||||
Sign up
|
||||
</a>
|
||||
<IsLoggedIn classes="flex-1" />
|
||||
|
||||
Reference in New Issue
Block a user