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!

Set default transiton duration to 250ms; add transitions to pricing sections

Blue Mouse8d82be5f7928
diff --git a/web/app/components/pricing/BillingPricing.tsx b/web/app/components/pricing/BillingPricing.tsx
index bab699377..6e5f7da30 100644
--- a/web/app/components/pricing/BillingPricing.tsx
+++ b/web/app/components/pricing/BillingPricing.tsx
@@ -243,7 +243,7 @@ const BillingPricing = ({ lastEvent }: BillingPricingProps) => {
cx(
checked
? 'bg-slate-900 text-gray-50 dark:bg-white/90 dark:text-slate-900'
- : 'text-slate-700 dark:text-gray-200',
+ : 'text-slate-700 hover:bg-slate-200 dark:text-gray-200 dark:hover:bg-white/30 dark:hover:text-white',
'flex cursor-pointer items-center justify-center rounded-md px-2.5 py-1 transition-all',
)
}
@@ -257,7 +257,7 @@ const BillingPricing = ({ lastEvent }: BillingPricingProps) => {
cx(
checked
? 'bg-slate-900 text-gray-50 dark:bg-white/90 dark:text-slate-900'
- : 'text-slate-700 dark:text-gray-200',
+ : 'text-slate-700 hover:bg-slate-200 dark:text-gray-200 dark:hover:bg-white/30 dark:hover:text-white',
'flex cursor-pointer items-center justify-center rounded-md px-2.5 py-1 transition-all',
)
}
diff --git a/web/app/components/pricing/MarketingPricing.tsx b/web/app/components/pricing/MarketingPricing.tsx
index 6f5b18d82..40c7b49f9 100644
--- a/web/app/components/pricing/MarketingPricing.tsx
+++ b/web/app/components/pricing/MarketingPricing.tsx
@@ -103,7 +103,7 @@ const MarketingPricing = () => {
<Link
to={isAuthenticated ? routes.billing : routes.signup}
- className='mt-8 flex max-w-max items-center justify-center rounded-md border-2 border-slate-50 bg-gray-50 px-8 py-4 text-slate-900 transition-all duration-300 hover:bg-transparent hover:text-gray-50'
+ className='mt-8 flex max-w-max items-center justify-center rounded-md border-2 border-slate-50 bg-gray-50 px-8 py-4 text-slate-900 transition-all hover:bg-transparent hover:text-gray-50'
aria-label={
isAuthenticated ? t('main.goToBilling') : t('main.startAXDayFreeTrial', { amount: TRIAL_DAYS })
}
@@ -128,7 +128,7 @@ const MarketingPricing = () => {
value={BillingFrequency.monthly}
className={({ checked }) =>
cx(
- checked ? 'bg-white/90 text-slate-900' : 'text-gray-200',
+ checked ? 'bg-white/90 text-slate-900' : 'text-gray-200 hover:bg-white/30 hover:text-white',
'flex cursor-pointer items-center justify-center rounded-md px-2.5 py-1 transition-all',
)
}
@@ -140,7 +140,7 @@ const MarketingPricing = () => {
value={BillingFrequency.yearly}
className={({ checked }) =>
cx(
- checked ? 'bg-white/90 text-slate-900' : 'text-gray-200',
+ checked ? 'bg-white/90 text-slate-900' : 'text-gray-200 hover:bg-white/30 hover:text-white',
'flex cursor-pointer items-center justify-center rounded-md px-2.5 py-1 transition-all',
)
}
@@ -153,7 +153,7 @@ const MarketingPricing = () => {
{_map(plans, (tier) => (
<div
key={tier.planCode}
- className='flex items-center justify-between rounded-xl border border-white/10 bg-white/2 px-4 py-3 text-white backdrop-blur-sm transition-all duration-300 hover:bg-white/10'
+ className='flex items-center justify-between rounded-xl border border-white/10 bg-white/2 px-4 py-3 text-white backdrop-blur-sm transition-all hover:bg-white/10'
>
<div>
<span className='text-base font-medium'>{formatEventsLong(tier.monthlyUsageLimit)}</span>
@@ -181,7 +181,7 @@ const MarketingPricing = () => {
target='_blank'
rel='noopener noreferrer'
aria-label={`${t('footer.contact')} (opens in a new tab)`}
- className='group flex items-center justify-between rounded-xl border border-white/10 bg-white/2 px-4 py-3 text-white backdrop-blur-sm transition-all duration-300 hover:bg-white/10'
+ className='group flex items-center justify-between rounded-xl border border-white/10 bg-white/2 px-4 py-3 text-white backdrop-blur-sm transition-all hover:bg-white/10'
>
<span className='text-base font-medium'>
{t('pricing.overXEvents', { amount: formatEventsLong(20000000) })}
diff --git a/web/app/routes/_index.tsx b/web/app/routes/_index.tsx
index 23a8c3636..f310bd768 100644
--- a/web/app/routes/_index.tsx
+++ b/web/app/routes/_index.tsx
@@ -326,7 +326,7 @@ const Hero = () => {
<div className='mt-8 flex flex-col items-stretch sm:flex-row sm:items-center'>
<Link
to={routesPath.signup}
- className='flex h-12 items-center justify-center rounded-md border-2 border-slate-900 bg-slate-900 px-4 text-white transition-all duration-300 hover:bg-transparent hover:text-slate-900 dark:border-slate-50 dark:bg-gray-50 dark:text-slate-900 dark:hover:text-gray-50'
+ className='flex h-12 items-center justify-center rounded-md border-2 border-slate-900 bg-slate-900 px-4 text-white transition-all hover:bg-transparent hover:text-slate-900 dark:border-slate-50 dark:bg-gray-50 dark:text-slate-900 dark:hover:text-gray-50'
aria-label={t('titles.signup')}
>
<span className='mr-1 text-center text-base font-semibold'>
diff --git a/web/app/styles/tailwind.css b/web/app/styles/tailwind.css
index ea6b21e2f..a4346ce3f 100644
--- a/web/app/styles/tailwind.css
+++ b/web/app/styles/tailwind.css
@@ -16,6 +16,8 @@
/* Minimum Heights */
--min-height-page: calc(100vh - 74px);
--min-height-min-footer: calc(100vh - 157px);
+
+ --default-transition-duration: 250ms;
}
/* Custom Animations */