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.

finalize page

Steven Tey931ebb40f096
diff --git a/apps/web/app/partners.dub.co/(apply)/[programSlug]/apply/success/page.tsx b/apps/web/app/partners.dub.co/(apply)/[programSlug]/apply/success/page.tsx
index 9549cc2910..875fcfbdf5 100644
--- a/apps/web/app/partners.dub.co/(apply)/[programSlug]/apply/success/page.tsx
+++ b/apps/web/app/partners.dub.co/(apply)/[programSlug]/apply/success/page.tsx
@@ -3,7 +3,6 @@ import { prisma } from "@dub/prisma";
import { Logo } from "@dub/ui";
import { BoltFill, CursorRays, LinesY, MoneyBills2 } from "@dub/ui/icons";
import { DICEBEAR_AVATAR_URL } from "@dub/utils";
-import { subDays } from "date-fns";
import { Store } from "lucide-react";
import { notFound } from "next/navigation";
import { CSSProperties } from "react";
@@ -52,13 +51,9 @@ export default async function SuccessPage({
}
const application = applicationId
- ? await prisma.programApplication.findFirst({
+ ? await prisma.programApplication.findUnique({
where: {
id: applicationId,
- programId: program.id,
- createdAt: {
- gte: subDays(new Date(), 3),
- },
},
})
: null;
@@ -108,24 +103,21 @@ export default async function SuccessPage({
</p>
)}
{!hasPartnerProfile && (
- <>
- <p>
- Create a{" "}
- <strong className="font-semibold">Dub Partners</strong>{" "}
- account to finish your application. This is required to earn
- rewards and access your dashboard.
- </p>
- {application && (
- <p>
- Once your account is set up, we'll review your application
- and send updates to{" "}
- <strong className="font-semibold">
- {application.email}
- </strong>
- .
- </p>
- )}
- </>
+ <p>
+ Your application to{" "}
+ <strong className="font-semibold">{program.name}</strong> has
+ been saved, but you still need to create your{" "}
+ <strong className="font-semibold">Dub Partners</strong> account
+ to complete your application.
+ <br />
+ <br />
+ Once you create your account, your application will be submitted
+ to <b>{program.name}</b> and you'll hear back from them{" "}
+ <strong className="font-semibold">
+ {application?.email ? `at ${application.email}` : "via email"}
+ </strong>
+ .
+ </p>
)}
</div>
</div>
@@ -136,14 +128,15 @@ export default async function SuccessPage({
</div>
{/* Screenshot */}
- {programSlug !== "dub" && (
- <div className="relative mt-16">
- <Screenshot
- program={{ name: program.name, logo: program.logo }}
- className="h-auto w-full rounded border border-black/10 [mask-image:linear-gradient(black_80%,transparent)]"
- />
- <div className="absolute bottom-0 left-1/2 -translate-x-1/2">
- <div className="absolute -inset-[50%] rounded-full bg-white blur-lg" />
+ <div className="relative mt-16">
+ <Screenshot
+ program={{ name: program.name, logo: program.logo }}
+ className="h-auto w-full rounded border border-black/10 [mask-image:linear-gradient(black_80%,transparent)]"
+ />
+ <div className="absolute bottom-0 left-1/2 -translate-x-1/2">
+ <div className="absolute -inset-[50%] rounded-full bg-white blur-lg" />
+
+ {programSlug !== "dub" && (
<div className="relative flex items-center gap-2 rounded-full border border-neutral-100 bg-gradient-to-b from-white to-neutral-50 p-2 shadow-[0_8px_28px_0_#00000017]">
<img
className="size-10 shrink-0 rounded-full"
@@ -153,9 +146,9 @@ export default async function SuccessPage({
<BoltFill className="shrink-0 text-[var(--brand)] opacity-30" />
<Logo className="size-10 shrink-0" />
</div>
- </div>
+ )}
</div>
- )}
+ </div>
{/* Feature grid */}
<div className="mt-16 grid grid-cols-1 gap-10 sm:grid-cols-2">
diff --git a/apps/web/app/partners.dub.co/(apply)/[programSlug]/layout.tsx b/apps/web/app/partners.dub.co/(apply)/[programSlug]/layout.tsx
index 19f324d2f8..30f5d45400 100644
--- a/apps/web/app/partners.dub.co/(apply)/[programSlug]/layout.tsx
+++ b/apps/web/app/partners.dub.co/(apply)/[programSlug]/layout.tsx
@@ -66,7 +66,7 @@ export default async function ApplyLayout({
{/* Footer */}
<footer className="mt-14 flex flex-col items-center gap-4 py-6 text-center text-xs text-neutral-500">
<span className="flex items-center gap-1.5">
- Powered by <Wordmark className="h-3.5" />
+ Powered by <Wordmark className="h-4 p-0.5" />
</span>
<span className="flex items-center gap-2">
<a