Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

simpler UI

Blue Mouse975c54094586
diff --git a/web/app/pages/Subscribe/TrialTimeline.tsx b/web/app/pages/Subscribe/TrialTimeline.tsx
index dea7d8990..d022a96f0 100644
--- a/web/app/pages/Subscribe/TrialTimeline.tsx
+++ b/web/app/pages/Subscribe/TrialTimeline.tsx
@@ -1,9 +1,3 @@
-import {
- BellRingingIcon,
- CreditCardIcon,
- type Icon,
- RocketLaunchIcon,
-} from '@phosphor-icons/react'
import { useMemo } from 'react'
import { useTranslation } from 'react-i18next'
@@ -16,27 +10,22 @@ const REMINDER_LEAD_DAYS = 2
interface TrialStep {
key: string
- icon: Icon
accent: boolean
dateLabel: string
isDate: boolean
- title: string
- desc: string
+ label: string
}
-const StepIcon = ({
- icon: IconComponent,
- accent,
-}: Pick<TrialStep, 'icon' | 'accent'>) => (
- <span
- className={cn(
- 'relative z-10 flex size-10 shrink-0 items-center justify-center rounded-full bg-white ring-1 dark:bg-slate-900',
- accent
- ? 'text-emerald-600 ring-emerald-500/30 dark:text-emerald-400 dark:ring-emerald-400/30'
- : 'text-gray-500 ring-gray-200 dark:text-gray-400 dark:ring-white/10',
- )}
- >
- <IconComponent className='size-[18px]' aria-hidden='true' />
+const StepDot = ({ accent }: Pick<TrialStep, 'accent'>) => (
+ <span className='flex size-4 items-center justify-center'>
+ <span
+ className={cn(
+ 'relative z-10 rounded-full ring-4 ring-gray-50 dark:ring-slate-950',
+ accent
+ ? 'size-3 bg-emerald-500'
+ : 'size-2.5 bg-gray-300 dark:bg-white/25',
+ )}
+ />
</span>
)
@@ -55,23 +44,20 @@ const StepText = ({
>
<Text
as='span'
- size='xs'
- weight='medium'
- colour='muted'
+ size='sm'
+ weight='semibold'
+ colour='primary'
suppressHydrationWarning={step.isDate}
>
{step.dateLabel}
</Text>
- <Text as='p' size='sm' weight='semibold' colour='primary' className='mt-1'>
- {step.title}
- </Text>
<Text
as='p'
size='xs'
colour='muted'
- className={cn('mt-1 text-pretty', align === 'center' && 'max-w-[24ch]')}
+ className={cn('mt-1 text-pretty', align === 'center' && 'max-w-[20ch]')}
>
- {step.desc}
+ {step.label}
</Text>
</div>
)
@@ -100,97 +86,77 @@ export const TrialTimeline = () => {
const steps: TrialStep[] = [
{
key: 'start',
- icon: RocketLaunchIcon,
accent: true,
dateLabel: t('checkout.trial.today'),
isDate: false,
- title: t('checkout.trial.step1Title'),
- desc: t('checkout.trial.step1Desc'),
+ label: t('checkout.trial.step1Label'),
},
{
key: 'reminder',
- icon: BellRingingIcon,
accent: false,
dateLabel: reminderDate,
isDate: true,
- title: t('checkout.trial.step2Title'),
- desc: t('checkout.trial.step2Desc'),
+ label: t('checkout.trial.step2Label'),
},
{
key: 'end',
- icon: CreditCardIcon,
accent: false,
dateLabel: endDate,
isDate: true,
- title: t('checkout.trial.step3Title'),
- desc: t('checkout.trial.step3Desc'),
+ label: t('checkout.trial.step3Label'),
},
]
return (
- <section className='mx-auto w-full max-w-4xl px-4 pt-12 sm:px-6 lg:px-8'>
- <div className='rounded-2xl border border-gray-200 bg-white p-6 sm:p-8 dark:border-white/10 dark:bg-slate-900'>
- <Text
- as='h2'
- size='base'
- weight='semibold'
- colour='secondary'
- className='text-center'
- >
- {t('checkout.trial.title')}
- </Text>
-
- {/* Horizontal timeline (sm and up) */}
- <ol className='relative mx-auto mt-8 hidden max-w-3xl grid-cols-3 sm:grid'>
- <span
- aria-hidden='true'
- className='absolute top-5 right-[16.666%] left-[16.666%] h-px bg-gray-200 dark:bg-white/10'
- />
- {steps.map((step, index) => (
- <li
- key={step.key}
- className='trial-step flex flex-col items-center px-3'
- style={{ animationDelay: `${index * 70}ms` }}
- >
- <StepIcon icon={step.icon} accent={step.accent} />
- <div className='mt-3'>
- <StepText step={step} align='center' />
- </div>
- </li>
- ))}
- </ol>
+ <section className='mx-auto w-full max-w-4xl px-4 pt-14 sm:px-6 lg:px-8'>
+ {/* Horizontal timeline (sm and up) */}
+ <ol className='relative mx-auto hidden max-w-2xl grid-cols-3 sm:grid'>
+ <span
+ aria-hidden='true'
+ className='absolute top-2 right-[16.666%] left-[16.666%] h-px bg-gray-200 dark:bg-white/10'
+ />
+ {steps.map((step, index) => (
+ <li
+ key={step.key}
+ className='trial-step flex flex-col items-center px-3'
+ style={{ animationDelay: `${index * 70}ms` }}
+ >
+ <StepDot accent={step.accent} />
+ <div className='mt-4'>
+ <StepText step={step} align='center' />
+ </div>
+ </li>
+ ))}
+ </ol>
- {/* Vertical timeline (mobile) */}
- <ol className='mt-7 sm:hidden'>
- {steps.map((step, index) => (
- <li
- key={step.key}
- className='trial-step relative flex gap-4 pb-7 last:pb-0'
- style={{ animationDelay: `${index * 70}ms` }}
- >
- {index < steps.length - 1 ? (
- <span
- aria-hidden='true'
- className='absolute top-10 bottom-0 left-5 w-px -translate-x-1/2 bg-gray-200 dark:bg-white/10'
- />
- ) : null}
- <StepIcon icon={step.icon} accent={step.accent} />
- <div className='pt-0.5'>
- <StepText step={step} align='start' />
- </div>
- </li>
- ))}
- </ol>
+ {/* Vertical timeline (mobile) */}
+ <ol className='mx-auto max-w-xs sm:hidden'>
+ {steps.map((step, index) => (
+ <li
+ key={step.key}
+ className='trial-step relative flex gap-3 pb-6 last:pb-0'
+ style={{ animationDelay: `${index * 70}ms` }}
+ >
+ {index < steps.length - 1 ? (
+ <span
+ aria-hidden='true'
+ className='absolute top-4 bottom-0 left-2 w-px -translate-x-1/2 bg-gray-200 dark:bg-white/10'
+ />
+ ) : null}
+ <StepDot accent={step.accent} />
+ <StepText step={step} align='start' />
+ </li>
+ ))}
+ </ol>
- <Text
- as='p'
- size='sm'
- colour='secondary'
- className='mt-6 border-t border-gray-100 pt-5 text-center text-pretty dark:border-white/5'
- >
- {t('checkout.trial.footer')}
- </Text>
- </div>
+ <Text
+ as='p'
+ size='sm'
+ colour='secondary'
+ className='mx-auto mt-9 max-w-md text-center text-pretty'
+ >
+ {t('checkout.trial.footer')}
+ </Text>
</section>
)
}
diff --git a/web/public/locales/en.json b/web/public/locales/en.json
index 067a2c689..283aef00c 100644
--- a/web/public/locales/en.json
+++ b/web/public/locales/en.json
@@ -3318,15 +3318,11 @@
"customPlanTitle": "Need a plan higher than 20M pageviews?",
"customPlanDesc": "Select \"Up to {{count}} monthly pageviews\" and <contact>contact us</contact> for a custom quote.",
"trial": {
- "title": "How your free trial works",
"today": "Today",
- "step1Title": "Trial starts",
- "step1Desc": "Full access to every feature. No charge today.",
- "step2Title": "Friendly reminder",
- "step2Desc": "We email you 2 days before it ends.",
- "step3Title": "Trial ends",
- "step3Desc": "Billed only if you stay - cancel anytime before this.",
- "footer": "Cancel in one click, anytime. We'll never bill you by surprise."
+ "step1Label": "Full access begins, free",
+ "step2Label": "We email you a reminder",
+ "step3Label": "First payment, unless you cancel",
+ "footer": "Cancel in one click, anytime - we'll never charge you by surprise."
},
"faqTrial": {
"q": "What happens when my trial ends?",