📈 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!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
lint fix
Blue Mousea05bfbeb0807
diff --git a/web/app/components/marketing/ConveyorBelt.tsx b/web/app/components/marketing/ConveyorBelt.tsxdeleted file mode 100644index 456d15533..000000000--- a/web/app/components/marketing/ConveyorBelt.tsx+++ /dev/null@@ -1,65 +0,0 @@-import { cn } from '~/utils/generic'--const Logo = ({ label, className }: { label: string; className: string }) => {- return (- <div- className={cn(- className,- 'absolute top-[calc(50%-1rem)] flex items-center gap-2 px-3 py-1 whitespace-nowrap',- 'bg-gray-700 bg-gradient-to-t from-50% ring-1 ring-white/10 ring-inset',- '[animation-iteration-count:infinite] [animation-name:move-x] [animation-play-state:paused] [animation-timing-function:linear] group-hover:[animation-play-state:running]',- )}- >- <span className='text-sm/6 font-medium text-white'>{label}</span>- </div>- )-}--export const ConveyorBelt = () => {- return (- <div aria-hidden='true' className='relative h-full overflow-hidden'>- <div className='absolute inset-0 top-8 z-10 flex items-center justify-center'>- <div- className='absolute inset-0 backdrop-blur-md'- style={{- maskImage: `url('data:image/svg+xml,<svg width="96" height="96" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="96" height="96" rx="12" fill="black"/></svg>')`,- maskPosition: 'center',- maskRepeat: 'no-repeat',- }}- />- <div className='relative flex size-24 items-center justify-center rounded-xl bg-gradient-to-t from-white/45 to-white/75 shadow-sm ring-1 ring-white/10 outline outline-offset-[-5px] outline-white/5 ring-inset group-data-[dark]:from-slate-700/45 group-data-[dark]:to-slate-700/75'>- <img src='/logo512.png' alt='' className='object-contain' />- </div>- </div>- <div className='[container-type:inline-size] absolute inset-0 grid grid-cols-1 pt-8'>- <div className='group relative'>- <div className='absolute inset-x-0 top-1/2 h-0.5 bg-gradient-to-r from-black/15 from-[2px] to-[2px] bg-[length:12px_100%] group-data-[dark]:from-white/15' />- <Logo- label='Data'- className='[--move-x-from:-100%] [--move-x-to:calc(100%+30cqw)] [animation-delay:-5s] [animation-duration:15s]'- />- <Logo- label='Data'- className='[--move-x-from:-100%] [--move-x-to:calc(100%+30cqw)] [animation-delay:-10s] [animation-duration:15s]'- />- <Logo- label='Data'- className='[--move-x-from:-100%] [--move-x-to:calc(100%+30cqw)] [animation-duration:15s]'- />- <Logo- label='Sale'- className='bg-green-700/70 [--move-x-from:calc(100%+32cqw)] [--move-x-to:calc(100%+100cqw)] [animation-duration:15s] dark:bg-green-700/60'- />- <Logo- label='$$$'- className='bg-green-700/70 [--move-x-from:calc(100%+32cqw)] [--move-x-to:calc(100%+100cqw)] [animation-delay:-5s] [animation-duration:15s] dark:bg-green-700/60'- />- <Logo- label='Lead'- className='bg-green-700/70 [--move-x-from:calc(100%+32cqw)] [--move-x-to:calc(100%+100cqw)] [animation-delay:-10s] [animation-duration:15s] dark:bg-green-700/60'- />- </div>- </div>- </div>- )-}diff --git a/web/app/components/marketing/LogoTimeline.tsx b/web/app/components/marketing/LogoTimeline.tsxdeleted file mode 100644index 685f6ebad..000000000--- a/web/app/components/marketing/LogoTimeline.tsx+++ /dev/null@@ -1,137 +0,0 @@-import {- SiFramer,- SiGhost,- SiGoogletagmanager,- SiNextdotjs,- SiNodedotjs,- SiReact,- SiSlack,- SiSvelte,- SiVuedotjs,- SiWebflow,- SiWix,- SiWordpress,-} from '@icons-pack/react-simple-icons'-import React from 'react'--import { cn } from '~/utils/generic'--const Row = ({ children }: { children: React.ReactNode }) => {- return (- <div className='group relative'>- <div className='absolute inset-x-0 top-1/2 h-0.5 bg-gradient-to-r from-black/15 from-[2px] to-[2px] bg-[length:12px_100%] group-data-[dark]:from-white/15' />- <div className='absolute inset-x-0 bottom-0 h-0.5 bg-gradient-to-r from-black/5 from-[2px] to-[2px] bg-[length:12px_100%] group-last:hidden group-data-[dark]:from-white/5' />- {children}- </div>- )-}--const Logo = ({ label, icon, className }: { label: string; icon: React.ReactNode; className: string }) => {- return (- <div- className={cn(- className,- 'absolute top-2 flex items-center gap-2 px-3 py-1 whitespace-nowrap',- 'rounded-full bg-gradient-to-t from-gray-800 from-50% to-gray-700 ring-1 ring-white/10 ring-inset',- '[--move-x-from:-100%] [--move-x-to:calc(100%+100cqw)] [animation-iteration-count:infinite] [animation-name:move-x] [animation-play-state:paused] [animation-timing-function:linear] group-hover:[animation-play-state:running]',- )}- >- {icon}- <span className='text-sm/6 font-medium text-white'>{label}</span>- </div>- )-}--export const LogoTimeline = () => {- return (- <div aria-hidden='true' className='relative h-full overflow-hidden'>- <div className='absolute inset-0 top-8 z-10 flex items-center justify-center'>- <div- className='absolute inset-0 backdrop-blur-md'- style={{- maskImage: `url('data:image/svg+xml,<svg width="96" height="96" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="96" height="96" rx="12" fill="black"/></svg>')`,- maskPosition: 'center',- maskRepeat: 'no-repeat',- }}- />- <div className='relative flex size-24 items-center justify-center rounded-xl bg-gradient-to-t from-white/5 to-white/25 shadow-sm ring-1 ring-white/10 outline outline-offset-[-5px] outline-white/5 ring-inset group-data-[dark]:from-slate-700/5 group-data-[dark]:to-slate-700/25'>- <img src='/logo512.png' alt='' className='object-contain' />- </div>- </div>- <div className='[container-type:inline-size] absolute inset-0 grid grid-cols-1 pt-8'>- <Row>- <Logo- label='React'- icon={<SiReact color='#61DAFB' size={16} />}- className='[animation-delay:-26s] [animation-duration:30s]'- />- <Logo- label='Vue'- icon={<SiVuedotjs color='#4FC08D' size={16} />}- className='[animation-delay:-8s] [animation-duration:30s]'- />- </Row>- <Row>- <Logo- label='Webflow'- icon={<SiWebflow color='#146EF5' size={16} />}- className='[animation-delay:-40s] [animation-duration:40s]'- />- <Logo- label='Ghost'- icon={<SiGhost color='#FFFFFF' size={16} />}- className='[animation-delay:-20s] [animation-duration:40s]'- />- </Row>- <Row>- <Logo- label='Framer'- icon={<SiFramer color='#0055FF' size={16} />}- className='[animation-delay:-10s] [animation-duration:40s]'- />- <Logo- label='WordPress'- icon={<SiWordpress color='#21759B' size={16} />}- className='[animation-delay:-32s] [animation-duration:40s]'- />- </Row>- <Row>- <Logo- label='Wix'- icon={<SiWix color='#0C6EFC' size={16} />}- className='[animation-delay:-45s] [animation-duration:45s]'- />- <Logo- label='Google Tag Manager'- icon={<SiGoogletagmanager color='#246FDB' size={16} />}- className='[animation-delay:-23s] [animation-duration:45s]'- />- </Row>- <Row>- <Logo- label='Svelte'- icon={<SiSvelte color='#FF3E00' size={16} />}- className='[animation-delay:-55s] [animation-duration:60s]'- />- <Logo- label='Node.js'- icon={<SiNodedotjs color='#5FA04E' size={16} />}- className='[animation-delay:-20s] [animation-duration:60s]'- />- </Row>- <Row>- <Logo- label='Next.js'- icon={<SiNextdotjs color='#FFFFFF' size={16} />}- className='[animation-delay:-9s] [animation-duration:40s]'- />- <Logo- label='Slack'- icon={<SiSlack color='#7C3085' size={16} />}- className='[animation-delay:-28s] [animation-duration:40s]'- />- </Row>- </div>- </div>- )-}diff --git a/web/app/pages/ErrorTracking/index.tsx b/web/app/pages/ErrorTracking/index.tsxindex f2aaf5ba7..58df11915 100644--- a/web/app/pages/ErrorTracking/index.tsx+++ b/web/app/pages/ErrorTracking/index.tsx@@ -10,13 +10,12 @@ import { ClientOnly } from 'remix-utils/client-only'import { getLastPost } from '~/api'import Header from '~/components/Header'import { DitchGoogle } from '~/components/marketing/DitchGoogle'+import MarketingPricing from '~/components/pricing/MarketingPricing'import { ERROR_TRACKING_LIVE_DEMO_URL } from '~/lib/constants'-import { useAuth } from '~/providers/AuthProvider'import { useTheme } from '~/providers/ThemeProvider'import BackgroundSvg from '~/ui/icons/BackgroundSvg'import routesPath from '~/utils/routes'-import MarketingPricing from '~/components/pricing/MarketingPricing'import { PeopleLoveSwetrix } from '../Performance'const Lines = () => (@@ -30,7 +29,6 @@ const ErrorTracking = () => {const { t } = useTranslation('common')const { theme } = useTheme()const [lastBlogPost, setLastBlogPost] = useState<Awaited<ReturnType<typeof getLastPost>> | null>(null)- const { isAuthenticated } = useAuth()useEffect(() => {const abortController = new AbortController()@@ -209,8 +207,7 @@ const ErrorTracking = () => {<p className='mt-6 text-lg text-gray-900 dark:text-gray-50'>{t('performance.privacy.desc')}</p></div>- {/* For now let's hide Pricing for authenticated users on the main page as the Paddle script only loads on the Billing page */}- {!isAuthenticated ? <MarketingPricing authenticated={false} /> : null}+ <MarketingPricing /><DitchGoogle />diff --git a/web/app/pages/Performance/index.tsx b/web/app/pages/Performance/index.tsxindex 63f063e1a..c1ecb8d33 100644--- a/web/app/pages/Performance/index.tsx+++ b/web/app/pages/Performance/index.tsx@@ -10,16 +10,14 @@ import { ClientOnly } from 'remix-utils/client-only'import { getGeneralStats, getLastPost } from '~/api'import Header from '~/components/Header'import { DitchGoogle } from '~/components/marketing/DitchGoogle'+import MarketingPricing from '~/components/pricing/MarketingPricing'import { PERFORMANCE_LIVE_DEMO_URL } from '~/lib/constants'import { Stats } from '~/lib/models/Stats'-import { useAuth } from '~/providers/AuthProvider'import { useTheme } from '~/providers/ThemeProvider'import BackgroundSvg from '~/ui/icons/BackgroundSvg'import { nFormatterSeparated } from '~/utils/generic'import routesPath from '~/utils/routes'-import MarketingPricing from '~/components/pricing/MarketingPricing'-const Lines = () => (<div className='pointer-events-none relative'><div className='absolute top-[32rem] right-[-48rem] h-px w-[800%] rotate-6 bg-gradient-to-l from-slate-600 opacity-10 dark:from-slate-400' />@@ -96,7 +94,6 @@ const Performance = () => {const { t } = useTranslation('common')const { theme } = useTheme()const [lastBlogPost, setLastBlogPost] = useState<Awaited<ReturnType<typeof getLastPost>> | null>(null)- const { isAuthenticated } = useAuth()useEffect(() => {const abortController = new AbortController()@@ -274,8 +271,7 @@ const Performance = () => {<p className='mt-6 text-lg text-gray-900 dark:text-gray-50'>{t('performance.privacy.desc')}</p></div>- {/* For now let's hide Pricing for authenticated users on the main page as the Paddle script only loads on the Billing page */}- {isAuthenticated ? null : <MarketingPricing authenticated={false} />}+ <MarketingPricing /><DitchGoogle />