Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Add conversions onboarding modal

Tim Wilsond160499335f6
diff --git a/apps/web/ui/layout/sidebar/conversions/conversions-onboarding-modal.tsx b/apps/web/ui/layout/sidebar/conversions/conversions-onboarding-modal.tsx
new file mode 100644
index 0000000000..70efca15a2
--- /dev/null
+++ b/apps/web/ui/layout/sidebar/conversions/conversions-onboarding-modal.tsx
@@ -0,0 +1,423 @@
+"use client";
+
+import { X } from "@/ui/shared/icons";
+import {
+ AnimatedSizeContainer,
+ Book2Small,
+ BookOpen,
+ CircleDollar,
+ Globe,
+ Modal,
+} from "@dub/ui";
+import { cn } from "@dub/utils";
+import Link from "next/link";
+import {
+ createContext,
+ CSSProperties,
+ Dispatch,
+ ReactNode,
+ SetStateAction,
+ useContext,
+ useState,
+} from "react";
+import { AuthJs } from "./icons/auth-js";
+import { Auth0 } from "./icons/auth0";
+import { Clerk } from "./icons/clerk";
+import { Custom } from "./icons/custom";
+import { Shopify } from "./icons/shopify";
+import { Stripe } from "./icons/stripe";
+import { Supabase } from "./icons/supabase";
+
+const PAYMENT_PROCESSORS = [
+ {
+ name: "Stripe",
+ icon: Stripe,
+ site: "stripe.com",
+ docs: "docs.stripe.com",
+ guide: "https://dub.co/docs/conversions/sales/stripe",
+ },
+ {
+ name: "Shopify",
+ icon: Shopify,
+ site: "shopify.com",
+ docs: "help.shopify.com",
+ guide: "https://dub.co/docs/conversions/sales/shopify",
+ },
+ {
+ name: "Custom Payments",
+ shortName: "Custom",
+ icon: Custom,
+ guide: "https://dub.co/docs/conversions/quickstart", // TODO: [Conversions] update guide URL
+ },
+];
+
+const AUTH_PROVIDERS = [
+ {
+ name: "Auth.js",
+ icon: AuthJs,
+ guide: "https://dub.co/docs/conversions/leads/next-auth",
+ },
+ {
+ name: "Clerk",
+ icon: Clerk,
+ guide: "https://dub.co/docs/conversions/leads/clerk",
+ },
+ {
+ name: "Supabase",
+ icon: Supabase,
+ guide: "https://dub.co/docs/conversions/leads/supabase-auth",
+ },
+ {
+ name: "Auth0",
+ icon: Auth0,
+ guide: "https://dub.co/docs/conversions/leads/auth0",
+ },
+ {
+ name: "Custom Auth",
+ shortName: "Custom",
+ icon: Custom,
+ guide: "https://dub.co/docs/conversions/quickstart", // TODO: [Conversions] update guide URL
+ },
+ {
+ name: "Shopify",
+ icon: Shopify,
+ hidden: true,
+ guide: "https://dub.co/docs/conversions/sales/shopify",
+ },
+];
+
+const ConversionOnboardingModalContext = createContext<{
+ paymentProcessorIndex: number | null;
+ setPaymentProcessorIndex: Dispatch<SetStateAction<number | null>>;
+ authProviderIndex: number | null;
+ setAuthProviderIndex: Dispatch<SetStateAction<number | null>>;
+}>({
+ paymentProcessorIndex: null,
+ setPaymentProcessorIndex: () => {},
+ authProviderIndex: null,
+ setAuthProviderIndex: () => {},
+});
+
+function ConversionOnboardingModal({
+ showConversionOnboardingModal,
+ setShowConversionOnboardingModal,
+}: {
+ showConversionOnboardingModal: boolean;
+ setShowConversionOnboardingModal: Dispatch<SetStateAction<boolean>>;
+}) {
+ return (
+ <Modal
+ showModal={showConversionOnboardingModal}
+ setShowModal={setShowConversionOnboardingModal}
+ className="max-h-[calc(100dvh-100px)] max-w-xl"
+ >
+ <ConversionOnboardingModalInner
+ setShowConversionOnboardingModal={setShowConversionOnboardingModal}
+ />
+ </Modal>
+ );
+}
+
+function ConversionOnboardingModalInner({
+ setShowConversionOnboardingModal,
+}: {
+ setShowConversionOnboardingModal: Dispatch<SetStateAction<boolean>>;
+}) {
+ const [paymentProcessorIndex, setPaymentProcessorIndex] = useState<
+ number | null
+ >(null);
+
+ const [authProviderIndex, setAuthProviderIndex] = useState<number | null>(
+ null,
+ );
+
+ return (
+ <AnimatedSizeContainer
+ height
+ transition={{ duration: 0.1, ease: "easeInOut" }}
+ >
+ <div className="p-4 sm:p-8">
+ <button
+ type="button"
+ onClick={() => setShowConversionOnboardingModal(false)}
+ className="group absolute right-4 top-4 hidden rounded-full p-2 text-gray-500 transition-all duration-75 hover:bg-gray-100 focus:outline-none active:bg-gray-200 md:block"
+ >
+ <X className="h-5 w-5" />
+ </button>
+ <ConversionOnboardingModalContext.Provider
+ value={{
+ paymentProcessorIndex,
+ setPaymentProcessorIndex,
+ authProviderIndex,
+ setAuthProviderIndex,
+ }}
+ >
+ <ModalPage visible={paymentProcessorIndex === null}>
+ <PaymentProcessorSelection />
+ </ModalPage>
+ <ModalPage
+ visible={
+ paymentProcessorIndex !== null && authProviderIndex === null
+ }
+ >
+ <AuthProviderSelection />
+ </ModalPage>
+ <ModalPage
+ visible={
+ paymentProcessorIndex !== null && authProviderIndex !== null
+ }
+ >
+ <Docs />
+ </ModalPage>
+ </ConversionOnboardingModalContext.Provider>
+ </div>
+ </AnimatedSizeContainer>
+ );
+}
+
+function ModalPage({
+ children,
+ visible,
+}: {
+ children: ReactNode;
+ visible: boolean;
+}) {
+ return visible ? <div className="animate-fade-in">{children}</div> : null;
+}
+
+function PaymentProcessorSelection() {
+ const { setPaymentProcessorIndex, setAuthProviderIndex } = useContext(
+ ConversionOnboardingModalContext,
+ );
+
+ return (
+ <div>
+ <div className="flex size-12 items-center justify-center rounded-full border border-neutral-200 text-neutral-900">
+ <CircleDollar className="size-8 [&_*]:stroke-1 [&_circle]:hidden" />
+ </div>
+ <h3 className="mt-6 text-lg font-semibold text-neutral-800">
+ Set up conversion tracking
+ </h3>
+ <p className="mt-2 text-base text-neutral-500">
+ Select your payment processor to view our setup guides.
+ </p>
+ <div
+ className="mt-6 grid grid-cols-2 gap-4 sm:grid-cols-[repeat(var(--cols),minmax(0,1fr))]"
+ style={
+ {
+ "--cols": PAYMENT_PROCESSORS.length,
+ } as CSSProperties
+ }
+ >
+ {PAYMENT_PROCESSORS.map(({ icon: Icon, name, shortName }, index) => (
+ <button
+ key={index}
+ type="button"
+ className="group flex flex-col items-center rounded-lg bg-neutral-200/40 p-8 pb-6 transition-colors duration-100 hover:bg-neutral-200/60"
+ onClick={() => {
+ setPaymentProcessorIndex(index);
+ if (name === "Shopify") {
+ setAuthProviderIndex(
+ AUTH_PROVIDERS.findIndex(({ name }) => name === "Shopify"),
+ );
+ }
+ }}
+ >
+ <Icon className="h-11 transition-transform duration-100 group-hover:-translate-y-0.5" />
+ <span className="mt-3 text-center text-sm font-medium text-neutral-700 sm:mt-8">
+ {shortName || name}
+ </span>
+ </button>
+ ))}
+ </div>
+ </div>
+ );
+}
+
+function AuthProviderSelection() {
+ const authProviders = AUTH_PROVIDERS.filter(({ hidden }) => !hidden);
+
+ const {
+ paymentProcessorIndex,
+ setPaymentProcessorIndex,
+ setAuthProviderIndex,
+ } = useContext(ConversionOnboardingModalContext);
+
+ const paymentProcessor = PAYMENT_PROCESSORS[paymentProcessorIndex ?? 0];
+
+ return (
+ <div>
+ <div className="flex size-12 items-center justify-center rounded-lg border border-neutral-200 text-neutral-900">
+ <paymentProcessor.icon className="size-8" />
+ </div>
+ <h3 className="mt-6 text-lg font-semibold text-neutral-800">
+ {paymentProcessor.name}
+ </h3>
+ {paymentProcessor.site && (
+ <>
+ <div className="mt-2 grid grid-cols-2">
+ {[
+ { label: "Website", key: "site", icon: Globe },
+ { label: "Docs", key: "docs", icon: Book2Small },
+ ].map(({ label, key, icon: Icon }) => (
+ <div key={key}>
+ <span className="text-[0.625rem] uppercase text-neutral-500">
+ {label}
+ </span>
+ <Link
+ href={`//${paymentProcessor[key]}`}
+ target="_blank"
+ className="mt-1.5 flex items-center gap-2 text-neutral-800"
+ >
+ <Icon className="size-3" />
+ <span className="text-xs font-medium leading-none">
+ {paymentProcessor[key]}
+ </span>
+ </Link>
+ </div>
+ ))}
+ </div>
+ <hr className="mt-5 border-neutral-200" />
+ </>
+ )}
+
+ <p className="mt-5 text-sm leading-none text-neutral-500">
+ Select your auth provider
+ </p>
+ <div
+ className="mt-4 grid grid-cols-2 gap-4 sm:grid-cols-[repeat(var(--cols),minmax(0,1fr))] sm:gap-2"
+ style={
+ {
+ "--cols": authProviders.length,
+ } as CSSProperties
+ }
+ >
+ {authProviders.map(({ icon: Icon, name, shortName }, index) => (
+ <button
+ key={index}
+ type="button"
+ className="group flex flex-col items-center rounded-lg bg-neutral-200/40 p-8 pb-6 transition-colors duration-100 hover:bg-neutral-200/60"
+ onClick={() => setAuthProviderIndex(index)}
+ >
+ <Icon className="h-11 transition-transform duration-100 group-hover:-translate-y-0.5" />
+ <span className="mt-4 text-center text-sm font-medium text-neutral-700">
+ {shortName || name}
+ </span>
+ </button>
+ ))}
+ </div>
+ <div className="mt-6 flex justify-center">
+ <button
+ type="button"
+ className="text-sm leading-none text-neutral-500 underline transition-colors duration-75 hover:text-neutral-700"
+ onClick={() => setPaymentProcessorIndex(null)}
+ >
+ Back to payment processors
+ </button>
+ </div>
+ </div>
+ );
+}
+
+function Docs() {
+ const {
+ paymentProcessorIndex,
+ authProviderIndex,
+ setPaymentProcessorIndex,
+ setAuthProviderIndex,
+ } = useContext(ConversionOnboardingModalContext);
+
+ const paymentProcessor = PAYMENT_PROCESSORS[paymentProcessorIndex ?? 0];
+ const authProvider = AUTH_PROVIDERS[authProviderIndex ?? 0];
+
+ const isSameProvider =
+ (authProvider.shortName || authProvider.name) ===
+ (paymentProcessor.shortName || paymentProcessor.name);
+
+ return (
+ <div>
+ <div className="flex items-center gap-2">
+ <div className="flex size-12 items-center justify-center rounded-lg border border-neutral-200 text-neutral-900">
+ <paymentProcessor.icon className="size-8" />
+ </div>
+ {!isSameProvider && (
+ <>
+ <span className="text-neutral-500">+</span>
+ <div className="flex size-12 items-center justify-center rounded-lg border border-neutral-200 text-neutral-900">
+ <authProvider.icon className="size-8" />
+ </div>
+ </>
+ )}
+ </div>
+ <h3 className="mt-6 text-lg font-semibold text-neutral-800">
+ {paymentProcessor.name}
+ {paymentProcessor.name !== authProvider.name && (
+ <>
+ {" "}
+ <span className="text-neutral-500">+</span> {authProvider.name}
+ </>
+ )}
+ </h3>
+ <div
+ className={cn(
+ "mt-6 grid grid-cols-1 gap-4 sm:grid-cols-2",
+ isSameProvider && "mx-auto max-w-xs sm:grid-cols-1",
+ )}
+ >
+ {[
+ {
+ name: paymentProcessor.shortName || paymentProcessor.name,
+ url: paymentProcessor.guide,
+ },
+ ...(!isSameProvider
+ ? [{ name: authProvider.name, url: authProvider.guide }]
+ : []),
+ ].map(({ name, url }) => (
+ <Link
+ key={name}
+ href={url || "https://dub.co/docs/conversions/quickstart"}
+ target="_blank"
+ className="group flex flex-col items-center rounded-lg bg-neutral-200/40 p-8 pb-6 transition-colors duration-100 hover:bg-neutral-200/60"
+ >
+ <div className="aspect-video w-full rounded bg-neutral-300 shadow-sm"></div>
+ <span className="mt-6 flex items-center gap-2 text-left text-sm font-medium text-neutral-700">
+ <BookOpen className="size-4" />
+ Read {name} guide
+ </span>
+ </Link>
+ ))}
+ </div>
+ <div className="mt-6 flex justify-center">
+ <button
+ type="button"
+ className="text-sm leading-none text-neutral-500 underline transition-colors duration-75 hover:text-neutral-700"
+ onClick={() => {
+ setAuthProviderIndex(null);
+ if (paymentProcessor.name === "Shopify")
+ setPaymentProcessorIndex(null);
+ }}
+ >
+ Back to{" "}
+ {paymentProcessor.name === "Shopify"
+ ? "payment processors"
+ : "auth providers"}
+ </button>
+ </div>
+ </div>
+ );
+}
+
+export function useConversionOnboardingModal() {
+ const [showConversionOnboardingModal, setShowConversionOnboardingModal] =
+ useState(false);
+
+ return {
+ setShowConversionOnboardingModal,
+ conversionOnboardingModal: (
+ <ConversionOnboardingModal
+ showConversionOnboardingModal={showConversionOnboardingModal}
+ setShowConversionOnboardingModal={setShowConversionOnboardingModal}
+ />
+ ),
+ };
+}
diff --git a/apps/web/ui/layout/sidebar/conversions/conversions-onboarding.tsx b/apps/web/ui/layout/sidebar/conversions/conversions-onboarding.tsx
index 37df46c890..43aa5a8b14 100644
--- a/apps/web/ui/layout/sidebar/conversions/conversions-onboarding.tsx
+++ b/apps/web/ui/layout/sidebar/conversions/conversions-onboarding.tsx
@@ -7,6 +7,7 @@ import {
} from "@/lib/workspace/use-workspace-store";
import { X } from "@/ui/shared/icons";
import { Book2Small, useMediaQuery } from "@dub/ui";
+import { useConversionOnboardingModal } from "./conversions-onboarding-modal";
import { ConversionOnboardingPopup } from "./conversions-onboarding-popup";
export function ConversionsOnboarding({
@@ -28,6 +29,9 @@ export function ConversionsOnboarding({
STORE_KEYS.conversionsOnboarding,
);
+ const { setShowConversionOnboardingModal, conversionOnboardingModal } =
+ useConversionOnboardingModal();
+
const showConversionsOnboarding =
!loading &&
!loadingConversionsOnboarding &&
@@ -40,34 +44,39 @@ export function ConversionsOnboarding({
const showPopup = !isMobile && !conversionsOnboarding;
- return showPopup ? (
- <ConversionOnboardingPopup
- referenceElement={referenceElement}
- onCTA={() => {
- alert("open modal");
- setConversionsOnboarding("nav-button");
- }}
- onDismiss={() => setConversionsOnboarding("nav-button")}
- />
- ) : (
- <div className="relative mt-3">
- <button
- type="button"
- className="flex w-full items-center gap-2 rounded-md bg-neutral-900/5 px-2 py-1.5 text-xs text-neutral-600 transition-colors duration-100 hover:bg-neutral-900/10"
- onClick={() => alert("open modal")}
- >
- <Book2Small className="size-3 text-neutral-800" />
- View setup guides
- </button>
- <div className="absolute right-0 top-0 flex h-full items-center p-1">
- <button
- type="button"
- className="rounded p-1 transition-colors duration-100 hover:bg-neutral-900/5"
- onClick={() => setConversionsOnboarding("dismissed")}
- >
- <X className="size-3 text-neutral-500" />
- </button>
- </div>
- </div>
+ return (
+ <>
+ {conversionOnboardingModal}
+ {showPopup ? (
+ <ConversionOnboardingPopup
+ referenceElement={referenceElement}
+ onCTA={() => {
+ setShowConversionOnboardingModal(true);
+ setConversionsOnboarding("nav-button");
+ }}
+ onDismiss={() => setConversionsOnboarding("nav-button")}
+ />
+ ) : (
+ <div className="relative mt-3">
+ <button
+ type="button"
+ className="flex w-full items-center gap-2 rounded-md bg-neutral-900/5 px-2 py-1.5 text-xs text-neutral-600 transition-colors duration-100 hover:bg-neutral-900/10"
+ onClick={() => setShowConversionOnboardingModal(true)}
+ >
+ <Book2Small className="size-3 text-neutral-800" />
+ View setup guides
+ </button>
+ <div className="absolute right-0 top-0 flex h-full items-center p-1">
+ <button
+ type="button"
+ className="rounded p-1 transition-colors duration-100 hover:bg-neutral-900/5"
+ onClick={() => setConversionsOnboarding("dismissed")}
+ >
+ <X className="size-3 text-neutral-500" />
+ </button>
+ </div>
+ </div>
+ )}
+ </>
);
}
diff --git a/apps/web/ui/layout/sidebar/conversions/icons/auth-js.tsx b/apps/web/ui/layout/sidebar/conversions/icons/auth-js.tsx
new file mode 100644
index 0000000000..c0caafae01
--- /dev/null
+++ b/apps/web/ui/layout/sidebar/conversions/icons/auth-js.tsx
@@ -0,0 +1,97 @@
+import { SVGProps, useId } from "react";
+
+export function AuthJs(props: SVGProps<SVGSVGElement>) {
+ const id = useId();
+
+ return (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="35"
+ height="39"
+ fill="none"
+ viewBox="0 0 35 39"
+ {...props}
+ >
+ <g clipPath={`url(#${id}-a)`}>
+ <path
+ fill={`url(#${id}-b)`}
+ fillRule="evenodd"
+ d="M33.941 5.553 4.926 27.6C1.363 21.148.13 13.364.037 8.696V5.838c0-.416.452-.658.677-.727A6523 6523 0 0 1 15.77.59a5.2 5.2 0 0 1 1.25-.208h.016c.174 0 .667.041 1.25.208.584.166 10.28 3.082 15.056 4.52.168.051.46.199.6.442"
+ clipRule="evenodd"
+ ></path>
+ <path
+ fill={`url(#${id}-c)`}
+ fillRule="evenodd"
+ d="M4.926 27.63 33.941 5.582a.57.57 0 0 1 .078.285v2.858c-.156 7.915-3.595 24.783-16.098 28.939-.173.07-.583.208-.833.208h-.12c-.25 0-.66-.139-.834-.208-5.127-1.705-8.73-5.547-11.208-10.034"
+ clipRule="evenodd"
+ ></path>
+ <path
+ fill={`url(#${id}-d)`}
+ fillOpacity="0.21"
+ d="M18.19.591a5.2 5.2 0 0 0-1.25-.208l-.052 37.534h.104c.25 0 .66-.139.834-.208C30.335 33.544 33.775 16.642 33.93 8.712V5.85c0-.416-.451-.66-.677-.729A6483 6483 0 0 0 18.19.591"
+ ></path>
+ <path
+ fill="#E3E2FA"
+ d="M17.08 26.62c4.29 0 7.766-3.45 7.766-7.704 0-4.256-3.477-7.705-7.766-7.705s-7.766 3.45-7.766 7.705 3.477 7.704 7.766 7.704"
+ ></path>
+ <path
+ fill={`url(#${id}-e)`}
+ fillRule="evenodd"
+ d="M15.673 20.583c-.59.052-2.084-.209-2.814-.833-.784-.671-1.199-1.562-1.199-2.864 0-1.614 1.46-3.331 3.492-3.28 1.93.05 3.233 1.137 3.492 2.864.136.901-.002 1.334-.11 1.67l-.046.152c-.052.173-.125.552 0 .677s2.033 1.96 2.97 2.863c.088.104.262.364.262.572v.99c0 .156-.042.208-.209.208h-2.085c-.121-.018-.365-.135-.365-.469 0-.355-.038-.407-.113-.512q-.02-.026-.043-.06c-.104-.157-.313-.157-.521-.157q-.313 0-.47-.156c-.104-.104-.104-.26-.051-.468.052-.208 0-.417-.105-.469l-.057-.031c-.114-.065-.297-.169-.516-.125-.26.052-.625 0-.834-.208s-.47-.377-.678-.364m-1.407-3.957a.781.781 0 1 0 0-1.563.781.781 0 0 0 0 1.563"
+ clipRule="evenodd"
+ ></path>
+ </g>
+ <defs>
+ <linearGradient
+ id={`${id}-b`}
+ x1="3.216"
+ x2="15.866"
+ y1="16.052"
+ y2="2.815"
+ gradientUnits="userSpaceOnUse"
+ >
+ <stop stopColor="#45FFC8"></stop>
+ <stop offset="1" stopColor="#1DBBF1"></stop>
+ </linearGradient>
+ <linearGradient
+ id={`${id}-c`}
+ x1="12.025"
+ x2="27.758"
+ y1="23.698"
+ y2="31.366"
+ gradientUnits="userSpaceOnUse"
+ >
+ <stop stopColor="#D14AE8"></stop>
+ <stop offset="0.552" stopColor="#B628E3"></stop>
+ <stop offset="1" stopColor="#8315FD"></stop>
+ </linearGradient>
+ <linearGradient
+ id={`${id}-d`}
+ x1="25.368"
+ x2="25.368"
+ y1="3.923"
+ y2="30.004"
+ gradientUnits="userSpaceOnUse"
+ >
+ <stop stopColor="#20ABF5"></stop>
+ <stop offset="0.398" stopColor="#2A8CC3"></stop>
+ <stop offset="1" stopColor="#A104DC"></stop>
+ </linearGradient>
+ <linearGradient
+ id={`${id}-e`}
+ x1="14.683"
+ x2="21.034"
+ y1="16.522"
+ y2="22.933"
+ gradientUnits="userSpaceOnUse"
+ >
+ <stop stopColor="#FE5B01"></stop>
+ <stop offset="1" stopColor="#FFB200"></stop>
+ </linearGradient>
+ <clipPath id={`${id}-a`}>
+ <path fill="#fff" d="M.037.383h34.118V38.03H.037z"></path>
+ </clipPath>
+ </defs>
+ </svg>
+ );
+}
diff --git a/apps/web/ui/layout/sidebar/conversions/icons/auth0.tsx b/apps/web/ui/layout/sidebar/conversions/icons/auth0.tsx
new file mode 100644
index 0000000000..73459aa40e
--- /dev/null
+++ b/apps/web/ui/layout/sidebar/conversions/icons/auth0.tsx
@@ -0,0 +1,19 @@
+import { SVGProps } from "react";
+
+export function Auth0(props: SVGProps<SVGSVGElement>) {
+ return (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="41"
+ height="40"
+ fill="none"
+ viewBox="0 0 41 40"
+ {...props}
+ >
+ <path
+ fill="#000"
+ d="M7.436 18.013c6.012-.99 10.721-5.96 11.711-11.967l.332-2.89c.08-.46-.229-1.096-.81-1.052-4.543.353-8.825 1.851-11.214 2.827A3.145 3.145 0 0 0 5.5 7.842v9.424c0 .56.5.983 1.053.894l.883-.143zM22.046 6.05c.99 6.01 5.7 10.977 11.711 11.967l.884.143a.905.905 0 0 0 1.052-.894V7.842a3.15 3.15 0 0 0-1.954-2.911c-2.386-.976-6.671-2.474-11.214-2.827-.582-.044-.884.6-.814 1.052l.331 2.89zM33.753 20.654c-8.213 1.62-12.027 7.079-12.027 17.415 0 .519.515.876.946.589 3.777-2.547 12.09-9.196 12.948-17.514.033-1.05-1.278-.556-1.867-.49M7.439 20.658c8.213 1.62 12.027 7.078 12.027 17.415 0 .519-.515.876-.946.589-3.777-2.548-12.09-9.196-12.948-17.515-.033-1.049 1.278-.555 1.867-.49"
+ ></path>
+ </svg>
+ );
+}
diff --git a/apps/web/ui/layout/sidebar/conversions/icons/clerk.tsx b/apps/web/ui/layout/sidebar/conversions/icons/clerk.tsx
new file mode 100644
index 0000000000..d6770acdcf
--- /dev/null
+++ b/apps/web/ui/layout/sidebar/conversions/icons/clerk.tsx
@@ -0,0 +1,24 @@
+import { SVGProps } from "react";
+
+export function Clerk(props: SVGProps<SVGSVGElement>) {
+ return (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="41"
+ height="40"
+ fill="none"
+ viewBox="0 0 41 40"
+ {...props}
+ >
+ <path
+ fill="#654BF6"
+ fillOpacity="0.502"
+ d="m31.488 6.49-4.415 4.402a.876.876 0 0 1-1.074.128 10.53 10.53 0 0 0-11.426.37 10.471 10.471 0 0 0-3 14.011.87.87 0 0 1-.13 1.067L7.029 30.87a.88.88 0 0 1-1.043.15.9.9 0 0 1-.282-.246A18.29 18.29 0 0 1 8.951 5.786a18.428 18.428 0 0 1 22.438-.62.87.87 0 0 1 .1 1.324"
+ ></path>
+ <path
+ fill="#654BF6"
+ d="m31.483 33.481-4.416-4.402a.876.876 0 0 0-1.074-.128 10.53 10.53 0 0 1-10.854 0 .88.88 0 0 0-1.074.128l-4.416 4.402a.875.875 0 0 0-.157 1.055c.063.112.15.209.254.283a18.42 18.42 0 0 0 10.817 3.508c3.887 0 7.674-1.228 10.818-3.508a.873.873 0 0 0 .102-1.338M20.576 25.24c2.902 0 5.254-2.346 5.254-5.238s-2.352-5.236-5.254-5.236-5.253 2.344-5.253 5.236 2.352 5.237 5.253 5.237"
+ ></path>
+ </svg>
+ );
+}
diff --git a/apps/web/ui/layout/sidebar/conversions/icons/custom.tsx b/apps/web/ui/layout/sidebar/conversions/icons/custom.tsx
new file mode 100644
index 0000000000..c19e66d379
--- /dev/null
+++ b/apps/web/ui/layout/sidebar/conversions/icons/custom.tsx
@@ -0,0 +1,23 @@
+import { SVGProps } from "react";
+
+export function Custom(props: SVGProps<SVGSVGElement>) {
+ return (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="41"
+ height="40"
+ fill="none"
+ viewBox="0 0 41 40"
+ {...props}
+ >
+ <rect width="40" height="40" x="0.333" fill="#FED7AA" rx="20"></rect>
+ <path
+ stroke="#9A3412"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.728"
+ d="M15.533 24.48 11.053 20l4.48-4.48M25.133 24.48l4.48-4.48-4.48-4.48M18.413 28l3.84-16"
+ ></path>
+ </svg>
+ );
+}
diff --git a/apps/web/ui/layout/sidebar/conversions/icons/shopify.tsx b/apps/web/ui/layout/sidebar/conversions/icons/shopify.tsx
new file mode 100644
index 0000000000..a5eedb652e
--- /dev/null
+++ b/apps/web/ui/layout/sidebar/conversions/icons/shopify.tsx
@@ -0,0 +1,41 @@
+import { SVGProps, useId } from "react";
+
+export function Shopify(props: SVGProps<SVGSVGElement>) {
+ const id = useId();
+ return (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="40"
+ height="48"
+ fill="none"
+ viewBox="0 0 40 48"
+ {...props}
+ >
+ <mask
+ id={`${id}-mask`}
+ width="40"
+ height="46"
+ x="0"
+ y="1"
+ maskUnits="userSpaceOnUse"
+ style={{ maskType: "luminance" }}
+ >
+ <path fill="#fff" d="M0 1.203h40v45.62H0z"></path>
+ </mask>
+ <g mask={`url(#${id}-mask)`}>
+ <path
+ fill="#95BF46"
+ d="M34.965 10.162a.44.44 0 0 0-.397-.368c-.165-.014-3.653-.273-3.653-.273l-2.69-2.671c-.265-.267-.785-.186-.987-.126-.03.008-.53.163-1.356.418-.81-2.329-2.238-4.469-4.75-4.469q-.105 0-.213.007c-.714-.945-1.6-1.356-2.364-1.356-5.854 0-8.651 7.318-9.528 11.037L4.93 13.63c-1.27.399-1.31.439-1.476 1.635-.126.906-3.448 26.598-3.448 26.598l25.887 4.85L39.92 43.68s-4.925-33.29-4.955-33.518M24.45 7.585l-2.19.678.002-.472c0-1.448-.201-2.613-.524-3.537 1.295.162 2.157 1.636 2.712 3.331m-4.318-3.044c.36.902.594 2.196.594 3.943 0 .09 0 .171-.002.254l-4.523 1.4c.87-3.361 2.503-4.985 3.931-5.597m-1.74-1.647c.253 0 .508.086.752.254-1.876.883-3.887 3.106-4.737 7.546l-3.576 1.108c.995-3.387 3.357-8.908 7.562-8.908"
+ ></path>
+ <path
+ fill="#5E8E3E"
+ d="M34.568 9.794c-.165-.014-3.654-.273-3.654-.273s-2.423-2.405-2.689-2.672a.66.66 0 0 0-.374-.171l-1.957 40.036 14.025-3.034s-4.924-33.29-4.955-33.518a.44.44 0 0 0-.396-.368"
+ ></path>
+ <path
+ fill="#fff"
+ d="m21.131 17.544-1.73 5.145s-1.515-.81-3.372-.81c-2.723 0-2.86 1.71-2.86 2.14 0 2.35 6.125 3.25 6.125 8.754 0 4.33-2.747 7.118-6.45 7.118-4.444 0-6.716-2.765-6.716-2.765l1.19-3.931S9.654 35.2 11.625 35.2c1.288 0 1.812-1.014 1.812-1.755 0-3.065-5.025-3.202-5.025-8.238 0-4.239 3.042-8.341 9.184-8.341 2.366 0 3.535.678 3.535.678"
+ ></path>
+ </g>
+ </svg>
+ );
+}
diff --git a/apps/web/ui/layout/sidebar/conversions/icons/stripe.tsx b/apps/web/ui/layout/sidebar/conversions/icons/stripe.tsx
new file mode 100644
index 0000000000..7d1c4abbc9
--- /dev/null
+++ b/apps/web/ui/layout/sidebar/conversions/icons/stripe.tsx
@@ -0,0 +1,32 @@
+import { SVGProps, useId } from "react";
+
+export function Stripe(props: SVGProps<SVGSVGElement>) {
+ const id = useId();
+ return (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="45"
+ height="44"
+ fill="none"
+ viewBox="0 0 45 44"
+ {...props}
+ >
+ <g
+ fillRule="evenodd"
+ clipPath={`url(#${id}-clip-path)`}
+ clipRule="evenodd"
+ >
+ <path fill="#635BFF" d="M.667 0h44v44h-44z"></path>
+ <path
+ fill="#fff"
+ d="M20.95 17.105c0-1.034.848-1.441 2.256-1.441 2.024 0 4.576.616 6.6 1.705V11.12c-2.212-.88-4.39-1.221-6.59-1.221-5.4 0-8.987 2.816-8.987 7.524 0 7.337 10.11 6.17 10.11 9.339 0 1.22-1.067 1.617-2.552 1.617-2.211 0-5.027-.902-7.26-2.123v6.325a18.4 18.4 0 0 0 7.26 1.518c5.533 0 9.339-2.74 9.339-7.502-.045-7.92-10.175-6.512-10.175-9.493"
+ ></path>
+ </g>
+ <defs>
+ <clipPath id={`${id}-clip-path`}>
+ <rect width="44" height="44" x="0.667" fill="#fff" rx="6"></rect>
+ </clipPath>
+ </defs>
+ </svg>
+ );
+}
diff --git a/apps/web/ui/layout/sidebar/conversions/icons/supabase.tsx b/apps/web/ui/layout/sidebar/conversions/icons/supabase.tsx
new file mode 100644
index 0000000000..5975ec7b7e
--- /dev/null
+++ b/apps/web/ui/layout/sidebar/conversions/icons/supabase.tsx
@@ -0,0 +1,53 @@
+import { SVGProps, useId } from "react";
+
+export function Supabase(props: SVGProps<SVGSVGElement>) {
+ const id = useId();
+ return (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="41"
+ height="40"
+ fill="none"
+ viewBox="0 0 41 40"
+ {...props}
+ >
+ <path
+ fill={`url(#${id}-a)`}
+ d="M23.028 37.723c-.939 1.18-2.842.534-2.864-.973l-.331-22.031h14.843c2.688 0 4.188 3.099 2.516 5.2z"
+ ></path>
+ <path
+ fill={`url(#${id}-b)`}
+ fillOpacity="0.2"
+ d="M23.028 37.723c-.939 1.18-2.842.534-2.864-.973l-.331-22.031h14.843c2.688 0 4.188 3.099 2.516 5.2z"
+ ></path>
+ <path
+ fill="#3ECF8E"
+ d="M16.991 2.277c.939-1.18 2.842-.533 2.864.973L20 25.282H5.343c-2.688 0-4.188-3.1-2.516-5.2z"
+ ></path>
+ <defs>
+ <linearGradient
+ id={`${id}-a`}
+ x1="19.833"
+ x2="33.017"
+ y1="19.604"
+ y2="25.144"
+ gradientUnits="userSpaceOnUse"
+ >
+ <stop stopColor="#249361"></stop>
+ <stop offset="1" stopColor="#3ECF8E"></stop>
+ </linearGradient>
+ <linearGradient
+ id={`${id}-b`}
+ x1="13.985"
+ x2="19.983"
+ y1="11.611"
+ y2="22.924"
+ gradientUnits="userSpaceOnUse"
+ >
+ <stop></stop>
+ <stop offset="1" stopOpacity="0"></stop>
+ </linearGradient>
+ </defs>
+ </svg>
+ );
+}