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 blog post card

Steven Teye7561efe0269
diff --git a/apps/web/app/app.dub.co/(dashboard)/layout.tsx b/apps/web/app/app.dub.co/(dashboard)/layout.tsx
index 940888bd24..840e4f958a 100644
--- a/apps/web/app/app.dub.co/(dashboard)/layout.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/layout.tsx
@@ -2,7 +2,7 @@ import { MainNav } from "@/ui/layout/main-nav";
import { AppSidebarNav } from "@/ui/layout/sidebar/app-sidebar-nav";
import { HelpButtonRSC } from "@/ui/layout/sidebar/help-button-rsc";
import { ReferButton } from "@/ui/layout/sidebar/refer-button";
-import { YearEndReviewCard } from "@/ui/layout/sidebar/year-end-review-card";
+import { YearInReviewCard } from "@/ui/layout/sidebar/year-in-review-card";
import Toolbar from "@/ui/layout/toolbar/toolbar";
import { constructMetadata } from "@dub/utils";
import { ReactNode } from "react";
@@ -22,7 +22,7 @@ export default async function Layout({ children }: { children: ReactNode }) {
<HelpButtonRSC />
</>
}
- newsContent={<YearEndReviewCard />}
+ newsContent={<YearInReviewCard />}
>
{children}
</MainNav>
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 c1cc616b1b..6f61750fe8 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
@@ -11,6 +11,8 @@ import {
import { COUNTRIES } from "@dub/utils/src/constants/countries";
import NumberFlow from "@number-flow/react";
import { motion } from "framer-motion";
+import Image from "next/image";
+import Link from "next/link";
import { redirect, useParams } from "next/navigation";
export default function WrappedPageClient() {
@@ -44,7 +46,7 @@ export default function WrappedPageClient() {
Here's a look back at your activity in {year}:
</p>
- <div className="animate-slide-up-fade my-8 rounded-lg border border-neutral-200 bg-white p-2 shadow-md [animation-delay:450ms] [animation-duration:1s] [animation-fill-mode:both]">
+ <div className="animate-slide-up-fade mb-4 mt-8 rounded-lg border border-neutral-200 bg-white p-2 shadow-md [animation-delay:450ms] [animation-duration:1s] [animation-fill-mode:both]">
<div
className="flex h-24 flex-col items-center justify-center rounded-lg"
style={{
@@ -95,6 +97,30 @@ export default function WrappedPageClient() {
/>
</div>
</div>
+
+ <Link
+ className="group flex flex-col gap-4 rounded-lg border border-neutral-200 bg-white p-4 sm:flex-row"
+ href="https://dub.co/blog/2024"
+ target="_blank"
+ >
+ <Image
+ src="https://assets.dub.co/blog/2024.jpg"
+ alt="Dub logo with confetti"
+ width={1838}
+ height={1172}
+ className="w-1/3 rounded-md"
+ draggable={false}
+ />
+ <div className="flex flex-col gap-2">
+ <h3 className="font-display font-semibold text-black">
+ Dub {year} Year in Review 🎊
+ </h3>
+ <p className="text-sm text-neutral-500 group-hover:underline">
+ A full recap of some of the top features we shipped this year – and
+ how we grew as a company.
+ </p>
+ </div>
+ </Link>
</div>
);
}
diff --git a/apps/web/ui/layout/sidebar/year-end-review-card.tsx b/apps/web/ui/layout/sidebar/year-in-review-card.tsx
similarity index 94%
rename from apps/web/ui/layout/sidebar/year-end-review-card.tsx
rename to apps/web/ui/layout/sidebar/year-in-review-card.tsx
index 325630b324..b948058bcd 100644
--- a/apps/web/ui/layout/sidebar/year-end-review-card.tsx
+++ b/apps/web/ui/layout/sidebar/year-in-review-card.tsx
@@ -6,7 +6,7 @@ import Image from "next/image";
import Link from "next/link";
import { usePathname } from "next/navigation";
-export function YearEndReviewCard() {
+export function YearInReviewCard() {
const pathname = usePathname();
const { slug, yearInReview } = useWorkspace();
@@ -36,7 +36,7 @@ export function YearEndReviewCard() {
)}
/>
<Image
- src="https://assets.dub.co/misc/dub-confetti.jpg"
+ src="https://assets.dub.co/blog/2024.jpg"
alt="Dub logo with confetti"
fill
sizes="10vw"