🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Enhance ComparisonSection and component styles for improved visual consistency
Bill Yang3b7fa84fe8e8
diff --git a/docs/src/app/(home)/pricing/components/ComparisonSection.tsx b/docs/src/app/(home)/pricing/components/ComparisonSection.tsxindex 2971a0597..0be1b8b73 100644--- a/docs/src/app/(home)/pricing/components/ComparisonSection.tsx+++ b/docs/src/app/(home)/pricing/components/ComparisonSection.tsx@@ -139,6 +139,13 @@ const COMPARISON_FEATURES = [pro: true,enterprise: true,},+ {+ name: "API",+ free: false,+ standard: true,+ pro: true,+ enterprise: true,+ },{name: "Session replays",free: false,@@ -256,7 +263,7 @@ function FeatureCell({ value }: FeatureCellProps) {export function ComparisonSection() {return (<section className="-mt-8 pb-8 w-full relative z-10">- <div className="max-w-7xl mx-auto px-4 overflow-x-auto">+ <div className="max-w-[1300px] mx-auto px-4 overflow-x-auto"><div className="bg-neutral-200/40 dark:bg-neutral-900/40 p-2 rounded-3xl border border-neutral-300 dark:border-neutral-800"><div className="bg-neutral-50 dark:bg-neutral-900 backdrop-blur-sm rounded-2xl border border-neutral-300 dark:border-neutral-800 overflow-hidden min-w-[800px]">{/* Table Header */}diff --git a/docs/src/components/BackgroundGrid.tsx b/docs/src/components/BackgroundGrid.tsxindex 3e6cdee3c..83f778477 100644--- a/docs/src/components/BackgroundGrid.tsx+++ b/docs/src/components/BackgroundGrid.tsx@@ -10,7 +10,7 @@ export function BackgroundGrid({ className }: BackgroundGridProps) {className={cn("absolute inset-0 -top-32 md:-top-48","[background-size:40px_40px]",- "[background-image:linear-gradient(to_right,#d4d4d4_1px,transparent_1px),linear-gradient(to_bottom,#d4d4d4_1px,transparent_1px)]",+ "[background-image:linear-gradient(to_right,#e5e5e5_1px,transparent_1px),linear-gradient(to_bottom,#e5e5e5_1px,transparent_1px)]","dark:[background-image:linear-gradient(to_right,#262626_1px,transparent_1px),linear-gradient(to_bottom,#262626_1px,transparent_1px)]","[mask-image:linear-gradient(to_bottom,black,transparent_80%),linear-gradient(to_right,transparent,black_10%,black_90%,transparent)]","[mask-composite:intersect]",diff --git a/docs/src/components/Cards/Card.tsx b/docs/src/components/Cards/Card.tsxindex fdaebd1d1..37fe7968c 100644--- a/docs/src/components/Cards/Card.tsx+++ b/docs/src/components/Cards/Card.tsx@@ -15,8 +15,8 @@ export function Card({ title, description, children, className, icon: Icon }: CaclassName={cn("bg-neutral-100/50 dark:bg-neutral-800/20 p-4 md:p-6 rounded-xl border border-neutral-300/50 dark:border-neutral-800/50 overflow-hidden", className)}>{Icon && (- <div className="w-8 h-8 rounded-lg bg-gradient-to-br from-emerald-500/30 to-emerald-600/20 dark:from-emerald-500/20 dark:to-emerald-600/10 border border-emerald-500/40 dark:border-emerald-500/30 shadow-md shadow-emerald-500/20 dark:shadow-emerald-500/10 flex items-center justify-center mb-3">- <Icon className="w-4 h-4 text-emerald-600 dark:text-emerald-400" />+ <div className="w-8 h-8 rounded-lg bg-gradient-to-br from-emerald-600/20 to-emerald-700/15 dark:from-emerald-600/15 dark:to-emerald-700/10 border border-emerald-600/30 dark:border-emerald-600/20 shadow-md shadow-emerald-600/10 dark:shadow-emerald-600/5 flex items-center justify-center mb-3">+ <Icon className="w-4 h-4 text-emerald-600 dark:text-emerald-300" /></div>)}<h3 className="text-xl font-semibold mb-2">{title}</h3>diff --git a/docs/src/components/PricingCard.tsx b/docs/src/components/PricingCard.tsxindex 46f044bf9..9167e416d 100644--- a/docs/src/components/PricingCard.tsx+++ b/docs/src/components/PricingCard.tsx@@ -44,16 +44,17 @@ export function PricingCard({return (<div className="w-full flex-shrink-0">- <div- className={cn(- "rounded-xl border overflow-hidden backdrop-blur-sm shadow-xl h-full",- recommended- ? "bg-neutral-100/80 dark:bg-neutral-800/100 border-emerald-500 border-2"- : isFree- ? "bg-neutral-100/30 dark:bg-neutral-800/15 border-neutral-300/60 dark:border-neutral-800/60 text-neutral-600 dark:text-neutral-300"- : "bg-neutral-100/50 dark:bg-neutral-800/50 border-neutral-300/90 dark:border-neutral-800/90"- )}- >+ <div className="bg-neutral-200/40 dark:bg-neutral-900/40 p-2 rounded-3xl border border-neutral-300 dark:border-neutral-800 h-full">+ <div+ className={cn(+ "rounded-2xl border overflow-hidden backdrop-blur-sm shadow-xl h-full",+ recommended+ ? "bg-neutral-100/80 dark:bg-neutral-800/100 border-emerald-500 border-2"+ : isFree+ ? "bg-neutral-100/30 dark:bg-neutral-800/15 border-neutral-300/60 dark:border-neutral-800/60 text-neutral-600 dark:text-neutral-300"+ : "bg-neutral-50 dark:bg-neutral-900 border-neutral-300 dark:border-neutral-800"+ )}+ ><div className="p-6"><div className="mb-4"><div className="flex items-center gap-2 mb-2">@@ -139,6 +140,7 @@ export function PricingCard({</p>)}</div>+ </div></div></div>);diff --git a/docs/src/components/SectionBadge.tsx b/docs/src/components/SectionBadge.tsxindex dc5ac6b66..858db402c 100644--- a/docs/src/components/SectionBadge.tsx+++ b/docs/src/components/SectionBadge.tsx@@ -9,7 +9,7 @@ export function SectionBadge({ children, className }: SectionBadgeProps) {return (<divclassName={cn(- "inline-block bg-gradient-to-br from-emerald-500/30 to-emerald-600/20 dark:from-emerald-500/20 dark:to-emerald-600/10 border border-emerald-500/40 dark:border-emerald-500/30 shadow-md shadow-emerald-500/20 dark:shadow-emerald-500/10 text-emerald-600 dark:text-emerald-400 px-3 py-1 rounded-full text-sm font-medium",+ "inline-block bg-gradient-to-br from-emerald-600/20 to-emerald-700/15 dark:from-emerald-600/15 dark:to-emerald-700/10 border border-emerald-600/30 dark:border-emerald-600/20 shadow-md shadow-emerald-600/10 dark:shadow-emerald-600/5 text-emerald-600 dark:text-emerald-300 px-3 py-1 rounded-sm text-sm font-medium",className)}>