Skip to content

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

feat(landing): site-wide "bare" register for variant B visitors (#1160)

Goldflag3901f5a0b200
diff --git a/docs/messages/de.json b/docs/messages/de.json
index 078a536bb..50c57edf0 100644
--- a/docs/messages/de.json
+++ b/docs/messages/de.json
@@ -217,6 +217,7 @@
"QdXJdp": "Die Einrichtung von Rybbit",
"R9nLfy": "White-Labeling & Individuelle Lösungen",
"RE0v43": "Benutzerdefinierte Ereignisse",
+ "RNrO5T": "",
"RUnbPu": "Teilen Sie passwortgeschützte Dashboard-Links mit detaillierter Kontrolle über die sichtbaren Daten.",
"RVxXSc": "Schauen Sie sich echte Nutzersitzungen an, um ihr Verhalten zu verstehen und Schwachstellen zu identifizieren.",
"R_eOkj": "Pro",
diff --git a/docs/messages/en.json b/docs/messages/en.json
index 5b69b354e..c7680465e 100644
--- a/docs/messages/en.json
+++ b/docs/messages/en.json
@@ -217,6 +217,7 @@
"QdXJdp": "Setting up Rybbit",
"R9nLfy": "White-Labeling & Custom Solutions",
"RE0v43": "Custom Events",
+ "RNrO5T": "7-day free trial. No credit card charges until the trial ends.",
"RUnbPu": "Share password-protected dashboard links with granular control over what data is visible.",
"RVxXSc": "Watch real user sessions to understand their behavior and identify pain points.",
"R_eOkj": "Pro",
diff --git a/docs/messages/es.json b/docs/messages/es.json
index 113e0b3de..3164a35ae 100644
--- a/docs/messages/es.json
+++ b/docs/messages/es.json
@@ -217,6 +217,7 @@
"QdXJdp": "Configurar Rybbit",
"R9nLfy": "White-Labeling y Soluciones Personalizadas",
"RE0v43": "Eventos personalizados",
+ "RNrO5T": "",
"RUnbPu": "Comparte enlaces de paneles protegidos por contraseña con control granular sobre qué datos son visibles.",
"RVxXSc": "Observa sesiones reales de usuarios para comprender su comportamiento e identificar puntos de dolor.",
"R_eOkj": "Pro",
diff --git a/docs/messages/fr.json b/docs/messages/fr.json
index bf484ea53..47d384244 100644
--- a/docs/messages/fr.json
+++ b/docs/messages/fr.json
@@ -217,6 +217,7 @@
"QdXJdp": "La configuration de Rybbit",
"R9nLfy": "Marque blanche et solutions personnalisées",
"RE0v43": "Événements personnalisés",
+ "RNrO5T": "",
"RUnbPu": "Partagez des liens de tableau de bord protégés par mot de passe avec un contrôle précis sur les données visibles.",
"RVxXSc": "Regardez les sessions utilisateurs réelles pour comprendre leur comportement et identifier les points de friction.",
"R_eOkj": "Pro",
diff --git a/docs/messages/it.json b/docs/messages/it.json
index c356a527b..7c4c64338 100644
--- a/docs/messages/it.json
+++ b/docs/messages/it.json
@@ -217,6 +217,7 @@
"QdXJdp": "Configurare Rybbit",
"R9nLfy": "White-Labeling e Soluzioni Personalizzate",
"RE0v43": "Eventi personalizzati",
+ "RNrO5T": "",
"RUnbPu": "Condividi link dashboard protetti da password con controllo granulare sui dati visibili.",
"RVxXSc": "Guarda le sessioni utente reali per comprendere il loro comportamento e identificare i punti critici.",
"R_eOkj": "Pro",
diff --git a/docs/messages/ja.json b/docs/messages/ja.json
index ee632b22a..bcd2632e3 100644
--- a/docs/messages/ja.json
+++ b/docs/messages/ja.json
@@ -217,6 +217,7 @@
"QdXJdp": "Rybbitのセットアップ",
"R9nLfy": "ホワイトラベルおよびカスタムソリューション",
"RE0v43": "カスタムイベント",
+ "RNrO5T": "",
"RUnbPu": "表示するデータを細かく制御したパスワード保護付きのダッシュボードリンクを共有します。",
"RVxXSc": "実際のユーザーセッションを視聴して、ユーザーの行動を理解し、ペインポイントを特定します。",
"R_eOkj": "プロ",
diff --git a/docs/messages/ko.json b/docs/messages/ko.json
index 62dcedc9b..61cb2c1a6 100644
--- a/docs/messages/ko.json
+++ b/docs/messages/ko.json
@@ -217,6 +217,7 @@
"QdXJdp": "Rybbit 설정",
"R9nLfy": "화이트 레이블링 및 맞춤형 솔루션",
"RE0v43": "맞춤 이벤트",
+ "RNrO5T": "",
"RUnbPu": "표시되는 데이터를 세밀하게 제어하는 비밀번호 보호 대시보드 링크를 공유하세요.",
"RVxXSc": "실제 사용자 세션을 다시 보며 사용자 행동을 이해하고 페인 포인트를 파악하세요.",
"R_eOkj": "프로",
diff --git a/docs/messages/pl.json b/docs/messages/pl.json
index d6b6cff96..3444396b1 100644
--- a/docs/messages/pl.json
+++ b/docs/messages/pl.json
@@ -217,6 +217,7 @@
"QdXJdp": "Konfiguracja Rybbit",
"R9nLfy": "White-Labeling i Rozwiązania Niestandardowe",
"RE0v43": "Zdarzenia niestandardowe",
+ "RNrO5T": "",
"RUnbPu": "Udostępniaj chronione hasłem linki do dashboardów z szczegółową kontrolą nad widocznymi danymi.",
"RVxXSc": "Oglądaj rzeczywiste sesje użytkowników, aby zrozumieć ich zachowanie i zidentyfikować punkty bólu.",
"R_eOkj": "Pro",
diff --git a/docs/messages/pt.json b/docs/messages/pt.json
index 96f6e13f4..30def5954 100644
--- a/docs/messages/pt.json
+++ b/docs/messages/pt.json
@@ -217,6 +217,7 @@
"QdXJdp": "Configurar o Rybbit",
"R9nLfy": "White-Label e Soluções Personalizadas",
"RE0v43": "Eventos personalizados",
+ "RNrO5T": "",
"RUnbPu": "Compartilhe links de dashboard protegidos por senha com controle granular sobre quais dados são visíveis.",
"RVxXSc": "Assista sessões reais de usuários para entender seu comportamento e identificar pontos de atrito.",
"R_eOkj": "Pro",
diff --git a/docs/messages/zh.json b/docs/messages/zh.json
index 8b836e167..69cd3293a 100644
--- a/docs/messages/zh.json
+++ b/docs/messages/zh.json
@@ -217,6 +217,7 @@
"QdXJdp": "部署 Rybbit",
"R9nLfy": "白标与定制解决方案",
"RE0v43": "自定义事件",
+ "RNrO5T": "",
"RUnbPu": "通过密码保护的仪表盘链接进行分享,精细控制数据可见范围。",
"RVxXSc": "观看真实用户会话,深入理解用户行为,识别痛点。",
"R_eOkj": "专业版",
diff --git a/docs/src/app/[locale]/(home)/features/components/FeaturePage.tsx b/docs/src/app/[locale]/(home)/features/components/FeaturePage.tsx
index 5a8eba2e8..8d3c2c842 100644
--- a/docs/src/app/[locale]/(home)/features/components/FeaturePage.tsx
+++ b/docs/src/app/[locale]/(home)/features/components/FeaturePage.tsx
@@ -86,9 +86,9 @@ export function FeaturePage({
{demoUrl && (
<section className="border-b border-neutral-200 dark:border-neutral-800" aria-label={`${featureName} demo`}>
- <div className="mx-auto max-w-[1200px] border-x border-neutral-200 bg-neutral-100 p-2 dark:border-neutral-800 dark:bg-neutral-900 sm:p-3">
+ <div className="mx-auto max-w-[1200px] border-x border-neutral-200 bg-neutral-100 p-2 bare:bg-transparent bare:px-5 bare:py-8 dark:border-neutral-800 dark:bg-neutral-900 dark:bare:bg-transparent sm:p-3 bare:sm:px-8 bare:sm:py-8 bare:lg:px-10">
<div className="overflow-hidden rounded-lg border border-neutral-300 bg-white dark:border-neutral-700 dark:bg-neutral-950">
- <div className="grid h-10 grid-cols-[1fr_auto_1fr] items-center gap-2 border-b border-neutral-200 px-3 dark:border-neutral-800 sm:px-4">
+ <div className="grid h-10 grid-cols-[1fr_auto_1fr] items-center gap-2 border-b border-neutral-200 px-3 bare:h-8 dark:border-neutral-800 sm:px-4">
<div className="flex gap-1.5" aria-hidden="true">
<span className="size-2.5 rounded-full bg-neutral-300 dark:bg-neutral-700" />
<span className="size-2.5 rounded-full bg-neutral-300 dark:bg-neutral-700" />
@@ -102,7 +102,7 @@ export function FeaturePage({
>
demo.rybbit.com
</a>
- <div className="flex items-center justify-self-end gap-1.5 text-xs text-neutral-500 dark:text-neutral-400">
+ <div className="flex items-center justify-self-end gap-1.5 text-xs text-neutral-500 bare:hidden dark:text-neutral-400">
<span className="size-2 rounded-full bg-emerald-500" aria-hidden="true" />
<span className="hidden sm:inline">{t("Live")}</span>
</div>
@@ -128,7 +128,7 @@ export function FeaturePage({
<section className="border-b border-neutral-200 dark:border-neutral-800">
<div className="mx-auto grid max-w-[1200px] border-x border-neutral-200 dark:border-neutral-800 lg:grid-cols-12">
- <div className="border-b border-neutral-200 px-5 py-12 dark:border-neutral-800 sm:px-8 lg:col-span-4 lg:border-b-0 lg:border-r lg:px-10 lg:py-16">
+ <div className="border-b border-neutral-200 px-5 py-12 dark:border-neutral-800 sm:px-8 lg:col-span-4 lg:border-b-0 lg:border-r lg:px-10 lg:py-16 bare:lg:border-r-0">
<p className="text-sm font-semibold text-neutral-500 dark:text-neutral-400">{badgeText}</p>
<h2 className="mt-4 text-3xl font-semibold tracking-[-0.03em] md:text-4xl">{featureName}</h2>
</div>
@@ -147,7 +147,7 @@ export function FeaturePage({
<section className="border-b border-neutral-200 dark:border-neutral-800" aria-labelledby="capabilities-title">
<div className="mx-auto grid max-w-[1200px] border-x border-neutral-200 dark:border-neutral-800 lg:grid-cols-12">
- <div className="border-b border-neutral-200 px-5 py-12 dark:border-neutral-800 sm:px-8 lg:col-span-4 lg:border-b-0 lg:border-r lg:px-10 lg:py-16">
+ <div className="border-b border-neutral-200 px-5 py-12 dark:border-neutral-800 sm:px-8 lg:col-span-4 lg:border-b-0 lg:border-r lg:px-10 lg:py-16 bare:lg:border-r-0">
<div className="lg:sticky lg:top-24">
<p className="text-sm font-semibold text-neutral-500 dark:text-neutral-400">{t("Capabilities")}</p>
<h2 id="capabilities-title" className="mt-4 text-3xl font-semibold tracking-[-0.03em] md:text-4xl">
@@ -159,7 +159,7 @@ export function FeaturePage({
{capabilities.map((capability) => (
<article
key={capability.title}
- className="border-b border-neutral-200 px-5 py-10 dark:border-neutral-800 sm:px-8 md:odd:border-r md:[&:nth-last-child(-n+2)]:border-b-0 lg:px-10"
+ className="border-b border-neutral-200 px-5 py-10 dark:border-neutral-800 sm:px-8 md:odd:border-r md:[&:nth-last-child(-n+2)]:border-b-0 lg:px-10 bare:md:odd:border-r-0"
>
<div className="mb-5 flex size-9 items-center justify-center rounded-md border border-neutral-200 text-neutral-600 dark:border-neutral-800 dark:text-neutral-400">
{capability.icon}
@@ -176,7 +176,7 @@ export function FeaturePage({
<section className="border-b border-neutral-200 dark:border-neutral-800" aria-labelledby="how-it-works-title">
<div className="mx-auto grid max-w-[1200px] border-x border-neutral-200 dark:border-neutral-800 lg:grid-cols-12">
- <div className="border-b border-neutral-200 px-5 py-12 dark:border-neutral-800 sm:px-8 lg:col-span-4 lg:border-b-0 lg:border-r lg:px-10 lg:py-16">
+ <div className="border-b border-neutral-200 px-5 py-12 dark:border-neutral-800 sm:px-8 lg:col-span-4 lg:border-b-0 lg:border-r lg:px-10 lg:py-16 bare:lg:border-r-0">
<div className="lg:sticky lg:top-24">
<p className="text-sm font-semibold text-neutral-500 dark:text-neutral-400">{t("Getting Started")}</p>
<h2 id="how-it-works-title" className="mt-4 text-3xl font-semibold tracking-[-0.03em] md:text-4xl">
@@ -207,7 +207,7 @@ export function FeaturePage({
<section className="border-b border-neutral-200 dark:border-neutral-800" aria-labelledby="who-uses-title">
<div className="mx-auto grid max-w-[1200px] border-x border-neutral-200 dark:border-neutral-800 lg:grid-cols-12">
- <div className="border-b border-neutral-200 px-5 py-12 dark:border-neutral-800 sm:px-8 lg:col-span-4 lg:border-b-0 lg:border-r lg:px-10 lg:py-16">
+ <div className="border-b border-neutral-200 px-5 py-12 dark:border-neutral-800 sm:px-8 lg:col-span-4 lg:border-b-0 lg:border-r lg:px-10 lg:py-16 bare:lg:border-r-0">
<p className="text-sm font-semibold text-neutral-500 dark:text-neutral-400">{t("Use Cases")}</p>
<h2 id="who-uses-title" className="mt-4 text-3xl font-semibold tracking-[-0.03em] md:text-4xl">
{t("Who uses this")}
@@ -217,7 +217,7 @@ export function FeaturePage({
{whoUses.map((item) => (
<article
key={item.title}
- className="border-b border-neutral-200 px-5 py-10 last:border-b-0 dark:border-neutral-800 sm:px-8 md:border-b-0 md:border-r md:last:border-r-0 lg:px-8"
+ className="border-b border-neutral-200 px-5 py-10 last:border-b-0 dark:border-neutral-800 sm:px-8 md:border-b-0 md:border-r md:last:border-r-0 lg:px-8 bare:md:border-r-0"
>
<div className="mb-5 text-neutral-500 dark:text-neutral-400">{item.icon}</div>
<h3 className="font-semibold tracking-tight">{item.title}</h3>
@@ -231,7 +231,7 @@ export function FeaturePage({
{faqItems.length > 0 && (
<section className="border-b border-neutral-200 dark:border-neutral-800" aria-labelledby="feature-faq-title">
<div className="mx-auto grid max-w-[1200px] border-x border-neutral-200 dark:border-neutral-800 lg:grid-cols-12">
- <div className="border-b border-neutral-200 px-5 py-12 dark:border-neutral-800 sm:px-8 lg:col-span-4 lg:border-b-0 lg:border-r lg:px-10 lg:py-16">
+ <div className="border-b border-neutral-200 px-5 py-12 dark:border-neutral-800 sm:px-8 lg:col-span-4 lg:border-b-0 lg:border-r lg:px-10 lg:py-16 bare:lg:border-r-0">
<p className="text-sm font-semibold text-neutral-500 dark:text-neutral-400">{t("FAQ")}</p>
<h2 id="feature-faq-title" className="mt-4 text-3xl font-semibold tracking-[-0.03em] md:text-4xl">
{t("Frequently asked questions")}
@@ -252,7 +252,7 @@ export function FeaturePage({
{relatedFeatures.length > 0 && (
<section className="border-b border-neutral-200 dark:border-neutral-800" aria-labelledby="related-features-title">
<div className="mx-auto grid max-w-[1200px] border-x border-neutral-200 dark:border-neutral-800 lg:grid-cols-12">
- <div className="border-b border-neutral-200 px-5 py-12 dark:border-neutral-800 sm:px-8 lg:col-span-4 lg:border-b-0 lg:border-r lg:px-10 lg:py-16">
+ <div className="border-b border-neutral-200 px-5 py-12 dark:border-neutral-800 sm:px-8 lg:col-span-4 lg:border-b-0 lg:border-r lg:px-10 lg:py-16 bare:lg:border-r-0">
<p className="text-sm font-semibold text-neutral-500 dark:text-neutral-400">{t("Explore More")}</p>
<h2 id="related-features-title" className="mt-4 text-3xl font-semibold tracking-[-0.03em] md:text-4xl">
{t("Related features")}
diff --git a/docs/src/app/[locale]/(home)/features/page.tsx b/docs/src/app/[locale]/(home)/features/page.tsx
index 02bee7dc1..054eeedc9 100644
--- a/docs/src/app/[locale]/(home)/features/page.tsx
+++ b/docs/src/app/[locale]/(home)/features/page.tsx
@@ -68,7 +68,7 @@ function FeatureGrid({ title, description, features }: FeatureGridProps) {
return (
<section className="border-b border-neutral-200 dark:border-neutral-800">
<div className="mx-auto grid max-w-[1200px] border-x border-neutral-200 dark:border-neutral-800 lg:grid-cols-12">
- <div className="border-b border-neutral-200 px-5 py-12 dark:border-neutral-800 sm:px-8 lg:col-span-4 lg:border-b-0 lg:border-r lg:px-10 lg:py-16">
+ <div className="border-b border-neutral-200 px-5 py-12 dark:border-neutral-800 sm:px-8 lg:col-span-4 lg:border-b-0 lg:border-r lg:px-10 lg:py-16 bare:lg:border-r-0">
<div className="lg:sticky lg:top-24">
<h2 className="text-3xl font-semibold tracking-[-0.03em] md:text-4xl">{title}</h2>
<p className="mt-5 max-w-sm text-base leading-7 text-neutral-600 dark:text-neutral-400">{description}</p>
diff --git a/docs/src/app/[locale]/(home)/pricing/components/ComparisonSection.tsx b/docs/src/app/[locale]/(home)/pricing/components/ComparisonSection.tsx
index 979de2613..104e81138 100644
--- a/docs/src/app/[locale]/(home)/pricing/components/ComparisonSection.tsx
+++ b/docs/src/app/[locale]/(home)/pricing/components/ComparisonSection.tsx
@@ -248,14 +248,14 @@ export function ComparisonSection({ isAnnual }: { isAnnual: boolean }) {
<SectionKicker>{t("Plan details")}</SectionKicker>
<h2
id="plan-comparison-title"
- className="mt-5 max-w-2xl text-4xl font-semibold leading-[1.04] tracking-[-0.035em] md:text-5xl text-balance"
+ className="mt-5 max-w-2xl text-4xl font-semibold leading-[1.04] tracking-[-0.035em] md:text-5xl text-balance bare:text-[36px] bare:font-medium bare:leading-[1.1] bare:tracking-[-0.03em]"
>
{t("Compare Plans")}
</h2>
</div>
</div>
- <div className="overflow-x-auto">
+ <div className="overflow-x-auto bare:mx-5 bare:mb-8 bare:rounded-xl bare:border bare:border-neutral-200 dark:bare:border-neutral-800 bare:sm:mx-8 bare:lg:mx-10">
<div className="min-w-[900px]">
<div className="grid grid-cols-4 border-b border-neutral-200 dark:border-neutral-800">
<div className="flex items-end border-r border-neutral-200 px-6 py-7 text-sm font-medium text-neutral-500 dark:border-neutral-800 lg:px-10">
@@ -293,7 +293,7 @@ export function ComparisonSection({ isAnnual }: { isAnnual: boolean }) {
<AppLink
href={plan.href}
className={cn(
- "mt-5 inline-flex min-h-10 items-center justify-center rounded-md px-4 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-500",
+ "mt-5 inline-flex min-h-10 items-center justify-center rounded-md px-4 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-500 bare:rounded-full bare:px-5",
plan.featured
? "bg-emerald-600 text-white hover:bg-emerald-500"
: "border border-neutral-300 text-neutral-900 hover:bg-neutral-100 dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-900"
diff --git a/docs/src/app/[locale]/(home-b)/layout.tsx b/docs/src/app/[locale]/(home-b)/layout.tsx
index 5cfb35359..ee36331f2 100644
--- a/docs/src/app/[locale]/(home-b)/layout.tsx
+++ b/docs/src/app/[locale]/(home-b)/layout.tsx
@@ -3,16 +3,17 @@ import { Footer } from "@/components/Footer";
import type { ReactNode } from "react";
/**
- * Layout for the homepage redesign (variant B): the same header and footer as
- * the marketing pages, in the redesign's bare register (no instrument sheet,
- * pill buttons). Sibling of `(home)/layout.tsx`.
+ * Layout for the homepage redesign (variant B). Identical to `(home)`'s, but
+ * the wrapper pins the redesign's "bare" register (see global.css) so the
+ * page reads the same whether or not the visitor carries the experiment
+ * cookie — e.g. when reviewing /lp/b directly.
*/
export default function Layout({ children }: { children: ReactNode }) {
return (
- <>
- <CustomHeader chrome="bare" />
+ <div data-chrome="bare" className="contents">
+ <CustomHeader />
<main className="flex-1">{children}</main>
- <Footer chrome="bare" />
- </>
+ <Footer />
+ </div>
);
}
diff --git a/docs/src/app/global.css b/docs/src/app/global.css
index 488a06d9a..362e0dd8d 100644
--- a/docs/src/app/global.css
+++ b/docs/src/app/global.css
@@ -6,6 +6,7 @@
@import "tw-animate-css";
@custom-variant dark (&:is(.dark *));
+@custom-variant bare (&:is([data-chrome="bare"] *));
:root {
--color-fd-primary: rgb(16 185 129); /* emerald-500 */
@@ -128,6 +129,29 @@ pre {
background-color: color-mix(in oklab, #0a0a0a 94%, #34d399);
}
+/* ── Bare chrome (homepage redesign register) ────────────────────────────
+ `data-chrome="bare"` on <html> — set before first paint from the homepage
+ experiment cookie (root layout) — or on any ancestor puts the marketing
+ pages in the redesign's register: no instrument sheet. The `bare:` variant
+ carries component-level changes; these rules retire the sheet devices that
+ appear on dozens of pages at once (plates, graph paper, side rails). Inner
+ seams stay, read as hairline rows. */
+[data-chrome="bare"] .bg-graph,
+[data-chrome="bare"] .bg-graph-accent {
+ background-image: none;
+}
+[data-chrome="bare"] .bg-plate-accent {
+ background-color: #fafafa;
+}
+.dark [data-chrome="bare"] .bg-plate-accent,
+.dark[data-chrome="bare"] .bg-plate-accent {
+ background-color: #131313;
+}
+[data-chrome="bare"] .max-w-\[1200px\].border-x {
+ border-left-width: 0;
+ border-right-width: 0;
+}
+
/* ── Marketing data-line decoration ──────────────────────────────────────
The plotted line draws itself on load via a left→right clip-path wipe.
Not stroke-dasharray: with vector-effect: non-scaling-stroke, Chromium
diff --git a/docs/src/app/layout.tsx b/docs/src/app/layout.tsx
index 83f757b58..fb1292a0f 100644
--- a/docs/src/app/layout.tsx
+++ b/docs/src/app/layout.tsx
@@ -2,6 +2,7 @@ import "@/app/global.css";
import { Inter } from "next/font/google";
import Script from "next/script";
import { RybbitScript } from "@/components/RybbitScript";
+import { HOME_VARIANT_COOKIE } from "@/lib/landing-experiment";
import type { ReactNode } from "react";
import type { Metadata } from "next";
import { getLocale } from "next-intl/server";
@@ -78,6 +79,11 @@ export default async function Layout({ children }: { children: ReactNode }) {
return (
<html lang={locale} suppressHydrationWarning>
<head>
+ {/* Homepage experiment, arm B: put the whole site in the redesign's
+ "bare" register before first paint (see global.css). */}
+ <Script id="chrome-variant" strategy="beforeInteractive">
+ {`try{if(/(?:^|; )${HOME_VARIANT_COOKIE}=b(?:;|$)/.test(document.cookie))document.documentElement.setAttribute("data-chrome","bare")}catch(e){}`}
+ </Script>
<Script id="rewardful-queue" strategy="beforeInteractive">
{`(function(w,r){w._rwq=r;w[r]=w[r]||function(){(w[r].q=w[r].q||[]).push(arguments)}})(window,'rewardful');`}
</Script>
diff --git a/docs/src/components/CTASection.tsx b/docs/src/components/CTASection.tsx
index 2782fe5b1..25dafb3c7 100644
--- a/docs/src/components/CTASection.tsx
+++ b/docs/src/components/CTASection.tsx
@@ -13,12 +13,6 @@ interface CTASectionProps {
secondaryButtonText?: string;
secondaryButtonHref?: string;
eventLocation?: string;
- /**
- * "sheet" (default) draws the marketing pages' instrument sheet: hairline
- * sides, corner crosses, square buttons. "bare" is the same band without the
- * sheet, with pill buttons, for the homepage redesign register.
- */
- chrome?: "sheet" | "bare";
}
export function CTASection({
@@ -29,9 +23,7 @@ export function CTASection({
secondaryButtonText,
secondaryButtonHref = "https://demo.rybbit.com/81",
eventLocation = "bottom_cta",
- chrome = "sheet",
}: CTASectionProps) {
- const bare = chrome === "bare";
const t = useExtracted();
const resolvedTitle = title ?? t("Ready for better analytics?");
const resolvedDescription =
@@ -46,39 +38,21 @@ export function CTASection({
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" /> */}
- <div
- className={
- bare
- ? "relative mx-auto grid max-w-[1280px] px-5 sm:px-8 lg:grid-cols-12"
- : "relative mx-auto grid max-w-[1200px] border-x border-white/10 lg:grid-cols-12"
- }
- >
- {!bare && <GridCrosses className="text-white/30 dark:text-white/30" />}
+ <div className="relative mx-auto grid max-w-[1200px] border-x border-white/10 bare:max-w-[1280px] bare:border-x-0 bare:px-5 bare:sm:px-8 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,
and its eye follows the cursor (WatchfulFrog). */}
<div className="pointer-events-none absolute -bottom-12 -right-8 hidden w-64 -rotate-6 text-white opacity-[0.07] transition-[transform,opacity] duration-500 ease-out group-hover:-translate-y-2 group-hover:opacity-[0.12] motion-reduce:transition-none motion-reduce:group-hover:translate-y-0 md:block lg:w-80">
<WatchfulFrog />
</div>
- <div
- className={
- bare
- ? "relative z-10 py-14 md:py-24 lg:col-span-7"
- : "relative z-10 border-b border-white/10 px-5 py-16 sm:px-8 md:py-24 lg:col-span-8 lg:border-b-0 lg:border-r lg:px-10"
- }
- >
+ <div className="relative z-10 border-b border-white/10 px-5 py-16 bare:border-b-0 bare:px-0 bare:py-14 sm:px-8 bare:sm:px-0 md:py-24 lg:col-span-8 lg:border-b-0 lg:border-r lg:px-10 bare:lg:col-span-7 bare:lg:border-r-0 bare:lg:px-0">
<h2 className="max-w-3xl text-4xl font-semibold leading-[1.02] tracking-[-0.035em] md:text-6xl text-balance">
{resolvedTitle}
</h2>
</div>
- <div
- className={
- bare
- ? "relative z-10 flex flex-col justify-center pb-14 lg:col-span-5 lg:py-12 lg:pl-10"
- : "relative z-10 flex flex-col justify-center px-5 py-12 sm:px-8 lg:col-span-4 lg:px-10"
- }
- >
+ <div className="relative z-10 flex flex-col justify-center px-5 py-12 bare:px-0 bare:pb-14 bare:pt-0 sm:px-8 bare:sm:px-0 lg:col-span-4 lg:px-10 bare:lg:col-span-5 bare:lg:py-12 bare:lg:pl-10 bare:lg:pr-0">
<p className="max-w-md text-base leading-7 text-emerald-100/80">{resolvedDescription}</p>
<div className="mt-8 flex flex-col gap-3 sm:flex-row lg:flex-col xl:flex-row">
@@ -86,7 +60,7 @@ export function CTASection({
href={primaryButtonHref}
eventName="signup"
eventProps={{ location: eventLocation, button_text: resolvedPrimaryButtonText }}
- className={`group inline-flex min-h-11 items-center justify-center gap-2 ${bare ? "rounded-full px-6" : "rounded-md px-5"} bg-white py-2.5 text-sm font-medium text-emerald-950 transition-colors duration-200 hover:bg-emerald-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-offset-2 focus-visible:ring-offset-emerald-950`}
+ className="group inline-flex min-h-11 items-center justify-center gap-2 rounded-md bg-white px-5 py-2.5 text-sm font-medium text-emerald-950 transition-colors duration-200 hover:bg-emerald-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-offset-2 focus-visible:ring-offset-emerald-950 bare:rounded-full bare:px-6"
>
{resolvedPrimaryButtonText}
<ArrowRight
@@ -100,7 +74,7 @@ export function CTASection({
target="_blank"
rel="noopener noreferrer"
eventProps={{ location: eventLocation, button_text: resolvedSecondaryButtonText }}
- className={`group inline-flex min-h-11 items-center justify-center gap-2 ${bare ? "rounded-full px-6" : "rounded-md px-5"} border border-white/25 py-2.5 text-sm font-medium text-white transition-colors duration-200 hover:bg-white/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white`}
+ className="group inline-flex min-h-11 items-center justify-center gap-2 rounded-md border border-white/25 px-5 py-2.5 text-sm font-medium text-white transition-colors duration-200 hover:bg-white/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white bare:rounded-full bare:px-6"
>
{resolvedSecondaryButtonText}
<ExternalLink
diff --git a/docs/src/components/CustomHeader.tsx b/docs/src/components/CustomHeader.tsx
index 7367ba5d7..0317154ba 100644
--- a/docs/src/components/CustomHeader.tsx
+++ b/docs/src/components/CustomHeader.tsx
@@ -11,34 +11,20 @@ import Image from "next/image";
import Link from "next/link";
import { useState } from "react";
-interface CustomHeaderProps {
- /**
- * "sheet" (default) is the marketing pages' instrument sheet: 1200px column
- * with hairline sides, square buttons. "bare" is the homepage redesign
- * register: 1280px column, no sides, pill buttons, a Live demo button.
- */
- chrome?: "sheet" | "bare";
-}
-
-export function CustomHeader({ chrome = "sheet" }: CustomHeaderProps) {
+/**
+ * Site header. Default register is the marketing pages' instrument sheet
+ * (1200px column with hairline sides, square buttons); under `data-chrome=
+ * "bare"` (homepage redesign, see global.css) it is a 1280px column with no
+ * sides, pill buttons and a Live demo button.
+ */
+export function CustomHeader() {
const t = useExtracted();
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
- const bare = chrome === "bare";
return (
- <header
- className={
- bare
- ? "sticky top-0 z-50 w-full bg-white/95 backdrop-blur-sm dark:bg-neutral-950/95"
- : "sticky top-0 z-50 w-full border-b border-neutral-200 bg-white/95 backdrop-blur-sm dark:border-neutral-800 dark:bg-neutral-950/95"
- }
- >
+ <header className="sticky top-0 z-50 w-full border-b border-neutral-200 bg-white/95 backdrop-blur-sm bare:border-b-0 dark:border-neutral-800 dark:bg-neutral-950/95">
<nav
- className={
- bare
- ? "mx-auto flex h-16 max-w-[1280px] items-center justify-between px-5 sm:px-8"
- : "mx-auto flex h-14 max-w-[1200px] items-center justify-between border-x border-neutral-200 px-5 dark:border-neutral-800 sm:px-8 lg:px-10"
- }
+ className="mx-auto flex h-14 max-w-[1200px] items-center justify-between border-x border-neutral-200 px-5 bare:h-16 bare:max-w-[1280px] bare:border-x-0 dark:border-neutral-800 sm:px-8 lg:px-10 bare:lg:px-8"
aria-label="Global"
>
<Link
@@ -66,31 +52,25 @@ export function CustomHeader({ chrome = "sheet" }: CustomHeaderProps) {
target="_blank"
rel="noopener noreferrer"
onClick={() => trackAdEvent("login", { location: "header" })}
- className={`inline-flex items-center justify-center text-sm font-medium text-neutral-700 transition-colors hover:text-neutral-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-500 dark:text-neutral-300 dark:hover:text-white ${
- bare ? "h-9 rounded-full px-3" : "h-8 rounded-md px-2.5 hover:bg-neutral-100 dark:hover:bg-neutral-900"
- }`}
+ className="inline-flex h-8 items-center justify-center rounded-md px-2.5 text-sm font-medium text-neutral-700 transition-colors hover:bg-neutral-100 hover:text-neutral-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-500 bare:h-9 bare:rounded-full bare:px-3 bare:hover:bg-transparent dark:text-neutral-300 dark:hover:bg-neutral-900 dark:hover:text-white dark:bare:hover:bg-transparent"
>
{t("Login")}
</AppLink>
- {bare && (
- <AppLink
- href="https://demo.rybbit.com/81"
- target="_blank"
- rel="noopener noreferrer"
- onClick={() => trackAdEvent("demo", { location: "header" })}
- className="inline-flex h-9 items-center justify-center rounded-full border border-neutral-300 bg-white px-4 text-sm font-medium text-neutral-900 transition-colors hover:bg-neutral-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-500 dark:border-neutral-800 dark:bg-neutral-900 dark:text-white dark:hover:bg-neutral-800"
- >
- {t("Live demo")}
- </AppLink>
- )}
+ <AppLink
+ href="https://demo.rybbit.com/81"
+ target="_blank"
+ rel="noopener noreferrer"
+ onClick={() => trackAdEvent("demo", { location: "header" })}
+ className="hidden h-9 items-center justify-center rounded-full border border-neutral-300 bg-white px-4 text-sm font-medium text-neutral-900 transition-colors hover:bg-neutral-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-500 bare:inline-flex dark:border-neutral-800 dark:bg-neutral-900 dark:text-white dark:hover:bg-neutral-800"
+ >
+ {t("Live demo")}
+ </AppLink>
<AppLink
href="https://app.rybbit.io/signup"
target="_blank"
rel="noopener noreferrer"
onClick={() => trackAdEvent("signup", { location: "header" })}
- className={`inline-flex items-center justify-center bg-emerald-600 text-sm font-medium text-white transition-colors hover:bg-emerald-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-offset-neutral-950 ${
- bare ? "h-9 rounded-full px-4" : "h-8 rounded-md px-3"
- }`}
+ className="inline-flex h-8 items-center justify-center rounded-md bg-emerald-600 px-3 text-sm font-medium text-white transition-colors hover:bg-emerald-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 focus-visible:ring-offset-2 focus-visible:ring-offset-white bare:h-9 bare:rounded-full bare:px-4 dark:focus-visible:ring-offset-neutral-950"
>
{t("Sign up")}
</AppLink>
diff --git a/docs/src/components/Footer.tsx b/docs/src/components/Footer.tsx
index 935fd3c50..7e11aec11 100644
--- a/docs/src/components/Footer.tsx
+++ b/docs/src/components/Footer.tsx
@@ -1,5 +1,4 @@
import { GridCrosses } from "@/components/GridCrosses";
-import { cn } from "@/lib/utils";
import { LanguageSwitcher } from "@/components/LanguageSwitcher";
import { ThemeSwitcher } from "@/components/ThemeSwitcher";
import { SiDiscord, SiGithub, SiX } from "@icons-pack/react-simple-icons";
@@ -22,19 +21,13 @@ interface FooterLink {
external?: boolean;
}
-interface FooterProps {
- /**
- * "sheet" (default) is the marketing pages' instrument sheet: 1200px column
- * with hairline sides, corner crosses and seams between cells. "bare" is the
- * homepage redesign register: 1280px column, open columns, one hairline
- * above the bottom row.
- */
- chrome?: "sheet" | "bare";
-}
-
-export function Footer({ chrome = "sheet" }: FooterProps) {
- const bare = chrome === "bare";
-
+/**
+ * Site footer. Default register is the marketing pages' instrument sheet
+ * (1200px column with hairline sides, corner crosses and seams between
+ * cells); under `data-chrome="bare"` (homepage redesign, see global.css) it
+ * is a 1280px column with open columns and one hairline above the bottom row.
+ */
+export function Footer() {
const t = useExtracted();
const footerGroups: Array<{ title: string; links: FooterLink[] }> = [
@@ -98,26 +91,10 @@ export function Footer({ chrome = "sheet" }: FooterProps) {
return (
<footer className="border-t border-neutral-200 dark:border-neutral-800">
- <div
- className={cn(
- "relative mx-auto",
- bare ? "max-w-[1280px] px-5 sm:px-8" : "max-w-[1200px] border-x border-neutral-200 dark:border-neutral-800"
- )}
- >
- {!bare && <GridCrosses className="hidden sm:block" />}
- <div
- className={cn(
- "grid lg:grid-cols-12",
- bare ? "gap-10 py-12 lg:gap-8 lg:py-14" : "border-b border-neutral-200 dark:border-neutral-800"
- )}
- >
- <div
- className={cn(
- "lg:col-span-3",
- !bare &&
- "border-b border-neutral-200 px-5 py-10 dark:border-neutral-800 sm:px-8 lg:border-b-0 lg:border-r lg:py-14"
- )}
- >
+ <div className="relative mx-auto max-w-[1200px] border-x border-neutral-200 bare:max-w-[1280px] bare:border-x-0 bare:px-5 dark:border-neutral-800 bare:sm:px-8">
+ <GridCrosses className="hidden sm:block" />
+ <div className="grid border-b border-neutral-200 bare:gap-10 bare:border-b-0 bare:py-12 dark:border-neutral-800 lg:grid-cols-12 bare:lg:gap-8 bare:lg:py-14">
+ <div className="border-b border-neutral-200 px-5 py-10 bare:border-b-0 bare:px-0 bare:py-0 dark:border-neutral-800 sm:px-8 bare:sm:px-0 lg:col-span-3 lg:border-b-0 lg:border-r lg:py-14 bare:lg:border-r-0 bare:lg:py-0">
<div className="flex h-full flex-col">
<div>
<Link
@@ -135,20 +112,15 @@ export function Footer({ chrome = "sheet" }: FooterProps) {
/>
</Link>
- {bare && (
- <p className="mt-4 max-w-[26ch] text-sm leading-relaxed text-neutral-500 dark:text-neutral-400">
- {t("Open-source, cookieless web & product analytics.")}
- </p>
- )}
+ <p className="mt-4 hidden max-w-[26ch] text-sm leading-relaxed text-neutral-500 bare:block dark:text-neutral-400">
+ {t("Open-source, cookieless web & product analytics.")}
+ </p>
<a
href="https://www.producthunt.com/products/rybbit?embed=true&utm_source=badge-top-post-badge&utm_medium=badge&utm_source=badge-rybbit&#0045;2"
target="_blank"
rel="noopener noreferrer"
- className={cn(
- "inline-flex max-w-full rounded-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-500",
- bare ? "mt-6" : "mt-8"
- )}
+ className="mt-8 inline-flex max-w-full rounded-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-500 bare:mt-6"
>
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
@@ -161,7 +133,7 @@ export function Footer({ chrome = "sheet" }: FooterProps) {
</a>
</div>
- <div className={cn("flex items-center", bare ? "mt-6 -ml-2.5" : "mt-8 lg:mt-auto lg:pt-12")}>
+ <div className="mt-8 flex items-center bare:-ml-2.5 bare:mt-6 lg:mt-auto lg:pt-12 bare:lg:mt-6 bare:lg:pt-0">
{socialLinks.map(({ label, href, icon: Icon }) => (
<a
key={label}
@@ -178,20 +150,14 @@ export function Footer({ chrome = "sheet" }: FooterProps) {
</div>
</div>
- <nav
- aria-label="Footer"
- className={cn("grid grid-cols-2 md:grid-cols-4 lg:col-span-9", bare && "gap-x-6 gap-y-10")}
- >
+ <nav aria-label="Footer" className="grid grid-cols-2 bare:gap-x-6 bare:gap-y-10 lg:col-span-9 md:grid-cols-4">
{footerGroups.map(group => (
<section
key={group.title}
- className={cn(
- !bare &&
- "border-b border-neutral-200 px-5 py-10 last:border-b-0 dark:border-neutral-800 sm:px-8 [&:nth-last-child(2)]:border-b-0 md:border-b-0 md:px-6 md:py-14"
- )}
+ className="border-b border-neutral-200 px-5 py-10 last:border-b-0 bare:border-b-0 bare:px-0 bare:py-0 dark:border-neutral-800 sm:px-8 bare:sm:px-0 [&:nth-last-child(2)]:border-b-0 md:border-b-0 md:px-6 md:py-14 bare:md:px-0 bare:md:py-0"
>
<h2 className="text-sm font-semibold text-neutral-950 dark:text-neutral-50">{group.title}</h2>
- <ul className={bare ? "mt-3" : "mt-4"}>
+ <ul className="mt-4 bare:mt-3">
{group.links.map(link => (
<li key={link.href}>
{link.external ? (
@@ -216,23 +182,11 @@ export function Footer({ chrome = "sheet" }: FooterProps) {
</nav>
</div>
- <div className={cn("grid lg:grid-cols-12", bare && "border-t border-neutral-200 dark:border-neutral-800")}>
- <div
- className={cn(
- "flex items-center text-sm text-neutral-500 dark:text-neutral-400 lg:col-span-3",
- bare
- ? "pt-5 lg:py-5"
- : "border-b border-neutral-200 px-5 py-5 dark:border-neutral-800 sm:px-8 lg:border-b-0 lg:border-r"
- )}
- >
+ <div className="grid bare:border-t bare:border-neutral-200 lg:grid-cols-12 dark:bare:border-neutral-800">
+ <div className="flex items-center border-b border-neutral-200 px-5 py-5 text-sm text-neutral-500 bare:border-b-0 bare:px-0 bare:pb-0 bare:pt-5 dark:border-neutral-800 dark:text-neutral-400 sm:px-8 bare:sm:px-0 lg:col-span-3 lg:border-b-0 lg:border-r bare:lg:border-r-0 bare:lg:py-5">
{t("© {year} Rybbit. All rights reserved.", { year: String(new Date().getFullYear()) })}
</div>
- <div
- className={cn(
- "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between lg:col-span-9",
- bare ? "pb-5 pt-2 lg:py-4" : "px-5 py-4 sm:px-8 lg:px-6"
- )}
- >
+ <div className="flex flex-col gap-4 px-5 py-4 bare:px-0 bare:pb-5 bare:pt-2 sm:flex-row sm:items-center sm:justify-between sm:px-8 bare:sm:px-0 lg:col-span-9 lg:px-6 bare:lg:px-0 bare:lg:py-4">
<div className="flex items-center gap-1.5 text-sm text-neutral-500 dark:text-neutral-400">
<span>{t("Made with ❤️ by frogs")}</span>
<a
diff --git a/docs/src/components/GridCrosses.tsx b/docs/src/components/GridCrosses.tsx
index 09efda20a..dc73e8c7f 100644
--- a/docs/src/components/GridCrosses.tsx
+++ b/docs/src/components/GridCrosses.tsx
@@ -24,7 +24,7 @@ export function GridCrosses({ className }: { className?: string }) {
<div
aria-hidden="true"
className={cn(
- "pointer-events-none absolute inset-x-0 top-0 z-10 text-neutral-400 dark:text-neutral-600",
+ "pointer-events-none absolute inset-x-0 top-0 z-10 text-neutral-400 bare:hidden dark:text-neutral-600",
className
)}
>
diff --git a/docs/src/components/HeroDataLine.tsx b/docs/src/components/HeroDataLine.tsx
index 19703d281..1590c4f2c 100644
--- a/docs/src/components/HeroDataLine.tsx
+++ b/docs/src/components/HeroDataLine.tsx
@@ -25,6 +25,7 @@ export function HeroDataLine({ id, className }: HeroDataLineProps) {
<div
aria-hidden="true"
className={cn(
+ "bare:hidden",
"pointer-events-none absolute inset-x-0 bottom-0 [mask-image:linear-gradient(to_right,transparent,black_22%)]",
className
)}
diff --git a/docs/src/components/InteriorPageHero.tsx b/docs/src/components/InteriorPageHero.tsx
index a90263a86..005862f3c 100644
--- a/docs/src/components/InteriorPageHero.tsx
+++ b/docs/src/components/InteriorPageHero.tsx
@@ -53,30 +53,30 @@ export function InteriorPageHero({
const resolvedNote = note === undefined ? t("7-day free trial. Cancel anytime.") : note;
return (
- <section className="border-b border-neutral-200 dark:border-neutral-800">
- <div className="mx-auto grid max-w-[1200px] border-x border-neutral-200 dark:border-neutral-800 lg:grid-cols-12">
- <div className="relative border-b border-neutral-200 px-5 py-12 dark:border-neutral-800 sm:px-8 sm:py-16 lg:col-span-7 lg:border-b-0 lg:border-r lg:px-10 lg:py-20">
+ <section className="border-b border-neutral-200 bare:border-b-0 dark:border-neutral-800">
+ <div className="mx-auto grid max-w-[1200px] border-x border-neutral-200 bare:block dark:border-neutral-800 lg:grid-cols-12">
+ <div className="relative border-b border-neutral-200 px-5 py-12 bare:border-b-0 bare:pb-0 bare:pt-16 dark:border-neutral-800 sm:px-8 sm:py-16 bare:sm:pb-0 lg:col-span-7 lg:border-b-0 lg:border-r lg:px-10 lg:py-20 bare:lg:border-r-0 bare:lg:pb-0 bare:lg:pt-24">
<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">
+ <p className="mb-6 text-sm font-semibold text-emerald-600 bare:mb-5 bare:font-medium bare:text-neutral-500 dark:text-emerald-400 dark:bare:text-neutral-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">
+ <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 bare:max-w-[760px] bare:text-[clamp(2.25rem,4.2vw,3.5rem)] bare:font-medium bare:leading-[1.08] bare:tracking-[-0.035em] dark:text-neutral-50">
{title}
</h1>
</div>
</div>
- <div className="flex flex-col justify-center px-5 py-10 sm:px-8 sm:py-12 lg:col-span-5 lg:px-10 lg:py-16">
- <p className="max-w-lg text-base leading-7 text-neutral-600 text-pretty dark:text-neutral-300 sm:text-lg sm:leading-8">
+ <div className="flex flex-col justify-center px-5 py-10 bare:pb-8 bare:pt-6 sm:px-8 sm:py-12 bare:sm:pb-8 bare:sm:pt-6 lg:col-span-5 lg:px-10 lg:py-16 bare:lg:pb-4 bare:lg:pt-6">
+ <p className="max-w-lg text-base leading-7 text-neutral-600 text-pretty bare:max-w-[58ch] bare:leading-relaxed dark:text-neutral-300 sm:text-lg sm:leading-8 bare:dark:text-neutral-400">
{description}
</p>
{(primary || secondary) && (
- <div className="mt-7 flex flex-col gap-3 sm:flex-row lg:flex-col xl:flex-row">
+ <div className="mt-7 flex flex-col gap-3 sm:flex-row lg:flex-col xl:flex-row bare:lg:flex-row">
{primary && (
<TrackedButton
href={primary.href}
@@ -84,7 +84,7 @@ export function InteriorPageHero({
target={primary.external ? "_blank" : undefined}
rel={primary.external ? "noopener noreferrer" : undefined}
eventProps={{ location: eventLocation, button_text: primary.label }}
- className="inline-flex min-h-11 items-center justify-center gap-2 rounded-md bg-emerald-600 px-5 py-2.5 text-sm font-medium text-white transition-colors duration-200 hover:bg-emerald-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-offset-neutral-950"
+ className="inline-flex min-h-11 items-center justify-center gap-2 rounded-md bg-emerald-600 px-5 py-2.5 text-sm font-medium text-white transition-colors duration-200 hover:bg-emerald-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 focus-visible:ring-offset-2 focus-visible:ring-offset-white bare:rounded-full bare:px-6 bare:text-[15px] dark:focus-visible:ring-offset-neutral-950"
>
{primary.label}
<ArrowRight className="size-4" aria-hidden="true" />
@@ -97,7 +97,7 @@ export function InteriorPageHero({
target={secondary.external ? "_blank" : undefined}
rel={secondary.external ? "noopener noreferrer" : undefined}
eventProps={{ location: eventLocation, button_text: secondary.label }}
- className="inline-flex min-h-11 items-center justify-center gap-2 rounded-md border border-neutral-300 px-5 py-2.5 text-sm font-medium text-neutral-900 transition-colors duration-200 hover:bg-neutral-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-500 focus-visible:ring-offset-2 dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-900 dark:focus-visible:ring-offset-neutral-950"
+ className="inline-flex min-h-11 items-center justify-center gap-2 rounded-md border border-neutral-300 px-5 py-2.5 text-sm font-medium text-neutral-900 transition-colors duration-200 hover:bg-neutral-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-500 focus-visible:ring-offset-2 bare:rounded-full bare:px-6 bare:text-[15px] dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-900 dark:focus-visible:ring-offset-neutral-950 dark:bare:border-neutral-800 dark:bare:bg-neutral-900"
>
{secondary.label}
{secondary.external && <ExternalLink className="size-3.5" aria-hidden="true" />}
diff --git a/docs/src/components/PricingCard.tsx b/docs/src/components/PricingCard.tsx
index f49470cce..2ddb2381d 100644
--- a/docs/src/components/PricingCard.tsx
+++ b/docs/src/components/PricingCard.tsx
@@ -50,7 +50,7 @@ export function PricingCard({
const displayedFeatures = shouldShowToggle && !isExpanded ? features.slice(0, 7) : features;
const buttonClasses = cn(
- "inline-flex min-h-11 w-full cursor-pointer items-center justify-center rounded-md px-5 py-2.5 text-sm font-medium transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:pointer-events-none disabled:opacity-50 dark:focus-visible:ring-offset-neutral-950",
+ "inline-flex min-h-11 w-full cursor-pointer items-center justify-center rounded-md px-5 py-2.5 text-sm font-medium transition-colors duration-200 bare:rounded-full focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-white disabled:pointer-events-none disabled:opacity-50 dark:focus-visible:ring-offset-neutral-950",
isPrimary
? "bg-emerald-600 text-white hover:bg-emerald-500 focus-visible:ring-emerald-500"
: "border border-neutral-300 text-neutral-900 hover:bg-neutral-100 focus-visible:ring-neutral-500 dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-800"
diff --git a/docs/src/components/PricingSection.tsx b/docs/src/components/PricingSection.tsx
index 28279d072..5840fb805 100644
--- a/docs/src/components/PricingSection.tsx
+++ b/docs/src/components/PricingSection.tsx
@@ -208,7 +208,7 @@ export function PricingSection({
{/* Header row — on the landing page a signal plate like the other major
sections; in standalone page-top mode the plotted-dataline signature
takes the plate's place. */}
- <div className="relative grid grid-cols-1 border-b border-neutral-200 dark:border-neutral-800 lg:grid-cols-12">
+ <div className="relative grid grid-cols-1 border-b border-neutral-200 bare:border-b-0 dark:border-neutral-800 lg:grid-cols-12 bare:lg:block">
{standalone && (
<div className="pointer-events-none absolute inset-x-0 top-0 hidden h-40 sm:block lg:h-48">
<HeroDataLine id="pricing" className="h-40 lg:h-48" />
@@ -216,7 +216,7 @@ export function PricingSection({
)}
<div
className={cn(
- "relative border-b border-neutral-200 px-5 py-14 dark:border-neutral-800 sm:px-8 md:py-20 lg:col-span-7 lg:border-b-0 lg:border-r lg:px-10",
+ "relative border-b border-neutral-200 px-5 py-14 bare:border-b-0 bare:pb-5 bare:pt-16 dark:border-neutral-800 sm:px-8 md:py-20 bare:md:pb-5 bare:md:pt-24 lg:col-span-7 lg:border-b-0 lg:border-r lg:px-10 bare:lg:border-r-0",
!standalone && "bg-plate-accent"
)}
>
@@ -229,7 +229,7 @@ export function PricingSection({
<div className="relative">
<SectionKicker>{t("Pricing")}</SectionKicker>
{standalone ? (
- <h1 className={cn(headlineClasses, "text-5xl leading-[0.98] md:text-6xl")}>
+ <h1 className={cn(headlineClasses, "text-5xl leading-[0.98] md:text-6xl bare:font-medium bare:tracking-[-0.035em] bare:md:text-[56px] bare:md:leading-[1.08]")}>
{t("Set your traffic. See your price.")}
</h1>
) : (
@@ -239,7 +239,7 @@ export function PricingSection({
)}
</div>
</div>
- <div className="relative flex items-end px-5 py-10 sm:px-8 md:py-20 lg:col-span-5 lg:px-10">
+ <div className="relative flex items-end px-5 py-10 bare:pb-10 bare:pt-0 sm:px-8 md:py-20 bare:md:pb-12 bare:md:pt-0 lg:col-span-5 lg:px-10">
<p className="max-w-md text-lg leading-8 text-neutral-600 dark:text-neutral-400 text-pretty">
{t("Start your 7-day free trial. No credit card charges until the trial ends.")}
</p>
@@ -248,8 +248,8 @@ export function PricingSection({
{/* Quote instrument — a full-bleed row on the same dot-grid mat as the
hero demo frame and the agent console. */}
- <div className="relative border-b border-neutral-200 bg-neutral-100 p-4 [background-image:radial-gradient(circle,rgba(0,0,0,0.08)_1px,transparent_1px)] [background-size:14px_14px] dark:border-neutral-800 dark:bg-neutral-900 dark:[background-image:radial-gradient(circle,rgba(255,255,255,0.07)_1px,transparent_1px)] sm:p-8 lg:p-10">
- <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="relative border-b border-neutral-200 bg-neutral-100 p-4 [background-image:radial-gradient(circle,rgba(0,0,0,0.08)_1px,transparent_1px)] [background-size:14px_14px] bare:border-b-0 bare:bg-transparent bare:px-5 bare:py-6 bare:[background-image:none] dark:border-neutral-800 dark:bg-neutral-900 dark:[background-image:radial-gradient(circle,rgba(255,255,255,0.07)_1px,transparent_1px)] dark:bare:bg-transparent dark:bare:[background-image:none] sm:p-8 bare:sm:px-8 bare:sm:py-6 lg:p-10 bare:lg:px-10">
+ <div className="rounded-md border border-neutral-300 bg-white px-5 py-6 bare:rounded-xl bare:border-neutral-200 bare:bg-neutral-50 dark:border-neutral-700 dark:bg-neutral-950 dark:bare:border-neutral-800 dark:bare:bg-[#131313] sm:px-6 bare:sm:px-7">
<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>
@@ -259,11 +259,11 @@ export function PricingSection({
</div>
<div className="relative flex flex-col items-end">
{/* Billing toggle */}
- <div className="mb-2 flex rounded-md border border-neutral-300 bg-neutral-100 p-1 text-sm dark:border-neutral-700 dark:bg-neutral-900">
+ <div className="mb-2 flex rounded-md border border-neutral-300 bg-neutral-100 p-1 text-sm bare:rounded-full bare:border-neutral-200 dark:border-neutral-700 dark:bg-neutral-900 dark:bare:border-neutral-800">
<button
onClick={() => setIsAnnual(false)}
className={cn(
- "cursor-pointer rounded-sm px-3 py-1.5 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-500",
+ "cursor-pointer rounded-sm px-3 py-1.5 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-500 bare:rounded-full bare:px-4",
!isAnnual
? "bg-white text-neutral-950 dark:bg-neutral-800 dark:text-white font-medium"
: "text-neutral-600 dark:text-neutral-400 hover:text-neutral-800 dark:hover:text-neutral-200"
@@ -282,7 +282,7 @@ export function PricingSection({
>
{t("Annual")}
</button>
- <div className="absolute right-0 top-0 -translate-y-4 whitespace-nowrap rounded-sm bg-emerald-600 px-2 py-0.5 text-xs font-medium text-white">
+ <div className="absolute right-0 top-0 -translate-y-4 whitespace-nowrap rounded-sm bg-emerald-600 px-2 py-0.5 text-xs font-medium text-white bare:rounded-full">
{t("4 months free")}
</div>
</div>
@@ -353,7 +353,7 @@ export function PricingSection({
</div>
</div>
- <div className="hidden gap-px bg-neutral-200 dark:bg-neutral-800 min-[700px]:grid min-[700px]:grid-cols-2 min-[1100px]:grid-cols-3">
+ <div className="hidden gap-px bg-neutral-200 bare:mx-5 bare:mb-8 bare:overflow-hidden bare:rounded-xl bare:border bare:border-neutral-200 dark:bg-neutral-800 dark:bare:border-neutral-800 min-[700px]:grid min-[700px]:grid-cols-2 min-[1100px]:grid-cols-3 bare:sm:mx-8 bare:lg:mx-10">
<PricingCard {...standardProps} />
<PricingCard {...proProps} />
<PricingCard {...enterpriseProps} className="min-[700px]:col-span-2 min-[1100px]:col-span-1" />
diff --git a/docs/src/components/deco/SectionKicker.tsx b/docs/src/components/deco/SectionKicker.tsx
index 50932a799..19e105d8a 100644
--- a/docs/src/components/deco/SectionKicker.tsx
+++ b/docs/src/components/deco/SectionKicker.tsx
@@ -9,13 +9,13 @@ export function SectionKicker({ children, className }: { children: React.ReactNo
return (
<p
className={cn(
- "flex items-center gap-2.5 text-base font-semibold tracking-tight text-emerald-700 dark:text-emerald-400",
+ "flex items-center gap-2.5 text-base font-semibold tracking-tight text-emerald-700 bare:text-sm bare:font-medium bare:text-neutral-500 dark:text-emerald-400 dark:bare:text-neutral-400",
className
)}
>
<span
aria-hidden="true"
- className="size-2 rounded-[1px] bg-emerald-600 [animation:kicker-pulse_3.2s_ease-in-out_infinite] dark:bg-emerald-400 motion-reduce:animate-none"
+ className="size-2 rounded-[1px] bg-emerald-600 [animation:kicker-pulse_3.2s_ease-in-out_infinite] bare:hidden dark:bg-emerald-400 motion-reduce:animate-none"
/>
{children}
</p>
diff --git a/docs/src/components/lp-b/LandingB.tsx b/docs/src/components/lp-b/LandingB.tsx
index b4a00b490..c58e17b40 100644
--- a/docs/src/components/lp-b/LandingB.tsx
+++ b/docs/src/components/lp-b/LandingB.tsx
@@ -393,7 +393,7 @@ export function LandingB() {
</section>
<div className="mt-24 md:mt-32">
- <CTASection chrome="bare" eventLocation="bottom_cta_b" />
+ <CTASection eventLocation="bottom_cta_b" />
</div>
</div>
</>