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.

small tweaks

Steven Tey5f015545877b
diff --git a/apps/web/app/app.dub.co/(onboarding)/[slug]/wrapped/[year]/client.tsx b/apps/web/app/app.dub.co/(onboarding)/[slug]/wrapped/[year]/client.tsx
index 1225fe1b9e..c1cc616b1b 100644
--- a/apps/web/app/app.dub.co/(onboarding)/[slug]/wrapped/[year]/client.tsx
+++ b/apps/web/app/app.dub.co/(onboarding)/[slug]/wrapped/[year]/client.tsx
@@ -37,9 +37,9 @@ export default function WrappedPageClient() {
return (
<div className="relative mx-auto my-10 max-w-lg px-4 sm:px-8">
<h1 className="animate-slide-up-fade font-display mx-0 mb-4 mt-8 p-0 text-center text-xl font-semibold text-black [animation-delay:150ms] [animation-duration:1s] [animation-fill-mode:both]">
- Dub {year} Year in Review 🎊
+ {year} Year in Review 🎊
</h1>
- <p className="animate-slide-up-fade text-center text-sm leading-6 text-black [animation-delay:300ms] [animation-duration:1s] [animation-fill-mode:both]">
+ <p className="animate-slide-up-fade text-balance text-center text-sm leading-6 text-black [animation-delay:300ms] [animation-duration:1s] [animation-fill-mode:both]">
As we put a wrap on {year}, we wanted to say thank you for your support!
Here's a look back at your activity in {year}:
</p>
diff --git a/apps/web/app/app.dub.co/(onboarding)/[slug]/wrapped/[year]/page.tsx b/apps/web/app/app.dub.co/(onboarding)/[slug]/wrapped/[year]/page.tsx
index 289cee5b83..d8e88d0220 100644
--- a/apps/web/app/app.dub.co/(onboarding)/[slug]/wrapped/[year]/page.tsx
+++ b/apps/web/app/app.dub.co/(onboarding)/[slug]/wrapped/[year]/page.tsx
@@ -1,5 +1,6 @@
import { Wordmark } from "@dub/ui";
import Link from "next/link";
+import { redirect } from "next/navigation";
import WrappedPageClient from "./client";
export default function WrappedPage({
@@ -7,6 +8,10 @@ export default function WrappedPage({
}: {
params: { slug: string; year: string };
}) {
+ if (params.year !== "2024") {
+ redirect(`/${params.slug}`);
+ }
+
return (
<div className="relative flex flex-col items-center">
<Link href={`/${params.slug}`}>
diff --git a/apps/web/ui/layout/sidebar/year-end-review-card.tsx b/apps/web/ui/layout/sidebar/year-end-review-card.tsx
index b9819093ba..325630b324 100644
--- a/apps/web/ui/layout/sidebar/year-end-review-card.tsx
+++ b/apps/web/ui/layout/sidebar/year-end-review-card.tsx
@@ -25,7 +25,7 @@ export function YearEndReviewCard() {
Dub 2024 Year in Review 🎊
</span>
<p className="line-clamp-2 h-10 leading-5 text-neutral-500">
- As we put a bow on 2024, we want to say thank you for your support!
+ As we put a wrap on 2024, we want to say thank you for your support!
</p>
</div>
<div className="relative mt-3 aspect-[16/9] w-full shrink-0 overflow-hidden rounded border border-neutral-200 bg-neutral-100">