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.

Update partners onboarding

Tim Wilsonb5607cda98d4
diff --git a/apps/web/app/(ee)/partners.dub.co/(onboarding)/layout.tsx b/apps/web/app/(ee)/partners.dub.co/(onboarding)/layout.tsx
index 29e23977c8..9801174a28 100644
--- a/apps/web/app/(ee)/partners.dub.co/(onboarding)/layout.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/(onboarding)/layout.tsx
@@ -1,5 +1,7 @@
import Toolbar from "@/ui/layout/toolbar/toolbar";
import { Grid, Wordmark } from "@dub/ui";
+import { cn } from "@dub/utils";
+import Link from "next/link";
export default function PartnerOnboardingLayout({
children,
@@ -8,24 +10,61 @@ export default function PartnerOnboardingLayout({
}) {
return (
<>
- <div className="flex min-h-screen flex-col">
- <div className="fixed left-1/2 top-0 h-full w-[1280px] -translate-x-1/2 [mask-image:radial-gradient(50%_70%_at_50%_0%,black_70%,transparent)]">
+ <div className="absolute inset-0 isolate overflow-hidden bg-white">
+ {/* Grid */}
+ <div
+ className={cn(
+ "absolute inset-y-0 left-1/2 w-[1200px] -translate-x-1/2",
+ "[mask-composite:intersect] [mask-image:linear-gradient(black,transparent_320px),linear-gradient(90deg,transparent,black_5%,black_95%,transparent)]",
+ )}
+ >
<Grid
- cellSize={80}
- patternOffset={[-79.25, -59]}
+ cellSize={60}
+ patternOffset={[0.75, 0]}
className="text-neutral-200"
/>
</div>
- <div className="relative z-10 mt-10 flex w-full flex-col items-center justify-center px-3 text-center md:px-8">
- <div className="animate-slide-up-fade relative flex w-auto flex-col items-center [--offset:10px] [animation-duration:1.3s] [animation-fill-mode:both]">
- <Wordmark className="relative h-10" />
- <span className="text-sm font-medium text-neutral-700">
- Partner
- </span>
+
+ {/* Gradient */}
+ {[...Array(2)].map((_, idx) => (
+ <div
+ key={idx}
+ className={cn(
+ "absolute left-1/2 top-6 size-[80px] -translate-x-1/2 -translate-y-1/2 scale-x-[1.6]",
+ idx === 0 ? "mix-blend-overlay" : "opacity-10",
+ )}
+ >
+ {[...Array(idx === 0 ? 2 : 1)].map((_, idx) => (
+ <div
+ key={idx}
+ className={cn(
+ "absolute -inset-16 mix-blend-overlay blur-[50px] saturate-[2]",
+ "bg-[conic-gradient(from_90deg,#F00_5deg,#EAB308_63deg,#5CFF80_115deg,#1E00FF_170deg,#855AFC_220deg,#3A8BFD_286deg,#F00_360deg)]",
+ )}
+ />
+ ))}
+ </div>
+ ))}
+ </div>
+
+ <div className="relative flex min-h-screen w-full flex-col items-center justify-between">
+ <div className="grow basis-0">
+ <div className="pt-4">
+ <Link href="https://dub.co/home" target="_blank" className="block">
+ <Wordmark className="h-8" />
+ <div className="text-center text-sm font-semibold text-black/80">
+ Partners
+ </div>
+ </Link>
</div>
- {children}
</div>
+
+ <div className="w-full py-16">{children}</div>
+
+ {/* Empty div to center main content */}
+ <div className="grow basis-0" />
</div>
+
<Toolbar show={["help"]} />
</>
);
diff --git a/apps/web/app/(ee)/partners.dub.co/(onboarding)/onboarding/onboarding-form.tsx b/apps/web/app/(ee)/partners.dub.co/(onboarding)/onboarding/onboarding-form.tsx
index 098a92a6a8..2694d3feb8 100644
--- a/apps/web/app/(ee)/partners.dub.co/(onboarding)/onboarding/onboarding-form.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/(onboarding)/onboarding/onboarding-form.tsx
@@ -99,14 +99,14 @@ export function OnboardingForm({
<form
ref={formRef}
onSubmit={handleSubmit(async (data) => await executeAsync(data))}
- className="flex w-full flex-col gap-4 text-left"
+ className="flex w-full flex-col gap-6 text-left"
>
<label>
<span className="text-sm font-medium text-neutral-800">Full Name</span>
<input
type="text"
className={cn(
- "mt-2 block w-full rounded-md read-only:bg-neutral-100 read-only:text-neutral-500 focus:outline-none sm:text-sm",
+ "mt-1.5 block w-full rounded-md read-only:bg-neutral-100 read-only:text-neutral-500 focus:outline-none sm:text-sm",
errors.name
? "border-red-300 pr-10 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500"
: "border-neutral-300 text-neutral-900 placeholder-neutral-400 focus:border-neutral-500 focus:ring-neutral-500",
@@ -131,7 +131,7 @@ export function OnboardingForm({
<FileUpload
accept="images"
className={cn(
- "mt-2 size-20 rounded-full border border-neutral-300",
+ "mt-1.5 size-20 rounded-full border border-neutral-300",
errors.image && "border-0 ring-2 ring-red-500",
)}
iconClassName="size-5"
@@ -192,7 +192,7 @@ export function OnboardingForm({
</span>
<ReactTextareaAutosize
className={cn(
- "mt-2 block w-full rounded-md focus:outline-none sm:text-sm",
+ "mt-1.5 block w-full rounded-md focus:outline-none sm:text-sm",
errors.description
? "border-red-300 pr-10 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500"
: "border-neutral-300 text-neutral-900 placeholder-neutral-400 focus:border-neutral-500 focus:ring-neutral-500",
@@ -209,7 +209,7 @@ export function OnboardingForm({
<span className="text-sm font-medium text-neutral-800">
Profile Type
</span>
- <div className="mt-2">
+ <div className="mt-1.5">
<ToggleGroup
options={[
{
@@ -262,7 +262,7 @@ export function OnboardingForm({
<input
type="text"
className={cn(
- "mt-2 block w-full rounded-md read-only:bg-neutral-100 read-only:text-neutral-500 focus:outline-none sm:text-sm",
+ "mt-1.5 block w-full rounded-md read-only:bg-neutral-100 read-only:text-neutral-500 focus:outline-none sm:text-sm",
errors.companyName
? "border-red-300 pr-10 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500"
: "border-neutral-300 text-neutral-900 placeholder-neutral-400 focus:border-neutral-500 focus:ring-neutral-500",
@@ -284,7 +284,7 @@ export function OnboardingForm({
<Button
type="submit"
text="Continue"
- className="mt-2"
+ className="mt-1.5"
loading={isPending || isSubmitting || isSubmitSuccessful}
/>
</motion.div>
diff --git a/apps/web/app/(ee)/partners.dub.co/(onboarding)/onboarding/online-presence/page.tsx b/apps/web/app/(ee)/partners.dub.co/(onboarding)/onboarding/online-presence/page.tsx
index 06f545e56b..a33e61502a 100644
--- a/apps/web/app/(ee)/partners.dub.co/(onboarding)/onboarding/online-presence/page.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/(onboarding)/onboarding/online-presence/page.tsx
@@ -6,23 +6,20 @@ import { OnlinePresencePageClient } from "./page-client";
export default function OnlinePresencePage() {
return (
- <div className="relative mx-auto my-10 w-full max-w-[416px] md:mt-14">
- <div className="absolute inset-0 bg-white/60 [mask-composite:intersect] [mask-image:linear-gradient(90deg,transparent,black_10%,black_90%,transparent),linear-gradient(transparent,black_10%,black_90%,transparent)]" />
- <div className="relative">
- <h1 className="animate-slide-up-fade text-lg font-medium [--offset:8px] [animation-delay:250ms] [animation-duration:1s] [animation-fill-mode:both]">
- Your online presence
- </h1>
+ <div className="relative mx-auto w-full max-w-[416px] text-center md:mt-4">
+ <h1 className="animate-slide-up-fade text-lg font-medium [--offset:8px] [animation-delay:250ms] [animation-duration:1s] [animation-fill-mode:both]">
+ Your online presence
+ </h1>
- <p className="animate-slide-up-fade mt-2 text-sm text-neutral-600 [animation-delay:500ms] [animation-duration:1s] [animation-fill-mode:both]">
- These improve your reputation score and rank you higher. Verification
- is optional and can be done later.
- </p>
+ <p className="animate-slide-up-fade text-content-subtle mt-1 text-sm [animation-delay:500ms] [animation-duration:1s] [animation-fill-mode:both]">
+ These improve your reputation score and rank you higher. Verification is
+ optional and can be done later.
+ </p>
- <div className="animate-slide-up-fade mt-8 grid gap-4 [animation-delay:750ms] [animation-duration:1s] [animation-fill-mode:both]">
- <Suspense fallback={<OnlinePresenceForm partner={null} />}>
- <OnlinePresenceFormRSC />
- </Suspense>
- </div>
+ <div className="animate-slide-up-fade mt-8 grid gap-4 [animation-delay:750ms] [animation-duration:1s] [animation-fill-mode:both]">
+ <Suspense fallback={<OnlinePresenceForm partner={null} />}>
+ <OnlinePresenceFormRSC />
+ </Suspense>
</div>
</div>
);
diff --git a/apps/web/app/(ee)/partners.dub.co/(onboarding)/onboarding/page.tsx b/apps/web/app/(ee)/partners.dub.co/(onboarding)/onboarding/page.tsx
index 84e8d0cbe5..77ee733f41 100644
--- a/apps/web/app/(ee)/partners.dub.co/(onboarding)/onboarding/page.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/(onboarding)/onboarding/page.tsx
@@ -5,17 +5,14 @@ import { OnboardingForm } from "./onboarding-form";
export default function PartnerOnboarding() {
return (
- <div className="mx-auto my-10 flex w-full max-w-[480px] flex-col items-center md:mt-14">
+ <div className="mx-auto flex w-full max-w-[480px] flex-col items-center md:mt-4">
<h1 className="animate-slide-up-fade text-lg font-medium [--offset:8px] [animation-delay:250ms] [animation-duration:1s] [animation-fill-mode:both]">
- Complete your partner profile
+ Create your partner profile
</h1>
<div className="animate-slide-up-fade w-full rounded-xl p-8 [--offset:10px] [animation-delay:500ms] [animation-duration:1s] [animation-fill-mode:both]">
- <div className="absolute inset-0 bg-white/50 [mask-composite:intersect] [mask-image:linear-gradient(90deg,transparent,black_10%,black_90%,transparent),linear-gradient(transparent,black_10%,black_90%,transparent)]" />
- <div className="relative">
- <Suspense fallback={<OnboardingForm />}>
- <OnboardingFormRSC />
- </Suspense>
- </div>
+ <Suspense fallback={<OnboardingForm />}>
+ <OnboardingFormRSC />
+ </Suspense>
</div>
</div>
);
diff --git a/apps/web/app/(ee)/partners.dub.co/(onboarding)/onboarding/verify/page.tsx b/apps/web/app/(ee)/partners.dub.co/(onboarding)/onboarding/verify/page.tsx
index 1388dd5aad..d8b5797f16 100644
--- a/apps/web/app/(ee)/partners.dub.co/(onboarding)/onboarding/verify/page.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/(onboarding)/onboarding/verify/page.tsx
@@ -11,10 +11,9 @@ import { Suspense } from "react";
export default function OnboardingVerificationPage() {
return (
- <div className="relative mx-auto my-10 flex w-full max-w-[416px] flex-col items-center md:mt-14">
- <div className="absolute inset-0 bg-white/60 [mask-composite:intersect] [mask-image:linear-gradient(90deg,transparent,black_10%,black_90%,transparent),linear-gradient(transparent,black_10%,black_90%,transparent)]" />
- <h1 className="animate-slide-up-fade text-lg font-medium [--offset:8px] [animation-delay:250ms] [animation-duration:1s] [animation-fill-mode:both]">
- Connect your bank account
+ <div className="relative mx-auto my-10 flex w-full max-w-[416px] flex-col items-center text-center md:mt-6">
+ <h1 className="animate-slide-up-fade text-content-emphasis text-lg font-medium [--offset:8px] [animation-delay:250ms] [animation-duration:1s] [animation-fill-mode:both]">
+ Payout information
</h1>
<div className="animate-slide-up-fade relative mt-8 w-full [--offset:10px] [animation-delay:500ms] [animation-duration:1s] [animation-fill-mode:both]">
<Suspense fallback={<PayoutSkeleton />}>
diff --git a/apps/web/ui/partners/country-combobox.tsx b/apps/web/ui/partners/country-combobox.tsx
index add2664daa..c49889b2f3 100644
--- a/apps/web/ui/partners/country-combobox.tsx
+++ b/apps/web/ui/partners/country-combobox.tsx
@@ -55,7 +55,7 @@ export function CountryCombobox({
matchTriggerWidth
buttonProps={{
className: cn(
- "mt-2 w-full justify-start border-neutral-300 px-3",
+ "mt-1.5 w-full justify-start border-neutral-300 px-3",
"data-[state=open]:ring-1 data-[state=open]:ring-neutral-500 data-[state=open]:border-neutral-500",
"focus:ring-1 focus:ring-neutral-500 focus:border-neutral-500 transition-none",
!value && "text-neutral-400",
diff --git a/apps/web/ui/partners/online-presence-form.tsx b/apps/web/ui/partners/online-presence-form.tsx
index 014f3f2853..da6a31f611 100644
--- a/apps/web/ui/partners/online-presence-form.tsx
+++ b/apps/web/ui/partners/online-presence-form.tsx
@@ -116,7 +116,7 @@ export function OnlinePresenceForm({
>
<div
className={cn(
- "flex w-full flex-col gap-4 text-left",
+ "flex w-full flex-col gap-6 text-left",
variant === "settings" && "gap-0 divide-y divide-neutral-200 p-5",
)}
>
@@ -482,11 +482,13 @@ function FormRow({
<div className={cn(variant === "settings" && "py-5")}>
<label
className={cn(
- "flex flex-col gap-2",
+ "flex flex-col gap-1.5",
variant === "settings" && "flex-row items-center justify-between",
)}
>
- <span className="text-sm font-medium text-neutral-800">{label}</span>
+ <span className="text-content-emphasis text-sm font-medium">
+ {label}
+ </span>
<div
className={cn(
"relative",