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.

separate layouts for onboarding and auth

Steven Teyf44df9095818
diff --git a/apps/web/app/partners.dub.co/(onboarding)/(auth)/auth/reset-password/[token]/page.tsx b/apps/web/app/partners.dub.co/(auth)/auth/reset-password/[token]/page.tsx
similarity index 100%
rename from apps/web/app/partners.dub.co/(onboarding)/(auth)/auth/reset-password/[token]/page.tsx
rename to apps/web/app/partners.dub.co/(auth)/auth/reset-password/[token]/page.tsx
diff --git a/apps/web/app/partners.dub.co/(onboarding)/(auth)/forgot-password/page.tsx b/apps/web/app/partners.dub.co/(auth)/forgot-password/page.tsx
similarity index 100%
rename from apps/web/app/partners.dub.co/(onboarding)/(auth)/forgot-password/page.tsx
rename to apps/web/app/partners.dub.co/(auth)/forgot-password/page.tsx
diff --git a/apps/web/app/partners.dub.co/(auth)/layout.tsx b/apps/web/app/partners.dub.co/(auth)/layout.tsx
new file mode 100644
index 0000000000..04ae4865af
--- /dev/null
+++ b/apps/web/app/partners.dub.co/(auth)/layout.tsx
@@ -0,0 +1,53 @@
+import { Grid, Wordmark } from "@dub/ui";
+
+export default function PartnerAuthLayout({
+ children,
+}: {
+ children: React.ReactNode;
+}) {
+ return (
+ <div className="flex min-h-screen flex-col">
+ <div className="fixed inset-0 [mask-image:radial-gradient(60%_60%_at_50%_0%,black,transparent)]">
+ <Grid className="text-neutral-200" />
+ <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]">
+ <Wordmark className="relative h-10" />
+ <span className="text-sm font-medium text-neutral-700">Partner</span>
+ </div>
+ {children}
+ </div>
+ <div className="flex grow flex-col justify-end">
+ <div className="relative flex w-full flex-col items-center justify-center gap-2 py-10 pb-6">
+ <p className="text-xs text-gray-600">
+ © {new Date().getFullYear()} Dub Technologies, Inc.
+ </p>
+ <div className="flex gap-3 text-center text-xs text-gray-500 underline underline-offset-2">
+ <a
+ href="https://dub.co/legal/privacy"
+ target="_blank"
+ className="hover:text-gray-800"
+ >
+ Privacy Policy
+ </a>
+ <a
+ href="https://dub.co/legal/terms"
+ target="_blank"
+ className="hover:text-gray-800"
+ >
+ Terms of Service
+ </a>
+ <a
+ href="https://app.dub.co"
+ target="_blank"
+ className="hover:text-gray-800"
+ >
+ app.dub.co
+ </a>
+ </div>
+ </div>
+ </div>
+ </div>
+ );
+}
diff --git a/apps/web/app/partners.dub.co/(onboarding)/(auth)/login/page.tsx b/apps/web/app/partners.dub.co/(auth)/login/page.tsx
similarity index 100%
rename from apps/web/app/partners.dub.co/(onboarding)/(auth)/login/page.tsx
rename to apps/web/app/partners.dub.co/(auth)/login/page.tsx
diff --git a/apps/web/app/partners.dub.co/(onboarding)/(auth)/register/page-client.tsx b/apps/web/app/partners.dub.co/(auth)/register/page-client.tsx
similarity index 100%
rename from apps/web/app/partners.dub.co/(onboarding)/(auth)/register/page-client.tsx
rename to apps/web/app/partners.dub.co/(auth)/register/page-client.tsx
diff --git a/apps/web/app/partners.dub.co/(onboarding)/(auth)/register/page.tsx b/apps/web/app/partners.dub.co/(auth)/register/page.tsx
similarity index 100%
rename from apps/web/app/partners.dub.co/(onboarding)/(auth)/register/page.tsx
rename to apps/web/app/partners.dub.co/(auth)/register/page.tsx
diff --git a/apps/web/app/partners.dub.co/(onboarding)/layout.tsx b/apps/web/app/partners.dub.co/(onboarding)/layout.tsx
index 7be5c9f56d..86ea77e84f 100644
--- a/apps/web/app/partners.dub.co/(onboarding)/layout.tsx
+++ b/apps/web/app/partners.dub.co/(onboarding)/layout.tsx
@@ -1,6 +1,6 @@
import { Grid, Wordmark } from "@dub/ui";
-export default function AdminAuthLayout({
+export default function PartnerOnboardingLayout({
children,
}: {
children: React.ReactNode;
@@ -18,36 +18,6 @@ export default function AdminAuthLayout({
</div>
{children}
</div>
- <div className="flex grow flex-col justify-end">
- <div className="relative flex w-full flex-col items-center justify-center gap-2 py-10 pb-6">
- <p className="text-xs text-gray-600">
- © {new Date().getFullYear()} Dub Technologies, Inc.
- </p>
- <div className="flex gap-3 text-center text-xs text-gray-500 underline underline-offset-2">
- <a
- href="https://dub.co/legal/privacy"
- target="_blank"
- className="hover:text-gray-800"
- >
- Privacy Policy
- </a>
- <a
- href="https://dub.co/legal/terms"
- target="_blank"
- className="hover:text-gray-800"
- >
- Terms of Service
- </a>
- <a
- href="https://app.dub.co"
- target="_blank"
- className="hover:text-gray-800"
- >
- app.dub.co
- </a>
- </div>
- </div>
- </div>
</div>
);
}