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.

Add Branding and Resources coming soon pages

Tim Wilson2122394d73e5
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/branding/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/branding/page-client.tsx
new file mode 100644
index 0000000000..787dcd84de
--- /dev/null
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/branding/page-client.tsx
@@ -0,0 +1,25 @@
+"use client";
+
+import { AnimatedEmptyState } from "@/ui/shared/animated-empty-state";
+import { Palette2, Photo, Post } from "@dub/ui/src/icons";
+
+const emptyStateIcons = [Post, Palette2, Photo];
+
+export function ProgramBrandingPageClient() {
+ return (
+ <AnimatedEmptyState
+ title="Branding"
+ description="Customize graphics, colors, and more to fit your brand"
+ cardContent={(idx) => {
+ const Icon = emptyStateIcons[idx % emptyStateIcons.length];
+ return (
+ <>
+ <Icon className="size-4 text-neutral-700" />
+ <div className="h-2.5 w-24 min-w-0 rounded-sm bg-neutral-200" />
+ </>
+ );
+ }}
+ pillContent="Coming soon"
+ />
+ );
+}
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/branding/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/branding/page.tsx
index dbf7e46595..acc7670555 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/branding/page.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/branding/page.tsx
@@ -1,10 +1,13 @@
import { PageContent } from "@/ui/layout/page-content";
import { MaxWidthWrapper } from "@dub/ui";
+import { ProgramBrandingPageClient } from "./page-client";
export default function ProgramBranding() {
return (
<PageContent title="Branding">
- <MaxWidthWrapper>Branding</MaxWidthWrapper>
+ <MaxWidthWrapper>
+ <ProgramBrandingPageClient />
+ </MaxWidthWrapper>
</PageContent>
);
}
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/resources/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/resources/page-client.tsx
new file mode 100644
index 0000000000..0b0fb068ad
--- /dev/null
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/resources/page-client.tsx
@@ -0,0 +1,25 @@
+"use client";
+
+import { AnimatedEmptyState } from "@/ui/shared/animated-empty-state";
+import { FileZip2, Palette2, Post } from "@dub/ui/src/icons";
+
+const emptyStateIcons = [Post, Palette2, FileZip2];
+
+export function ProgramResourcesPageClient() {
+ return (
+ <AnimatedEmptyState
+ title="Resources"
+ description="Partner guides and materials to boost promotion and earnings"
+ cardContent={(idx) => {
+ const Icon = emptyStateIcons[idx % emptyStateIcons.length];
+ return (
+ <>
+ <Icon className="size-4 text-neutral-700" />
+ <div className="h-2.5 w-24 min-w-0 rounded-sm bg-neutral-200" />
+ </>
+ );
+ }}
+ pillContent="Coming soon"
+ />
+ );
+}
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/resources/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/resources/page.tsx
index 8c3ba6f17a..464379cfbc 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/resources/page.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/resources/page.tsx
@@ -1,75 +1,12 @@
import { PageContent } from "@/ui/layout/page-content";
-import { ThreeDots } from "@/ui/shared/icons";
-import { Button, MaxWidthWrapper } from "@dub/ui";
+import { MaxWidthWrapper } from "@dub/ui";
+import { ProgramResourcesPageClient } from "./page-client";
export default function ProgramResources() {
return (
<PageContent title="Resources">
<MaxWidthWrapper>
- <div className="flex flex-col gap-10">
- <div className="flex w-full items-start justify-start gap-10 rounded-lg border border-neutral-200 bg-white px-6 py-8">
- <div className="flex w-full flex-col gap-4 sm:flex-row sm:gap-10">
- <h3 className="basis-1/2 text-[15px] font-medium leading-none text-neutral-900">
- Brand logos
- </h3>
-
- <div className="basis-1/2">
- <div className="space-y-4">
- <div className="flex h-16 items-center justify-start gap-4 rounded-lg border border-neutral-200 px-3 py-3.5">
- <div className="flex h-10 w-10 shrink-0 items-center justify-center gap-2.5 rounded border border-neutral-200">
- {/* <img className="flex" src="https://via.placeholder.com/38x52" /> */}
- </div>
- <div className="flex flex-1 flex-col items-start justify-center gap-1">
- <div className="text-sm font-medium leading-none text-neutral-800">
- filename.png
- </div>
- <div className="text-xs font-normal text-neutral-500">
- 2 MB
- </div>
- </div>
- <div>
- <Button
- variant="outline"
- className="h-8 px-1.5"
- icon={<ThreeDots className="h-5 w-5 shrink-0" />}
- />
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
-
- <div className="flex w-full items-start justify-start gap-10 rounded-lg border border-neutral-200 bg-white px-6 py-8">
- <div className="flex w-full flex-col gap-4 sm:flex-row sm:gap-10">
- <div className="flex basis-1/2 flex-col gap-1">
- <h3 className="text-[15px] font-medium leading-none text-neutral-900">
- Brand colors
- </h3>
- <p className="text-sm font-normal leading-5 text-neutral-600">
- Give partners official colors
- </p>
- </div>
-
- <div className="basis-1/2"></div>
- </div>
- </div>
-
- <div className="flex w-full items-start justify-start gap-10 rounded-lg border border-neutral-200 bg-white px-6 py-8">
- <div className="flex w-full flex-col gap-4 sm:flex-row sm:gap-10">
- <div className="flex basis-1/2 flex-col gap-1">
- <h3 className="text-[15px] font-medium leading-none text-neutral-900">
- Files
- </h3>
- <p className="text-sm font-normal leading-5 text-neutral-600">
- PDF documents or any other supporting content
- </p>
- </div>
-
- <div className="basis-1/2"></div>
- </div>
- </div>
- </div>
+ <ProgramResourcesPageClient />
</MaxWidthWrapper>
</PageContent>
);