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 conclusion

Tim Wilson1b8ee01b750c
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/rewind/2025/conclusion.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/rewind/2025/conclusion.tsx
index 23c4f19337..0de6a7908d 100644
--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/rewind/2025/conclusion.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/rewind/2025/conclusion.tsx
@@ -1,3 +1,7 @@
+import { Button, ChevronLeft, Wordmark } from "@dub/ui";
+import { cn } from "@dub/utils";
+import { navButtonClassName } from "./rewind";
+
export function Conclusion({
onRestart,
onClose,
@@ -5,5 +9,47 @@ export function Conclusion({
onRestart: () => void;
onClose: () => void;
}) {
- return <div>conclusion</div>;
+ return (
+ <div className="flex flex-col items-center gap-6 text-center">
+ <div className={cn("flex flex-col items-center gap-2")}>
+ <Wordmark
+ className={cn(
+ "h-12",
+ "animate-slide-up-fade [--offset:10px] [animation-duration:1.5s]",
+ )}
+ />
+ <h2
+ className={cn(
+ "text-content-emphasis text-2xl font-bold",
+ "animate-slide-up-fade [--offset:10px] [animation-delay:0.2s] [animation-duration:1.5s] [animation-fill-mode:both]",
+ )}
+ >
+ Partner Rewind &rsquo;25
+ </h2>
+ </div>
+ <p
+ className={cn(
+ "text-content-default max-w-[440px] text-pretty text-xl font-medium",
+ "animate-slide-up-fade [--offset:10px] [animation-delay:0.3s] [animation-duration:1s] [animation-fill-mode:both]",
+ )}
+ >
+ Thank you for all your hard work being a Dub Partner. We can&rsquo;t to
+ see what you&rsquo;ll do in 2026!
+ </p>
+ <div className="animate-slide-up-fade flex items-center gap-2 [--offset:10px] [animation-delay:0.4s] [animation-duration:1s] [animation-fill-mode:both]">
+ <button
+ type="button"
+ onClick={onRestart}
+ className={navButtonClassName}
+ >
+ <ChevronLeft className="size-3 [&_*]:stroke-2" />
+ </button>
+ <Button
+ text="Close"
+ className="h-8 w-fit rounded-lg px-4"
+ onClick={onClose}
+ />
+ </div>
+ </div>
+ );
}
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/rewind/2025/rewind.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/rewind/2025/rewind.tsx
index 6ea547ec82..a5f54bffb9 100644
--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/rewind/2025/rewind.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/rewind/2025/rewind.tsx
@@ -8,7 +8,7 @@ import { REWIND_ASSETS_PATH, REWIND_STEPS } from "./constants";
const STEP_DELAY_MS = 8_000;
-const navButtonClassName =
+export const navButtonClassName =
"bg-neutral-200 text-content-subtle disabled:opacity-50 hover:bg-neutral-300 ease-out flex size-8 items-center justify-center rounded-lg transition-[background-color,transform] active:scale-95";
export function Rewind({
@@ -37,11 +37,11 @@ export function Rewind({
useEffect(() => {
if (currentStepIndex > steps.length - 1) {
- setCurrentStepIndex(steps.length - 1);
+ onComplete();
return;
}
- if (isPaused || currentStepIndex === steps.length - 1) return;
+ if (isPaused) return;
const timeout = setTimeout(() => {
setCurrentStepIndex((i) => i + 1);
@@ -92,16 +92,18 @@ export function Rewind({
className="!w-full"
>
<AnimatePresence mode="wait">
- <motion.div
- key={currentStepIndex}
- initial={{ opacity: 0, scale: 0.9, y: 20, filter: "blur(10px)" }}
- animate={{ opacity: 1, scale: 1, y: 0, filter: "blur(0px)" }}
- exit={{ opacity: 0, scale: 0.9, y: 20, filter: "blur(10px)" }}
- transition={{ duration: 0.3 }}
- className="flex w-full flex-col items-center py-6"
- >
- <StepSlide {...steps[currentStepIndex]} />
- </motion.div>
+ {currentStepIndex < steps.length && (
+ <motion.div
+ key={currentStepIndex}
+ initial={{ opacity: 0, scale: 0.9, y: 20, filter: "blur(10px)" }}
+ animate={{ opacity: 1, scale: 1, y: 0, filter: "blur(0px)" }}
+ exit={{ opacity: 0, scale: 0.9, y: 20, filter: "blur(10px)" }}
+ transition={{ duration: 0.3 }}
+ className="flex w-full flex-col items-center py-6"
+ >
+ <StepSlide {...steps[currentStepIndex]} />
+ </motion.div>
+ )}
</AnimatePresence>
</AnimatedSizeContainer>
@@ -121,9 +123,10 @@ export function Rewind({
type="button"
onClick={() => {
setIsPaused(false);
- setCurrentStepIndex((c) => Math.min(c + 1, steps.length - 1));
+ if (currentStepIndex < steps.length - 1)
+ setCurrentStepIndex((c) => Math.min(c + 1, steps.length - 1));
+ else onComplete();
}}
- disabled={currentStepIndex >= steps.length - 1}
className={navButtonClassName}
>
<ChevronRight className="size-3 [&_*]:stroke-2" />