Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: mobile
Marc Seitzbb154c771534
diff --git a/components/ai-elements/shimmer.tsx b/components/ai-elements/shimmer.tsxindex 664db28c..0c840014 100644--- a/components/ai-elements/shimmer.tsx+++ b/components/ai-elements/shimmer.tsx@@ -18,6 +18,7 @@ export type TextShimmerProps = {className?: string;duration?: number;spread?: number;+ hoverOnly?: boolean;};const ShimmerComponent = ({@@ -26,6 +27,7 @@ const ShimmerComponent = ({className,duration = 2,spread = 2,+ hoverOnly = false,}: TextShimmerProps) => {const MotionComponent = motion.create(Component as keyof JSX.IntrinsicElements,@@ -36,15 +38,35 @@ const ShimmerComponent = ({[children, spread],);+ const animationProps = hoverOnly+ ? {+ initial: { backgroundPosition: "100% center" },+ whileHover: { backgroundPosition: "0% center" },+ }+ : {+ initial: { backgroundPosition: "100% center" },+ animate: { backgroundPosition: "0% center" },+ };++ const transitionProps = hoverOnly+ ? {+ duration,+ ease: "linear" as const,+ }+ : {+ repeat: Number.POSITIVE_INFINITY,+ duration,+ ease: "linear" as const,+ };+return (<MotionComponent- animate={{ backgroundPosition: "0% center" }}+ {...animationProps}className={cn("relative inline-block bg-[length:250%_100%,auto] bg-clip-text text-transparent","[--bg:linear-gradient(90deg,#0000_calc(50%-var(--spread)),var(--background),#0000_calc(50%+var(--spread)))] [background-repeat:no-repeat,padding-box]",className,)}- initial={{ backgroundPosition: "100% center" }}style={{"--spread": `${dynamicSpread}px`,@@ -52,11 +74,7 @@ const ShimmerComponent = ({"var(--bg), linear-gradient(var(--muted-foreground), var(--muted-foreground))",} as CSSProperties}- transition={{- repeat: Number.POSITIVE_INFINITY,- duration,- ease: "linear",- }}+ transition={transitionProps}>{children}</MotionComponent>diff --git a/components/sidebar/nav-main.tsx b/components/sidebar/nav-main.tsxindex e78c565e..bf537598 100644--- a/components/sidebar/nav-main.tsx+++ b/components/sidebar/nav-main.tsx@@ -7,6 +7,7 @@ import { ChevronRight, CrownIcon, type LucideIcon } from "lucide-react";import { cn } from "@/lib/utils";+import { Shimmer } from "@/components/ai-elements/shimmer";import {Collapsible,CollapsibleContent,@@ -60,7 +61,6 @@ export function NavMain({ items }: { items: NavItem[] }) {item.current &&!item.items?.length &&"rounded-md bg-gray-200 font-semibold dark:bg-secondary",- item.title === "2025 Recap" && "text-orange-500 dark:text-orange-400 hover:text-orange-700 dark:hover:text-orange-300",)}>{item.disabled ? (@@ -83,8 +83,25 @@ export function NavMain({ items }: { items: NavItem[] }) {</UpgradePlanModal>) : (<Link href={item.url} className="p-2">- <item.icon />- <span>{item.title}</span>+ <item.icon+ className={cn(+ item.title === "2025 Recap" &&+ "text-orange-500 dark:text-orange-400",+ )}+ />+ {item.title === "2025 Recap" ? (+ <Shimmer+ as="span"+ className="[--background:theme(colors.yellow.300)] [--muted-foreground:theme(colors.orange.500)] dark:[--background:theme(colors.yellow.200)] dark:[--muted-foreground:theme(colors.orange.400)]"+ duration={0.5}+ spread={3}+ hoverOnly+ >+ {item.title}+ </Shimmer>+ ) : (+ <span>{item.title}</span>+ )}</Link>)}</SidebarMenuButton>diff --git a/components/yearly-recap/yearly-recap-banner.tsx b/components/yearly-recap/yearly-recap-banner.tsxindex 2d62968a..82b34acb 100644--- a/components/yearly-recap/yearly-recap-banner.tsx+++ b/components/yearly-recap/yearly-recap-banner.tsx@@ -134,7 +134,7 @@ export function YearlyRecapBanner() {{/* Banner - always shown */}<div className="mx-2 my-2 mb-2"><div- className="relative overflow-hidden rounded-xl p-6"+ className="relative overflow-hidden rounded-xl p-4 sm:p-6"style={{background:"linear-gradient(to right, rgba(249, 115, 22, 0.2) 0%, rgba(249, 115, 22, 0.1) 25%, #EEEFEB 50%, rgba(16, 185, 129, 0.1) 75%, rgba(16, 185, 129, 0.2) 100%)",@@ -145,26 +145,26 @@ export function YearlyRecapBanner() {{/* <PeachPaperSVG className="absolute bottom-2 left-2 w-16 h-16" /> */}<ScatterDotsSVG className="absolute left-1/4 top-2 h-20 w-20" />- <div className="relative z-10 flex items-center justify-between gap-4">- <div className="flex items-center gap-4">- <div className="relative h-12 w-12 shrink-0">+ <div className="relative z-10 flex flex-col items-start gap-4 sm:flex-row sm:items-center sm:justify-between">+ <div className="flex items-center gap-3 sm:gap-4">+ <div className="relative h-10 w-10 shrink-0 sm:h-12 sm:w-12">{/* <PeachPaperSVG className="absolute inset-0 w-full h-full opacity-60" /> */}- <div className="absolute inset-0 flex h-12 w-12 items-center justify-center rounded-full bg-orange-500/20">- <Sparkles className="h-6 w-6 text-orange-500" />+ <div className="absolute inset-0 flex h-10 w-10 items-center justify-center rounded-full bg-orange-500/20 sm:h-12 sm:w-12">+ <Sparkles className="h-5 w-5 text-orange-500 sm:h-6 sm:w-6" /></div></div><div>- <h3 className="text-xl font-semibold text-gray-900">+ <h3 className="text-lg font-semibold text-gray-900 sm:text-xl">Papermark Wrapped {currentYear}</h3>- <p className="text-sm text-gray-600">+ <p className="text-xs text-gray-600 sm:text-sm">Your year in document sharing</p></div></div><ButtononClick={handleOpenModal}- className="shrink-0 gap-2 bg-gray-900 text-white hover:bg-black"+ className="w-full shrink-0 gap-2 bg-gray-900 text-white hover:bg-black sm:w-auto">See your Wrapped<ArrowRight className="h-4 w-4" />diff --git a/components/yearly-recap/yearly-recap-modal.tsx b/components/yearly-recap/yearly-recap-modal.tsxindex 9ac78abd..b8a462a6 100644--- a/components/yearly-recap/yearly-recap-modal.tsx+++ b/components/yearly-recap/yearly-recap-modal.tsx@@ -392,7 +392,7 @@ My Papermark Wrapped ${stats?.year}!if (showShareView) {return (<Dialog open={isOpen} onOpenChange={handleClose}>- <DialogContent className="max-w-[700px] overflow-hidden border-0 bg-white p-0 [&>button]:hidden">+ <DialogContent className="w-full max-w-[700px] overflow-hidden border-0 bg-white p-0 [&>button]:hidden">{/* Close button */}<buttononClick={() => setShowShareView(false)}@@ -402,7 +402,7 @@ My Papermark Wrapped ${stats?.year}!</button>{/* Shareable Card */}- <div className="p-6">+ <div className="p-4 sm:p-6">{(() => {const totalMinutes = Math.floor(stats.totalDuration / 60_000); // from milliseconds to minutesconst distanceTraveled = stats.distanceTraveled || 0;@@ -410,34 +410,42 @@ My Papermark Wrapped ${stats?.year}!return (<divref={shareCardRef}- className="w-full max-w-[500px] overflow-hidden rounded-2xl bg-gray-100 p-8"+ className="mx-auto w-full max-w-[500px] overflow-hidden rounded-2xl bg-gray-100 p-4 sm:p-8">{/* Stats Grid */}- <div className="mb-6 rounded-xl bg-white p-6 shadow-sm">- <div className="grid grid-cols-2 gap-4">+ <div className="mb-4 rounded-xl bg-white p-4 shadow-sm sm:mb-6 sm:p-6">+ <div className="grid grid-cols-2 gap-3 sm:gap-4"><div className="text-center">- <div className="mb-1 text-4xl font-bold text-black">+ <div className="mb-1 text-2xl font-bold text-black sm:text-4xl">{totalMinutes.toLocaleString()}</div>- <p className="text-xs text-gray-600">minutes viewed</p>+ <p className="text-[10px] text-gray-600 sm:text-xs">+ minutes viewed+ </p></div><div className="text-center">- <div className="mb-1 text-4xl font-bold text-black">+ <div className="mb-1 text-2xl font-bold text-black sm:text-4xl">{distanceTraveled.toLocaleString()}</div>- <p className="text-xs text-gray-600">km travelled</p>+ <p className="text-[10px] text-gray-600 sm:text-xs">+ km travelled+ </p></div><div className="text-center">- <div className="mb-1 text-4xl font-bold text-black">+ <div className="mb-1 text-2xl font-bold text-black sm:text-4xl">{stats.totalDocuments}</div>- <p className="text-xs text-gray-600">documents</p>+ <p className="text-[10px] text-gray-600 sm:text-xs">+ documents+ </p></div><div className="text-center">- <div className="mb-1 text-4xl font-bold text-black">+ <div className="mb-1 text-2xl font-bold text-black sm:text-4xl">{stats.totalViews.toLocaleString()}</div>- <p className="text-xs text-gray-600">views</p>+ <p className="text-[10px] text-gray-600 sm:text-xs">+ views+ </p></div></div>{/* <div className="text-center mt-4 pt-4 border-t border-gray-200">@@ -447,12 +455,12 @@ My Papermark Wrapped ${stats?.year}!</div>{/* Branding */}- <div className="mt-6 text-center">+ <div className="mt-4 text-center sm:mt-6"><div className="inline-flex items-center gap-2">- <span className="text-lg font-bold text-gray-900">+ <span className="text-base font-bold text-gray-900 sm:text-lg">Papermark</span>- <span className="text-lg font-black text-gray-900">+ <span className="text-base font-black text-gray-900 sm:text-lg">WRAPPED</span></div>@@ -464,7 +472,7 @@ My Papermark Wrapped ${stats?.year}!</div>{/* $50 grant text */}- <p className="mb-4 px-6 text-center text-sm text-muted-foreground">+ <p className="mb-4 px-4 text-center text-xs text-muted-foreground sm:px-6 sm:text-sm">Share your stats and receive{" "}<span className="font-semibold text-orange-600">$50</span> incredits on your papermark account, please send confirmation to{" "}@@ -473,8 +481,8 @@ My Papermark Wrapped ${stats?.year}!</p>{/* Share buttons */}- <div className="flex items-center justify-between px-6 pb-6">- <div className="flex items-center gap-2">+ <div className="flex flex-col-reverse items-center gap-3 px-4 pb-4 sm:flex-row sm:justify-between sm:px-6 sm:pb-6">+ <div className="flex items-center justify-center gap-2"><ButtononClick={handleShareLinkedIn}variant="secondary"@@ -511,7 +519,7 @@ My Papermark Wrapped ${stats?.year}!<ButtononClick={() => setShowShareView(false)}- className="gap-2 rounded-full bg-gradient-to-r from-orange-500 to-orange-500 text-white hover:from-orange-600 hover:to-orange-600"+ className="w-full gap-2 rounded-full bg-gradient-to-r from-orange-500 to-orange-500 text-white hover:from-orange-600 hover:to-orange-600 sm:w-auto">Back to Wrapped<ArrowRight className="h-4 w-4" />@@ -524,9 +532,9 @@ My Papermark Wrapped ${stats?.year}!return (<Dialog open={isOpen} onOpenChange={handleClose}>- <DialogContent className="min-w-[700px] max-w-[1100px] overflow-hidden border-0 p-0 [&>button]:hidden">+ <DialogContent className="w-full max-w-[1100px] overflow-hidden border-0 p-0 sm:min-w-[700px] [&>button]:hidden"><div- className="relative min-h-[700px] overflow-hidden rounded-3xl shadow-2xl"+ className="relative min-h-[500px] overflow-hidden rounded-3xl shadow-2xl sm:min-h-[700px]"style={{background:"linear-gradient(to right, rgba(249, 115, 22, 0.2) 0%, rgba(249, 115, 22, 0.1) 25%, #EEEFEB 50%, rgba(16, 185, 129, 0.1) 75%, rgba(16, 185, 129, 0.2) 100%)",@@ -538,7 +546,7 @@ My Papermark Wrapped ${stats?.year}!{/* <Paperclip className="absolute bottom-16 left-8 w-16 h-16 text-foreground/30" strokeWidth="1" /> */}{/* Progress bar */}- <div className="relative z-10 flex gap-2 p-8">+ <div className="relative z-10 flex gap-1.5 p-4 sm:gap-2 sm:p-8">{slides.map((_, index) => (<divkey={index}@@ -555,13 +563,13 @@ My Papermark Wrapped ${stats?.year}!{/* Close button */}<buttononClick={handleClose}- className="absolute right-8 top-8 z-50 text-foreground/60 transition-colors hover:text-foreground"+ className="absolute right-4 top-4 z-50 text-foreground/60 transition-colors hover:text-foreground sm:right-8 sm:top-8">- <X className="h-6 w-6" />+ <X className="h-5 w-5 sm:h-6 sm:w-6" /></button>{/* Slide content */}- <div className="relative z-10 px-16 pb-16 pt-4">+ <div className="relative z-10 px-4 pb-20 pt-2 sm:px-16 sm:pb-16 sm:pt-4">{currentSlide === 0 && (<IntroSlide stats={stats} onNext={nextSlide} />)}@@ -575,7 +583,7 @@ My Papermark Wrapped ${stats?.year}!{/* Navigation - hidden on first slide */}{currentSlide > 0 && (- <div className="absolute bottom-8 left-0 right-0 z-10 flex items-center justify-center gap-3">+ <div className="absolute bottom-4 left-0 right-0 z-10 flex items-center justify-center gap-2 sm:bottom-8 sm:gap-3"><Buttonvariant="ghost"size="icon"@@ -617,12 +625,12 @@ function IntroSlide({onNext: () => void;}) {return (- <div className="relative flex min-h-[520px] flex-col items-center justify-center text-center">- <h1 className="relative z-10 mb-4 text-balance text-6xl font-semibold text-foreground">+ <div className="relative flex min-h-[350px] flex-col items-center justify-center text-center sm:min-h-[520px]">+ <h1 className="relative z-10 mb-4 text-balance text-3xl font-semibold text-foreground sm:text-6xl">Your {stats.year} with{" "}<span className="text-orange-500">Papermark</span></h1>- <p className="relative z-10 mb-14 max-w-xl text-sm text-gray-500">+ <p className="relative z-10 mb-10 max-w-xl px-2 text-xs text-gray-500 sm:mb-14 sm:px-0 sm:text-sm">This review is personalised to your platform usage and contains yourstats.</p>@@ -631,10 +639,10 @@ function IntroSlide({<ButtononClick={onNext}size="lg"- className="relative z-10 h-auto rounded-full bg-black px-10 py-3 text-lg text-white shadow-xl duration-700 animate-in slide-in-from-bottom-12 hover:from-orange-600 hover:to-orange-600"+ className="relative z-10 h-auto rounded-full bg-black px-8 py-2.5 text-base text-white shadow-xl duration-700 animate-in slide-in-from-bottom-12 hover:from-orange-600 hover:to-orange-600 sm:px-10 sm:py-3 sm:text-lg">Let's go- <ArrowRight className="ml-2 h-5 w-5" />+ <ArrowRight className="ml-2 h-4 w-4 sm:h-5 sm:w-5" /></Button></div>);@@ -645,28 +653,30 @@ function GlobalFootprintSlide({ stats }: { stats: YearlyRecapStats }) {const distanceTraveled = stats.distanceTraveled;return (- <div className="flex min-h-[520px] flex-col items-center justify-center text-center">+ <div className="flex min-h-[350px] flex-col items-center justify-center text-center sm:min-h-[520px]">{/* Title section - appears from top */}<div className="duration-700 animate-in slide-in-from-top-8">{/* Big number */}- <h2 className="mb-4 text-balance text-9xl font-bold text-foreground">+ <h2 className="mb-2 text-balance text-5xl font-bold text-foreground sm:mb-4 sm:text-9xl">{distanceTraveled.toLocaleString()}- <span className="text-2xl font-normal text-foreground">km</span>+ <span className="text-lg font-normal text-foreground sm:text-2xl">+ km+ </span></h2>- <p className="mb-8 text-balance text-2xl font-normal text-foreground">+ <p className="mb-6 text-balance text-lg font-normal text-foreground sm:mb-8 sm:text-2xl">your documents travelled this year</p></div>{/* Countries box - appears from bottom */}<div className="duration-700 animate-in slide-in-from-bottom-8">- <div className="w-56 rounded-2xl bg-card p-8 shadow-lg">- <MapPin className="mx-auto mb-4 h-8 w-8 text-orange-600" />- <div className="text-5xl font-bold text-foreground">+ <div className="w-40 rounded-xl bg-card p-5 shadow-lg sm:w-56 sm:rounded-2xl sm:p-8">+ <MapPin className="mx-auto mb-2 h-6 w-6 text-orange-600 sm:mb-4 sm:h-8 sm:w-8" />+ <div className="text-3xl font-bold text-foreground sm:text-5xl">{countriesCount}</div>- <p className="mt-2 text-balance text-sm text-muted-foreground">+ <p className="mt-1 text-balance text-xs text-muted-foreground sm:mt-2 sm:text-sm">Countries</p></div>@@ -679,33 +689,35 @@ function MinutesSlide({ stats }: { stats: YearlyRecapStats }) {const totalMinutes = Math.floor(stats.totalDuration / 60_000); // from milliseconds to minutesreturn (- <div className="flex min-h-[520px] flex-col items-center justify-center text-center">+ <div className="flex min-h-[350px] flex-col items-center justify-center text-center sm:min-h-[520px]">{/* Header from top */}<div className="duration-700 animate-in slide-in-from-top-8">- <p className="mb-2 text-lg text-muted-foreground">+ <p className="mb-2 text-sm text-muted-foreground sm:text-lg">Total time on your documents</p>- <h2 className="mb-2 text-8xl font-bold text-orange-500">+ <h2 className="mb-2 text-5xl font-bold text-orange-500 sm:text-8xl">{totalMinutes.toLocaleString()}</h2>- <p className="text-2xl font-medium text-foreground">minutes</p>+ <p className="text-lg font-medium text-foreground sm:text-2xl">+ minutes+ </p></div>{/* Document card from left */}{stats.mostViewedDocument && (- <div className="mt-8 w-full max-w-xl rounded-xl border border-foreground/5 bg-white/80 p-5 shadow-sm backdrop-blur duration-700 animate-in slide-in-from-left-8">- <div className="flex items-center gap-4">- <div className="flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-lg bg-orange-500/10">- <FileText className="h-6 w-6 text-orange-500" />+ <div className="mt-6 w-full max-w-xl rounded-xl border border-foreground/5 bg-white/80 p-4 shadow-sm backdrop-blur duration-700 animate-in slide-in-from-left-8 sm:mt-8 sm:p-5">+ <div className="flex items-center gap-3 sm:gap-4">+ <div className="flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-lg bg-orange-500/10 sm:h-12 sm:w-12">+ <FileText className="h-5 w-5 text-orange-500 sm:h-6 sm:w-6" /></div>- <div className="text-left">+ <div className="min-w-0 text-left"><span className="text-xs font-medium uppercase tracking-wide text-muted-foreground">Most Viewed</span>- <h3 className="mt-1 font-semibold text-foreground">+ <h3 className="mt-1 truncate text-sm font-semibold text-foreground sm:text-base">{stats.mostViewedDocument.documentName}</h3>- <p className="mt-1 text-sm text-muted-foreground">+ <p className="mt-1 text-xs text-muted-foreground sm:text-sm"><span className="font-semibold text-orange-500">{stats.mostViewedDocument.viewCount.toLocaleString()}</span>{" "}@@ -721,38 +733,38 @@ function MinutesSlide({ stats }: { stats: YearlyRecapStats }) {function ViewsStatsSlide({ stats }: { stats: YearlyRecapStats }) {return (- <div className="flex min-h-[520px] flex-col items-center justify-center">+ <div className="flex min-h-[350px] flex-col items-center justify-center sm:min-h-[520px]">{/* Header from left */}- <h2 className="mb-8 text-balance text-center text-3xl font-bold text-foreground duration-700 animate-in slide-in-from-left-8">+ <h2 className="mb-6 text-balance text-center text-xl font-bold text-foreground duration-700 animate-in slide-in-from-left-8 sm:mb-8 sm:text-3xl">Your {stats.year} activity on Papermark</h2>{/* Cards from right */}- <div className="grid w-full max-w-5xl grid-cols-3 gap-5 duration-700 animate-in slide-in-from-right-8">- <div className="rounded-2xl bg-card p-10 text-center shadow-lg">- <Eye className="mx-auto mb-4 h-6 w-6 text-orange-500" />- <span className="block text-5xl font-bold text-foreground">+ <div className="grid w-full max-w-5xl grid-cols-3 gap-2 duration-700 animate-in slide-in-from-right-8 sm:gap-5">+ <div className="rounded-xl bg-card p-4 text-center shadow-lg sm:rounded-2xl sm:p-10">+ <Eye className="mx-auto mb-2 h-5 w-5 text-orange-500 sm:mb-4 sm:h-6 sm:w-6" />+ <span className="block text-2xl font-bold text-foreground sm:text-5xl">{stats.totalViews.toLocaleString()}</span>- <p className="mt-3 text-balance text-sm font-medium text-muted-foreground">+ <p className="mt-1 text-balance text-xs font-medium text-muted-foreground sm:mt-3 sm:text-sm">Views</p></div>- <div className="rounded-2xl bg-card p-10 text-center shadow-lg">- <FileText className="mx-auto mb-4 h-6 w-6 text-orange-500" />- <span className="block text-5xl font-bold text-foreground">+ <div className="rounded-xl bg-card p-4 text-center shadow-lg sm:rounded-2xl sm:p-10">+ <FileText className="mx-auto mb-2 h-5 w-5 text-orange-500 sm:mb-4 sm:h-6 sm:w-6" />+ <span className="block text-2xl font-bold text-foreground sm:text-5xl">{stats.totalDocuments.toLocaleString()}</span>- <p className="mt-3 text-balance text-sm font-medium text-muted-foreground">+ <p className="mt-1 text-balance text-xs font-medium text-muted-foreground sm:mt-3 sm:text-sm">Documents</p></div>- <div className="rounded-2xl bg-card p-10 text-center shadow-lg">- <Database className="mx-auto mb-4 h-6 w-6 text-orange-600" />- <span className="block text-5xl font-bold text-foreground">+ <div className="rounded-xl bg-card p-4 text-center shadow-lg sm:rounded-2xl sm:p-10">+ <Database className="mx-auto mb-2 h-5 w-5 text-orange-600 sm:mb-4 sm:h-6 sm:w-6" />+ <span className="block text-2xl font-bold text-foreground sm:text-5xl">{stats.totalDatarooms.toLocaleString()}</span>- <p className="mt-3 text-balance text-sm font-medium text-muted-foreground">+ <p className="mt-1 text-balance text-xs font-medium text-muted-foreground sm:mt-3 sm:text-sm">Datarooms</p></div>@@ -763,24 +775,24 @@ function ViewsStatsSlide({ stats }: { stats: YearlyRecapStats }) {function MostActiveSlide({ stats }: { stats: YearlyRecapStats }) {return (- <div className="flex min-h-[520px] flex-col items-center justify-center text-center">- <h2 className="mb-2 text-balance text-3xl font-bold text-foreground">+ <div className="flex min-h-[350px] flex-col items-center justify-center text-center sm:min-h-[520px]">+ <h2 className="mb-2 text-balance text-xl font-bold text-foreground sm:text-3xl">Your Most Active Viewer</h2>- <p className="mb-10 text-balance text-lg text-muted-foreground">+ <p className="mb-6 text-balance text-sm text-muted-foreground sm:mb-10 sm:text-lg">Someone really loves your documents!</p>{/* Card appears from bottom only */}{stats.mostActiveViewer ? (- <div className="w-full max-w-xl rounded-3xl bg-card p-12 shadow-lg duration-700 animate-in slide-in-from-bottom-8">- <div className="mx-auto mb-6 flex h-24 w-24 items-center justify-center rounded-full bg-gradient-to-br from-primary/20 to-primary/40">- <Users className="h-12 w-12 text-primary" />+ <div className="w-full max-w-xl rounded-2xl bg-card p-6 shadow-lg duration-700 animate-in slide-in-from-bottom-8 sm:rounded-3xl sm:p-12">+ <div className="mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-gradient-to-br from-primary/20 to-primary/40 sm:mb-6 sm:h-24 sm:w-24">+ <Users className="h-8 w-8 text-primary sm:h-12 sm:w-12" /></div>- <h3 className="text-balance text-2xl font-bold text-foreground">+ <h3 className="truncate text-balance text-lg font-bold text-foreground sm:text-2xl">{stats.mostActiveViewer.name || stats.mostActiveViewer.email}</h3>- <p className="mt-3 text-balance text-muted-foreground">+ <p className="mt-2 text-balance text-sm text-muted-foreground sm:mt-3 sm:text-base">Viewed your documents{" "}<span className="font-semibold text-primary">{stats.mostActiveViewer.viewCount.toLocaleString()} times@@ -788,7 +800,7 @@ function MostActiveSlide({ stats }: { stats: YearlyRecapStats }) {</p></div>) : (- <div className="rounded-3xl bg-card p-12 shadow-lg">+ <div className="rounded-2xl bg-card p-6 shadow-lg sm:rounded-3xl sm:p-12"><p className="text-balance text-muted-foreground">No viewer data available</p>@@ -800,20 +812,20 @@ function MostActiveSlide({ stats }: { stats: YearlyRecapStats }) {function SummarySlide({ stats }: { stats: YearlyRecapStats }) {return (- <div className="flex min-h-[520px] flex-col items-center justify-center text-center">- <h2 className="mb-4 text-balance text-4xl font-bold text-foreground">+ <div className="flex min-h-[350px] flex-col items-center justify-center text-center sm:min-h-[520px]">+ <h2 className="mb-3 text-balance text-2xl font-bold text-foreground sm:mb-4 sm:text-4xl">What a year! 🎉</h2>- <p className="max-w-xl text-balance text-lg text-muted-foreground">+ <p className="max-w-xl text-balance px-2 text-sm text-muted-foreground sm:px-0 sm:text-lg">You've made an impact with your documents. Here's to an evenbigger {stats.year + 1}!</p>{/* Busiest month */}{stats.mostActiveMonth && (- <div className="mt-8 rounded-2xl bg-card px-8 py-5 shadow-lg duration-700 animate-in zoom-in-75">- <div className="flex items-center gap-3 text-sm">- <Calendar className="h-5 w-5 text-orange-600" />+ <div className="mt-6 rounded-xl bg-card px-5 py-4 shadow-lg duration-700 animate-in zoom-in-75 sm:mt-8 sm:rounded-2xl sm:px-8 sm:py-5">+ <div className="flex items-center gap-2 text-xs sm:gap-3 sm:text-sm">+ <Calendar className="h-4 w-4 text-orange-600 sm:h-5 sm:w-5" /><span className="text-muted-foreground">Busiest month:</span><span className="font-semibold text-foreground">{stats.mostActiveMonth.month}@@ -840,18 +852,18 @@ function SummarySlide({ stats }: { stats: YearlyRecapStats }) {function ShareOfferSlide({ stats }: { stats: YearlyRecapStats }) {return (- <div className="flex min-h-[520px] flex-col items-center justify-center text-center">- <h2 className="mb-6 text-balance text-3xl font-bold text-foreground">+ <div className="flex min-h-[350px] flex-col items-center justify-center text-center sm:min-h-[520px]">+ <h2 className="mb-4 text-balance text-xl font-bold text-foreground sm:mb-6 sm:text-3xl">Share your stats or experience with Papermark</h2><div className="duration-1000 animate-in zoom-in-50">- <span className="mb-2 block text-8xl font-bold text-orange-500">+ <span className="mb-2 block text-6xl font-bold text-orange-500 sm:text-8xl">$50</span></div>- <p className="mt-8 text-balance text-sm text-muted-foreground">+ <p className="mt-6 max-w-sm text-balance px-2 text-xs text-muted-foreground sm:mt-8 sm:max-w-none sm:px-0 sm:text-sm">You will receive $50 in credits on your papermark account, please sendconfirmation to{" "}<span className="font-medium">[email protected]</span> and includediff --git a/package-lock.json b/package-lock.jsonindex cb8877c7..6e4c4aa0 100644--- a/package-lock.json+++ b/package-lock.json@@ -96,7 +96,7 @@"jsonwebtoken": "^9.0.3","lucide-react": "^0.556.0","mime-types": "^3.0.2",- "motion": "^12.23.25",+ "motion": "^12.23.26","ms": "^2.1.3","mupdf": "^1.26.4","nanoid": "^5.1.6",@@ -12634,9 +12634,9 @@}},"node_modules/framer-motion": {- "version": "12.23.25",- "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-12.23.25.tgz",- "integrity": "sha512-gUHGl2e4VG66jOcH0JHhuJQr6ZNwrET9g31ZG0xdXzT0CznP7fHX4P8Bcvuc4MiUB90ysNnWX2ukHRIggkl6hQ==",+ "version": "12.23.26",+ "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-12.23.26.tgz",+ "integrity": "sha512-cPcIhgR42xBn1Uj+PzOyheMtZ73H927+uWPDVhUMqxy8UHt6Okavb6xIz9J/phFUHUj0OncR6UvMfJTXoc/LKA==","license": "MIT","dependencies": {"motion-dom": "^12.23.23",@@ -16280,12 +16280,12 @@"integrity": "sha512-ySViT69/76t8VhE1xXHK6Ch4NcDd26gx0MzKXLO+F7NOtnqH68d9zF94nT8ZWSxXh8ELOERsnJO/sWt1xZYw5A=="},"node_modules/motion": {- "version": "12.23.25",- "resolved": "https://registry.npmjs.org/motion/-/motion-12.23.25.tgz",- "integrity": "sha512-Fk5Y1kcgxYiTYOUjmwfXQAP7tP+iGqw/on1UID9WEL/6KpzxPr9jY2169OsjgZvXJdpraKXy0orkjaCVIl5fgQ==",+ "version": "12.23.26",+ "resolved": "https://registry.npmjs.org/motion/-/motion-12.23.26.tgz",+ "integrity": "sha512-Ll8XhVxY8LXMVYTCfme27WH2GjBrCIzY4+ndr5QKxsK+YwCtOi2B/oBi5jcIbik5doXuWT/4KKDOVAZJkeY5VQ==","license": "MIT","dependencies": {- "framer-motion": "^12.23.25",+ "framer-motion": "^12.23.26","tslib": "^2.4.0"},"peerDependencies": {diff --git a/package.json b/package.jsonindex daae1edd..799eb510 100644--- a/package.json+++ b/package.json@@ -107,7 +107,7 @@"jsonwebtoken": "^9.0.3","lucide-react": "^0.556.0","mime-types": "^3.0.2",- "motion": "^12.23.25",+ "motion": "^12.23.26","ms": "^2.1.3","mupdf": "^1.26.4","nanoid": "^5.1.6",