diff --git a/src/lib/components/ui/Toggle.svelte b/src/lib/components/ui/Toggle.svelte new file mode 100644 index 0000000000..8272e5c31f --- /dev/null +++ b/src/lib/components/ui/Toggle.svelte @@ -0,0 +1,66 @@ + + +
+
+ {#each options as option, index} + + {/each} +
diff --git a/src/routes/contact-us/enterprise/+page.svelte b/src/routes/contact-us/enterprise/+page.svelte index 33476f1bd1..dd9bfb987c 100644 --- a/src/routes/contact-us/enterprise/+page.svelte +++ b/src/routes/contact-us/enterprise/+page.svelte @@ -6,7 +6,7 @@ import MainFooter from '../../../lib/components/MainFooter.svelte'; import Pink from '../bg.png'; import { loggedIn, user } from '$lib/utils/console'; - import { PUBLIC_GROWTH_ENDPOINT } from '$env/static/public'; + import { sendSalesEmail } from '$routes/contact-us'; let email = ''; let name = ''; @@ -23,21 +23,15 @@ const cloudEmail = loggedIn && $user?.email ? $user.email : undefined; - const response = await fetch(`${PUBLIC_GROWTH_ENDPOINT}/feedback/sales`, { - method: 'POST', - headers: { - 'Content-Type': 'application/json' - }, - body: JSON.stringify({ - email, - subject, - cloudEmail, - companyName, - companySize, - companyWebsite, - firstName: name, - message: useCase - }) + const response = await sendSalesEmail({ + email, + subject, + cloudEmail, + companyName, + companySize, + companyWebsite, + firstName: name, + message: useCase }); if (response.status >= 400) { diff --git a/src/routes/contact-us/index.ts b/src/routes/contact-us/index.ts new file mode 100644 index 0000000000..688df0eb13 --- /dev/null +++ b/src/routes/contact-us/index.ts @@ -0,0 +1,21 @@ +import { PUBLIC_GROWTH_ENDPOINT } from '$env/static/public'; + +export async function sendSalesEmail(body: { + email: string; + subject: string; + cloudEmail: string | undefined; + companyName: string; + companySize: string | null; + companyWebsite: string; + firstName: string; + message: string; + supportTier?: string | null; +}) { + return await fetch(`${PUBLIC_GROWTH_ENDPOINT}/feedback/sales`, { + method: 'POST', + headers: { + 'Content-Type': 'application/json' + }, + body: JSON.stringify(body) + }); +} diff --git a/src/routes/contact-us/premium-support/+page.svelte b/src/routes/contact-us/premium-support/+page.svelte new file mode 100644 index 0000000000..27844da05b --- /dev/null +++ b/src/routes/contact-us/premium-support/+page.svelte @@ -0,0 +1,292 @@ + + + + + {title} + + + + + + + + + + + + + + +
+ +
+ +
+
+
+
+
+
+ +
+
+
+ {#if submitted} +
+

+ Thank you for your submission +

+

+ Your details for the self hosted support have been + sent successfully. Our team will get back to you as + soon as possible. +

+ + Back to pricing + +
+ {:else} +
+

+ Premium support +

+

+ Looking for self hosted premium support? Let’s talk. +

+
+ {/if} +
+
+ {#if !submitted} +
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
    + +
    +
  • +
  • + + +
    + +
    +
  • +
  • + + +
  • +
  • + +