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 DP CTA on portal pages

Steven Teyad585ab65012
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 30f5d45400..31e7ecaf19 100644
--- a/apps/web/app/partners.dub.co/(apply)/[programSlug]/layout.tsx
+++ b/apps/web/app/partners.dub.co/(apply)/[programSlug]/layout.tsx
@@ -6,6 +6,7 @@ import { Prisma } from "@dub/prisma/client";
import { Wordmark } from "@dub/ui";
import { APP_DOMAIN } from "@dub/utils";
import { constructMetadata } from "@dub/utils/src/functions";
+import Link from "next/link";
import { notFound } from "next/navigation";
import { PropsWithChildren } from "react";
@@ -65,9 +66,13 @@ export default async function ApplyLayout({
{children}
{/* 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">
+ <Link
+ href="https://dub.partners"
+ target="_blank"
+ className="flex items-center gap-1.5"
+ >
Powered by <Wordmark className="h-4 p-0.5" />
- </span>
+ </Link>
<span className="flex items-center gap-2">
<a
href="https://dub.co/legal/terms"
diff --git a/apps/web/app/partners.dub.co/(auth)/(custom)/framer/login/page.tsx b/apps/web/app/partners.dub.co/(auth)/(custom)/framer/login/page.tsx
index c044f924fb..4d155bd6d6 100644
--- a/apps/web/app/partners.dub.co/(auth)/(custom)/framer/login/page.tsx
+++ b/apps/web/app/partners.dub.co/(auth)/(custom)/framer/login/page.tsx
@@ -24,7 +24,8 @@ export default function CustomPartnerLoginPage() {
<p className="text-center text-sm text-neutral-700">
Not a Framer Partner?&nbsp;
<Link
- href="/framer/apply"
+ href="https://www.framer.com/creators"
+ target="_blank"
className="font-normal underline underline-offset-2 transition-colors hover:text-black"
>
Apply today
diff --git a/apps/web/app/partners.dub.co/(auth)/(default)/layout.tsx b/apps/web/app/partners.dub.co/(auth)/(default)/layout.tsx
index 5aa73aa67b..1584008954 100644
--- a/apps/web/app/partners.dub.co/(auth)/(default)/layout.tsx
+++ b/apps/web/app/partners.dub.co/(auth)/(default)/layout.tsx
@@ -1,4 +1,5 @@
import { Grid, Wordmark } from "@dub/ui";
+import Link from "next/link";
export default function PartnerAuthLayout({
children,
@@ -12,10 +13,14 @@ export default function PartnerAuthLayout({
<div className="absolute inset-0 -translate-y-1/2 -scale-x-100 bg-[conic-gradient(from_-32deg,#f00_0deg,#EAB308_99deg,#5CFF80_162deg,#00FFF9_216deg,#3A8BFD_288deg,#855AFC_360deg)] opacity-25 blur-[200px]" />
</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]">
+ <Link
+ href="https://dub.partners"
+ target="_blank"
+ 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">Partners</span>
- </div>
+ </Link>
{children}
</div>
<div className="flex grow flex-col justify-end">
diff --git a/apps/web/app/partners.dub.co/(auth)/(default)/partner-banner.tsx b/apps/web/app/partners.dub.co/(auth)/(default)/partner-banner.tsx
index 7dbc80db1e..a5f8cb0d31 100644
--- a/apps/web/app/partners.dub.co/(auth)/(default)/partner-banner.tsx
+++ b/apps/web/app/partners.dub.co/(auth)/(default)/partner-banner.tsx
@@ -4,10 +4,10 @@ import { Program } from "@prisma/client";
export async function PartnerBanner({
program,
}: {
- program: Pick<Program, "name" | "logo">;
+ program: Pick<Program, "name" | "logo" | "slug">;
}) {
return (
- <div className="-mb-2 flex items-center justify-center gap-3 rounded-t-lg border border-neutral-200 bg-neutral-50 p-3 pb-5">
+ <div className="-mb-2 flex items-center justify-center gap-2 rounded-t-lg border border-neutral-200 bg-neutral-50 p-3 pb-5">
{program.logo && (
<div className="relative size-6 shrink-0 overflow-hidden rounded-full">
<BlurImage
@@ -19,8 +19,22 @@ export async function PartnerBanner({
</div>
)}
<p className="text-left text-sm text-neutral-800">
- <strong className="font-semibold">{program.name}</strong> uses Dub to
- power their partner programs
+ <a
+ href={`https://partners.dub.co/${program.slug}`}
+ target="_blank"
+ className="font-semibold underline-offset-2 transition-colors hover:underline"
+ >
+ {program.name}
+ </a>{" "}
+ uses{" "}
+ <a
+ href="https://dub.partners"
+ target="_blank"
+ className="font-semibold underline-offset-2 transition-colors hover:underline"
+ >
+ Dub Partners
+ </a>{" "}
+ to power their affiliate program
</p>
</div>
);