📈 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
redesigned main page & header
Blue Mousec805c8bb49d2
diff --git a/src/App.tsx b/src/App.tsxindex 67e79c937..79cf1d6dc 100644--- a/src/App.tsx+++ b/src/App.tsx@@ -101,13 +101,12 @@ const Fallback = ({ isMinimalFooter }: FallbackProps): JSX.Element => {const App = () => {const dispatch = useAppDispatch()- const location = useLocation()+ const { pathname } = useLocation()const alert = useAlert()const {- loading, authenticated, user,+ loading, authenticated,} = useSelector((state: StateType) => state.auth)const paddleLoaded = useSelector((state: StateType) => state.ui.misc.paddleLoaded)- const { theme } = useSelector((state: StateType) => state.ui.theme)const { error } = useSelector((state: StateType) => state.errors)const { message, type } = useSelector((state: StateType) => state.alerts)// const themeType = useSelector(state => state.ui.theme.type)@@ -189,19 +188,16 @@ const App = () => {}}, [message, type]) // eslint-disable-line- const isMinimalFooter = _some(minimalFooterPages, (page) => _includes(location.pathname, page))+ const isMinimalFooter = _some(minimalFooterPages, (page) => _includes(pathname, page))return (<>{(!accessToken || !loading) && (// eslint-disable-next-line react/jsx-no-useless-fragment<Suspense fallback={<></>}>- <Header- authenticated={authenticated}- theme={theme}- // themeType={themeType}- user={user}- />+ {pathname !== routes.main && (+ <Header />+ )}{/* {location.pathname === routes.main && (<Snowfall />)} */}diff --git a/src/components/GithubAuth.tsx b/src/components/GithubAuth.tsxindex f9a3474ee..edead190f 100644--- a/src/components/GithubAuth.tsx+++ b/src/components/GithubAuth.tsx@@ -37,7 +37,7 @@ const GithubAuth: React.FC<IGoogleAuth> = ({if (isMiniButton) {return (<Button- className={cx(className, 'border-indigo-100 dark:text-gray-50 dark:border-slate-700/50 dark:bg-slate-800 dark:hover:bg-slate-700')}+ className={cx(className, 'ring-1 ring-slate-300 bg-transparent hover:bg-slate-100 dark:ring-slate-700 dark:hover:bg-slate-800/60')}onClick={googleLogin}secondaryregulardiff --git a/src/components/GoogleAuth.tsx b/src/components/GoogleAuth.tsxindex 7cc5c62fe..42f0fc63f 100644--- a/src/components/GoogleAuth.tsx+++ b/src/components/GoogleAuth.tsx@@ -33,7 +33,7 @@ const GoogleAuth: React.FC<IGoogleAuth> = ({if (isMiniButton) {return (<Button- className={cx(className, 'border-indigo-100 dark:text-gray-50 dark:border-slate-700/50 dark:bg-slate-800 dark:hover:bg-slate-700')}+ className={cx(className, 'ring-1 ring-slate-300 bg-transparent hover:bg-slate-100 dark:ring-slate-700 dark:hover:bg-slate-800/60')}onClick={googleLogin}secondaryregulardiff --git a/src/components/Header/index.tsx b/src/components/Header/index.tsxindex c37c2a839..977ee5f86 100644--- a/src/components/Header/index.tsx+++ b/src/components/Header/index.tsx@@ -2,11 +2,9 @@import React, {memo, Fragment, useRef, useMemo, MutableRefObject,} from 'react'-import PropTypes from 'prop-types'-import { Link, NavLink } from 'react-router-dom'+import { Link, useLocation } from 'react-router-dom'import { HashLink } from 'react-router-hash-link'-import { useAppDispatch } from 'redux/store'-import { useDispatch } from 'react-redux'+import { useDispatch, useSelector } from 'react-redux'import { useTranslation } from 'react-i18next'import Flag from 'react-flagkit'import i18next from 'i18next'@@ -14,8 +12,7 @@ import {Popover, Transition, Menu,} from '@headlessui/react'import {- Bars3Icon, XMarkIcon, DocumentTextIcon, CreditCardIcon, CircleStackIcon, RssIcon,- ChevronDownIcon, PresentationChartLineIcon,+ Bars3Icon, XMarkIcon, ChevronDownIcon, ArrowSmallRightIcon,} from '@heroicons/react/24/outline'import { MoonIcon, SunIcon } from '@heroicons/react/24/solid'import dayjs from 'dayjs'@@ -35,6 +32,7 @@ import {} from 'redux/constants'import Dropdown from 'ui/Dropdown'import { IUser } from 'redux/models/IUser'+import { useAppDispatch, StateType } from 'redux/store'dayjs.extend(utc)dayjs.extend(duration)@@ -57,14 +55,14 @@ const ThemeMenu = ({}) => (<Menu as='div' className='relative ml-3'><div>- <Menu.Button className='flex justify-center items-center text-base font-medium text-white focus:outline-none hover:text-indigo-100 hover:dark:text-gray-200'>+ <Menu.Button className='flex justify-center items-center font-semibold leading-6 text-base text-slate-800 hover:text-slate-700 dark:text-slate-200 dark:hover:text-white'><span className='sr-only'>{t('header.switchTheme')}</span>{theme === 'dark' ? (<SunIcon className='h-6 w-6 text-gray-200 hover:text-gray-300 cursor-pointer' aria-hidden='true' />) : (- <MoonIcon className='h-6 w-6 text-indigo-100 hover:text-indigo-200 cursor-pointer' aria-hidden='true' />+ <MoonIcon className='h-6 w-6 text-slate-700 hover:text-slate-600 cursor-pointer' aria-hidden='true' />)}</Menu.Button></div>@@ -122,11 +120,11 @@ const ProfileMenu = ({}) => (<Menu as='div' className='relative ml-3'><div>- <Menu.Button className='flex justify-center items-center text-base font-medium text-white focus:outline-none hover:text-indigo-100 hover:dark:text-gray-200'>+ <Menu.Button className='flex justify-center items-center font-semibold leading-6 text-base text-slate-800 hover:text-slate-700 dark:text-slate-200 dark:hover:text-white'><span>{t('common.account')}</span>- <ChevronDownIcon className='h-4 w-4 ml-1' aria-hidden='true' />+ <ChevronDownIcon className='h-4 w-4 ml-1 stroke-2' aria-hidden='true' /></Menu.Button></div><Transition@@ -171,7 +169,7 @@ const ProfileMenu = ({<Flag className='rounded-sm mr-1.5' country={languageFlag[language]} size={20} alt='' aria-hidden='true' />{languages[language]}</div>- <ChevronDownIcon className='-mr-1 ml-2 h-5 w-5' aria-hidden='true' />+ <ChevronDownIcon className='-mr-1 ml-2 h-5 w-5 stroke-2' aria-hidden='true' /></Menu.Button></div>@@ -282,7 +280,7 @@ const ProfileMenu = ({)const AuthedHeader = ({- user, switchTheme, theme, onLanguageChange, rawStatus, status, t, language, logoutHandler,+ user, switchTheme, theme, onLanguageChange, rawStatus, status, t, language, logoutHandler, colourBackground,}: {user: IUserswitchTheme: (thm?: string) => void@@ -295,24 +293,34 @@ const AuthedHeader = ({}) => stringlanguage: stringlogoutHandler: () => void+ colourBackground: boolean}): JSX.Element => (- <header className='bg-indigo-600 dark:bg-gray-750 relative overflow-x-clip'>+ <header+ className={cx('relative overflow-x-clip', {+ 'bg-gray-50 dark:bg-slate-900': colourBackground,+ })}+ ><nav className='mx-auto px-4 sm:px-6 lg:px-8' aria-label='Top'>- <div className='w-full py-4 flex items-center justify-between border-b border-indigo-500 dark:border-gray-300 lg:border-none'>+ <div className='w-full py-4 flex items-center justify-between border-b border-indigo-500 dark:border-slate-600 lg:border-none'><div className='flex items-center'>{/* Logo */}<Link to={routes.main}><span className='sr-only'>Swetrix</span>- <img className='h-7' height='28' src='/assets/logo_white.png' alt='Swetrix' />+ <img+ className='h-7'+ height='28'+ src={theme === 'dark' ? '/assets/logo_white.png' : '/assets/logo_blue.png'}+ alt='Swetrix'+ /></Link>- <div className='hidden ml-10 space-x-1 lg:flex'>+ <div className='hidden ml-10 space-x-1 lg:flex gap-4'>{user?.planCode === 'trial' && (<Linkto={routes.billing}- className={cx('flex justify-center items-center text-base select-none font-medium py-2 px-2 rounded-md', {- 'text-amber-800 bg-amber-200 dark:bg-amber-300 hover:bg-amber-300 dark:hover:bg-amber-200': rawStatus === TRIAL_STATUS_MAPPING.ENDS_IN_X_DAYS,- 'text-rose-800 bg-rose-200 dark:bg-rose-300 hover:bg-rose-300 dark:hover:bg-rose-200': rawStatus === TRIAL_STATUS_MAPPING.ENDS_TODAY || rawStatus === TRIAL_STATUS_MAPPING.ENDS_TOMORROW || rawStatus === TRIAL_STATUS_MAPPING.ENDED,+ className={cx('font-semibold leading-6 text-base', {+ 'text-amber-600 hover:text-amber-500': rawStatus === TRIAL_STATUS_MAPPING.ENDS_IN_X_DAYS,+ 'text-rose-600 hover:text-rose-500': rawStatus === TRIAL_STATUS_MAPPING.ENDS_TODAY || rawStatus === TRIAL_STATUS_MAPPING.ENDS_TOMORROW || rawStatus === TRIAL_STATUS_MAPPING.ENDED,})}key='TrialNotification'>@@ -322,22 +330,32 @@ const AuthedHeader = ({{user?.planCode === 'none' && (<Linkto={routes.billing}- className='flex justify-center items-center text-base select-none font-medium py-2 px-2 rounded-md text-rose-800 bg-rose-200 dark:bg-rose-300 hover:bg-rose-300 dark:hover:bg-rose-200'+ className='font-semibold leading-6 text-base text-rose-600 hover:text-rose-500'key='NoSubscription'>{t('billing.inactive')}</Link>)}- <a href={BLOG_URL} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' target='_blank' rel='noreferrer noopener'>- <RssIcon className='w-5 h-5 mr-1' />+ <a+ href={BLOG_URL}+ className='font-semibold leading-6 text-base text-slate-800 hover:text-slate-700 dark:text-slate-200 dark:hover:text-white'+ target='_blank'+ rel='noreferrer noopener'+ >{t('footer.blog')}</a>- <a href={DOCS_URL} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' target='_blank' rel='noreferrer noopener'>- <DocumentTextIcon className='w-5 h-5 mr-1' />+ <a+ href={DOCS_URL}+ className='font-semibold leading-6 text-base text-slate-800 hover:text-slate-700 dark:text-slate-200 dark:hover:text-white'+ target='_blank'+ rel='noreferrer noopener'+ >{t('common.docs')}</a>- <Link to={routes.dashboard} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md'>- <PresentationChartLineIcon className='w-5 h-5 mr-1' />+ <Link+ to={routes.dashboard}+ className='font-semibold leading-6 text-base text-slate-800 hover:text-slate-700 dark:text-slate-200 dark:hover:text-white'+ >{t('common.dashboard')}</Link></div>@@ -364,7 +382,7 @@ const AuthedHeader = ({</div>) : (<div className='transition-all duration-1000 ease-in-out'>- <MoonIcon onClick={() => switchTheme()} className='h-10 w-10 text-indigo-100 hover:text-indigo-200 cursor-pointer' />+ <MoonIcon onClick={() => switchTheme()} className='h-10 w-10 text-slate-700 hover:text-slate-600 cursor-pointer' /></div>)}<Popover.Button className='bg-white dark:bg-slate-800 dark:hover:bg-slate-700 dark:text-gray-200 rounded-md p-2 ml-3 inline-flex items-center justify-center text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500'>@@ -375,17 +393,27 @@ const AuthedHeader = ({</Popover.Button></div></div>- <div className='py-4 flex flex-wrap justify-center space-x-2 lg:hidden'>- <a href={BLOG_URL} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-1 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' target='_blank' rel='noreferrer noopener'>- <RssIcon className='w-5 h-5 mr-1' />+ <div className='py-4 flex gap-4 flex-wrap justify-center space-x-2 lg:hidden'>+ <a+ href={BLOG_URL}+ className='font-semibold leading-6 text-base text-slate-800 hover:text-slate-700 dark:text-slate-200 dark:hover:text-white'+ target='_blank'+ rel='noreferrer noopener'+ >{t('footer.blog')}</a>- <a href={DOCS_URL} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-1 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' target='_blank' rel='noreferrer noopener'>- <DocumentTextIcon className='w-5 h-5 mr-1' />+ <a+ href={DOCS_URL}+ className='font-semibold leading-6 text-base text-slate-800 hover:text-slate-700 dark:text-slate-200 dark:hover:text-white'+ target='_blank'+ rel='noreferrer noopener'+ >{t('common.docs')}</a>- <Link to={routes.dashboard} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md'>- <PresentationChartLineIcon className='w-5 h-5 mr-1' />+ <Link+ to={routes.dashboard}+ className='font-semibold leading-6 text-base text-slate-800 hover:text-slate-700 dark:text-slate-200 dark:hover:text-white'+ >{t('common.dashboard')}</Link></div>@@ -394,67 +422,75 @@ const AuthedHeader = ({)const NotAuthedHeader = ({- switchTheme, theme, onLanguageChange, t, language,+ switchTheme, theme, onLanguageChange, t, language, colourBackground,}: {switchTheme: (a?: string) => void,theme: string,onLanguageChange: (lang: string) => void,t: (key: string) => string,language: string,+ colourBackground: boolean,}) => (- <header className='bg-indigo-600 dark:bg-gray-750 relative overflow-x-clip'>+ <header+ className={cx('relative overflow-x-clip', {+ 'bg-indigo-600 dark:bg-slate-900': colourBackground,+ })}+ ><nav className='mx-auto px-4 sm:px-6 lg:px-8' aria-label='Top'>- <div className='w-full py-4 flex items-center justify-between border-b border-indigo-500 dark:border-gray-300 lg:border-none'>+ <div className='w-full py-4 flex items-center justify-between border-b border-indigo-500 dark:border-slate-600 lg:border-none'><div className='flex items-center'>{/* Logo */}<Link to={routes.main}><span className='sr-only'>Swetrix</span>- <img className='h-7' height='28' src='/assets/logo_white.png' alt='Swetrix' />+ <img+ className='h-7'+ height='28'+ src={theme === 'dark' ? '/assets/logo_white.png' : '/assets/logo_blue.png'}+ alt='Swetrix'+ /></Link>- <div className='hidden ml-10 space-x-1 lg:flex'>- <a href={BLOG_URL} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' target='_blank' rel='noreferrer noopener'>- <RssIcon className='w-5 h-5 mr-1' />+ <div className='hidden ml-10 space-x-1 lg:flex gap-4 items-center'>+ <a+ href={BLOG_URL}+ className='font-semibold leading-6 text-base text-slate-800 hover:text-slate-700 dark:text-slate-200 dark:hover:text-white'+ target='_blank'+ rel='noreferrer noopener'+ >{t('footer.blog')}</a>{!isSelfhosted && (<>- <NavLink to={routes.features} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' activeClassName='bg-indigo-700 hover:bg-indigo-700 dark:bg-slate-800' key='Features'>- <CircleStackIcon className='w-5 h-5 mr-1' />+ <Link+ to={routes.features}+ className='font-semibold leading-6 text-base text-slate-800 hover:text-slate-700 dark:text-slate-200 dark:hover:text-white'+ >{t('common.features')}- </NavLink>- <HashLink to={`${routes.main}#pricing`} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' key='Pricing'>- <CreditCardIcon className='w-5 h-5 mr-1' />+ </Link>+ <HashLink+ to={`${routes.main}#pricing`}+ className='font-semibold leading-6 text-base text-slate-800 hover:text-slate-700 dark:text-slate-200 dark:hover:text-white'+ key='Pricing'+ >{t('common.pricing')}</HashLink></>)}- <a href={DOCS_URL} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-2 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' target='_blank' rel='noreferrer noopener'>- <DocumentTextIcon className='w-5 h-5 mr-1' />+ <a href={DOCS_URL} className='font-semibold leading-6 text-base text-slate-800 hover:text-slate-700 dark:text-slate-200 dark:hover:text-white' target='_blank' rel='noreferrer noopener'>+ {/* <DocumentTextIcon className='w-5 h-5 mr-1' /> */}{t('common.docs')}</a></div></div><div className='hidden md:flex justify-center items-center flex-wrap ml-1 md:ml-10 space-y-1 sm:space-y-0 space-x-2 md:space-x-4'>- {/* Theme switch */}- {theme === 'dark' ? (- <div className='transition-all duration-1000 ease-in-out rotate-180'>- <SunIcon onClick={() => switchTheme()} className='h-10 w-10 text-gray-200 hover:text-gray-300 cursor-pointer' />- </div>- ) : (- <div className='transition-all duration-1000 ease-in-out'>- <MoonIcon onClick={() => switchTheme()} className='h-10 w-10 text-indigo-100 hover:text-indigo-200 cursor-pointer' />- </div>- )}-{/* Language selector */}<Dropdownitems={whitelist}- buttonClassName='flex items-center w-full rounded-md border border-gray-300 shadow-sm px-3 md:px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500 dark:text-gray-50 dark:bg-slate-800 dark:hover:bg-slate-700 border dark:border-slate-800'+ buttonClassName='inline-flex items-center [&>svg]:w-4 [&>svg]:h-4 [&>svg]:mr-0 [&>svg]:ml-1 text-sm font-semibold leading-6 text-base text-slate-800 hover:text-slate-700 dark:text-slate-200 dark:hover:text-white'selectItemClassName='text-gray-700 block px-4 py-2 text-base cursor-pointer hover:bg-gray-200 dark:text-gray-50 dark:bg-slate-800 dark:hover:bg-slate-700'title={(<>- <Flag className='rounded-sm mr-1.5' country={languageFlag[language]} size={21} alt='' aria-hidden='true' />+ <Flag className='rounded-sm mr-1.5' country={languageFlag[language]} size={18} alt='' aria-hidden='true' />{languages[language]}</>)}@@ -468,14 +504,18 @@ const NotAuthedHeader = ({)}onSelect={onLanguageChange}/>- <Link to={routes.signin} className='inline-block select-none bg-indigo-500 dark:bg-slate-800 mt-1 sm:mt-0 py-2 px-3 md:px-4 border border-transparent rounded-md text-base font-medium text-white hover:bg-opacity-75 hover:dark:bg-slate-700'>+ <ThemeMenu+ theme={theme}+ switchTheme={switchTheme}+ t={t}+ />+ <span className='text-slate-700'>+ |+ </span>+ <Link to={routes.signin} className='flex items-center font-semibold leading-6 text-base text-slate-800 hover:text-slate-700 dark:text-slate-200 dark:hover:text-white'>{t('auth.common.signin')}+ <ArrowSmallRightIcon className='ml-1 stroke-2 h-4 w-4 mt-[1px]' /></Link>- {!isSelfhosted && (- <Link to={routes.signup} className='inline-block select-none bg-white dark:bg-slate-800 dark:text-gray-50 py-2 px-3 md:px-4 border border-transparent rounded-md text-base font-medium text-indigo-600 hover:bg-indigo-50 hover:dark:bg-slate-700' aria-label={t('titles.signup')}>- {t('common.getStarted')}- </Link>- )}</div><div className='md:hidden flex justify-center items-center'>{/* Theme switch */}@@ -485,7 +525,7 @@ const NotAuthedHeader = ({</div>) : (<div className='transition-all duration-1000 ease-in-out'>- <MoonIcon onClick={() => switchTheme()} className='h-10 w-10 text-indigo-100 hover:text-indigo-200 cursor-pointer' />+ <MoonIcon onClick={() => switchTheme()} className='h-10 w-10 text-slate-700 hover:text-slate-600 cursor-pointer' /></div>)}<Popover.Button className='bg-white dark:bg-slate-800 dark:hover:bg-slate-700 dark:text-gray-200 rounded-md p-2 ml-3 inline-flex items-center justify-center text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500'>@@ -496,21 +536,34 @@ const NotAuthedHeader = ({</Popover.Button></div></div>- <div className='py-4 flex flex-wrap justify-center space-x-2 lg:hidden'>- <a href={BLOG_URL} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-1 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' target='_blank' rel='noreferrer noopener'>- <RssIcon className='w-5 h-5 mr-1' />+ <div className='py-4 flex gap-4 flex-wrap justify-center space-x-2 lg:hidden'>+ <a+ href={BLOG_URL}+ className='flex items-center font-semibold leading-6 text-base text-slate-800 hover:text-slate-700 dark:text-slate-200 dark:hover:text-white'+ target='_blank'+ rel='noreferrer noopener'+ >{t('footer.blog')}</a>- <HashLink to={`${routes.main}#pricing`} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-1 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' key='Pricing'>- <CreditCardIcon className='w-5 h-5 mr-1' />+ <HashLink+ to={`${routes.main}#pricing`}+ className='flex items-center font-semibold leading-6 text-base text-slate-800 hover:text-slate-700 dark:text-slate-200 dark:hover:text-white'+ key='Pricing'+ >{t('common.pricing')}</HashLink>- <NavLink to={routes.features} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-1 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' activeClassName='bg-indigo-700 hover:bg-indigo-700 dark:bg-slate-800' key='Features'>- <CircleStackIcon className='w-5 h-5 mr-1' />+ <Link+ to={routes.features}+ className='flex items-center font-semibold leading-6 text-base text-slate-800 hover:text-slate-700 dark:text-slate-200 dark:hover:text-white'+ >{t('common.features')}- </NavLink>- <a href={DOCS_URL} className='flex justify-center items-center text-base select-none font-medium text-white hover:text-indigo-50 py-1 px-2 dark:hover:bg-gray-700 hover:bg-indigo-500 rounded-md' target='_blank' rel='noreferrer noopener'>- <DocumentTextIcon className='w-5 h-5 mr-1' />+ </Link>+ <a+ href={DOCS_URL}+ className='flex items-center font-semibold leading-6 text-base text-slate-800 hover:text-slate-700 dark:text-slate-200 dark:hover:text-white'+ target='_blank'+ rel='noreferrer noopener'+ >{t('common.docs')}</a></div>@@ -518,16 +571,7 @@ const NotAuthedHeader = ({</header>)-const Header = ({- authenticated, theme,- // themeType,- user,-}: {- authenticated: boolean,- theme: string,- // themeType: string,- user: IUser,-}): JSX.Element => {+const Header = (): JSX.Element => {const { t, i18n: { language } }: {t: (key: string, options?: {[key: string]: string | number | null@@ -536,6 +580,9 @@ const Header = ({} = useTranslation('common')const dispatch = useAppDispatch()const _dispatch = useDispatch()+ const { authenticated, user } = useSelector((state: StateType) => state.auth)+ const { theme } = useSelector((state: StateType) => state.ui.theme)+ const { pathname } = useLocation()// @ts-ignoreconst buttonRef: MutableRefObject<HTMLButtonElement> = useRef<HTMLButtonElement>()@@ -588,7 +635,7 @@ const Header = ({}return (- <Popover className='relative bg-white'>+ <Popover className='relative'>{/* Computer / Laptop / Tablet layout header */}{authenticated ? (<AuthedHeader@@ -600,6 +647,7 @@ const Header = ({theme={theme}onLanguageChange={onLanguageChange}language={language}+ colourBackground={pathname !== routes.main}t={t}/>) : (@@ -608,6 +656,7 @@ const Header = ({theme={theme}onLanguageChange={onLanguageChange}language={language}+ colourBackground={pathname !== routes.main}t={t}/>)}@@ -628,11 +677,12 @@ const Header = ({<div className='flex items-center justify-between'><Link to={routes.main}><span className='sr-only'>Swetrix</span>- {theme === 'dark' ? (- <img className='h-7' height='28' src='/assets/logo_white.png' alt='Swetrix' />- ) : (- <img className='h-7' height='28' src='/assets/logo_blue.png' alt='Swetrix' />- )}+ <img+ className='h-7'+ height='28'+ src={theme === 'dark' ? '/assets/logo_white.png' : '/assets/logo_blue.png'}+ alt='Swetrix'+ /></Link><Popover.Button ref={buttonRef} className='bg-white dark:bg-slate-800 dark:hover:bg-slate-700 dark:text-gray-200 rounded-md p-2 inline-flex items-center justify-center text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500'><span className='sr-only'>@@ -670,9 +720,9 @@ const Header = ({{user?.planCode === 'trial' && (<Linkto={routes.billing}- className={cx('flex justify-center items-center text-base select-none font-medium py-2 px-2 rounded-md', {- 'text-amber-800 bg-amber-200 dark:bg-amber-300 hover:bg-amber-300 dark:hover:bg-amber-200': rawStatus === TRIAL_STATUS_MAPPING.ENDS_IN_X_DAYS,- 'text-rose-800 bg-rose-200 dark:bg-rose-300 hover:bg-rose-300 dark:hover:bg-rose-200': rawStatus === TRIAL_STATUS_MAPPING.ENDS_TODAY || rawStatus === TRIAL_STATUS_MAPPING.ENDS_TOMORROW || rawStatus === TRIAL_STATUS_MAPPING.ENDED,+ className={cx('font-semibold leading-6 text-base', {+ 'text-amber-600 hover:text-amber-500': rawStatus === TRIAL_STATUS_MAPPING.ENDS_IN_X_DAYS,+ 'text-rose-600 hover:text-rose-500': rawStatus === TRIAL_STATUS_MAPPING.ENDS_TODAY || rawStatus === TRIAL_STATUS_MAPPING.ENDS_TOMORROW || rawStatus === TRIAL_STATUS_MAPPING.ENDED,})}key='TrialNotification'>@@ -682,7 +732,7 @@ const Header = ({{user?.planCode === 'none' && (<Linkto={routes.billing}- className='flex justify-center items-center text-base select-none font-medium py-2 px-2 rounded-md text-rose-800 bg-rose-200 dark:bg-rose-300 hover:bg-rose-300 dark:hover:bg-rose-200'+ className='font-semibold leading-6 text-base text-rose-600 hover:text-rose-500'key='NoSubscription'>{t('billing.inactive')}@@ -732,16 +782,4 @@ const Header = ({)}-Header.propTypes = {- authenticated: PropTypes.bool.isRequired,- theme: PropTypes.string.isRequired,- // themeType: PropTypes.string.isRequired,- // eslint-disable-next-line react/forbid-prop-types- user: PropTypes.object,-}--Header.defaultProps = {- user: {},-}-export default memo(Header)diff --git a/src/components/__test__/Header.test.tsx b/src/components/__test__/Header.test.tsxindex 697e68881..279551324 100644--- a/src/components/__test__/Header.test.tsx+++ b/src/components/__test__/Header.test.tsx@@ -75,13 +75,13 @@ describe('Header', () => {})})- test('renders authed header if authenticated', () => {+ test('renders header', () => {render(// @ts-ignore<Router history={history}><Provider store={store}><I18nextProvider i18n={i18n}>- <Header authenticated={authenticated} theme={theme} user={user} />+ <Header /></I18nextProvider></Provider></Router>,@@ -89,19 +89,4 @@ describe('Header', () => {expect(screen.getAllByText(/common.dashboard/i)).toHaveLength(2)})-- test('renders not-authed header if not authenticated', () => {- render(- // @ts-ignore- <Router history={history}>- <Provider store={store}>- <I18nextProvider i18n={i18n}>- <Header authenticated={false} theme={theme} user={user} />- </I18nextProvider>- </Provider>- </Router>,- )-- expect(screen.getByText(/auth.common.signin/i)).toBeInTheDocument()- })})diff --git a/src/pages/Auth/Signup/BasicSignup.tsx b/src/pages/Auth/Signup/BasicSignup.tsxindex 325a5a9ea..9f393569f 100644--- a/src/pages/Auth/Signup/BasicSignup.tsx+++ b/src/pages/Auth/Signup/BasicSignup.tsx@@ -195,13 +195,15 @@ const BasicSignup = (): JSX.Element => {<p className='text-sm mt-2 mb-2 text-center text-gray-500 dark:text-gray-100'>{t('auth.socialisation.orSingUpWith')}</p>- <div className='space-x-5'>+ <div className='flex justify-around space-x-5'><GoogleAuth+ className='w-full flex justify-center'setIsLoading={setIsLoading}authSSO={authSSO}isMiniButton/><GithubAuth+ className='w-full flex justify-center'setIsLoading={setIsLoading}authSSO={authSSO}isMiniButtondiff --git a/src/pages/MainPage/index.tsx b/src/pages/MainPage/index.tsxindex ba3266fb5..dfa244da2 100644--- a/src/pages/MainPage/index.tsx+++ b/src/pages/MainPage/index.tsx@@ -5,7 +5,7 @@ import { useTranslation, Trans } from 'react-i18next'import cx from 'clsx'import { useSelector } from 'react-redux'import {- ArrowTopRightOnSquareIcon, ArrowSmallRightIcon, CheckCircleIcon, CheckIcon, XMarkIcon,+ ArrowTopRightOnSquareIcon, ArrowSmallRightIcon, CheckCircleIcon, CheckIcon, XMarkIcon, ChevronRightIcon,} from '@heroicons/react/24/solid'import { TypeAnimation } from 'react-type-animation'import _map from 'lodash/map'@@ -32,6 +32,7 @@ import Ghost from 'ui/icons/Ghost'import Gatsby from 'ui/icons/Gatsby'import Wix from 'ui/icons/Wix'+import Header from 'components/Header'import SignUp from '../Auth/Signup/BasicSignup'import Pricing from './Pricing'@@ -121,17 +122,8 @@ const COMPETITOR_FEATURE_TABLE: {const Lines = (): JSX.Element => (<div className='relative pointer-events-none'>- {/* 1 */}- <div className='absolute rotate-12 -right-0 bottom-[4.2rem] xl:bottom-20 h-px w-[400%] bg-gradient-to-l from-slate-400 opacity-20' />- <div className='absolute rotate-12 -left-32 top-3 xl:top-[0.78rem] mt-[-0.5px] h-[2px] w-28 rounded-full bg-gradient-to-r from-blue-500' />-- {/* 2 */}- <div className='absolute rotate-6 right-[-48rem] top-[32rem] h-px w-[800%] bg-gradient-to-l from-slate-400 opacity-10' />- <div className='absolute rotate-[96deg] top-[22.26rem] xl:top-[23.5rem] -left-60 ml-[-0.5px] h-96 w-[2px] rounded-full bg-gradient-to-t from-emerald-700 opacity-50' />-- {/* 3 */}- <div className='absolute rotate-0 top-44 right-0 bottom-0 h-px w-[400%] bg-gradient-to-l from-slate-400 opacity-20' />- <div className='absolute -rotate-90 top-[7.03rem] -left-28 ml-[-0.5px] h-32 w-[2px] rounded-full bg-gradient-to-t from-violet-400' />+ <div className='absolute rotate-6 right-[-48rem] top-[32rem] h-px w-[800%] bg-gradient-to-l from-slate-600 dark:from-slate-400 opacity-10' />+ <div className='absolute rotate-[96deg] top-[22.26rem] xl:top-[23.5rem] -left-60 ml-[-0.5px] h-96 w-[2px] rounded-full bg-gradient-to-t from-emerald-600 dark:from-emerald-700 opacity-50' /></div>)@@ -154,599 +146,698 @@ const Main = (): JSX.Element => {return (<Title title={t('titles.main')}>- <div className='flex justify-center items-center bg-slate-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>- <ArrowTopRightOnSquareIcon className='h-4 w-4 text-white ml-1 hidden md:block' />- </div><div className='overflow-hidden'>- <div className='bg-gray-800 dark:bg-slate-900'>- <main>- {/* first block with live demo */}- <div className='relative overflow-x-clip'>+ <main className='bg-white dark:bg-slate-900'>+ {/* first block with live demo */}+ <div className='relative overflow-x-clip isolate'>+ <svg+ className='absolute inset-0 -z-10 h-full w-full stroke-gray-200 dark:stroke-white/10 [mask-image:radial-gradient(100%_100%_at_top_right,white,transparent)]'+ aria-hidden='true'+ >+ <defs>+ <pattern+ id='rect-pattern'+ width={200}+ height={200}+ x='50%'+ y={-1}+ patternUnits='userSpaceOnUse'+ >+ <path d='M.5 200V.5H200' fill='none' />+ </pattern>+ </defs>+ <svg x='50%' y={-1} className='overflow-visible fill-white dark:fill-gray-800/20'>+ <path+ d='M-200 0h201v201h-201Z M600 0h201v201h-201Z M-400 600h201v201h-201Z M200 800h201v201h-201Z'+ strokeWidth={0}+ />+ </svg>+ <rect width='100%' height='100%' strokeWidth={0} fill='url(#rect-pattern)' />+ </svg>+ <div+ className='absolute left-[calc(50%-4rem)] top-10 -z-10 transform-gpu blur-3xl sm:left-[calc(50%-18rem)] lg:left-48 lg:top-[calc(50%-30rem)] xl:left-[calc(50%-24rem)]'+ aria-hidden='true'+ ><div- className='relative pt-10 lg:pt-24 pb-5 xl:px-8 lg:px-6 sm:px-3 mx-auto min-h-[740px]'+ className='aspect-[1108/632] w-[69.25rem] bg-gradient-to-r from-[#80caff] to-[#4f46e5] opacity-20'+ style={{+ clipPath:+ 'polygon(73.6% 51.7%, 91.7% 11.8%, 100% 46.4%, 97.4% 82.2%, 92.5% 84.9%, 75.7% 64%, 55.3% 47.5%, 46.5% 49.4%, 45% 62.9%, 50.3% 87.2%, 21.3% 64.1%, 0.1% 100%, 5.4% 51.1%, 21.4% 63.9%, 58.9% 0.2%, 73.6% 51.7%)',+ }}+ />+ </div>+ <Header />+ <div className='flex justify-center items-center 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-slate-900 dark:text-white border-transparent border-b-2 hover:border-slate-900 dark:hover:border-white text-center'>- <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-3xl sm:text-5xl md:text-5xl font-extrabold text-white sm:leading-none lg:text-5xl xl:text-6xl xl:leading-[110%]'>- <Trans- // @ts-ignore- 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>- <div- className={cx('flex items-center overflow-hidden mt-2 mb-2 sm:text-xl lg:text-lg xl:text-lg', {- 'animate-pulse': _isEmpty(lastBlogPost),- })}- >- <p className='text-base text-gray-50 dark:text-gray-100 bg-indigo-700 dark:bg-indigo-800 px-1 rounded-lg mr-2'>- {t('footer.blog')}- </p>- {_isEmpty(lastBlogPost) ? (- <div className='h-6 bg-slate-700 w-full rounded-md' />- ) : (- <a- className='text-indigo-400 hover:underline font-semibold'- href={`${process.env.REACT_APP_BLOG_URL}post/${lastBlogPost.url_path}`}- target='_blank'- rel='noopener'- >- {lastBlogPost.title}- </a>- )}- </div>- <p className='text-base text-gray-300 sm:text-xl lg:text-lg xl:text-lg'>- {t('main.description')}- <br />- {t('main.trackEveryMetric')}+ {t('main.ukrSupport')}+ </a>+ <ArrowTopRightOnSquareIcon className='h-4 w-4 text-slate-800 dark:text-white ml-1 hidden md:block' />+ </div>+ <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='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-3xl sm:text-5xl md:text-5xl font-extrabold text-slate-900 dark:text-white sm:leading-none lg:text-5xl xl:text-6xl xl:leading-[110%]'>+ <Trans+ // @ts-ignore+ t={t}+ i18nKey='main.slogan'+ components={{+ span: <span className='from-indigo-700 to-indigo-700 dark:from-indigo-600 dark:to-indigo-400 text-transparent bg-clip-text bg-gradient-to-r' />,+ }}+ />+ </h1>+ <div+ className={cx('flex items-center overflow-hidden mt-2 mb-2 sm:text-xl lg:text-lg xl:text-lg', {+ 'animate-pulse': _isEmpty(lastBlogPost),+ })}+ >+ <p className='rounded-full bg-indigo-500/10 px-3 py-1 text-sm font-semibold leading-6 text-indigo-600 dark:text-indigo-400 ring-1 ring-inset ring-indigo-500/20'>+ Latest news</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 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'- aria-label={t('titles.signup')}- >- <span className='text-base font-semibold mr-1'>- {t('common.getStarted')}- </span>- <ArrowSmallRightIcon className='h-4 w-5 mt-[1px]' />- </Link>+ {_isEmpty(lastBlogPost) ? (+ <div className='h-6 ml-1 bg-slate-700 w-full rounded-md' />+ ) : (<a- href={LIVE_DEMO_URL}- className='rounded-md !duration-300 transition-all sm:mt-0 mt-2 !border-gray-200 border w-full sm:max-w-[210px] h-12 flex items-center justify-center shadow-sm text-white bg-transparent hover:bg-gray-800'+ className='inline-flex ml-1 items-center space-x-1 text-sm font-semibold leading-6 text-slate-700 dark:text-slate-300 hover:underline'+ href={`${process.env.REACT_APP_BLOG_URL}post/${lastBlogPost.url_path}`}target='_blank'- rel='noopener noreferrer'- aria-label={`${t('common.liveDemo')} (opens in a new tab)`}+ rel='noopener'>- <span className='text-base font-semibold'>{t('common.liveDemo')}</span>+ <span>+ {lastBlogPost.title}+ </span>+ <ChevronRightIcon className='h-4 w-4 text-slate-500' aria-hidden='true' /></a>- </div>+ )}</div>- <div className='max-w-md xl:max-w-lg hidden lg:block'>- <Lines />- <picture>- <source srcSet={theme === 'dark' ? '/assets/screenshot_dark.webp' : '/assets/screenshot_light.webp'} type='image/webp' />- <img src={theme === 'dark' ? '/assets/screenshot_dark.png' : '/assets/screenshot_light.png'} className='h-full min-w-[880px] rounded-xl dark:border border-slate-800 relative' width='100%' height='auto' alt='Swetrix Analytics dashboard' />- </picture>+ <p className='text-base text-slate-700 dark:text-slate-300 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 !duration-300 transition-all w-full sm:max-w-[210px] h-12 flex items-center justify-center sm:mr-6 shadow-sm ring-1 text-white bg-slate-900 ring-slate-900 hover:bg-slate-700 dark:bg-indigo-700 dark:ring-indigo-700 dark:hover:bg-indigo-600'+ aria-label={t('titles.signup')}+ >+ <span className='text-base font-semibold mr-1'>+ {t('common.getStarted')}+ </span>+ <ArrowSmallRightIcon 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 ring-1 ring-slate-900 dark:ring-white/20 w-full sm:max-w-[210px] h-12 flex items-center justify-center shadow-sm text-slate-900 dark:text-white bg-transparent hover:bg-slate-200 dark:hover:bg-gray-800'+ target='_blank'+ rel='noopener noreferrer'+ aria-label={`${t('common.liveDemo')} (opens in a new tab)`}+ >+ <span className='text-base font-semibold'>{t('common.liveDemo')}</span>+ </a></div></div>- <div className='my-10 block lg:hidden relative z-20 px-4 md:px-0'>+ <div className='max-w-md xl:max-w-lg hidden lg:block'>+ <Lines /><picture><source srcSet={theme === 'dark' ? '/assets/screenshot_dark.webp' : '/assets/screenshot_light.webp'} type='image/webp' />- <img src={theme === 'dark' ? '/assets/screenshot_dark.png' : '/assets/screenshot_light.png'} className='rounded-xl relative shadow-colored-2xl w-full' width='100%' height='auto' alt='Swetrix Analytics dashboard' />+ <img+ src={theme === 'dark' ? '/assets/screenshot_dark.png' : '/assets/screenshot_light.png'}+ className='h-full min-w-[880px] rounded-xl relative shadow-2xl ring-1 ring-gray-900/10 dark:ring-white/10'+ width='100%'+ height='auto'+ alt='Swetrix Analytics dashboard'+ /></picture></div></div>- </div>- {/* end first block with live demo */}- {/* section Core Analytics Features */}- <div className='dark:bg-slate-900 bg-white px-4 pb-24'>- <section className='flex pt-16 md:pt-48 flex-col-reverse md:flex-row items-center md:items-start md:justify-between max-w-7xl m-auto'>+ <div className='my-10 block lg:hidden relative z-20 px-4 md:px-0'><picture>- <source srcSet='/assets/CoreFeaturesLight.webp' type='image/webp' />- <img src='/assets/CoreFeaturesLight.png' className='md:max-w-md md:mr-3 mt-3 md:mt-0 lg:max-w-full md:relative md:-top-10' alt='Core Analytics Features' />+ <source srcSet={theme === 'dark' ? '/assets/screenshot_dark.webp' : '/assets/screenshot_light.webp'} type='image/webp' />+ <img+ src={theme === 'dark' ? '/assets/screenshot_dark.png' : '/assets/screenshot_light.png'}+ className='rounded-xl relative shadow-2xl w-full ring-1 ring-gray-900/10 dark:ring-white/10'+ width='100%'+ height='auto'+ alt='Swetrix Analytics dashboard'+ /></picture>- <div className='max-w-lg'>- <h2 className='font-extrabold text-4xl dark:text-white text-gray-800'>- {t('main.coreFeatures.title')}- </h2>- <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 hover:underline font-bold border-0 flex items-center'- target='_blank'- rel='noopener noreferrer'- aria-label={`${t('common.liveDemo')} (opens in a new tab)`}- >- {t('common.liveDemo')}- <ArrowSmallRightIcon className='w-5 h-4 mt-[1px]' />- </a>- </div>- </section>- {/* end section Core Analytics Features */}- {/* section Marketplace & build-in Extensions */}- <section className='flex pt-16 flex-col md:flex-row items-center md:justify-between max-w-7xl m-auto'>- <div className='max-w-[516px]'>- <h2 className='font-extrabold text-4xl text-gray-800 dark:text-white'>- {t('main.marketplace.title')}- </h2>- <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>- <a- href={MARKETPLACE_URL}- className='dark:text-indigo-400 text-indigo-700 hover:underline font-bold border-0 flex items-center'- target='_blank'- rel='noopener noreferrer'- aria-label='Swetrix Marketplace (opens in a new tab)'- >- {t('main.visitAddons')}- <ArrowSmallRightIcon className='w-5 h-4 mt-[1px]' />- </a>- </div>- <img className='md:max-w-[450px] lg:max-w-lg md:ml-5 mt-8 md:mt-0' src='/assets/teardown.svg' alt='Marketplace' />- </section>- {/* end section Marketplace & build-in Extensions */}- {/* section Privacy compliance. */}- <section className='flex pt-20 md:pt-28 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] md:mr-3 mt-3 md:mt-0 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 md:pt-8'>- <h2 className='font-extrabold mb-6 text-4xl text-gray-800 dark:text-white'>- {t('main.privacy.title')}- </h2>- {_map(t('main.privacy.list', { returnObjects: true }), (item: {- label: string- desc: string- }) => (- <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>- ))}- {/* mt-7 because mb-4 in upper component + mt-7 = 11. mb-11 is used for spacing the links in other sections. */}- <Link to={routes.privacy} className='mt-7 dark:text-indigo-400 text-indigo-700 hover:underline font-bold border-0 flex items-center' aria-label={t('footer.pp')}>- {t('main.dataProtection')}- <ArrowSmallRightIcon className='w-5 h-4 mt-[1px]' />- </Link>- </div>- </section>- {/* end section Privacy compliance. */}+ </div></div>- {/* block singup */}- {!authenticated && (- <div className='overflow-x-clip'>- <div className='py-20 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-slate-800/20 dark:border dark:border-slate-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-transparent border-t border-gray-200 dark:border-slate-700'>- <p className='text-xs leading-5 text-gray-500 dark:text-gray-100'>- <Trans- // @ts-ignore- t={t}- i18nKey='main.signupTerms'- components={{- tos: <Link to={routes.terms} className='font-medium text-gray-900 dark:text-gray-300 hover:underline' aria-label={t('footer.tos')} />,- pp: <Link to={routes.privacy} className='font-medium text-gray-900 dark:text-gray-300 hover:underline' aria-label={t('footer.pp')} />,- }}- />- </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)',- }}- />- <picture>- <source srcSet={theme === 'dark' ? '/assets/section-signup-dark.webp' : '/assets/section-signup-light.webp'} type='image/webp' />- <img src={theme === 'dark' ? '/assets/section-signup-dark.png' : '/assets/section-signup-light.png'} className='relative z-50 hidden md:block' alt='Swetrix Dashboard overview' />- </picture>- </div>- </div>+ </div>+ {/* end first block with live demo */}+ {/* section Core Analytics Features */}+ <div className='dark:bg-slate-900 bg-white px-4 pb-24'>+ <section className='flex pt-16 md:pt-48 flex-col-reverse md:flex-row items-center md:items-start md:justify-between max-w-7xl m-auto'>+ <picture>+ <source srcSet='/assets/CoreFeaturesLight.webp' type='image/webp' />+ <img src='/assets/CoreFeaturesLight.png' className='md:max-w-md md:mr-3 mt-3 md:mt-0 lg:max-w-full md:relative md:-top-10' alt='Core Analytics Features' />+ </picture>+ <div className='max-w-lg'>+ <h2 className='font-extrabold text-4xl dark:text-white text-slate-900'>+ {t('main.coreFeatures.title')}+ </h2>+ <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 hover:underline font-bold border-0 flex items-center'+ target='_blank'+ rel='noopener noreferrer'+ aria-label={`${t('common.liveDemo')} (opens in a new tab)`}+ >+ {t('common.liveDemo')}+ <ArrowSmallRightIcon className='w-5 h-4 mt-[1px]' />+ </a></div>- )}- {/* end block singup */}- {/* Core features section */}- <section className='bg-white dark:bg-slate-900 pt-14 relative pb-14'>- <BackgroundSvg className='absolute -left-8' type='shapes' />- <div className='mx-auto text-gray-800 font-extrabold text-3xl sm:text-5xl w-fit relative'>- <h2 className='relative z-20 dark:text-white'>- {t('main.coreFeaturesBlock')}+ </section>+ {/* end section Core Analytics Features */}+ {/* section Marketplace & build-in Extensions */}+ <section className='flex flex-col md:flex-row items-center md:justify-between max-w-7xl m-auto'>+ <div className='max-w-[516px]'>+ <h2 className='font-extrabold text-4xl text-slate-900 dark:text-white'>+ {t('main.marketplace.title')}</h2>- <BackgroundSvg className='absolute right-0 sm:-right-16 top-9 z-10 opacity-30' type='semicircle' />+ <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>+ <a+ href={MARKETPLACE_URL}+ className='dark:text-indigo-400 text-indigo-700 hover:underline font-bold border-0 flex items-center'+ target='_blank'+ rel='noopener noreferrer'+ aria-label='Swetrix Marketplace (opens in a new tab)'+ >+ {t('main.visitAddons')}+ <ArrowSmallRightIcon className='w-5 h-4 mt-[1px]' />+ </a></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: {- name: string+ <img className='md:max-w-[450px] lg:max-w-lg md:ml-5 mt-8 md:mt-0' src='/assets/teardown.svg' alt='Marketplace' />+ </section>+ {/* end section Marketplace & build-in Extensions */}+ {/* section Privacy compliance. */}+ <section className='flex pt-20 md:pt-28 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] md:mr-3 mt-3 md:mt-0 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 md:pt-8'>+ <h2 className='font-extrabold mb-6 text-4xl text-slate-900 dark:text-white'>+ {t('main.privacy.title')}+ </h2>+ {_map(t('main.privacy.list', { returnObjects: true }), (item: {+ label: stringdesc: string- }, index: number) => (- <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-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 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>))}- </div>- <BackgroundSvg className='absolute right-0 bottom-0 z-10' type='twolinecircle' />- </section>- {/* end Core features section */}- {/* section supports */}- <section className='bg-white dark:bg-slate-900 pt-24 sm:px-5 px-3 relative pb-28'>- <h2 className='mx-auto text-gray-800 dark:text-white font-bold text-3xl sm:ext-5xl w-fit text-center'>- {t('main.supports')}- </h2>- <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'>- <Telegram className='max-w-[64px] sm:max-w-[150px] max-h-16' />- <NuxtJS theme={theme} className='max-w-[106px] sm:max-w-[150px] max-h-12' />- <Webflow theme={theme} className='max-w-[106px] sm:max-w-[150px] max-h-12' />- <NextJS theme={theme} className='max-w-[78px] sm:max-w-[80px] max-h-12' />- <Notion theme={theme} className='max-w-[106px] sm:max-w-[130px] max-h-12' />- <ReactSVG className='max-w-[71px] sm:max-w-[150px] max-h-16' />- <Angular className='max-w-[60px] sm:max-w-[160px] max-h-20' />- <Wordpress theme={theme} className='max-w-[100px] sm:max-w-[160px] max-h-16' />- <Wix theme={theme} className='max-w-[105px] sm:max-w-[120px] max-h-12' />- <Ghost theme={theme} className='max-w-[105px] sm:max-w-[150px] max-h-20' />- <Gatsby theme={theme} className='max-w-[105px] sm:max-w-[150px] max-h-12' />- <Cloudflare theme={theme} className='max-w-[105px] sm:max-w-[140px] max-h-12' />+ {/* mt-7 because mb-4 in upper component + mt-7 = 11. mb-11 is used for spacing the links in other sections. */}+ <Link to={routes.privacy} className='mt-7 dark:text-indigo-400 text-indigo-700 hover:underline font-bold border-0 flex items-center' aria-label={t('footer.pp')}>+ {t('main.dataProtection')}+ <ArrowSmallRightIcon className='w-5 h-4 mt-[1px]' />+ </Link></div></section>- {/* end section supports */}- {/* Marketplace and extension features */}- <div className='overflow-hidden'>- <div className='relative max-w-7xl w-full mx-auto'>+ {/* end section Privacy compliance. */}+ </div>+ {/* block singup */}+ {!authenticated && (+ <div className='overflow-x-clip'>+ <div className='py-20 max-w-7xl w-full flex justify-center md:justify-between items-center mx-auto px-5 relative isolate'><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'>- <h2 className='mt-20 text-center text-3xl sm:text-5xl text-white font-extrabold max-w-lg w-full mx-auto'>- {t('main.marketplaceBlock')}- </h2>- <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: {- name: string- desc: string- }, index: number) => (- <div key={item.name} className='max-w-[310px] w-full'>- <div className='flex items-center'>- <span className='text-gray-200 font-bold text-[26px] mr-[18px]'>{1 + index}</span>- <h2 className='font-semibold text-xl'>{item.name}</h2>- </div>- <p className='pl-9 text-gray-300'>{item.desc}</p>+ className='absolute inset-x-0 -top-3 -z-10 transform-gpu overflow-hidden px-36 blur-3xl'+ aria-hidden='true'+ >+ <div+ className='mx-auto aspect-[1155/678] w-[72.1875rem] bg-gradient-to-tr from-[#ff80b5] to-[#9089fc] opacity-30'+ 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='relative z-50 lg:col-span-6 rounded-xl'>+ <div className='bg-white dark:bg-slate-800/20 ring-1 ring-slate-200 dark:ring-slate-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-transparent border-t border-gray-200 dark:border-slate-700'>+ <p className='text-xs leading-5 text-gray-500 dark:text-gray-100'>+ <Trans+ // @ts-ignore+ t={t}+ i18nKey='main.signupTerms'+ components={{+ tos: <Link to={routes.terms} className='font-medium text-gray-900 dark:text-gray-300 hover:underline' aria-label={t('footer.tos')} />,+ pp: <Link to={routes.privacy} className='font-medium text-gray-900 dark:text-gray-300 hover:underline' aria-label={t('footer.pp')} />,+ }}+ />+ </p></div>- ))}+ </div>+ </div>+ </div>+ <div className='relative'>+ <picture>+ <source srcSet={theme === 'dark' ? '/assets/section-signup-dark.webp' : '/assets/section-signup-light.webp'} type='image/webp' />+ <img+ src={theme === 'dark' ? '/assets/section-signup-dark.png' : '/assets/section-signup-light.png'}+ className='relative z-50 hidden md:block'+ alt='Swetrix Dashboard overview'+ />+ </picture>+ </div>+ </div>+ </div>+ )}+ {/* end block singup */}+ {/* Core features section */}+ <section className='bg-white dark:bg-slate-900 pt-14 relative pb-14'>+ <BackgroundSvg className='absolute -left-8' type='shapes' />+ <div className='mx-auto text-slate-900 font-extrabold text-3xl sm:text-5xl w-fit relative'>+ <h2 className='relative z-20 dark:text-white'>+ {t('main.coreFeaturesBlock')}+ </h2>+ <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: {+ name: string+ desc: string+ }, index: number) => (+ <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-slate-900 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>- </section>+ </div>+ ))}+ </div>+ <BackgroundSvg className='absolute right-0 bottom-0 z-10' type='twolinecircle' />+ </section>+ {/* end Core features section */}+ {/* section supports */}+ <section className='bg-white dark:bg-slate-900 pt-24 sm:px-5 px-3 relative'>+ <h2 className='mx-auto text-slate-900 dark:text-white font-bold text-3xl sm:ext-5xl w-fit text-center'>+ {t('main.supports')}+ </h2>+ <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'>+ <Telegram className='max-w-[64px] sm:max-w-[150px] max-h-16' />+ <NuxtJS theme={theme} className='max-w-[106px] sm:max-w-[150px] max-h-12' />+ <Webflow theme={theme} className='max-w-[106px] sm:max-w-[150px] max-h-12' />+ <NextJS theme={theme} className='max-w-[78px] sm:max-w-[80px] max-h-12' />+ <Notion theme={theme} className='max-w-[106px] sm:max-w-[130px] max-h-12' />+ <ReactSVG className='max-w-[71px] sm:max-w-[150px] max-h-16' />+ <Angular className='max-w-[60px] sm:max-w-[160px] max-h-20' />+ <Wordpress theme={theme} className='max-w-[100px] sm:max-w-[160px] max-h-16' />+ <Wix theme={theme} className='max-w-[105px] sm:max-w-[120px] max-h-12' />+ <Ghost theme={theme} className='max-w-[105px] sm:max-w-[150px] max-h-20' />+ <Gatsby theme={theme} className='max-w-[105px] sm:max-w-[150px] max-h-12' />+ <Cloudflare theme={theme} className='max-w-[105px] sm:max-w-[140px] max-h-12' />+ </div>+ </section>+ {/* end section supports */}+ {/* Marketplace and extension features */}+ <div className='overflow-hidden'>+ <div className='relative w-full mx-auto pt-10 mt-10 isolate'>+ <svg+ className='absolute w-full inset-0 -z-10 hidden h-full stroke-gray-200 dark:stroke-white/10 [mask-image:radial-gradient(64rem_64rem_at_top,white,transparent)] sm:block'+ aria-hidden='true'+ >+ <defs>+ <pattern+ id='rect-pattern-2'+ width={200}+ height={200}+ x='50%'+ y={0}+ patternUnits='userSpaceOnUse'+ >+ <path d='M.5 200V.5H200' fill='none' />+ </pattern>+ </defs>+ <svg x='50%' y={0} className='overflow-visible fill-gray-50 dark:fill-slate-800/30'>+ <path+ d='M-200.5 0h201v201h-201Z M599.5 0h201v201h-201Z M399.5 400h201v201h-201Z M-400.5 600h201v201h-201Z'+ strokeWidth={0}+ />+ </svg>+ <rect width='100%' height='100%' strokeWidth={0} fill='url(#rect-pattern-2)' />+ </svg>+ <section className='relative z-20 px-3 max-w-7xl mx-auto'>+ <h2 className='mt-20 text-center text-3xl sm:text-5xl text-slate-900 dark:text-white font-extrabold max-w-lg w-full mx-auto'>+ {t('main.marketplaceBlock')}+ </h2>+ <div className='grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-y-24 justify-between justify-items-center text-slate-900 dark:text-white pt-20 pb-36'>+ {_map(t('main.mFeatures', { returnObjects: true }), (item: {+ name: string+ desc: string+ }, index: number) => (+ <div key={item.name} className='max-w-[310px] w-full'>+ <div className='flex items-center'>+ <span className='text-slate-900 dark:text-gray-200 font-bold text-[26px] mr-[18px]'>{1 + index}</span>+ <h2 className='font-semibold text-xl'>{item.name}</h2>+ </div>+ <p className='pl-9 text-slate-700 dark:text-gray-300'>{item.desc}</p>+ </div>+ ))}+ </div>+ </section>+ </div>+ </div>+ {/* end Marketplace and extension features */}+ <Pricing t={t} language={language} />++ {/* section: Why use Swetrix when there is .... */}+ <div className='overflow-hidden'>+ <div className='relative max-w-7xl w-full mx-auto isolate'>+ <div+ className='absolute inset-x-0 top-1/2 -z-10 -translate-y-1/2 transform-gpu overflow-hidden opacity-30 blur-3xl'+ aria-hidden='true'+ ><div- className='absolute w-80 h-[558px] z-10 -left-[30vw] top-[80vh] sm:left-[70vw] sm:top-[30vh] filter_blur'+ className='ml-[max(50%,38rem)] aspect-[1313/771] w-[82.0625rem] bg-gradient-to-tr from-[#ff80b5] to-[#9089fc]'style={{- background: 'linear-gradient(67.59deg, #408B9B 25.75%, #0B145F 61.14%)',- transform: 'rotate(-50.32deg)',+ 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>- {/* end Marketplace and extension features */}- <Pricing t={t} language={language} />-- {/* section: Why use Swetrix when there is .... */}- <div className='overflow-hidden'>- <div className='relative max-w-7xl w-full mx-auto'>+ <div+ className='absolute inset-x-0 top-0 -z-10 flex transform-gpu overflow-hidden pt-8 opacity-25 blur-3xl xl:justify-end'+ aria-hidden='true'+ ><div- className='absolute w-60 h-[458px] z-10 left-[10vw] -top-[10vh] filter_blur'+ className='ml-[-22rem] aspect-[1313/771] w-[82.0625rem] flex-none origin-top-right rotate-[30deg] bg-gradient-to-tr from-[#ff80b5] to-[#9089fc] xl:ml-0 xl:mr-[calc(50%-12rem)]'style={{- background: 'linear-gradient(67.59deg, #408B9B 25.75%, #0B145F 61.14%)',- transform: 'rotate(-50.32deg)',+ 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%)',}}/>- <section className='relative z-20 px-3'>- <h1 className='mt-20 text-center text-3xl sm:text-5xl text-white font-extrabold max-w-prose w-full mx-auto'>- <Trans- // @ts-ignore- t={t}- i18nKey='main.whyUseSwetrix'- components={{- // eslint-disable-next-line jsx-a11y/anchor-has-content- competitor: (- <TypeAnimation- sequence={processedList}- className='text-gray-400'- wrapper='span'- speed={10}- repeat={Infinity}- cursor- />- ),- swetrix: <span className='text-indigo-500'>Swetrix</span>,- }}- />- </h1>- <div className='py-20 text-lg text-gray-50 tracking-tight'>- <div className='mt-2 flex flex-col'>- <div className='-my-2 -mx-4 overflow-x-auto sm:-mx-6 lg:-mx-8'>- <div className='inline-block min-w-full py-2 align-middle md:px-6 lg:px-8'>- <div className='overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg'>- <table className='w-full min-w-full divide-y divide-slate-500'>- <thead className='bg-slate-800'>- <tr>- <th />- {_map(SWETRIX_AND_COMPETITORS_LIST, (item, key) => (- <th- scope='col'- key={key}- className='w-1/6 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-50 sm:pl-6'+ </div>+ <section className='relative z-20 px-3'>+ <h1 className='mt-20 text-center h-8 mb-5 text-3xl sm:text-5xl text-slate-900 dark:text-white font-extrabold max-w-prose w-full mx-auto'>+ <Trans+ // @ts-ignore+ t={t}+ i18nKey='main.whyUseSwetrix'+ components={{+ // eslint-disable-next-line jsx-a11y/anchor-has-content+ competitor: (+ <TypeAnimation+ sequence={processedList}+ className='text-slate-500 dark:text-gray-400'+ wrapper='span'+ speed={10}+ repeat={Infinity}+ cursor+ />+ ),+ swetrix: <span className='text-indigo-600 dark:text-indigo-500'>Swetrix</span>,+ }}+ />+ </h1>+ <div className='py-20 text-lg text-gray-50 tracking-tight'>+ <div className='mt-2 flex flex-col'>+ <div className='-my-2 -mx-4 overflow-x-auto sm:-mx-6 lg:-mx-8'>+ <div className='inline-block min-w-full py-2 align-middle md:px-6 lg:px-8'>+ <div className='overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg'>+ <table className='w-full min-w-full divide-y divide-slate-500'>+ <thead className='bg-gray-100 dark:bg-slate-800'>+ <tr>+ <th />+ {_map(SWETRIX_AND_COMPETITORS_LIST, (item, key) => (+ <th+ scope='col'+ key={key}+ className='w-1/6 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-slate-800 dark:text-gray-50 sm:pl-6'+ >+ {item}+ </th>+ ))}+ </tr>+ </thead>+ <tbody className='divide-y divide-slate-300 dark:divide-slate-700 bg-gray-50 dark:bg-slate-800'>+ {_map(COMPETITOR_FEATURE_TABLE.Swetrix, (_, key) => (+ <tr key={key}>+ <td className='w-1/6 px-3 py-4 text-sm text-slate-700 dark:text-gray-50 sm:pl-6'>+ {t(key)}+ </td>+ {_map(SWETRIX_AND_COMPETITORS_LIST, (service) => (+ <td+ key={`${key}-${service}`}+ className='w-1/6 px-3 py-4 text-sm text-gray-50 sm:pl-6'>- {item}- </th>+ {COMPETITOR_FEATURE_TABLE[service][key] && (+ <CheckIcon className='flex-shrink-0 h-5 w-5 text-green-600 dark:text-green-500' aria-label={t('common.yes')} />+ )}+ {COMPETITOR_FEATURE_TABLE[service][key] === false && (+ <XMarkIcon className='flex-shrink-0 h-5 w-5 text-red-600 dark:text-red-500' aria-label={t('common.no')} />+ )}+ {COMPETITOR_FEATURE_TABLE[service][key] === null && (+ <p className='text-slate-700 dark:text-gray-50 h-5 w-5 text-center'>+ -+ </p>+ )}+ </td>))}</tr>- </thead>- <tbody className='divide-y divide-slate-700 bg-slate-800'>- {_map(COMPETITOR_FEATURE_TABLE.Swetrix, (_, key) => (- <tr key={key}>- <td className='w-1/6 px-3 py-4 text-sm text-gray-50 sm:pl-6'>- {t(key)}- </td>- {_map(SWETRIX_AND_COMPETITORS_LIST, (service) => (- <td- key={`${key}-${service}`}- className='w-1/6 px-3 py-4 text-sm text-gray-50 sm:pl-6'- >- {COMPETITOR_FEATURE_TABLE[service][key] && (- <CheckIcon className='flex-shrink-0 h-5 w-5 text-green-500' aria-label={t('common.yes')} />- )}- {COMPETITOR_FEATURE_TABLE[service][key] === false && (- <XMarkIcon className='flex-shrink-0 h-5 w-5 text-red-500' aria-label={t('common.no')} />- )}- {COMPETITOR_FEATURE_TABLE[service][key] === null && (- <p className='text-gray-50 h-5 w-5 text-center'>- -- </p>- )}- </td>- ))}- </tr>- ))}- </tbody>- </table>- </div>+ ))}+ </tbody>+ </table></div></div></div></div>- </section>- <div- className='absolute w-80 h-[558px] z-10 -right-[30vw] top-[80vh] sm:right-[70vw] sm:top-[30vh] filter_blur'- style={{- background: 'linear-gradient(67.59deg, #408B9B 25.75%, #0B145F 61.14%)',- transform: 'rotate(-50.32deg)',- }}- />- </div>+ </div>+ </section></div>+ </div>- {/* section Testimonials */}- <section className='bg-white dark:bg-slate-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'>- <h2 className='text-gray-800 text-center font-extrabold text-5xl relative z-20 dark:text-white'>- {t('main.testimonials')}- </h2>- <div className='flex items-center flex-col md:flex-row justify-between mt-16'>- {_map(t('main.lTestimonials', { returnObjects: true }), (item: {- name: string;- role: string;- desc: string;- }, index: number) => (- <div- key={item.name}- className={cx('max-w-xs w-full dark:bg-slate-900', {- '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 ? 'indigo' : '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>+ {/* section Testimonials */}+ <section className='bg-white dark:bg-slate-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'>+ <h2 className='text-slate-900 text-center font-extrabold text-5xl relative z-20 dark:text-white'>+ {t('main.testimonials')}+ </h2>+ <div className='flex items-center flex-col md:flex-row justify-between mt-16'>+ {_map(t('main.lTestimonials', { returnObjects: true }), (item: {+ name: string;+ role: string;+ desc: string;+ }, index: number) => (+ <div+ key={item.name}+ className={cx('max-w-xs w-full dark:bg-slate-900', {+ '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 ? 'indigo' : '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-slate-900 dark:text-white text-md text mt-2 leading-9 whitespace-pre-line'>+ {item.desc}+ </p></div>- ))}- </div>- </div>- </section>- {/* end section Testimonials */}-- <div className='bg-white dark:bg-slate-900 px-4 md:px-8 pb-12'>- <section className='max-w-7xl w-full mx-auto bg-slate-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'>- <h2 className='font-bold text-2xl leading-9 sm:text-4xl sm:leading-[48px] md:text-[28px] md:leading-10 lg:text-[33px] lg:leading-[48px] text-white mb-3'>- <Trans- // @ts-ignore- 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%)' }} />,- }}- />- </h2>- <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' aria-label={t('titles.signup')}>- <span className='text-base font-semibold mr-1'>{t('main.start')}</span>- <ArrowSmallRightIcon className='w-5 h-4 mt-[1px]' />- </Link></div>- <div className='max-w-md xl:max-w-lg block h-[450px] md:shadow-[8px_8px_10px_3px] md:rounded-md '>- {/* @ts-ignore */}- <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>+ </section>+ {/* end section Testimonials */}- {/* Advantages of using open source */}- <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'>- <picture>- <source srcSet={theme === 'dark' ? '/assets/opensource_dark.webp' : '/assets/opensource_light.webp'} type='image/webp' />- <img src={theme === 'dark' ? '/assets/opensource_dark.png' : '/assets/opensource_light.png'} loading='lazy' alt='Swetrix open source' />- </picture>- <div className='max-w-lg w-full lg:ml-5'>- <h2 className='text-3xl md:text-4xl text-white font-extrabold'>- <Trans- // @ts-ignore- 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' aria-label='Source code (opens in a new tab)' />,+ <div className='bg-white dark:bg-slate-900 px-4 md:px-8 pb-12'>+ <section className='relative isolate max-w-7xl w-full mx-auto bg-slate-800 overflow-hidden lg:h-[450px]' style={{ borderRadius: '100px 30px 30px 30px' }}>+ <div className='absolute -z-10 inset-0 overflow-hidden' aria-hidden='true'>+ <div className='absolute left-[calc(20%-19rem)] top-[calc(50%-36rem)] transform-gpu blur-3xl'>+ <div+ className='aspect-[1097/1023] w-[68.5625rem] bg-gradient-to-r from-[#ff4694] to-[#776fff] opacity-25 dark:opacity-10'+ 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%)',}}/>- </h2>- <hr className='border-slate-700 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: {- desc: string- }) => (- <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>+ <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'>+ <h2 className='font-bold text-2xl leading-9 sm:text-4xl sm:leading-[48px] md:text-[28px] md:leading-10 lg:text-[33px] lg:leading-[48px] text-white mb-3'>+ <Trans+ // @ts-ignore+ 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%)' }} />,+ }}+ />+ </h2>+ <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' aria-label={t('titles.signup')}>+ <span className='text-base font-semibold mr-1'>{t('main.start')}</span>+ <ArrowSmallRightIcon className='w-5 h-4 mt-[1px]' />+ </Link>+ </div>+ <div className='max-w-md xl:max-w-lg block h-[450px] md:shadow-[8px_8px_10px_3px] md:rounded-md '>+ <img+ className='rounded-xl ring-1 ring-gray-900/10'+ 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>- {/* end Advantages of using open source */}- {/* Become a developer */}- <section className='bg-white dark:bg-slate-900 pt-20 pb-44 relative'>- <div className='absolute right-0 top-16 z-0'>- <BackgroundSvg type='threecircle' />+ </div>++ {/* Advantages of using open source */}+ <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'>+ <picture>+ <source srcSet={theme === 'dark' ? '/assets/opensource_dark.webp' : '/assets/opensource_light.webp'} type='image/webp' />+ <img+ className='ring-1 ring-gray-900/10 dark:ring-white/10 rounded-xl'+ src={theme === 'dark' ? '/assets/opensource_dark.png' : '/assets/opensource_light.png'}+ loading='lazy'+ alt='Swetrix open source'+ />+ </picture>+ <div className='max-w-lg w-full lg:ml-5'>+ <h2 className='text-3xl md:text-4xl text-slate-900 dark:text-white font-extrabold'>+ <Trans+ // @ts-ignore+ 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' aria-label='Source code (opens in a new tab)' />,+ }}+ />+ </h2>+ <hr className='border-slate-300 dark:border-slate-700 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: {+ desc: string+ }) => (+ <p key={item.desc} className='text-slate-700 dark: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 className='absolute -left-9 top-52 rotate-90'>- <BackgroundSvg type='shapes' />+ </div>+ </section>+ {/* end Advantages of using open source */}+ {/* Become a developer */}+ <section className='bg-white dark:bg-slate-900 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'>+ <h2 className='text-gray-900 dark:text-white text-3xl md:text-4xl font-extrabold text-center'>+ {t('main.becomeDev')}+ </h2>+ <p className='text-gray-600 dark:text-gray-400 text-base font-medium text-center mt-2'>+ {t('main.becomeDevDesc')}+ </p></div>- <div className='max-w-5xl w-full mx-auto px-3'>- <div className='max-w-sm w-full mx-auto'>- <h2 className='text-gray-900 dark:text-white text-3xl md:text-4xl font-extrabold text-center'>- {t('main.becomeDev')}- </h2>- <p className='text-gray-600 dark:text-gray-400 text-base font-medium text-center mt-2'>- {t('main.becomeDevDesc')}+ <div className='flex items-center justify-between mt-20 md:mt-32 md:flex-row flex-col'>+ <div className='text-center'>+ <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='flex items-center justify-between mt-20 md:mt-32 md:flex-row flex-col'>- <div className='text-center'>- <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 className='text-center'>- <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 className='text-center'>- <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 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 className='text-center'>+ <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 className='text-center'>+ <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>- </section>- {/* end Become a developer */}- </main>- </div>+ </div>+ </section>+ {/* end Become a developer */}+ </main></div></Title>)