📈 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
renamed main page to index
Blue Mousefebc4ce78a45
diff --git a/src/App.js b/src/App.jsindex c7d8e9c26..484ae9333 100644--- a/src/App.js+++ b/src/App.js@@ -25,7 +25,7 @@ import { alertsActions } from 'redux/actions/alerts'import UIActions from 'redux/actions/ui'import { authMe } from './api'-const MainPage = lazy(() => import('pages/MainPage/NewMainPage'))+const MainPage = lazy(() => import('pages/MainPage'))const SignUp = lazy(() => import('pages/Auth/Signup'))const SignIn = lazy(() => import('pages/Auth/Signin'))const ForgotPassword = lazy(() => import('pages/Auth/ForgotPassword'))diff --git a/src/pages/MainPage/NewMainPage.jsx b/src/pages/MainPage/NewMainPage.jsxdeleted file mode 100644index 214f38f39..000000000--- a/src/pages/MainPage/NewMainPage.jsx+++ /dev/null@@ -1,604 +0,0 @@-import React, { memo } from 'react'-import { Link, useHistory } from 'react-router-dom'-import { useTranslation, Trans } from 'react-i18next'-import cx from 'clsx'-import { useSelector } from 'react-redux'-import { ExternalLinkIcon, ArrowSmRightIcon, CheckCircleIcon } from '@heroicons/react/solid'-// import { CheckCircleIcon as CheckCircleIconOutline, CogIcon, ClockIcon } from '@heroicons/react/outline'-import _map from 'lodash/map'--import routes from 'routes'-import { nFormatterSeparated } from 'utils/generic'-import Title from 'components/Title'-import Button from 'ui/Button'-import { GITHUB_URL } from 'redux/constants'-import BackgroundSvg from 'ui/icons/BackgroundSvg'-import Webflow from 'ui/icons/Webflow'-import NextJS from 'ui/icons/NextJS'-import NuxtJS from 'ui/icons/NuxtJS'-import Quote from 'ui/icons/Quote'-import Slack from 'ui/icons/Slack'-import Wordpress from 'ui/icons/Wordpress'-import Cloudflare from 'ui/icons/Cloudflare'-import Notion from 'ui/icons/Notion'-import Ghost from 'ui/icons/Ghost'-import Gatsby from 'ui/icons/Gatsby'-import Wix from 'ui/icons/Wix'-import { withAuthentication, auth } from '../../hoc/protected'-import SignUp from '../Auth/Signup/BasicSignup'-import Pricing from './Pricing'-import './NewMainPage.css'--const LIVE_DEMO_URL = '/projects/STEzHcB1rALV'--const Main = () => {- const history = useHistory()- const { t, i18n: { language } } = useTranslation('common')- const { theme } = useSelector(state => state.ui.theme)- const stats = useSelector(state => state.ui.misc.stats)-- const events = nFormatterSeparated(Number(stats.pageviews), 0)- const users = nFormatterSeparated(Number(stats.users), 0)- const websites = nFormatterSeparated(Number(stats.projects), 0)-- return (- <Title title={t('titles.main')}>- <div className='relative flex justify-center items-center bg-gray-900 py-2 px-2'>- <a href='https://bank.gov.ua/en/news/all/natsionalniy-bank-vidkriv-spetsrahunok-dlya-zboru-koshtiv-na-potrebi-armiyi' target='_blank' rel='noreferrer noopener' className='text-white border-gray-900 border-b-2 hover:border-white text-center'>- {t('main.ukrSupport')}- </a>- <ExternalLinkIcon className='h-4 w-4 text-white ml-1 hidden md:block' />- </div>- <div>- <div className='bg-gray-800 dark:bg-gray-900'>- <main>- {/* first block with live demo */}- <div className='relativ overflow-x-clip'>- <div- className='relative pt-10 lg:pt-24 pb-5 xl:px-8 lg:px-6 sm:px-3 mx-auto min-h-[740px]'- >- <div- className='absolute w-36 h-[558px] z-10 bottom-0 right-[50vw] filter_blur'- style={{- background: 'linear-gradient(67.59deg, #408B9B 25.75%, #0B145F 61.14%)',- transform: 'rotate(-50.32deg)',- }}- />- <div className='relative z-20 flex flex-row content-between 2xl:mr-[14vw] 2xl:justify-center justify-center lg:justify-start'>- <div className='lg:mt-0 text-left relative lg:mr-14 px-4'>- <h1 className='max-w-2xl text-4xl sm:text-5xl md:text-[4rem] font-extrabold text-white sm:leading-none lg:text-5xl xl:text-[4.1rem] xl:leading-[110%]'>- <Trans- t={t}- i18nKey='main.slogan'- components={{- span: <span className='from-indigo-600 text-transparent bg-clip-text bg-gradient-to-r to-indigo-400' />,- }}- />- </h1>- <p className='mt-3 text-base text-gray-300 sm:mt-6 sm:text-xl lg:text-lg xl:text-lg'>- {t('main.description')}- <br />- {t('main.trackEveryMetric')}- </p>- <div className='mt-10 flex flex-col items-center sm:flex-row'>- <Link to={routes.signup} className='rounded-md border !duration-300 transition-all w-full max-w-[350px] sm:max-w-[210px] h-12 flex items-center justify-center sm:mr-6 shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 border-transparent'>- <span className='text-base font-semibold mr-1'>- {t('main.start')}- </span>- <ArrowSmRightIcon className='h-4 w-5 mt-[1px]' />- </Link>- <a href={LIVE_DEMO_URL} className='rounded-md !duration-300 transition-all sm:mt-0 mt-2 !border-gray-200 border w-full max-w-[350px] sm:max-w-[210px] h-12 flex items-center justify-center shadow-sm text-white bg-transparent hover:bg-gray-800' target='_blank' rel='noopener noreferrer'>- <span className='text-base font-semibold'>{t('common.liveDemo')}</span>- </a>- </div>- </div>- <div className='max-w-md xl:max-w-lg hidden lg:block'>- <img className='rounded-xl' style={{ height: '100%', minWidth: '880px' }} src={theme === 'dark' ? '/assets/screenshot_dark.png' : '/assets/screenshot_light.png'} width='100%' height='auto' alt='Swetrix Analytics dashboard' />- </div>- </div>- <div className='my-10 block lg:hidden relative z-20'>- <img className='rounded-xl shadow-colored-2xl w-full' src={theme === 'dark' ? '/assets/screenshot_dark.png' : '/assets/screenshot_light.png'} alt='Swetrix Analytics dashboard' width='100%' height='auto' />- </div>- </div>- </div>-- <div className='dark:bg-gray-900 bg-white px-4 pb-24'>- {/* section Core Analytics Features */}- <section className='flex pt-20 md:pt-48 flex-col-reverse md:flex-row items-center md:items-start md:justify-between max-w-7xl m-auto'>- <img className='md:max-w-md lg:max-w-full md:relative md:-top-10' src='/assets/CoreFeaturesLight.png' alt='Core Analytics Features' />- <div className='max-w-lg'>- <h1 className='font-extrabold text-4xl dark:text-white text-text-gray-800'>- {t('main.coreFeatures.title')}- </h1>- <p className='mt-6 dark:text-gray-400 text-gray-600 mb-11'>- {t('main.coreFeatures.desc')}- </p>- <a href={LIVE_DEMO_URL} className='dark:text-indigo-400 text-indigo-700 !font-bold border-0 flex items-center' target='_blank' rel='noopener noreferrer'>- {t('common.liveDemo')}- <ArrowSmRightIcon className='w-5 h-4 mt-[1px]' />- </a>- </div>- </section>- {/* section Marketplace & build-in Extensions */}- <section className='flex pt-20 md:pt-30 flex-col md:flex-row items-center md:items-start md:justify-between max-w-7xl m-auto'>- <div className='max-w-[516px]'>- <h1 className='font-extrabold text-4xl text-text-gray-800 dark:text-white'>- {t('main.marketplace.title')}- </h1>- <p className='mt-6 text-gray-600 dark:text-gray-400 mb-3'>- {t('main.marketplace.desc1')}- </p>- <p className='text-gray-600 dark:text-gray-400 mb-11'>- {t('main.marketplace.desc2')}- </p>- <Button className='text-indigo-700 dark:text-indigo-400 !font-bold border-0'>- {t('main.visitAddons')}- <ArrowSmRightIcon className='w-5 h-4 mt-[1px]' />- </Button>- </div>- <img className='md:max-w-[450px] lg:max-w-lg' src='/assets/teardown.svg' alt='Marketplace' />- </section>- {/* section Privacy compliance. */}- <section className='flex pt-20 md:pt-48 flex-col-reverse md:flex-row items-center md:items-start md:justify-between max-w-7xl m-auto'>- <img className='md:max-w-[360px] lg:max-w-lg' src='/assets/gdpr.svg' alt='GDPR compliant' />- <div className='max-w-[516px] w-full md:min-w-[370px] pb-16 md:pb-0'>- <h1 className='font-extrabold mb-6 text-4xl text-text-gray-800 dark:text-white'>- {t('main.privacy.title')}- </h1>- {_map(t('main.privacy.list', { returnObjects: true }), (item) => (- <div key={item.label} className='mb-4 flex items-center'>- <div className='mr-3'>- <CheckCircleIcon className='fill-indigo-500 w-[24px] h-[24px]' />- </div>- <p>- <span className='dark:text-white'>{item.label}</span>- <span className='mr-1 ml-1 dark:text-white'>-</span>- <span className='text-gray-600 dark:text-gray-400'>{item.desc}</span>- </p>- </div>- ))}- <Button onClick={() => history.push(routes.privacy)} className='mt-10 text-indigo-700 dark:text-indigo-400 !font-bold border-0'>- {t('main.dataProtection')}- <ArrowSmRightIcon className='w-5 h-4 mt-[1px]' />- </Button>- </div>- </section>- </div>- {/* block singup */}- <div className='overflow-x-clip'>- <div className='py-24 max-w-7xl w-full flex justify-center md:justify-between items-center mx-auto px-5'>- <div className='relative z-50 lg:col-span-6 rounded-xl'>- <div className='bg-white dark:bg-gray-800 sm:max-w-md sm:w-full sm:mx-auto sm:rounded-lg sm:overflow-hidden'>- <div className='px-4 py-8 sm:px-10'>- <p className='text-lg text-gray-900 dark:text-white text-center md:text-xl font-semibold'>- {t('main.signup')}- </p>- <div className='mt-6'>- <SignUp />- </div>- </div>- <div className='px-4 sm:px-10'>- <div className='py-6 bg-gray-50 dark:bg-gray-800 border-t-2 border-gray-200 dark:border-gray-500'>- <p className='text-xs leading-5 text-gray-500 dark:text-gray-100'>- <Trans- t={t}- i18nKey='main.signupTerms'- components={{- tos: <Link to={routes.terms} className='font-medium text-gray-900 dark:text-gray-300 hover:underline' />,- pp: <Link to={routes.privacy} className='font-medium text-gray-900 dark:text-gray-300 hover:underline' />,- }}- />- </p>- </div>- </div>- </div>- </div>- <div className='relative'>- <div- className='absolute w-36 h-[558px] z-40 left-[10vw] filter_blur'- style={{- background: 'linear-gradient(67.59deg, #408B9B 25.75%, #0B145F 61.14%)',- transform: 'rotate(-50.32deg)',- }}- />- <img- className='relative z-50 hidden md:block'- src={theme === 'dark' ? '/assets/section-signup-dark.png' : '/assets/section-signup-light.png'}- alt=''- />- </div>- </div>- </div>- {/* Core features section */}- <section className='bg-white dark:bg-gray-900 pt-20 relative pb-14'>- <BackgroundSvg className='absolute -left-8' type='shapes' />- <div className='mx-auto text-text-gray-800 font-extrabold text-3xl sm:text-5xl w-fit relative'>- <h1 className='relative z-20 dark:text-white'>- {t('main.coreFeaturesBlock')}- </h1>- <BackgroundSvg className='absolute right-0 sm:-right-16 top-9 z-10 opacity-30' type='semicircle' />- </div>- <div className='mt-[60px] flex items-center max-w-7xl w-full mx-auto flex-wrap justify-center xl:justify-between'>- {_map(t('main.features', { returnObjects: true }), (item, index) => (- <div key={item.name} className='w-[416px] h-64 px-7 py-11 text-center'>- <span className='text-indigo-500 text-3xl font-semibold'>{1 + index}</span>- <div className='mt-2'>- <h2 className='text-text-gray-800 dark:text-white text-xl font-semibold max-w-[300px] mx-auto mb-3 whitespace-pre-line'>{item.name}</h2>- <p className='text-gray-500 max-w-xs mx-auto dark:text-gray-400'>{item.desc}</p>- </div>- </div>- ))}- </div>- <BackgroundSvg className='absolute right-0 bottom-0 z-10' type='twolinecircle' />- </section>- <section className='bg-white dark:bg-gray-800 pt-24 sm:px-5 px-3 relative pb-28'>- <h1 className='mx-auto text-text-gray-800 dark:text-white font-bold text-3xl sm:ext-5xl w-fit text-center'>- {t('main.supports')}- </h1>- <div className='mt-20 grid sm:grid-cols-4 md:grid-cols-6 grid-cols-3 gap-x-4 gap-y-10 justify-items-center items-center lg:gap-x-10 lg:gap-y-16 max-w-7xl w-full mx-auto justify-between'>- <Slack theme={theme} className='max-w-[150px] max-h-12' />- <NuxtJS theme={theme} className='max-w-[150px] max-h-12' />- <Webflow theme={theme} className='max-w-[150px] max-h-12' />- <NextJS theme={theme} className='max-w-[150px] max-h-12' />- <Notion theme={theme} className='max-w-[150px] max-h-12' />- <img src='/assets/supports/react.png' alt='React' title='React.js' />- <img src='/assets/supports/angular.png' alt='Angular' title='Angular' />- <Wordpress theme={theme} className='max-w-[200px] max-h-16' />- <Wix theme={theme} className='max-w-[150px] max-h-12' />- <Ghost theme={theme} className='max-w-[200px] max-h-20' />- <Gatsby theme={theme} className='max-w-[150px] max-h-12' />- <Cloudflare theme={theme} className='max-w-[150px] max-h-12' />- </div>- </section>- <div className='overflow-hidden'>- <div className='relative max-w-7xl w-full mx-auto'>- <div- className='absolute w-60 h-[458px] z-10 left-[10vw] -top-[10vh] filter_blur'- style={{- background: 'linear-gradient(67.59deg, #408B9B 25.75%, #0B145F 61.14%)',- transform: 'rotate(-50.32deg)',- }}- />- <section className='relative z-20 px-3'>- <h1 className='mt-20 text-center text-3xl sm:text-5xl text-white font-extrabold max-w-lg w-full mx-auto'>- {t('main.marketplaceBlock')}- </h1>- <div className='grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-y-24 justify-between justify-items-center text-white pt-20 pb-36'>- {_map(t('main.mFeatures', { returnObjects: true }), (item, index) => (- <div key={item.name} className='max-w-[290px] w-full'>- <div className='flex items-center'>- <span className='text-gray-200 font-bold text-[26px] mr-6'>{1 + index}</span>- <h2 className='font-semibold text-xl'>{item.name}</h2>- </div>- <p className='pl-9 text-gray-300'>{item.desc}</p>- </div>- ))}- </div>- </section>- <div- className='absolute w-80 h-[558px] z-10 -left-[30vw] top-[80vh] sm:left-[70vw] sm:top-[30vh] filter_blur'- style={{- background: 'linear-gradient(67.59deg, #408B9B 25.75%, #0B145F 61.14%)',- transform: 'rotate(-50.32deg)',- }}- />- </div>- </div>- <Pricing t={t} language={language} />- <section className='bg-white dark:bg-gray-900 pt-20 pb-20 relative'>- <div className='absolute right-0 top-0'>- <BackgroundSvg type='twolinecircle2' />- </div>- <div className='absolute rotate-[135deg] left-0 z-0'>- <BackgroundSvg type='shapes' />- </div>- <div className='max-w-[1000px] w-full mx-auto'>- <h1 className='text-text-gray-800 text-center font-extrabold text-5xl relative z-20 dark:text-white'>- {t('main.testimonials')}- </h1>- <div className='flex items-center flex-col md:flex-row justify-between mt-16'>- {_map(t('main.lTestimonials', { returnObjects: true }), (item, index) => (- <div- key={item.name}- className={cx('max-w-xs w-full dark:bg-gray-800', {- 'mt-5 md:mt-0': index > 0,- })}- style={{- boxShadow: '-22px -11px 40px rgba(0, 0, 0, 0.02), 3px -5px 16px rgba(0, 0, 0, 0.02), 17px 24px 20px rgba(0, 0, 0, 0.02)',- borderRadius: '100px 30px 30px 30px',- }}- >- <Quote theme={theme} color={index === 1 ? 'yellow' : 'black'} className='mx-auto relative -top-4' />- <div className='px-10 mb-10 max-h-80 overflow-auto'>- <p className='text-gray-500 text-sm mt-8 dark:text-gray-400'>- {item.name}- <br />- {item.role}- </p>- <p className='text-gray-800 dark:text-white text-md text mt-2 leading-9 whitespace-pre-line'>- {item.desc}- </p>- </div>- </div>- ))}- </div>- </div>- </section>-- <div className='bg-white dark:bg-gray-900 px-4 md:px-8 dark:pb-12'>- <section className='max-w-7xl w-full mx-auto bg-gray-800 overflow-hidden lg:h-[450px]' style={{ borderRadius: '100px 30px 30px 30px' }}>- <div className='flex items-start justify-between pt-8 pl-8 sm:pl-14 lg:pl-28 md:flex-row flex-col'>- <div className='max-w-[430px] w-full pt-14 pr-3 mb-16 md:mb-0'>- <h1 className='font-bold text-2xl leading-9 sm:text-4xl sm:leading-[48px] md:text-[28px] md:leading-10 lg:text-4xl lg:leading-[48px] text-white mb-3'>- <Trans- t={t}- i18nKey='main.os'- components={{- // eslint-disable-next-line jsx-a11y/anchor-has-content- gradi: <span className='text-transparent bg-clip-text' style={{ background: 'linear-gradient(91.37deg, #4E46DD 10%, #5C3CDA 55%, #A274EF 100%)' }} />,- }}- />- </h1>- <p className='text-gray-300 mb-9 font-medium text-base sm:text-lg'>- {t('main.demoGeoReports')}- </p>- <Link to={routes.signup} className='rounded-md border !duration-300 transition-all w-full max-w-[210px] h-[50px] flex items-center justify-center sm:mr-6 shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 border-transparent'>- <span className='text-base font-semibold mr-1'>{t('main.start')}</span>- <ArrowSmRightIcon className='w-5 h-4 mt-[1px]' />- </Link>- </div>- <div className='max-w-md xl:max-w-lg block h-[450px]'>- <img className='rounded-xl' style={{ minheight: '600px', minWidth: '880px' }} src={theme === 'dark' ? '/assets/screenshot_dark.png' : '/assets/screenshot_light.png'} width='100%' height='auto' alt='Swetrix Analytics dashboard' />- </div>- </div>- </section>- </div>-- {/* Checklist section */}- {/* <section className='bg-white dark:bg-gray-800 px-4 md:px-8 pt-24 pb-32 relative'>- <div className='absolute right-0 top-0 z-0 sm:top-28'>- <BackgroundSvg type='circle' />- </div>- <div className='absolute left-10'>- <BackgroundSvg type='shapes' />- </div>- <h1 className='text-text-gray-800 text-5xl font-extrabold text-center relative z-20 dark:text-white'>Checklist</h1>- <div className='flex flex-col lg:flex-row items-center justify-between max-w-5xl w-full mx-auto mt-16'>- <div- className='max-w-xs w-full mx-auto shadow-lg overflow-hidden relative z-10'- style={{ borderRadius: '20px 10px 10px 10px' }}- >- <div className='flex items-center justify-between pl-11 pr-6 bg-orange-300 py-4'>- <h2 className='text-xl text-white font-semibold'>Done</h2>- <CheckCircleIconOutline className='w-7 h-7 text-white' />- </div>- <div className='mt-14 px-11 pb-12'>- <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>- <CheckCircleIconOutline className='h-5 w-5 text-orange-300 mr-2' />- {' '}- Up to 5,000 visits per month.- </p>- <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>- <CheckCircleIconOutline className='h-5 w-5 text-orange-300 mr-2' />- {' '}- Add up to 10 websites.- </p>- <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>- <CheckCircleIconOutline className='h-5 w-5 text-orange-300 mr-2' />- {' '}- Unlimited data exports.- </p>- <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>- <CheckCircleIconOutline className='h-5 w-5 text-orange-300 mr-2' />- {' '}- 100% data ownership.- </p>- <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>- <CheckCircleIconOutline className='h-5 w-5 text-orange-300 mr-2' />- {' '}- No cookie banners required.- </p>- <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>- <CheckCircleIconOutline className='h-5 w-5 text-orange-300 mr-2' />- {' '}- Shared & Public Dashboards.- </p>- <p className='text-gray-500 dark:text-white text-xs flex items-center'>- <CheckCircleIconOutline className='h-5 w-5 text-orange-300 mr-2' />- {' '}- Email reports.- </p>- </div>- </div>- <div- className='max-w-xs w-full mx-auto shadow-lg overflow-hidden my-9 lg:my-0'- style={{ borderRadius: '20px 10px 10px 10px' }}- >- <div className='flex items-center justify-between pl-11 pr-6 bg-purple-400 py-4'>- <h2 className='text-xl text-white font-semibold'>In progress</h2>- <CogIcon alt='Swetrix settings icon' className='w-7 h-7 text-white' />- </div>- <div className='mt-14 px-11 pb-12'>- <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>- <CogIcon className='h-5 w-5 text-purple-400 mr-2' />- {' '}- Up to 5,000 visits per month.- </p>- <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>- <CogIcon className='h-5 w-5 text-purple-400 mr-2' />- {' '}- Add up to 10 websites.- </p>- <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>- <CogIcon className='h-5 w-5 text-purple-400 mr-2' />- {' '}- Unlimited data exports.- </p>- <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>- <CogIcon className='h-5 w-5 text-purple-400 mr-2' />- {' '}- 100% data ownership.- </p>- <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>- <CogIcon className='h-5 w-5 text-purple-400 mr-2' />- {' '}- No cookie banners required.- </p>- <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>- <CogIcon className='h-5 w-5 text-purple-400 mr-2' />- {' '}- Shared & Public Dashboards.- </p>- <p className='text-gray-500 dark:text-white text-xs flex items-center'>- <CogIcon className='h-5 w-5 text-purple-400 mr-2' />- {' '}- Email reports.- </p>- </div>- </div>- <div- className='max-w-xs w-full mx-auto shadow-lg overflow-hidden relative z-10'- style={{ borderRadius: '20px 10px 10px 10px' }}- >- <div className='flex items-center justify-between pl-11 pr-6 bg-gray-800 dark:bg-blue-900 py-4'>- <h2 className='text-xl text-white font-semibold'>Plans</h2>- <ClockIcon className='w-7 h-7 text-white' />- </div>- <div className='mt-14 px-11 pb-12'>- <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>- <ClockIcon className='h-5 w-5 text-gray-800 dark:text-blue-900 mr-2' />- {' '}- Up to 5,000 visits per month.- </p>- <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>- <ClockIcon className='h-5 w-5 text-gray-800 dark:text-blue-900 mr-2' />- {' '}- Add up to 10 websites.- </p>- <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>- <ClockIcon className='h-5 w-5 text-gray-800 dark:text-blue-900 mr-2' />- {' '}- Unlimited data exports.- </p>- <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>- <ClockIcon className='h-5 w-5 text-gray-800 dark:text-blue-900 mr-2' />- {' '}- 100% data ownership.- </p>- <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>- <ClockIcon className='h-5 w-5 text-gray-800 dark:text-blue-900 mr-2' />- {' '}- No cookie banners required.- </p>- <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>- <ClockIcon className='h-5 w-5 text-gray-800 dark:text-blue-900 mr-2' />- {' '}- Shared & Public Dashboards.- </p>- <p className='text-gray-500 dark:text-white text-xs flex items-center'>- <ClockIcon className='h-5 w-5 text-gray-800 dark:text-blue-900 mr-2' />- {' '}- Email reports.- </p>- </div>- </div>- </div>- </section> */}- <section className='flex items-center lg:flex-row flex-col-reverse justify-between max-w-7xl w-full mx-auto py-20 lg:py-32 px-5'>- <img src={theme === 'dark' ? '/assets/opensource_dark.png' : '/assets/opensource_light.png'} loading='lazy' alt='Swetrix open source' />- <div className='max-w-lg w-full lg:ml-5'>- <h1 className='text-3xl md:text-4xl text-white font-extrabold'>- <Trans- t={t}- i18nKey='main.opensourceAdv'- components={{- // eslint-disable-next-line jsx-a11y/anchor-has-content- url: <a href={GITHUB_URL} className='hover:underline' target='_blank' rel='noopener noreferrer' />,- }}- />- </h1>- <hr className='border-gray-600 border-1 max-w-[346px] my-6' />- <div className='max-w-md w-full lg:mb-0 mb-9'>- {_map(t('main.opensource', { returnObjects: true }), (item) => (- <p key={item.desc} className='text-gray-300 text-sm leading-6 flex items-center mb-3'>- <span>- <CheckCircleIcon className='w-6 h-6 text-indigo-500 mr-4' />- </span>- {item.desc}- </p>- ))}- </div>- </div>- </section>- <section className='bg-white dark:bg-gray-800 pt-20 pb-44 relative'>- <div className='absolute right-0 top-16 z-0'>- <BackgroundSvg type='threecircle' />- </div>- <div className='absolute -left-9 top-52 rotate-90'>- <BackgroundSvg type='shapes' />- </div>- <div className='max-w-5xl w-full mx-auto px-3'>- <div className='max-w-sm w-full mx-auto'>- <h1 className='text-gray-900 dark:text-white text-3xl md:text-4xl font-extrabold text-center'>- {t('main.becomeDev')}- </h1>- <p className='text-gray-600 dark:text-gray-400 text-base font-medium text-center mt-2'>- {t('main.becomeDevDesc')}- </p>- </div>- <div className='flex items-center justify-between mt-20 md:mt-32 md:flex-row flex-col'>- <div>- <p className='text-indigo-700 text-5xl font-extrabold text-center'>- {users[0]}- {users[1] && (- <span className='text-gray-900 dark:text-indigo-200'>- {users[1]}- +- </span>- )}- </p>- <p className='text-gray-600 text-lg dark:text-gray-200'>- {t('main.users')}- </p>- </div>- <div className='bg-gray-800 dark:bg-gray-200 w-2 h-2 rounded-full mx-5 mb-14 mt-16 md:mb-0 md:mt-0' />- <div>- <p className='text-indigo-700 text-5xl font-extrabold text-center'>- {websites[0]}- {websites[1] && (- <span className='text-gray-900 dark:text-indigo-200'>- {websites[1]}- +- </span>- )}- </p>- <p className='text-gray-600 text-lg dark:text-gray-200'>- {t('main.websites')}- </p>- </div>- <div className='bg-gray-800 dark:bg-gray-200 w-2 h-2 rounded-full mx-5 mb-14 mt-16 md:mb-0 md:mt-0' />- <div>- <p className='text-indigo-700 text-5xl font-extrabold text-center'>- {events[0]}- {events[1] && (- <span className='text-gray-900 dark:text-indigo-200'>- {events[1]}- +- </span>- )}- </p>- <p className='text-gray-600 text-lg dark:text-gray-200'>- {t('main.pageviews')}- </p>- </div>- </div>- </div>- </section>- </main>- </div>- </div>- </Title>- )-}--export default memo(withAuthentication(Main, auth.notAuthenticated))diff --git a/src/pages/MainPage/index.jsx b/src/pages/MainPage/index.jsxindex 4d3e3ccac..2d8a3f96b 100644--- a/src/pages/MainPage/index.jsx+++ b/src/pages/MainPage/index.jsx@@ -1,304 +1,600 @@-/* eslint-disable jsx-a11y/anchor-has-content */-import React, { memo, useState } from 'react'-import cx from 'clsx'-import { Link } from 'react-router-dom'+import React, { memo } from 'react'+import { Link, useHistory } from 'react-router-dom'import { useTranslation, Trans } from 'react-i18next'+import cx from 'clsx'import { useSelector } from 'react-redux'-import { ExternalLinkIcon } from '@heroicons/react/solid'+import { ExternalLinkIcon, ArrowSmRightIcon, CheckCircleIcon } from '@heroicons/react/solid'+// import { CheckCircleIcon as CheckCircleIconOutline, CogIcon, ClockIcon } from '@heroicons/react/outline'import _map from 'lodash/map'import routes from 'routes'-// import { nFormatter } from 'utils/generic'-import { CONTACT_EMAIL } from 'redux/constants'+import { nFormatterSeparated } from 'utils/generic'import Title from 'components/Title'+import Button from 'ui/Button'+import { GITHUB_URL } from 'redux/constants'+import BackgroundSvg from 'ui/icons/BackgroundSvg'+import Webflow from 'ui/icons/Webflow'+import NextJS from 'ui/icons/NextJS'+import NuxtJS from 'ui/icons/NuxtJS'+import Quote from 'ui/icons/Quote'+import Slack from 'ui/icons/Slack'+import Wordpress from 'ui/icons/Wordpress'+import Cloudflare from 'ui/icons/Cloudflare'+import Notion from 'ui/icons/Notion'+import Ghost from 'ui/icons/Ghost'+import Gatsby from 'ui/icons/Gatsby'+import Wix from 'ui/icons/Wix'import { withAuthentication, auth } from '../../hoc/protected'import SignUp from '../Auth/Signup/BasicSignup'import Pricing from './Pricing'+import './styles.css'const LIVE_DEMO_URL = '/projects/STEzHcB1rALV'-const SquareDots = ({ className }) => (- <div className='hidden lg:block lg:absolute lg:inset-0 pointer-events-none' aria-hidden='true'>- <svg- className={className}- width={364}- height={384}- viewBox='0 0 364 384'- fill='none'- >- <defs>- <pattern- id='eab71dd9-9d7a-47bd-8044-256344ee00d0'- x={0}- y={0}- width={20}- height={20}- patternUnits='userSpaceOnUse'- >- <rect x={0} y={0} width={4} height={4} fill='currentColor' />- </pattern>- </defs>- <rect width={364} height={384} fill='url(#eab71dd9-9d7a-47bd-8044-256344ee00d0)' />- </svg>- </div>-)--const FAQs = ({ t }) => (- <div id='faqs' className='bg-gray-50 dark:bg-gray-800'>- <div className='w-11/12 mx-auto py-16 px-4 sm:px-6 lg:py-20 lg:px-8'>- <div className='lg:grid lg:grid-cols-3 lg:gap-8'>- <div>- <h2 className='text-3xl font-extrabold text-gray-900 dark:text-gray-50'>- {t('main.faq.title')}- </h2>- <p className='mt-4 text-lg text-gray-500 dark:text-gray-200'>- <Trans- t={t}- i18nKey='main.custSupport'- components={{- mail: <a href={`mailto:${CONTACT_EMAIL}`} className='font-medium text-indigo-600 hover:text-indigo-500 dark:text-indigo-400' />,- }}- />- </p>- </div>- <div className='mt-12 lg:mt-0 lg:col-span-2'>- <dl className='space-y-12'>- {_map(t('main.faq.list', { returnObjects: true }), (faq) => (- <div key={faq.question}>- <dt className='text-lg leading-6 font-medium text-gray-900 dark:text-gray-50'>{faq.question}</dt>- <dd className='mt-2 text-base text-gray-500 dark:text-gray-300 whitespace-pre-line'>{faq.answer}</dd>- </div>- ))}- </dl>- </div>- </div>- </div>- </div>-)--const Features = ({ t }) => (- <div className='bg-white dark:bg-gray-800'>- <div className='w-11/12 mx-auto py-16 px-4 sm:py-24 sm:px-6 lg:px-8'>- <h2 className='text-3xl font-extrabold text-gray-900 dark:text-gray-50 text-center'>- {t('main.whyUs')}- </h2>- <div className='mt-12'>- <dl className='space-y-10 md:space-y-0 md:grid md:grid-cols-2 md:grid-rows-2 md:gap-x-8 md:gap-y-12 lg:grid-cols-3'>- {_map(t('main.features', { returnObjects: true }), (feature) => (- <div key={feature.name}>- <dt className='text-lg leading-6 font-semibold text-gray-900 dark:text-gray-50'>{feature.name}</dt>- <dd className='mt-2 text-base text-gray-500 dark:text-gray-300'>{feature.description}</dd>- </div>- ))}- </dl>- </div>- </div>- </div>-)-const Main = () => {+ const history = useHistory()const { t, i18n: { language } } = useTranslation('common')const { theme } = useSelector(state => state.ui.theme)- // const stats = useSelector(state => state.ui.misc.stats)- const [liveDemoHover, setLiveDemoHover] = useState(false)+ const stats = useSelector(state => state.ui.misc.stats)++ const events = nFormatterSeparated(Number(stats.pageviews), 0)+ const users = nFormatterSeparated(Number(stats.users), 0)+ const websites = nFormatterSeparated(Number(stats.projects), 0)return (- <Title title='Privacy Respecting Web Analytics Platform'>+ <Title title={t('titles.main')}><div className='relative flex justify-center items-center bg-gray-900 py-2 px-2'><a href='https://bank.gov.ua/en/news/all/natsionalniy-bank-vidkriv-spetsrahunok-dlya-zboru-koshtiv-na-potrebi-armiyi' target='_blank' rel='noreferrer noopener' className='text-white border-gray-900 border-b-2 hover:border-white text-center'>{t('main.ukrSupport')}</a><ExternalLinkIcon className='h-4 w-4 text-white ml-1 hidden md:block' /></div>- <div className='relative bg-gray-800'>- <SquareDots className='absolute bottom-0 left-0 transform translate-x-0 mb-0 text-gray-700 lg:top-0 xl:transform-none lg:mt-72' />- <SquareDots className='absolute bottom-0 right-0 transform translate-x-0 mb-48 text-gray-700 lg:top-0 lg:mb-0 xl:transform-none lg:mt-16' />- <div className='relative pt-6 pb-16 sm:pb-24'>- <main className='mt-8 sm:mt-24'>- <div className='mx-auto w-11/12'>- <div className='lg:grid lg:grid-cols-12 lg:gap-8'>- <div className='px-4 sm:px-6 sm:text-center md:max-w-2xl md:mx-auto lg:col-span-6 lg:text-left lg:flex lg:items-center'>- <div>- <h1 className='mt-4 text-4xl tracking-tight font-extrabold text-white sm:mt-5 sm:leading-none lg:mt-6 lg:text-5xl xl:text-6xl'>+ <div>+ <div className='bg-gray-800 dark:bg-gray-900'>+ <main>+ {/* first block with live demo */}+ <div className='relativ overflow-x-clip'>+ <div+ className='relative pt-10 lg:pt-24 pb-5 xl:px-8 lg:px-6 sm:px-3 mx-auto min-h-[740px]'+ >+ <div+ className='absolute w-36 h-[558px] z-10 bottom-0 right-[50vw] filter_blur'+ style={{+ background: 'linear-gradient(67.59deg, #408B9B 25.75%, #0B145F 61.14%)',+ transform: 'rotate(-50.32deg)',+ }}+ />+ <div className='relative z-20 flex flex-row content-between 2xl:mr-[14vw] 2xl:justify-center justify-center lg:justify-start'>+ <div className='lg:mt-0 text-left relative lg:mr-14 px-4'>+ <h1 className='max-w-2xl text-4xl sm:text-5xl md:text-[4rem] font-extrabold text-white sm:leading-none lg:text-5xl xl:text-[4.1rem] xl:leading-[110%]'><Transt={t}i18nKey='main.slogan'components={{- span: <span className='text-indigo-400' />,+ span: <span className='from-indigo-600 text-transparent bg-clip-text bg-gradient-to-r to-indigo-400' />,}}/></h1>- <p className='mt-3 text-base text-gray-300 sm:mt-5 sm:text-xl lg:text-lg xl:text-xl'>+ <p className='mt-3 text-base text-gray-300 sm:mt-6 sm:text-xl lg:text-lg xl:text-lg'>{t('main.description')}<br />{t('main.trackEveryMetric')}</p>+ <div className='mt-10 flex flex-col items-center sm:flex-row'>+ <Link to={routes.signup} className='rounded-md border !duration-300 transition-all w-full max-w-[350px] sm:max-w-[210px] h-12 flex items-center justify-center sm:mr-6 shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 border-transparent'>+ <span className='text-base font-semibold mr-1'>+ {t('main.start')}+ </span>+ <ArrowSmRightIcon className='h-4 w-5 mt-[1px]' />+ </Link>+ <a href={LIVE_DEMO_URL} className='rounded-md !duration-300 transition-all sm:mt-0 mt-2 !border-gray-200 border w-full max-w-[350px] sm:max-w-[210px] h-12 flex items-center justify-center shadow-sm text-white bg-transparent hover:bg-gray-800' target='_blank' rel='noopener noreferrer'>+ <span className='text-base font-semibold'>{t('common.liveDemo')}</span>+ </a>+ </div></div>+ <div className='max-w-md xl:max-w-lg hidden lg:block'>+ <img className='rounded-xl' style={{ height: '100%', minWidth: '880px' }} src={theme === 'dark' ? '/assets/screenshot_dark.png' : '/assets/screenshot_light.png'} width='100%' height='auto' alt='Swetrix Analytics dashboard' />+ </div>+ </div>+ <div className='my-10 block lg:hidden relative z-20'>+ <img className='rounded-xl shadow-colored-2xl w-full' src={theme === 'dark' ? '/assets/screenshot_dark.png' : '/assets/screenshot_light.png'} alt='Swetrix Analytics dashboard' width='100%' height='auto' />+ </div>+ </div>+ </div>++ <div className='dark:bg-gray-900 bg-white px-4 pb-24'>+ {/* section Core Analytics Features */}+ <section className='flex pt-20 md:pt-48 flex-col-reverse md:flex-row items-center md:items-start md:justify-between max-w-7xl m-auto'>+ <img className='md:max-w-md lg:max-w-full md:relative md:-top-10' src='/assets/CoreFeaturesLight.png' alt='Core Analytics Features' />+ <div className='max-w-lg'>+ <h1 className='font-extrabold text-4xl dark:text-white text-text-gray-800'>+ {t('main.coreFeatures.title')}+ </h1>+ <p className='mt-6 dark:text-gray-400 text-gray-600 mb-11'>+ {t('main.coreFeatures.desc')}+ </p>+ <a href={LIVE_DEMO_URL} className='dark:text-indigo-400 text-indigo-700 !font-bold border-0 flex items-center' target='_blank' rel='noopener noreferrer'>+ {t('common.liveDemo')}+ <ArrowSmRightIcon className='w-5 h-4 mt-[1px]' />+ </a></div>- <div className='mt-16 sm:mt-24 lg:mt-0 lg:col-span-6'>- <div className='bg-white dark:bg-gray-700 sm:max-w-md sm:w-full sm:mx-auto sm:rounded-lg sm:overflow-hidden'>+ </section>+ {/* section Marketplace & build-in Extensions */}+ <section className='flex pt-20 md:pt-30 flex-col md:flex-row items-center md:items-start md:justify-between max-w-7xl m-auto'>+ <div className='max-w-[516px]'>+ <h1 className='font-extrabold text-4xl text-text-gray-800 dark:text-white'>+ {t('main.marketplace.title')}+ </h1>+ <p className='mt-6 text-gray-600 dark:text-gray-400 mb-3'>+ {t('main.marketplace.desc1')}+ </p>+ <p className='text-gray-600 dark:text-gray-400 mb-11'>+ {t('main.marketplace.desc2')}+ </p>+ <Button className='text-indigo-700 dark:text-indigo-400 !font-bold border-0'>+ {t('main.visitAddons')}+ <ArrowSmRightIcon className='w-5 h-4 mt-[1px]' />+ </Button>+ </div>+ <img className='md:max-w-[450px] lg:max-w-lg' src='/assets/teardown.svg' alt='Marketplace' />+ </section>+ {/* section Privacy compliance. */}+ <section className='flex pt-20 md:pt-48 flex-col-reverse md:flex-row items-center md:items-start md:justify-between max-w-7xl m-auto'>+ <img className='md:max-w-[360px] lg:max-w-lg' src='/assets/gdpr.svg' alt='GDPR compliant' />+ <div className='max-w-[516px] w-full md:min-w-[370px] pb-16 md:pb-0'>+ <h1 className='font-extrabold mb-6 text-4xl text-text-gray-800 dark:text-white'>+ {t('main.privacy.title')}+ </h1>+ {_map(t('main.privacy.list', { returnObjects: true }), (item) => (+ <div key={item.label} className='mb-4 flex items-center'>+ <div className='mr-3'>+ <CheckCircleIcon className='fill-indigo-500 w-[24px] h-[24px]' />+ </div>+ <p>+ <span className='dark:text-white'>{item.label}</span>+ <span className='mr-1 ml-1 dark:text-white'>-</span>+ <span className='text-gray-600 dark:text-gray-400'>{item.desc}</span>+ </p>+ </div>+ ))}+ <Button onClick={() => history.push(routes.privacy)} className='mt-10 text-indigo-700 dark:text-indigo-400 !font-bold border-0'>+ {t('main.dataProtection')}+ <ArrowSmRightIcon className='w-5 h-4 mt-[1px]' />+ </Button>+ </div>+ </section>+ </div>+ {/* block singup */}+ <div className='overflow-x-clip'>+ <div className='py-24 max-w-7xl w-full flex justify-center md:justify-between items-center mx-auto px-5'>+ <div className='relative z-50 lg:col-span-6 rounded-xl'>+ <div className='bg-white dark:bg-gray-800 sm:max-w-md sm:w-full sm:mx-auto sm:rounded-lg sm:overflow-hidden'><div className='px-4 py-8 sm:px-10'>- <p className='text-lg text-gray-900 dark:text-white text-center'>+ <p className='text-lg text-gray-900 dark:text-white text-center md:text-xl font-semibold'>{t('main.signup')}</p><div className='mt-6'><SignUp /></div></div>- <div className='px-4 py-6 bg-gray-50 dark:bg-gray-700 border-t-2 border-gray-200 dark:border-gray-500 sm:px-10'>- <p className='text-xs leading-5 text-gray-500 dark:text-gray-100'>- <Trans- t={t}- i18nKey='main.signupTerms'- components={{- tos: <Link to={routes.terms} className='font-medium text-gray-900 dark:text-gray-300 hover:underline' />,- pp: <Link to={routes.privacy} className='font-medium text-gray-900 dark:text-gray-300 hover:underline' />,- }}- />- </p>+ <div className='px-4 sm:px-10'>+ <div className='py-6 bg-gray-50 dark:bg-gray-800 border-t-2 border-gray-200 dark:border-gray-500'>+ <p className='text-xs leading-5 text-gray-500 dark:text-gray-100'>+ <Trans+ t={t}+ i18nKey='main.signupTerms'+ components={{+ tos: <Link to={routes.terms} className='font-medium text-gray-900 dark:text-gray-300 hover:underline' />,+ pp: <Link to={routes.privacy} className='font-medium text-gray-900 dark:text-gray-300 hover:underline' />,+ }}+ />+ </p>+ </div></div></div></div>+ <div className='relative'>+ <div+ className='absolute w-36 h-[558px] z-40 left-[10vw] filter_blur'+ style={{+ background: 'linear-gradient(67.59deg, #408B9B 25.75%, #0B145F 61.14%)',+ transform: 'rotate(-50.32deg)',+ }}+ />+ <img+ className='relative z-50 hidden md:block'+ src={theme === 'dark' ? '/assets/section-signup-dark.png' : '/assets/section-signup-light.png'}+ alt=''+ />+ </div></div></div>- </main>- </div>-- <div className='relative'>- <div className='absolute inset-0 flex flex-col' aria-hidden='true'>- <div className='flex-1' />- <div className='flex-1 w-full bg-white dark:bg-gray-800' />- </div>- <div className='w-11/12 mx-auto relative' onMouseEnter={() => setLiveDemoHover(true)} onMouseLeave={() => setLiveDemoHover(false)}>- {theme === 'dark' ? (- <img- className={cx('relative rounded-md md:rounded-lg shadow-lg w-full transition-all', {- 'brightness-75': liveDemoHover,- })}- src='/assets/screenshot_dark.png'- alt=''- />- ) : (- <img- className={cx('relative rounded-md md:rounded-lg shadow-lg w-full transition-all', {- 'brightness-75': liveDemoHover,- })}- src='/assets/screenshot_light.png'- alt=''- />- )}- {liveDemoHover && (- <a- href={LIVE_DEMO_URL}- className='absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 flex items-center justify-center whitespace-nowrap px-3 py-2 border border-transparent text-lg font-medium rounded-md shadow-sm text-white bg-indigo-600 hover:bg-indigo-700'- target='_blank'- rel='noreferrer noopener'- >- {t('common.liveDemo')}- </a>- )}- </div>- </div>-- <Features t={t} />-- {/* <div className='py-6 overflow-hidden bg-gray-50 dark:bg-gray-700'>- <div className='w-11/12 container mx-auto'>- <h2 className='text-3xl font-extrabold text-gray-900 dark:text-gray-50 text-center'>- {t('main.ourStats')}- </h2>- <p className='max-w-3xl mx-auto mt-3 text-xl text-center text-gray-500 dark:text-gray-200 sm:mt-4'>- {t('main.statsDesc')}- </p>- <div className='pb-12 mt-10 bg-gray-50 dark:bg-gray-700 sm:pb-16'>- <div className='relative w-full'>- <div className='mx-auto'>- <dl className='bg-gray-50 dark:bg-gray-700 rounded-lg sm:grid sm:grid-cols-3'>- <div className='flex flex-col p-6 text-center border-b border-gray-100 sm:border-0 sm:border-r'>- <dt className='order-2 mt-2 text-lg font-medium text-gray-500 dark:text-gray-100 leading-6'>- {t('main.users')}- </dt>- <dd className='order-1 text-5xl font-extrabold text-indigo-600 dark:text-indigo-500'>- {Number(stats.users).toLocaleString()}- </dd>- </div>- <div className='flex flex-col p-6 text-center border-t border-b border-gray-100 sm:border-0 sm:border-l sm:border-r'>- <dt className='order-2 mt-2 text-lg font-medium text-gray-500 dark:text-gray-100 leading-6'>- {t('main.websites')}- </dt>- <dd className='order-1 text-5xl font-extrabold text-indigo-600 dark:text-indigo-500'>- {Number(stats.projects).toLocaleString()}- </dd>+ {/* Core features section */}+ <section className='bg-white dark:bg-gray-900 pt-20 relative pb-14'>+ <BackgroundSvg className='absolute -left-8' type='shapes' />+ <div className='mx-auto text-text-gray-800 font-extrabold text-3xl sm:text-5xl w-fit relative'>+ <h1 className='relative z-20 dark:text-white'>+ {t('main.coreFeaturesBlock')}+ </h1>+ <BackgroundSvg className='absolute right-0 sm:-right-16 top-9 z-10 opacity-30' type='semicircle' />+ </div>+ <div className='mt-[60px] flex items-center max-w-7xl w-full mx-auto flex-wrap justify-center xl:justify-between'>+ {_map(t('main.features', { returnObjects: true }), (item, index) => (+ <div key={item.name} className='w-[416px] h-64 px-7 py-11 text-center'>+ <span className='text-indigo-500 text-3xl font-semibold'>{1 + index}</span>+ <div className='mt-2'>+ <h2 className='text-text-gray-800 dark:text-white text-xl font-semibold max-w-[300px] mx-auto mb-3 whitespace-pre-line'>{item.name}</h2>+ <p className='text-gray-500 max-w-xs mx-auto dark:text-gray-400'>{item.desc}</p></div>- <div className='flex flex-col p-6 text-center border-t border-gray-100 sm:border-0 sm:border-l'>- <dt className='order-2 mt-2 text-lg font-medium text-gray-500 dark:text-gray-100 leading-6'>- {t('main.pageviews')}- </dt>- <dd className='order-1 text-5xl font-extrabold text-indigo-600 dark:text-indigo-500'>- {nFormatter(Number(stats.pageviews), 1)}- </dd>+ </div>+ ))}+ </div>+ <BackgroundSvg className='absolute right-0 bottom-0 z-10' type='twolinecircle' />+ </section>+ <section className='bg-white dark:bg-gray-800 pt-24 sm:px-5 px-3 relative pb-28'>+ <h1 className='mx-auto text-text-gray-800 dark:text-white font-bold text-3xl sm:ext-5xl w-fit text-center'>+ {t('main.supports')}+ </h1>+ <div className='mt-20 grid sm:grid-cols-4 md:grid-cols-6 grid-cols-3 gap-x-4 gap-y-10 justify-items-center items-center lg:gap-x-10 lg:gap-y-16 max-w-7xl w-full mx-auto justify-between'>+ <Slack theme={theme} className='max-w-[150px] max-h-12' />+ <NuxtJS theme={theme} className='max-w-[150px] max-h-12' />+ <Webflow theme={theme} className='max-w-[150px] max-h-12' />+ <NextJS theme={theme} className='max-w-[150px] max-h-12' />+ <Notion theme={theme} className='max-w-[150px] max-h-12' />+ <img src='/assets/supports/react.png' alt='React' title='React.js' />+ <img src='/assets/supports/angular.png' alt='Angular' title='Angular' />+ <Wordpress theme={theme} className='max-w-[200px] max-h-16' />+ <Wix theme={theme} className='max-w-[150px] max-h-12' />+ <Ghost theme={theme} className='max-w-[200px] max-h-20' />+ <Gatsby theme={theme} className='max-w-[150px] max-h-12' />+ <Cloudflare theme={theme} className='max-w-[150px] max-h-12' />+ </div>+ </section>+ <div className='overflow-hidden'>+ <div className='relative max-w-7xl w-full mx-auto'>+ <div+ className='absolute w-60 h-[458px] z-10 left-[10vw] -top-[10vh] filter_blur'+ style={{+ background: 'linear-gradient(67.59deg, #408B9B 25.75%, #0B145F 61.14%)',+ transform: 'rotate(-50.32deg)',+ }}+ />+ <section className='relative z-20 px-3'>+ <h1 className='mt-20 text-center text-3xl sm:text-5xl text-white font-extrabold max-w-lg w-full mx-auto'>+ {t('main.marketplaceBlock')}+ </h1>+ <div className='grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-y-24 justify-between justify-items-center text-white pt-20 pb-36'>+ {_map(t('main.mFeatures', { returnObjects: true }), (item, index) => (+ <div key={item.name} className='max-w-[290px] w-full'>+ <div className='flex items-center'>+ <span className='text-gray-200 font-bold text-[26px] mr-6'>{1 + index}</span>+ <h2 className='font-semibold text-xl'>{item.name}</h2>+ </div>+ <p className='pl-9 text-gray-300'>{item.desc}</p>+ </div>+ ))}+ </div>+ </section>+ <div+ className='absolute w-80 h-[558px] z-10 -left-[30vw] top-[80vh] sm:left-[70vw] sm:top-[30vh] filter_blur'+ style={{+ background: 'linear-gradient(67.59deg, #408B9B 25.75%, #0B145F 61.14%)',+ transform: 'rotate(-50.32deg)',+ }}+ />+ </div>+ </div>+ <Pricing t={t} language={language} />+ <section className='bg-white dark:bg-gray-900 pt-20 pb-20 relative'>+ <div className='absolute right-0 top-0'>+ <BackgroundSvg type='twolinecircle2' />+ </div>+ <div className='absolute rotate-[135deg] left-0 z-0'>+ <BackgroundSvg type='shapes' />+ </div>+ <div className='max-w-[1000px] w-full mx-auto'>+ <h1 className='text-text-gray-800 text-center font-extrabold text-5xl relative z-20 dark:text-white'>+ {t('main.testimonials')}+ </h1>+ <div className='flex items-center flex-col md:flex-row justify-between mt-16'>+ {_map(t('main.lTestimonials', { returnObjects: true }), (item, index) => (+ <div+ key={item.name}+ className={cx('max-w-xs w-full dark:bg-gray-800', {+ 'mt-5 md:mt-0': index > 0,+ })}+ style={{+ boxShadow: '-22px -11px 40px rgba(0, 0, 0, 0.02), 3px -5px 16px rgba(0, 0, 0, 0.02), 17px 24px 20px rgba(0, 0, 0, 0.02)',+ borderRadius: '100px 30px 30px 30px',+ }}+ >+ <Quote theme={theme} color={index === 1 ? 'yellow' : 'black'} className='mx-auto relative -top-4' />+ <div className='px-10 mb-10 max-h-80 overflow-auto'>+ <p className='text-gray-500 text-sm mt-8 dark:text-gray-400'>+ {item.name}+ <br />+ {item.role}+ </p>+ <p className='text-gray-800 dark:text-white text-md text mt-2 leading-9 whitespace-pre-line'>+ {item.desc}+ </p>+ </div></div>- </dl>+ ))}</div></div>- </div>- </div>- </div> */}+ </section>- <div className='bg-indigo-600 dark:bg-indigo-800'>- <div className='w-11/12 mx-auto pb-16 pt-12 px-4 sm:px-6 lg:px-8 lg:flex lg:items-center lg:justify-between'>- <h2 className='text-3xl font-extrabold tracking-tight'>- <span className='block text-white'>- {t('main.description')}- </span>- <span className='block text-gray-300 dark:text-gray-200'>- {t('main.lookAtDocs')}- </span>- </h2>- <div className='mt-6 space-y-4 sm:space-y-0 sm:flex sm:space-x-5'>- <Link- to={LIVE_DEMO_URL}- className='flex items-center justify-center whitespace-nowrap px-3 py-2 border border-transparent text-lg font-medium rounded-md shadow-sm text-indigo-800 bg-indigo-50 hover:bg-indigo-100 dark:bg-indigo-100 dark:hover:bg-indigo-200'- >- {t('common.liveDemo')}- </Link>- <Link- to={routes.docs}- className='flex items-center justify-center whitespace-nowrap px-3 py-2 border border-transparent text-lg font-medium rounded-md shadow-sm text-indigo-800 bg-indigo-50 hover:bg-indigo-100 dark:bg-indigo-100 dark:hover:bg-indigo-200'- >- {t('common.docs')}- </Link>+ <div className='bg-white dark:bg-gray-900 px-4 md:px-8 dark:pb-12'>+ <section className='max-w-7xl w-full mx-auto bg-gray-800 overflow-hidden lg:h-[450px]' style={{ borderRadius: '100px 30px 30px 30px' }}>+ <div className='flex items-start justify-between pt-8 pl-8 sm:pl-14 lg:pl-28 md:flex-row flex-col'>+ <div className='max-w-[430px] w-full pt-14 pr-3 mb-16 md:mb-0'>+ <h1 className='font-bold text-2xl leading-9 sm:text-4xl sm:leading-[48px] md:text-[28px] md:leading-10 lg:text-4xl lg:leading-[48px] text-white mb-3'>+ <Trans+ t={t}+ i18nKey='main.os'+ components={{+ // eslint-disable-next-line jsx-a11y/anchor-has-content+ gradi: <span className='text-transparent bg-clip-text' style={{ background: 'linear-gradient(91.37deg, #4E46DD 10%, #5C3CDA 55%, #A274EF 100%)' }} />,+ }}+ />+ </h1>+ <p className='text-gray-300 mb-9 font-medium text-base sm:text-lg'>+ {t('main.demoGeoReports')}+ </p>+ <Link to={routes.signup} className='rounded-md border !duration-300 transition-all w-full max-w-[210px] h-[50px] flex items-center justify-center sm:mr-6 shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 border-transparent'>+ <span className='text-base font-semibold mr-1'>{t('main.start')}</span>+ <ArrowSmRightIcon className='w-5 h-4 mt-[1px]' />+ </Link>+ </div>+ <div className='max-w-md xl:max-w-lg block h-[450px]'>+ <img className='rounded-xl' style={{ minheight: '600px', minWidth: '880px' }} src={theme === 'dark' ? '/assets/screenshot_dark.png' : '/assets/screenshot_light.png'} width='100%' height='auto' alt='Swetrix Analytics dashboard' />+ </div>+ </div>+ </section></div>- </div>- </div>- <Pricing t={t} language={language} />- <FAQs t={t} />- <div className='bg-white dark:bg-gray-750'>- <div className='w-11/12 mx-auto pb-16 pt-12 px-4 sm:px-6 lg:w-11/12 lg:px-8 lg:flex lg:items-center lg:justify-between'>- <h2 className='text-3xl sm:text-4xl font-extrabold tracking-tight text-gray-900 dark:text-gray-50'>- <span className='block'>- {t('main.readyToStart')}- </span>- <span className='block bg-gradient-to-r from-purple-600 to-indigo-600 dark:from-indigo-300 dark:to-indigo-500 bg-clip-text text-transparent'>- {t('main.exploreService')}- </span>- </h2>- <div className='mt-6 space-y-4 sm:space-y-0 sm:flex sm:space-x-5'>- <Link- to={routes.features}- className='flex items-center justify-center whitespace-nowrap bg-gradient-to-r from-purple-600 to-indigo-600 bg-origin-border px-4 py-3 border border-transparent text-base font-medium rounded-md shadow-sm text-white hover:from-purple-700 hover:to-indigo-700'- >- {t('common.features')}- </Link>- <Link- to={routes.signup}- className='flex items-center justify-center whitespace-nowrap px-4 py-3 border border-transparent text-base font-medium rounded-md shadow-sm text-indigo-800 bg-indigo-50 hover:bg-indigo-100'- >- {t('common.getStarted')}- </Link>- </div>- </div>+ {/* Checklist section */}+ {/* <section className='bg-white dark:bg-gray-800 px-4 md:px-8 pt-24 pb-32 relative'>+ <div className='absolute right-0 top-0 z-0 sm:top-28'>+ <BackgroundSvg type='circle' />+ </div>+ <div className='absolute left-10'>+ <BackgroundSvg type='shapes' />+ </div>+ <h1 className='text-text-gray-800 text-5xl font-extrabold text-center relative z-20 dark:text-white'>Checklist</h1>+ <div className='flex flex-col lg:flex-row items-center justify-between max-w-5xl w-full mx-auto mt-16'>+ <div+ className='max-w-xs w-full mx-auto shadow-lg overflow-hidden relative z-10'+ style={{ borderRadius: '20px 10px 10px 10px' }}+ >+ <div className='flex items-center justify-between pl-11 pr-6 bg-orange-300 py-4'>+ <h2 className='text-xl text-white font-semibold'>Done</h2>+ <CheckCircleIconOutline className='w-7 h-7 text-white' />+ </div>+ <div className='mt-14 px-11 pb-12'>+ <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>+ <CheckCircleIconOutline className='h-5 w-5 text-orange-300 mr-2' />+ {' '}+ Up to 5,000 visits per month.+ </p>+ <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>+ <CheckCircleIconOutline className='h-5 w-5 text-orange-300 mr-2' />+ {' '}+ Add up to 10 websites.+ </p>+ <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>+ <CheckCircleIconOutline className='h-5 w-5 text-orange-300 mr-2' />+ {' '}+ Unlimited data exports.+ </p>+ <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>+ <CheckCircleIconOutline className='h-5 w-5 text-orange-300 mr-2' />+ {' '}+ 100% data ownership.+ </p>+ <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>+ <CheckCircleIconOutline className='h-5 w-5 text-orange-300 mr-2' />+ {' '}+ No cookie banners required.+ </p>+ <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>+ <CheckCircleIconOutline className='h-5 w-5 text-orange-300 mr-2' />+ {' '}+ Shared & Public Dashboards.+ </p>+ <p className='text-gray-500 dark:text-white text-xs flex items-center'>+ <CheckCircleIconOutline className='h-5 w-5 text-orange-300 mr-2' />+ {' '}+ Email reports.+ </p>+ </div>+ </div>+ <div+ className='max-w-xs w-full mx-auto shadow-lg overflow-hidden my-9 lg:my-0'+ style={{ borderRadius: '20px 10px 10px 10px' }}+ >+ <div className='flex items-center justify-between pl-11 pr-6 bg-purple-400 py-4'>+ <h2 className='text-xl text-white font-semibold'>In progress</h2>+ <CogIcon alt='Swetrix settings icon' className='w-7 h-7 text-white' />+ </div>+ <div className='mt-14 px-11 pb-12'>+ <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>+ <CogIcon className='h-5 w-5 text-purple-400 mr-2' />+ {' '}+ Up to 5,000 visits per month.+ </p>+ <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>+ <CogIcon className='h-5 w-5 text-purple-400 mr-2' />+ {' '}+ Add up to 10 websites.+ </p>+ <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>+ <CogIcon className='h-5 w-5 text-purple-400 mr-2' />+ {' '}+ Unlimited data exports.+ </p>+ <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>+ <CogIcon className='h-5 w-5 text-purple-400 mr-2' />+ {' '}+ 100% data ownership.+ </p>+ <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>+ <CogIcon className='h-5 w-5 text-purple-400 mr-2' />+ {' '}+ No cookie banners required.+ </p>+ <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>+ <CogIcon className='h-5 w-5 text-purple-400 mr-2' />+ {' '}+ Shared & Public Dashboards.+ </p>+ <p className='text-gray-500 dark:text-white text-xs flex items-center'>+ <CogIcon className='h-5 w-5 text-purple-400 mr-2' />+ {' '}+ Email reports.+ </p>+ </div>+ </div>+ <div+ className='max-w-xs w-full mx-auto shadow-lg overflow-hidden relative z-10'+ style={{ borderRadius: '20px 10px 10px 10px' }}+ >+ <div className='flex items-center justify-between pl-11 pr-6 bg-gray-800 dark:bg-blue-900 py-4'>+ <h2 className='text-xl text-white font-semibold'>Plans</h2>+ <ClockIcon className='w-7 h-7 text-white' />+ </div>+ <div className='mt-14 px-11 pb-12'>+ <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>+ <ClockIcon className='h-5 w-5 text-gray-800 dark:text-blue-900 mr-2' />+ {' '}+ Up to 5,000 visits per month.+ </p>+ <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>+ <ClockIcon className='h-5 w-5 text-gray-800 dark:text-blue-900 mr-2' />+ {' '}+ Add up to 10 websites.+ </p>+ <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>+ <ClockIcon className='h-5 w-5 text-gray-800 dark:text-blue-900 mr-2' />+ {' '}+ Unlimited data exports.+ </p>+ <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>+ <ClockIcon className='h-5 w-5 text-gray-800 dark:text-blue-900 mr-2' />+ {' '}+ 100% data ownership.+ </p>+ <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>+ <ClockIcon className='h-5 w-5 text-gray-800 dark:text-blue-900 mr-2' />+ {' '}+ No cookie banners required.+ </p>+ <p className='text-gray-500 dark:text-white text-xs flex items-center mb-3'>+ <ClockIcon className='h-5 w-5 text-gray-800 dark:text-blue-900 mr-2' />+ {' '}+ Shared & Public Dashboards.+ </p>+ <p className='text-gray-500 dark:text-white text-xs flex items-center'>+ <ClockIcon className='h-5 w-5 text-gray-800 dark:text-blue-900 mr-2' />+ {' '}+ Email reports.+ </p>+ </div>+ </div>+ </div>+ </section> */}+ <section className='flex items-center lg:flex-row flex-col-reverse justify-between max-w-7xl w-full mx-auto py-20 lg:py-32 px-5'>+ <img src={theme === 'dark' ? '/assets/opensource_dark.png' : '/assets/opensource_light.png'} loading='lazy' alt='Swetrix open source' />+ <div className='max-w-lg w-full lg:ml-5'>+ <h1 className='text-3xl md:text-4xl text-white font-extrabold'>+ <Trans+ t={t}+ i18nKey='main.opensourceAdv'+ components={{+ // eslint-disable-next-line jsx-a11y/anchor-has-content+ url: <a href={GITHUB_URL} className='hover:underline' target='_blank' rel='noopener noreferrer' />,+ }}+ />+ </h1>+ <hr className='border-gray-600 border-1 max-w-[346px] my-6' />+ <div className='max-w-md w-full lg:mb-0 mb-9'>+ {_map(t('main.opensource', { returnObjects: true }), (item) => (+ <p key={item.desc} className='text-gray-300 text-sm leading-6 flex items-center mb-3'>+ <span>+ <CheckCircleIcon className='w-6 h-6 text-indigo-500 mr-4' />+ </span>+ {item.desc}+ </p>+ ))}+ </div>+ </div>+ </section>+ <section className='bg-white dark:bg-gray-800 pt-20 pb-44 relative'>+ <div className='absolute right-0 top-16 z-0'>+ <BackgroundSvg type='threecircle' />+ </div>+ <div className='absolute -left-9 top-52 rotate-90'>+ <BackgroundSvg type='shapes' />+ </div>+ <div className='max-w-5xl w-full mx-auto px-3'>+ <div className='max-w-sm w-full mx-auto'>+ <h1 className='text-gray-900 dark:text-white text-3xl md:text-4xl font-extrabold text-center'>+ {t('main.becomeDev')}+ </h1>+ <p className='text-gray-600 dark:text-gray-400 text-base font-medium text-center mt-2'>+ {t('main.becomeDevDesc')}+ </p>+ </div>+ <div className='flex items-center justify-between mt-20 md:mt-32 md:flex-row flex-col'>+ <div>+ <p className='text-indigo-700 text-5xl font-extrabold text-center'>+ {users[0]}+ {users[1] && (+ <span className='text-gray-900 dark:text-indigo-200'>+ {users[1]}+ ++ </span>+ )}+ </p>+ <p className='text-gray-600 text-lg dark:text-gray-200'>+ {t('main.users')}+ </p>+ </div>+ <div className='bg-gray-800 dark:bg-gray-200 w-2 h-2 rounded-full mx-5 mb-14 mt-16 md:mb-0 md:mt-0' />+ <div>+ <p className='text-indigo-700 text-5xl font-extrabold text-center'>+ {websites[0]}+ {websites[1] && (+ <span className='text-gray-900 dark:text-indigo-200'>+ {websites[1]}+ ++ </span>+ )}+ </p>+ <p className='text-gray-600 text-lg dark:text-gray-200'>+ {t('main.websites')}+ </p>+ </div>+ <div className='bg-gray-800 dark:bg-gray-200 w-2 h-2 rounded-full mx-5 mb-14 mt-16 md:mb-0 md:mt-0' />+ <div>+ <p className='text-indigo-700 text-5xl font-extrabold text-center'>+ {events[0]}+ {events[1] && (+ <span className='text-gray-900 dark:text-indigo-200'>+ {events[1]}+ ++ </span>+ )}+ </p>+ <p className='text-gray-600 text-lg dark:text-gray-200'>+ {t('main.pageviews')}+ </p>+ </div>+ </div>+ </div>+ </section>+ </main></div></div></Title>diff --git a/src/pages/MainPage/NewMainPage.css b/src/pages/MainPage/styles.csssimilarity index 100%rename from src/pages/MainPage/NewMainPage.cssrename to src/pages/MainPage/styles.css