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.

rearrange login page

Steven Teya168deac29ad
diff --git a/apps/web/app/(ee)/partners.dub.co/(auth)/login/page.tsx b/apps/web/app/(ee)/partners.dub.co/(auth)/login/page.tsx
index e604d9943c..cb3536059d 100644
--- a/apps/web/app/(ee)/partners.dub.co/(auth)/login/page.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/(auth)/login/page.tsx
@@ -12,15 +12,9 @@ export default async function LoginPage({
}: {
params: { programSlug?: string };
}) {
- const program = programSlug ? await getProgram({ slug: programSlug }) : null;
-
- if (programSlug && !program) {
- notFound();
- }
-
- return (
- <AuthLayout showTerms>
- {programSlug === "framer" ? (
+ if (programSlug === "framer") {
+ return (
+ <AuthLayout showTerms>
<div className="mx-auto my-10 flex w-full max-w-sm flex-col gap-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]">
<img
@@ -49,37 +43,47 @@ export default async function LoginPage({
<FramerButton />
</div>
</div>
- ) : (
- <div className="w-full max-w-sm">
- {program && <PartnerBanner program={program} />}
- <h1 className="text-center text-xl font-semibold">
- Log in to your Dub Partner account
- </h1>
- <div className="mt-8">
- <LoginForm
- methods={["email", "password", "google"]}
- next={`/${programSlug ? `/programs/${programSlug}` : ""}`}
- />
- </div>
- <p className="mt-6 text-center text-sm font-medium text-neutral-500">
- Don't have a partner account?&nbsp;
- <Link
- href={`${programSlug ? `/${programSlug}` : ""}/register`}
- className="font-semibold text-neutral-700 transition-colors hover:text-neutral-900"
- >
- Sign up
- </Link>
- </p>
+ </AuthLayout>
+ );
+ }
- <div className="mt-12 w-full">
- <AuthAlternativeBanner
- text="Looking for your Dub workspace account?"
- cta="Log in at app.dub.co"
- href="https://app.dub.co/login"
- />
- </div>
+ const program = programSlug ? await getProgram({ slug: programSlug }) : null;
+
+ if (programSlug && !program) {
+ notFound();
+ }
+
+ return (
+ <AuthLayout showTerms>
+ <div className="w-full max-w-sm">
+ {program && <PartnerBanner program={program} />}
+ <h1 className="text-center text-xl font-semibold">
+ Log in to your Dub Partner account
+ </h1>
+ <div className="mt-8">
+ <LoginForm
+ methods={["email", "password", "google"]}
+ next={`/${programSlug ? `/programs/${programSlug}` : ""}`}
+ />
+ </div>
+ <p className="mt-6 text-center text-sm font-medium text-neutral-500">
+ Don't have a partner account?&nbsp;
+ <Link
+ href={`${programSlug ? `/${programSlug}` : ""}/register`}
+ className="font-semibold text-neutral-700 transition-colors hover:text-neutral-900"
+ >
+ Sign up
+ </Link>
+ </p>
+
+ <div className="mt-12 w-full">
+ <AuthAlternativeBanner
+ text="Looking for your Dub workspace account?"
+ cta="Log in at app.dub.co"
+ href="https://app.dub.co/login"
+ />
</div>
- )}
+ </div>
</AuthLayout>
);
}