📈 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
Change Core Features into grid
Blue Mousec5f6a4178eec
diff --git a/app/components/marketing/ConveyorBelt.tsx b/app/components/marketing/ConveyorBelt.tsxnew file mode 100644index 000000000..f61984f73--- /dev/null+++ b/app/components/marketing/ConveyorBelt.tsx@@ -0,0 +1,66 @@+import React from 'react'+import clsx from 'clsx'++const Logo = ({ label, className }: { label: string; className: string }) => {+ return (+ <div+ className={clsx(+ className,+ 'absolute top-[calc(50%-1rem)] items-center gap-2 whitespace-nowrap px-3 py-1',+ 'bg-gray-700 bg-gradient-to-t from-50% ring-1 ring-inset ring-white/10',+ '[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 outline outline-offset-[-5px] outline-white/5 ring-1 ring-inset ring-white/10 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='absolute inset-0 grid grid-cols-1 pt-8 [container-type:inline-size]'>+ <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/app/components/marketing/DitchGoogle.tsx b/app/components/marketing/DitchGoogle.tsxindex 0bc4b5c86..7ce786270 100644--- a/app/components/marketing/DitchGoogle.tsx+++ b/app/components/marketing/DitchGoogle.tsx@@ -3,6 +3,7 @@ import { ArrowRightIcon } from '@heroicons/react/20/solid'import { Trans, useTranslation } from 'react-i18next'import routes from 'utils/routes'+import React from 'react'interface IDitchGoogle {screenshot: {diff --git a/app/routes/index.tsx b/app/routes/index.tsxindex 29fa6df37..632e32928 100644--- a/app/routes/index.tsx+++ b/app/routes/index.tsx@@ -27,7 +27,6 @@ import {BROWSER_LOGO_MAP,} from 'redux/constants'import { StateType } from 'redux/store/index'-import BackgroundSvg from 'ui/icons/BackgroundSvg'import Header from 'components/Header'import Pricing from 'components/marketing/Pricing'@@ -40,6 +39,7 @@ import CCRow from 'pages/Project/View/components/CCRow'import { CursorArrowRaysIcon, GlobeAltIcon, NewspaperIcon } from '@heroicons/react/24/outline'import { LogoTimeline } from 'components/marketing/LogoTimeline'import { MarketplaceCluster } from 'components/marketing/MarketplaceCluster'+import { ConveyorBelt } from 'components/marketing/ConveyorBelt'export const sitemap: SitemapFunction = () => ({priority: 1,@@ -80,7 +80,7 @@ const Problem = () => {const { t } = useTranslation('common')return (- <section className='bg-neutral-600'>+ <section className='bg-neutral-600 dark:bg-slate-700'><div className='mx-auto max-w-7xl px-8 py-16 text-center md:py-32'><h2 className='mb-6 text-4xl font-extrabold text-gray-50 sm:text-5xl sm:leading-none md:mb-8'>Most people struggle to make sense of their analytics data@@ -236,48 +236,6 @@ const OpensourceAdvantages = ({ theme }: { theme: 'dark' | 'light' }) => {)}-const CoreFeatures = ({ theme }: { theme: 'dark' | 'light' }) => {- const { t } = useTranslation('common')-- return (- <section className='relative bg-white pb-14 pt-14 dark:bg-slate-900'>- <BackgroundSvg theme={theme} className='absolute -left-8' type='shapes' />- <div className='relative mx-auto w-fit text-4xl font-extrabold text-slate-900 sm:text-5xl'>- <h2 className='relative z-20 dark:text-white'>{t('main.coreFeaturesBlock')}</h2>- <BackgroundSvg- theme={theme}- className='absolute right-0 top-9 z-10 opacity-30 sm:-right-16'- type='semicircle'- />- </div>- <div className='mx-auto mt-[60px] flex w-full max-w-7xl flex-wrap items-center justify-center xl:justify-between'>- {_map(- // @ts-expect-error- t('main.features', { returnObjects: true }),- (- item: {- name: string- desc: string- },- index: number,- ) => (- <div key={item.name} className='h-64 w-[416px] px-7 py-11 text-center'>- <span className='text-4xl font-semibold text-indigo-500'>{1 + index}</span>- <div className='mt-2'>- <h2 className='mx-auto mb-3 max-w-[300px] whitespace-pre-line text-xl font-semibold text-slate-900 dark:text-white'>- {item.name}- </h2>- <p className='mx-auto max-w-xs leading-relaxed text-gray-600 dark:text-gray-400'>{item.desc}</p>- </div>- </div>- ),- )}- </div>- <BackgroundSvg theme={theme} className='absolute bottom-0 right-0 z-10' type='twolinecircle' />- </section>- )-}-const REVIEWERS = [{name: 'Tomasz',@@ -665,6 +623,97 @@ const FeatureBlocks = ({ theme }: { theme: 'dark' | 'light' }) => {)}+const CoreFeatures = ({ theme }: { theme: 'dark' | 'light' }) => {+ const { t } = useTranslation('common')++ return (+ <section className='relative mx-auto max-w-7xl bg-white pb-14 pt-14 dark:bg-slate-900'>+ <div className='relative mx-auto w-fit'>+ <h2 className='relative z-20 text-4xl font-extrabold text-slate-900 dark:text-white sm:text-5xl'>+ Only the features you need+ </h2>+ </div>+ <div className='mt-10 grid grid-cols-1 gap-4 sm:mt-16 lg:grid-cols-6 lg:grid-rows-2'>+ {/* Spawn a ton of cookie banners; after 3 second display a huge red cross */}+ <FeatureBlock+ heading='Forget about annoying cookie banners'+ description='Swetrix does not use cookies for tracking, so you can forget about all those annoying cookie banners. We collect analytical data anonymously to respect the privacy of your users. We do not collect personal identifiers and do not perform cross-device tracking.'+ className='max-lg:rounded-t-4xl lg:rounded-tl-4xl lg:col-span-4'+ dark={theme === 'dark'}+ >+ <div+ className='absolute -top-40 left-60 right-0 z-10 h-full w-full rotate-45 transform-gpu overflow-hidden blur-3xl'+ aria-hidden='true'+ >+ <div+ className='mx-auto aspect-[1/3] h-full w-full bg-gradient-to-r from-amber-400 to-purple-600 opacity-20'+ style={{+ clipPath:+ 'polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)',+ }}+ />+ </div>+ <div className='h-80 overflow-hidden'>+ <img+ className='object-cover transition-transform group-hover:scale-105'+ src={theme === 'dark' ? '/assets/traffic_part_dark.png' : '/assets/traffic_part_light.png'}+ alt='Swetrix Traffic Dashboard'+ />+ </div>+ <div className='absolute inset-0 bg-gradient-to-t from-white to-50% group-data-[dark]:from-slate-800' />+ </FeatureBlock>+ {/* конвеєрна стрічка яка несе на собі коробки "data" -> на виході висирає коробки "$$$", "sale", "new user" */}+ <FeatureBlock+ heading='Analyse marketing campaigns and newsletters'+ description='Use UTMs to tag your ads, social media posts and email campaigns to see how much traffic they generate and how much revenue they bring in.'+ className='lg:rounded-bl-4xl lg:col-span-2'+ dark={theme === 'dark'}+ >+ {/* <MarketplaceCluster /> */}+ <ConveyorBelt />+ </FeatureBlock>+ {/* funnel animation */}+ <FeatureBlock+ heading='User flows & marketing funnels'+ description='Track how users get to your site and know where they go. Study behaviour, visualise and understand your user journey.'+ className='!overflow-visible lg:col-span-2'+ dark={theme === 'dark'}+ >+ <LogoTimeline />+ </FeatureBlock>++ <FeatureBlock+ heading='E-commerce & Custom events (really easy to setup)'+ description='Send custom events with custom properties to track user activity or sales. Analyse this data with ease in our intuitive dashboard. Create reusable views to quickly see and spot trends in your sales.'+ className='lg:rounded-tr-4xl lg:col-span-4'+ dark={theme === 'dark'}+ >+ <div+ className='absolute -top-40 left-60 right-0 z-10 h-full w-full rotate-45 transform-gpu overflow-hidden blur-3xl'+ aria-hidden='true'+ >+ <div+ className='mx-auto aspect-[1/3] h-full w-full bg-gradient-to-r from-red-400 to-red-800 opacity-15'+ style={{+ clipPath:+ 'polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)',+ }}+ />+ </div>+ <div className='h-80 overflow-hidden'>+ <img+ className='object-cover transition-transform group-hover:scale-105'+ src={theme === 'dark' ? '/assets/performance_part_dark.png' : '/assets/performance_part_light.png'}+ alt='Website speed and performance monitoring'+ />+ </div>+ <div className='absolute inset-0 bg-gradient-to-t from-white to-50% group-data-[dark]:from-gray-800' />+ </FeatureBlock>+ </div>+ </section>+ )+}+const Hero = ({theme,ssrTheme,diff --git a/public/locales/en.json b/public/locales/en.jsonindex 19ed8af1e..16621798e 100644--- a/public/locales/en.json+++ b/public/locales/en.json@@ -296,36 +296,9 @@"start": "Start for free","startAFreeTrial": "Start a free trial","metric": "Metric",- "features": [- {- "name": "Measure website traffic with 99% accuracy",- "desc": "The most accurate analytics solution to track all basic metrics and see the RIGHT data."- },- {- "name": "Demo & Geo reports",- "desc": "Yes, it's a standard. But we keep track of exactly where your users are from as it is."- },- {- "name": "UTM & Reffers tracking",- "desc": "All the traffic from your companies and websites will be shown without a data loss."- },- {- "name": "Agile system",- "desc": "A flexible system of settings for the basic rules of use - such as session definition, traffic accounting, and so on, is easy to set up and customise."- },- {- "name": "Custom events\n(really easy to setup)",- "desc": "User-friendly interface and ease of setting goals will help you measure the effectiveness of your website."- },- {- "name": "User flow",- "desc": "Track how users get to your site and where they go. Study the behaviour and patterns of your visitors."- }- ],"demoGeoReports": "Yes, it's a standard. But we keep track of exactly where your users are from as it is.","peopleLoveSwetrix": "People 🥰 Swetrix","whyPeopleLoveSwetrix": "Swetrix is an ethical and powerful service. Hundreds of people have already made the switch from Google Analytics and other alternatives.",- "marketplaceBlock": "Marketplace and extension features","coreFeaturesBlock": "Core features","opensourceAdv": "Advantages of using <url>open source</url>","opensource": [