Skip to content

Commit 0065c1a

Browse files
authored
Merge pull request #1979 from appwrite/init-fullpage
full init page
2 parents abc86f1 + 631fe09 commit 0065c1a

17 files changed

+138
-66
lines changed

src/lib/components/ProductsSubmenu.svelte

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@
6565
{
6666
label: 'Appwrite vs. Firebase',
6767
href: '/blog/post/open-source-firebase-alternative'
68+
},
69+
{
70+
label: 'Appwrite vs. Vercel',
71+
href: '/blog/post/open-source-vercel-alternative'
6872
}
6973
];
7074
</script>
@@ -183,8 +187,8 @@
183187
class="aspect-[3/1] max-w-[7.5rem] shrink-0 rounded-xl object-cover"
184188
/>
185189
<p class="text-pretty">
186-
Empowering Shopify merchants with real-time store monitoring using
187-
StoreAlert
190+
Appwrited helped reduce development time by 60%, and lower server costs
191+
by 40%.
188192
</p>
189193
</a>
190194
</div>

src/lib/components/shared/dialog.svelte

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
import { fade, scale } from 'svelte/transition';
33
import { createDialog, melt } from '@melt-ui/svelte';
44
import type { Snippet } from 'svelte';
5+
import { browser } from '$app/environment';
56
67
type Props = {
78
url: string;
89
title?: string;
910
children: Snippet;
11+
inlineVideo?: boolean;
1012
};
1113
1214
const {
@@ -17,10 +19,18 @@
1719
preventScroll: true
1820
});
1921
20-
const { url, title = 'YouTube video player', children }: Props = $props();
22+
const { url, title = 'YouTube video player', children, inlineVideo = true }: Props = $props();
2123
</script>
2224

23-
<div use:melt={$trigger} class="contents cursor-pointer">
25+
<div
26+
class="contents cursor-pointer"
27+
use:melt={inlineVideo ? $trigger : null}
28+
onclick={() => {
29+
if (!inlineVideo && browser && window) {
30+
window.open(url, '_blank');
31+
}
32+
}}
33+
>
2434
{@render children()}
2535
</div>
2636

src/routes/(init)/+layout.svelte

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
}
1010
1111
const { children }: Props = $props();
12-
const showLockUp = $state(
12+
const showLockUp = $derived(
1313
page.route.id?.includes('/init/tickets') &&
14-
!page.route.id?.includes('/init/tickets/[username]') &&
15-
!isStarted
14+
!page.route.id?.includes('/init/tickets/[username]')
1615
);
1716
</script>
1817

105 KB
Loading
91.7 KB
Loading
112 KB
Loading
107 KB
Loading
106 KB
Loading
19.3 KB
Loading
26.2 KB
Loading

0 commit comments

Comments
 (0)