Skip to content

Commit

Permalink
Merge branch 'main' into appwrite#1499-update-contributing-guide
Browse files Browse the repository at this point in the history
  • Loading branch information
gurjeetsinghvirdee authored Jan 30, 2025
2 parents 3313f2a + a56c652 commit c867e01
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
6 changes: 2 additions & 4 deletions src/lib/components/IsLoggedIn.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
import { browser } from '$app/environment';
import { page } from '$app/stores';
const ctaCopy = $page.data.ctaCopy;
export let classes = '';
const isLoggedIn = browser && 'loggedIn' in document.body.dataset;
function getTrackingEventName() {
return browser ? (isLoggedIn ? 'Go to console' : ctaCopy) : ctaCopy;
return browser ? (isLoggedIn ? 'Go to console' : 'Start building') : 'Start building';
}
</script>

Expand All @@ -26,5 +24,5 @@
})}
>
<span class="hidden group-[&[data-logged-in]]/body:block">Go to Console</span>
<span class="block group-[&[data-logged-in]]/body:hidden">{ctaCopy}</span>
<span class="block group-[&[data-logged-in]]/body:hidden">Start building</span>
</a>
4 changes: 1 addition & 3 deletions src/lib/layouts/Main.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
import MainNav from '$lib/components/MainNav.svelte';
import { page } from '$app/stores';
const ctaCopy = $page.data.ctaCopy;
export let omitMainId = false;
let theme: 'light' | 'dark' | null = 'dark';
Expand Down Expand Up @@ -167,7 +165,7 @@
<div class="web-mobile-header-end">
{#if !$isMobileNavOpen}
<a href={PUBLIC_APPWRITE_DASHBOARD} class="web-button">
<span class="text">{ctaCopy}</span>
<span class="text">Start building</span>
</a>
{/if}
<button
Expand Down
4 changes: 1 addition & 3 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
const description = DEFAULT_DESCRIPTION;
const ogImage = `${DEFAULT_HOST}/images/open-graph/website.png`;
const ctaCopy = $page.data.ctaCopy;
const infoBoxes: Array<{ label: string; description: string; icon: string }> = [
{
label: 'Self-Hosted',
Expand Down Expand Up @@ -156,7 +154,7 @@
posthog: { name: 'get-started-btn_hero_click' }
})}
>
{ctaCopy}
Start building
</a>

<AppwriteIn100Seconds />
Expand Down

0 comments on commit c867e01

Please sign in to comment.