diff --git a/src/lib/components/support.svelte b/src/lib/components/support.svelte
new file mode 100644
index 000000000..7d9399556
--- /dev/null
+++ b/src/lib/components/support.svelte
@@ -0,0 +1,58 @@
+
+
+
+
+ {#if $app.themeInUse === 'light'}
+

+ {:else}
+

+ {/if}
+
Premium support
+
Get personalized support from the Appwrite team
+
+
+
+
troubleshooting
+
+
+
+
+
+
+
Community support
+
Get help from our community
+
+
+
+
+
+
diff --git a/src/lib/images/support/support-dark.png b/src/lib/images/support/support-dark.png
new file mode 100644
index 000000000..1fa5d0ae7
Binary files /dev/null and b/src/lib/images/support/support-dark.png differ
diff --git a/src/lib/images/support/support-light.png b/src/lib/images/support/support-light.png
new file mode 100644
index 000000000..426999a76
Binary files /dev/null and b/src/lib/images/support/support-light.png differ
diff --git a/src/lib/layout/header.svelte b/src/lib/layout/header.svelte
index 81accafc2..150522a31 100644
--- a/src/lib/layout/header.svelte
+++ b/src/lib/layout/header.svelte
@@ -10,9 +10,12 @@
import SystemMode from '$lib/images/mode/system-mode.svg';
import { slide } from 'svelte/transition';
import { page } from '$app/stores';
+ import Support from '$lib/components/support.svelte';
let showDropdown = false;
+ let showSupport = false;
let droplistElement: HTMLDivElement;
+ let supportElement: HTMLDivElement;
const onBlur = (event: MouseEvent) => {
if (
@@ -21,6 +24,12 @@
) {
showDropdown = false;
}
+ if (
+ showSupport &&
+ !(event.target === supportElement || supportElement.contains(event.target as Node))
+ ) {
+ showSupport = false;
+ }
};
@@ -39,13 +48,22 @@