🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Refactor CTASection and CtaDataLine components for improved readability and maintainability
Bill Yang68048fcdfb23
diff --git a/docs/src/components/CTASection.tsx b/docs/src/components/CTASection.tsxindex df94d9864..68d03a3b5 100644--- a/docs/src/components/CTASection.tsx+++ b/docs/src/components/CTASection.tsx@@ -26,7 +26,8 @@ export function CTASection({}: CTASectionProps) {const t = useExtracted();const resolvedTitle = title ?? t("Ready for better analytics?");- const resolvedDescription = description ?? t("Powerful insights without the complexity. Privacy-focused analytics that just works.");+ const resolvedDescription =+ description ?? t("Powerful insights without the complexity. Privacy-focused analytics that just works.");const resolvedPrimaryButtonText = primaryButtonText ?? t("Start for $0");const resolvedSecondaryButtonText = secondaryButtonText ?? t("Live demo");@@ -36,7 +37,7 @@ export function CTASection({aria-hidden="true"className="pointer-events-none absolute inset-0 opacity-60 [background-image:linear-gradient(to_right,rgba(255,255,255,0.045)_1px,transparent_1px),linear-gradient(to_bottom,rgba(255,255,255,0.045)_1px,transparent_1px)] [background-size:40px_40px] [mask-image:linear-gradient(to_bottom,black,transparent_92%)]"/>- <CtaDataLine className="h-36 lg:h-44" />+ {/* <CtaDataLine className="h-36 lg:h-44" /> */}<div className="relative mx-auto grid max-w-[1200px] border-x border-white/10 lg:grid-cols-12"><GridCrosses className="text-white/30 dark:text-white/30" />{/* The watermark frog, awake: it perks up when you hover the section,diff --git a/docs/src/components/deco/CtaDataLine.tsx b/docs/src/components/deco/CtaDataLine.tsxindex c28b8b873..3d2370ec7 100644--- a/docs/src/components/deco/CtaDataLine.tsx+++ b/docs/src/components/deco/CtaDataLine.tsx@@ -56,7 +56,10 @@ export function CtaDataLine({ className }: { className?: string }) {</svg>{/* Endpoint marker at (784, 12) in the 800x200 viewBox */}<span- className={cn("absolute left-[98%] top-[6%] flex size-2 -translate-x-1/2 -translate-y-1/2", animate && "dataline-dot")}+ className={cn(+ "absolute left-[98%] top-[6%] flex size-2 -translate-x-1/2 -translate-y-1/2",+ animate && "dataline-dot"+ )}><span className="absolute inline-flex size-full animate-ping rounded-full bg-emerald-400 opacity-50 [animation-duration:2.4s] motion-reduce:hidden" /><span className="relative inline-flex size-2 rounded-full bg-emerald-400" />