Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Update call-to-action text across multiple components to specify "Start free trial for $0" instead of "Start for $0" for clarity. Refactor code formatting for better readability in PricingSection and other components.

Bill Yangfa30fe83af1d
diff --git a/docs/src/app/[locale]/(home)/pricing/components/ComparisonSection.tsx b/docs/src/app/[locale]/(home)/pricing/components/ComparisonSection.tsx
index 979de2613..451341dbc 100644
--- a/docs/src/app/[locale]/(home)/pricing/components/ComparisonSection.tsx
+++ b/docs/src/app/[locale]/(home)/pricing/components/ComparisonSection.tsx
@@ -266,13 +266,13 @@ export function ComparisonSection({ isAnnual }: { isAnnual: boolean }) {
name: t("Standard"),
price: "From $" + (isAnnual ? "13" : "19") + " /month",
href: "https://app.rybbit.io/signup",
- cta: t("Start for $0"),
+ cta: t("Start free trial for $0"),
},
{
name: t("Pro"),
price: "From $" + (isAnnual ? "26" : "39") + " /month",
href: "https://app.rybbit.io/signup",
- cta: t("Start for $0"),
+ cta: t("Start free trial for $0"),
featured: true,
},
{
@@ -281,12 +281,14 @@ export function ComparisonSection({ isAnnual }: { isAnnual: boolean }) {
href: "https://www.rybbit.com/contact",
cta: t("Contact us"),
},
- ].map((plan) => (
+ ].map(plan => (
<div
key={plan.name}
className="flex flex-col items-center border-r border-neutral-200 px-4 py-7 text-center last:border-r-0 dark:border-neutral-800"
>
- <h3 className={cn("text-lg font-semibold", plan.featured && "text-emerald-600 dark:text-emerald-400")}>
+ <h3
+ className={cn("text-lg font-semibold", plan.featured && "text-emerald-600 dark:text-emerald-400")}
+ >
{plan.name}
</h3>
<p className="mt-1 text-sm text-neutral-500 dark:text-neutral-400">{plan.price}</p>
@@ -305,12 +307,12 @@ export function ComparisonSection({ isAnnual }: { isAnnual: boolean }) {
))}
</div>
- {COMPARISON_FEATURES.map((category) => (
+ {COMPARISON_FEATURES.map(category => (
<div key={category.category}>
<div className="border-b border-neutral-200 bg-neutral-50 px-6 py-3 text-xs font-semibold uppercase tracking-[0.12em] text-neutral-500 dark:border-neutral-800 dark:bg-neutral-900/60 lg:px-10">
{category.category}
</div>
- {category.features.map((feature) => (
+ {category.features.map(feature => (
<div
key={feature.name}
className="grid grid-cols-4 border-b border-neutral-200 text-sm last:border-b-0 dark:border-neutral-800"
diff --git a/docs/src/components/CTASection.tsx b/docs/src/components/CTASection.tsx
index c2a2beddb..b517f11d6 100644
--- a/docs/src/components/CTASection.tsx
+++ b/docs/src/components/CTASection.tsx
@@ -30,7 +30,7 @@ export function CTASection({
const resolvedDescription =
description ?? t("The full analytics surface on one dashboard: cookieless, open source, and live in minutes.");
const resolvedPrimaryButtonHref = primaryButtonHref ?? "https://app.rybbit.io/signup";
- const resolvedPrimaryButtonText = primaryButtonText ?? t("Start for $0");
+ const resolvedPrimaryButtonText = primaryButtonText ?? t("Start free trial for $0");
const resolvedSecondaryButtonText = secondaryButtonText ?? t("Live demo");
// Pages that route the primary action somewhere else keep their button; the
// default signup destination becomes the domain input.
diff --git a/docs/src/components/InteriorPageHero.tsx b/docs/src/components/InteriorPageHero.tsx
index a90263a86..59335c909 100644
--- a/docs/src/components/InteriorPageHero.tsx
+++ b/docs/src/components/InteriorPageHero.tsx
@@ -37,7 +37,7 @@ export function InteriorPageHero({
primaryAction === undefined
? {
href: "https://app.rybbit.io/signup",
- label: t("Start for $0"),
+ label: t("Start free trial for $0"),
eventName: "signup",
}
: primaryAction;
@@ -59,11 +59,7 @@ export function InteriorPageHero({
<HeroDataLine id="interior" className="hidden h-28 sm:block lg:h-36" />
<div className="relative">
{breadcrumbs && <div className="mb-6">{breadcrumbs}</div>}
- {eyebrow && (
- <p className="mb-6 text-sm font-semibold text-emerald-600 dark:text-emerald-400">
- {eyebrow}
- </p>
- )}
+ {eyebrow && <p className="mb-6 text-sm font-semibold text-emerald-600 dark:text-emerald-400">{eyebrow}</p>}
<h1 className="max-w-3xl text-[clamp(3rem,5.25vw,4.75rem)] font-semibold leading-[0.96] tracking-[-0.04em] text-neutral-950 text-balance dark:text-neutral-50">
{title}
</h1>
@@ -106,9 +102,7 @@ export function InteriorPageHero({
</div>
)}
- {resolvedNote && (
- <p className="mt-4 text-sm text-neutral-500 dark:text-neutral-400">{resolvedNote}</p>
- )}
+ {resolvedNote && <p className="mt-4 text-sm text-neutral-500 dark:text-neutral-400">{resolvedNote}</p>}
</div>
</div>
</section>
diff --git a/docs/src/components/PricingSection.tsx b/docs/src/components/PricingSection.tsx
index 28279d072..7bfa51eba 100644
--- a/docs/src/components/PricingSection.tsx
+++ b/docs/src/components/PricingSection.tsx
@@ -12,7 +12,20 @@ import { STANDARD_SITE_LIMIT, STANDARD_TEAM_LIMIT } from "../lib/const";
import { PricingCard, type PricingCardProps } from "./PricingCard";
// Available event tiers for the slider
-export const EVENT_TIERS = [100_000, 250_000, 500_000, 1_000_000, 2_000_000, 5_000_000, 10_000_000, 20_000_000, 30_000_000, 40_000_000, 50_000_000, "Custom"];
+export const EVENT_TIERS = [
+ 100_000,
+ 250_000,
+ 500_000,
+ 1_000_000,
+ 2_000_000,
+ 5_000_000,
+ 10_000_000,
+ 20_000_000,
+ 30_000_000,
+ 40_000_000,
+ 50_000_000,
+ "Custom",
+];
export const formatter = Intl.NumberFormat("en", {
notation: "compact",
@@ -167,7 +180,7 @@ export function PricingSection({
title: t("Standard"),
description: t("What a small business needs to get started"),
priceDisplay: renderPrice(standardPrices),
- buttonText: standardPrices.custom ? t("Contact us") : t("Start for $0"),
+ buttonText: standardPrices.custom ? t("Contact us") : t("Start free trial for $0"),
buttonHref: standardPrices.custom ? "https://www.rybbit.com/contact" : "https://app.rybbit.io/signup",
features: STANDARD_FEATURES,
eventLocation: standardPrices.custom ? undefined : "standard",
@@ -177,7 +190,7 @@ export function PricingSection({
title: t("Pro"),
description: t("Advanced features for professional teams"),
priceDisplay: renderPrice(proPrices),
- buttonText: proPrices.custom ? t("Contact us") : t("Start for $0"),
+ buttonText: proPrices.custom ? t("Contact us") : t("Start free trial for $0"),
buttonHref: proPrices.custom ? "https://www.rybbit.com/contact" : "https://app.rybbit.io/signup",
features: PRO_FEATURES,
eventLocation: proPrices.custom ? undefined : "pro",
@@ -194,8 +207,7 @@ export function PricingSection({
features: ENTERPRISE_FEATURES,
// In the 2-column band (700–1100px) Enterprise spans the full row, so the
// feature list folds into two columns to keep the cell balanced.
- featuresClassName:
- "min-[700px]:columns-2 min-[700px]:gap-x-10 min-[1100px]:columns-1 [&>div]:break-inside-avoid",
+ featuresClassName: "min-[700px]:columns-2 min-[700px]:gap-x-10 min-[1100px]:columns-1 [&>div]:break-inside-avoid",
};
const headlineClasses = "mt-5 max-w-2xl font-semibold tracking-[-0.035em] text-balance";
@@ -252,7 +264,9 @@ export function PricingSection({
<div className="rounded-md border border-neutral-300 bg-white px-5 py-6 dark:border-neutral-700 dark:bg-neutral-950 sm:px-6">
<div className="mb-7 flex items-end justify-between gap-5">
<div>
- <h3 className="mb-2 text-sm font-medium text-neutral-600 dark:text-neutral-400">{t("Monthly pageviews")}</h3>
+ <h3 className="mb-2 text-sm font-medium text-neutral-600 dark:text-neutral-400">
+ {t("Monthly pageviews")}
+ </h3>
<div className="text-3xl font-semibold tabular-nums tracking-tight md:text-4xl">
{typeof eventLimit === "number" ? eventLimit.toLocaleString() : t("Custom")}
</div>